108 : m_Descriptor(
"GFF3 File",
""),
147 m_Panel->TransferDataToWindow();
173 return action ==
eNext;
175 return action ==
eNext;
225 const CBioseq* bioseq =
dynamic_cast<const CBioseq*
>(it->object.GetPointerOrNull());
226 const CSeq_loc* seqLoc =
dynamic_cast<const CSeq_loc*
>(it->object.GetPointerOrNull());
227 const CSeq_id* seqId =
dynamic_cast<const CSeq_id*
>(it->object.GetPointerOrNull());
229 if (align || annot || seqEntry || bioseq || seqLoc || seqId) {
230 original.push_back(*it);
242 if (!original.empty())
259 static string sid(
"gff_exporter_factory");
266 static string slabel(
"GFF Exporter Factory");
void AsyncConvertObjects(const CTypeInfo *typeInfo, const TConstScopedObjects &inputObjects, map< string, TConstScopedObjects > &results)
static TDSRET convert(TDSSOCKET *tds, TDSICONV *conv, TDS_ICONV_DIRECTION direction, const char *from, size_t from_len, char *dest, size_t *dest_len)
virtual void LoadSettings()
virtual void SaveSettings() const
void SetObjects(map< string, TConstScopedObjects > *objects)
virtual bool TransferDataFromWindow()
Transfer data from the window.
void SetData(const CGffExportParams &data)
CGffExportParams & GetData()
Data access.
virtual void SetRegistryPath(const string &path)
IRegSettings.
virtual void SetRegistryPath(const string &path)
IRegSettings.
virtual void LoadSettings()
wxString GetFileName() const
virtual void SaveSettings() const
IRegSettings.
virtual string GetExtensionLabel() const
returns a displayable label for this extension ( please capitalize the key words - "My Extension" )
virtual string GetExtensionIdentifier() const
returns the unique human-readable identifier for the extension the id should use lowercase letters se...
virtual IUIExportTool * CreateInstance() const
create and instance of the IUIExporter
virtual bool TestInputObjects(TConstScopedObjects &objects) const
Check if exporter can handle the objects.
virtual void SetServiceLocator(IServiceLocator *srv_locator)
Sets / unsets Service Locator.
virtual void SetLocations(const TRelatedObjectsMap &)
sets objects to be exported.
virtual void InitUI()
Initializes the Manager before using it in UI.
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 SetParentWindow(wxWindow *parent)
virtual void SetRegistryPath(const string &path)
CGffExportParams m_Params
EState m_State
tool manager state (int the Run Tool wizard)
TRelatedObjectsMap m_Objects
virtual void SaveSettings() const
virtual void CleanUI()
CleanUI() is called after the host finished using the manager.
virtual const IUIObject & GetDescriptor() const
Returns the object describing this tool (UI meta data).
virtual bool DoTransition(EAction action)
Performs transition if possible and returns true, otherwise the function shall warn the user about th...
virtual IAppTask * GetTask()
Once parameters are gathered and validated this function is called to produce the final Task object t...
virtual bool CanDo(EAction action)
Indicates whether given transition is possible in the current state.
wxWindow * m_ParentWindow
virtual void SetObjects(const TConstScopedObjects &input)
virtual wxPanel * GetCurrentPanel()
Return the panel corresponding to the current state of Tool Manager.
virtual void LoadSettings()
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,...