37 #include <wx/filename.h>
52 if (!panel->TransferDataFromWindow())
54 m_Manager.m_Params = panel->
GetData();
136 return action ==
eNext;
138 return action ==
eBack;
220 wxFileName::SplitPath(filename, 0, 0, &ext);
231 static string sid(
"genbank_flatfile_load_manager");
237 static string slabel(
"GenBank FlatFile Format Load Manager");
static bool RecognizeExtension(EFileType fileType, const wxString &extension)
static wxString GetDialogFilter(EFileType fileType)
virtual void SetRegistryPath(const string &path)
IRegSettings.
virtual void SaveSettings() const
virtual void LoadSettings()
const CGBFlatFileLoadParams & GetData() const
void SetData(const CGBFlatFileLoadParams &data)
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...
virtual void SetParentWindow(wxWindow *parent)
virtual string GetLabel() const
virtual bool ValidateFilenames(const vector< wxString > &filenames)
checks given filenames and returns true if the manager can handle them, otherwise - shows an error me...
CGBFlatFileLoadManager()
CGBFlatFileLoadManager.
virtual void SetFilenames(const vector< wxString > &filenames)
initilize the manager with the given filenames
virtual void GetFilenames(vector< wxString > &filenames) const
get actual filenames that will be opened
virtual string GetExtensionLabel() const
returns a displayable label for this extension ( please capitalize the key words - "My Extension" )
virtual void LoadSettings()
virtual string GetExtensionIdentifier() const
returns the unique human-readable identifier for the extension the id should use lowercase letters se...
vector< wxString > m_FileNames
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 void CleanUI()
CleanUI() is called after the host finished using the manager.
virtual void InitUI()
Initializes the Manager before using it in UI.
virtual void SaveSettings() const
virtual wxPanel * GetPanel()
virtual bool IsCompletedState()
Manager goes into "Complete" state when "Finish" button is pressed and all input data is gatherred an...
virtual IExecuteUnit * GetExecuteUnit()
CGBFlatFileLoadParams m_Params
IServiceLocator * m_SrvLocator
virtual bool RecognizeFormat(const wxString &filename)
return true if the given file format is supported by this manager
virtual void SetRegistryPath(const string &path)
virtual bool CanLeavePage(bool)
virtual const IUIObject & GetDescriptor() const
Returns the object describing this tool (UI meta data).
wxWindow * m_ParentWindow
CGBFlatFileParamsPanel * x_GetParamsPanel()
virtual bool IsFinalState()
True if Tool Manager has reached its final state, i.e.
virtual bool CanDo(EAction action)
Indicates whether given transition is possible in the current state.
CGBFlatFileLoadManager & m_Manager
CGBFlatFileParamsPanel * m_ParamsPanel
virtual void SetServiceLocator(IServiceLocator *srv_locator)
Sets / unsets Service Locator.
virtual wxString GetFormatWildcard() const
return file wildcard for the format (example - "*.txt;*.tab" )
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 SetLogEvent(const string &log_event)
virtual const string & GetLabel() const
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.