1 #ifndef PKG_SEQUENCE___AGP_LOAD_MANAGER__HPP
2 #define PKG_SEQUENCE___AGP_LOAD_MANAGER__HPP
122 static string Id() {
return "file_loader_agp"; }
123 static string Label() {
return "AGP"; }
CUIObject - default mix-in implementation of IUIObject.
virtual void SetPrevPage(IWizardPage *page)
IExtension IExtension interface represents an abstract pluggable component.
IRegSettings An interface for objects that save / restore settings using CGuiRegistry.
IServiceLocator - an abstract mechanism for locating services.
IUIObject - object that provides basic properties often required in a UI object.
virtual IAppTask * GetTask()
Once parameters are gathered and validated this function is called to produce the final Task object t...
CPage(CAgpLoader &manager)
wxWindow * m_ParentWindow
virtual string GetLabel() const
virtual void CleanUI()
CleanUI() is called after the host finished using the manager.
virtual void InitUI()
Initializes the Manager before using it in UI.
CAgpLoadPage * m_ParamsPanel
virtual void SetFilenames(const vector< wxString > &filenames)
initilize the manager with the given filenames
virtual string GetFileLoaderId() const
virtual bool CanDo(EAction action)
Indicates whether given transition is possible in the current state.
virtual wxPanel * GetCurrentPanel()
Return the panel corresponding to the current state of Tool Manager.
virtual bool DoTransition(EAction action)
Performs transition if possible and returns true, otherwise the function shall warn the user about th...
virtual IWizardPage * GetOptionsPage()
Returns page for tool options (long wizard path via "Options" button)
virtual bool IsFinalState()
True if Tool Manager has reached its final state, i.e.
virtual bool IsCompletedState()
Manager goes into "Complete" state when "Finish" button is pressed and all input data is gatherred an...
virtual void SetRegistryPath(const string &path)
virtual bool ValidateFilenames(const vector< wxString > &filenames)
checks given filenames and returns true if the manager can handle them, otherwise - shows an error me...
virtual const IUIObject & GetDescriptor() const
Returns the object describing this tool (UI meta data).
virtual bool CanLeavePage(bool)
CAgpLoadPage * x_GetParamsPanel()
virtual void LoadSettings()
vector< wxString > m_FileNames
virtual string GetExtensionIdentifier() const
returns the unique human-readable identifier for the extension the id should use lowercase letters se...
virtual void GetFilenames(vector< wxString > &filenames) const
get actual filenames that will be opened
IServiceLocator * m_SrvLocator
virtual void SetServiceLocator(IServiceLocator *srv_locator)
Sets / unsets Service Locator.
virtual void SetPrevPage(IWizardPage *prevPage)
Sets a wizard page which should show before the first page of the tool.
virtual wxPanel * GetPanel()
virtual bool RecognizeFormat(const wxString &filename)
return true if the given file format is supported by this manager
virtual IWizardPage * GetFirstPage()
Returns first options page (if any) of the tool to be shown in wizard dialog.
virtual string GetExtensionLabel() const
returns a displayable label for this extension ( please capitalize the key words - "My Extension" )
virtual bool IsInitialState()
return true if the current state of the loader UI is the first valid state (first step in a wizard-li...
virtual void SaveSettings() const
virtual IExecuteUnit * GetExecuteUnit()
virtual void SetParentWindow(wxWindow *parent)
virtual wxString GetFormatWildcard() const
return file wildcard for the format (example - "*.txt;*.tab" )
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Portable reference counted smart and weak pointers using CWeakRef, CRef, CObject and CObjectEx.
The NCBI C++/STL use hints.