1 #ifndef GUI_CORE___UI_FILE_LOAD_MANAGER__HPP
2 #define GUI_CORE___UI_FILE_LOAD_MANAGER__HPP
111 #define EXT_POINT__FILE_FORMAT_LOADER_MANAGER "file_format_loader_manager"
130 const wxString& fileLoaderLabel,
131 const string& fileLoaderId)
132 : m_FileName(fileName),
133 m_FileLoaderLabel(fileLoaderLabel),
134 m_FileLoaderId(fileLoaderId) {}
155 void LoadRegisteredManagers();
192 virtual void SetFilenames(vector<wxString>&
filenames);
195 virtual void OnFormatChanged();
210 void x_AutoGuessFormat();
212 TProjectId x_CreateNewProject(
const string &new_prj_name);
215 void x_UpdateWizardPages();
216 bool x_CanLeavePage(
bool forward);
226 virtual wxPanel* GetPanel();
227 virtual bool CanLeavePage(
bool forward) {
return m_Manager.x_CanLeavePage(forward); }
User-defined methods of the data storage class.
string GetFileLoaderId() const
wxString m_FileLoaderLabel
CFileDescriptor(const wxString &fileName, const wxString &fileLoaderLabel, const string &fileLoaderId)
wxString GetFileName() const
bool operator==(const CFileDescriptor &fd) const
wxString GetFileLoaderLabel() const
CFilePage(CFileLoadManager &manager)
virtual bool CanLeavePage(bool forward)
CFileLoadManager & m_Manager
CFileLoadManager CFileLoadManager - a Loader Manager implementing "File" option in "Open" dialog.
CProjectSelectorPanel * m_ProjectSelPanel
IUIToolManager * m_AltToolManager
If a file type is better handled by a different tool manager, set it here.
wxWindow * m_ParentWindow
virtual string GetLabel() const
objects::CGBProjectHandle::TId TProjectId
TFormatMgrRef m_AutodetectFormat
vector< TFormatMgrRef > m_FormatManagers
SProjectSelectorParams m_ProjectParams
vector< wxString > m_Filenames
IWizardPage * m_OpenObjectsPage
IServiceLocator * m_SrvLocator
CIRef< IFileFormatLoaderManager > TFormatMgrRef
CFileLoadOptionPanel * m_OptionPanel
TMRUPathList m_FileMRUList
virtual IUIToolManager * GetAlternateToolManager()
If a transition fails, it may make sense to switch to a different tool manger When a tool manager ide...
vector< wxString > GetFilenames() const
CTimeMRUList< CFileDescriptor > TMRUPathList
CProjectLoadOptionPanel CProjectLoadOptionPanel - dialog panel for loading Projects and Workspaces.
CProjectSelectorPanel - a panel that allows the user to specify how the project items created by a pl...
CUIObject - default mix-in implementation of IUIObject.
IRegSettings An interface for objects that save / restore settings using CGuiRegistry.
virtual void SaveSettings() const =0
virtual void LoadSettings()=0
virtual void SetRegistryPath(const string &path)=0
IServiceLocator - an abstract mechanism for locating services.
IUIObject - object that provides basic properties often required in a UI object.
virtual const string & GetLabel() const =0
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_GUICORE_EXPORT
Defines to provide correct exporting from DLLs in Windows.
Portable reference counted smart and weak pointers using CWeakRef, CRef, CObject and CObjectEx.
The NCBI C++/STL use hints.
SProjectSelectorParams - holds data for CProjectSelectorPanel.