106 : m_Descriptor(
"GenBank Flat File",
""),
145 m_Panel->TransferDataToWindow();
171 return action ==
eNext;
173 return action ==
eNext;
225 CSeq_loc::GetTypeInfo()->GetName(), relations);
228 if (relations.size() > 1 && itr == relations.begin())
232 string relName = rel.
GetProperty(CSeq_loc::GetTypeInfo()->GetName());
237 if (!related.empty()) {
261 static string sid(
"flatfile_exporter_factory");
268 static string slabel(
"Flat File Exporter Factory");
virtual bool TransferDataFromWindow()
Transfer data from the window.
virtual void LoadSettings()
void SetData(const CFlatFileExportParams &data)
void SetObjects(map< string, TConstScopedObjects > *objects)
virtual void SaveSettings() const
CFlatFileExportParams & GetData()
Data access.
virtual void SetRegistryPath(const string &path)
IRegSettings.
virtual void SaveSettings() const
IRegSettings.
wxString GetFileName() const
virtual void SetRegistryPath(const string &path)
IRegSettings.
virtual void LoadSettings()
virtual string GetExtensionIdentifier() const
returns the unique human-readable identifier for the extension the id should use lowercase letters se...
virtual bool TestInputObjects(TConstScopedObjects &objects) const
Check if exporter can handle the objects.
virtual IUIExportTool * CreateInstance() const
create and instance of the IUIExporter
virtual string GetExtensionLabel() const
returns a displayable label for this extension ( please capitalize the key words - "My Extension" )
virtual void CleanUI()
CleanUI() is called after the host finished using the manager.
virtual void SetObjects(const TConstScopedObjects &input)
virtual wxPanel * GetCurrentPanel()
Return the panel corresponding to the current state of Tool Manager.
virtual void SetServiceLocator(IServiceLocator *srv_locator)
Sets / unsets Service Locator.
virtual void SetParentWindow(wxWindow *parent)
virtual bool CanDo(EAction action)
Indicates whether given transition is possible in the current state.
virtual IAppTask * GetTask()
Once parameters are gathered and validated this function is called to produce the final Task object t...
CFlatFileExportPage * m_Panel
CFlatFileExportParams m_Params
EState m_State
tool manager state (int the Run Tool wizard)
virtual bool IsFinalState()
True if Tool Manager has reached its final state, i.e.
wxWindow * m_ParentWindow
virtual void LoadSettings()
virtual bool DoTransition(EAction action)
Performs transition if possible and returns true, otherwise the function shall warn the user about th...
virtual void SaveSettings() const
TRelatedObjectsMap m_Objects
virtual void InitUI()
Initializes the Manager before using it in UI.
virtual const IUIObject & GetDescriptor() const
Returns the object describing this tool (UI meta data).
virtual void SetLocations(const TRelatedObjectsMap &input_map)
sets objects to be exported.
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)
vector< TRelation > TRelationVector
static void FindRelations(objects::CScope &scope, const CObject &obj, const string &to_type_in, TRelationVector &relations)
vector< SObject > TObjects
virtual string GetProperty(const string &) const
virtual void GetRelated(objects::CScope &scope, const CObject &obj, TObjects &related, TFlags flags=eDefault, ICanceled *cancel=NULL) const =0
@ fConvert_NoExpensive
do not perform any expensive tests (such as fetching from the network)
Base class for all serializable objects.
CUIObject - default mix-in implementation of IUIObject.
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.
USING_SCOPE(ncbi::objects)
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
virtual void SetLogEvent(const string &log_event)
vector< SConstScopedObject > TConstScopedObjects
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Defines classes: CDirEntry, CFile, CDir, CSymLink, CMemoryFile, CFileUtil, CFileLock,...