104 : m_Descriptor(
"FASTA Alignment File",
""),
143 m_Panel->TransferDataToWindow();
169 return action ==
eNext;
171 return action ==
eNext;
213 const objects::CSeq_annot* annot =
dynamic_cast<const objects::CSeq_annot*
>(it->object.GetPointer());
214 if (
nullptr == annot)
217 if (!annot->IsAlign())
220 for (
auto &align : annot->GetData().GetAlign()) {
239 static string sid(
"fasta_align_exporter_factory");
246 static string slabel(
"FASTA Alignment Exporter Factory");
258 const objects::CSeq_annot* annot =
dynamic_cast<const objects::CSeq_annot*
>(it->object.GetPointer());
259 if (
nullptr == annot)
262 if (!annot->IsAlign())
CAppJobTask CAppJobTask is an adapter that allows for running IAppJobs as Tasks in App Task Service.
CFastaAlignExportParams & GetData()
virtual bool TransferDataFromWindow()
virtual void SetRegistryPath(const string &path)
IRegSettings.
void SetObjects(TConstScopedObjects &objects)
virtual void LoadSettings()
void SetData(const CFastaAlignExportParams &data)
virtual void SaveSettings() const
virtual void SetRegistryPath(const string &path)
IRegSettings.
virtual void LoadSettings()
virtual void SaveSettings() const
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 bool TestInputObjects(TConstScopedObjects &objects) const
Check if exporter can handle the objects.
virtual IUIExportTool * CreateInstance() const
create and instance of the IUIExporter
CFastaAlignExportParams m_Params
virtual wxPanel * GetCurrentPanel()
Return the panel corresponding to the current state of Tool Manager.
virtual const IUIObject & GetDescriptor() const
Returns the object describing this tool (UI meta data).
virtual bool CanDo(EAction action)
Indicates whether given transition is possible in the current state.
virtual bool IsFinalState()
True if Tool Manager has reached its final state, i.e.
virtual void SaveSettings() const
virtual void CleanUI()
CleanUI() is called after the host finished using the manager.
virtual void SetRegistryPath(const string &path)
virtual void SetObjects(const TConstScopedObjects &input)
EState m_State
tool manager state (int the Run Tool wizard)
virtual void LoadSettings()
virtual void SetParentWindow(wxWindow *parent)
virtual void InitUI()
Initializes the Manager before using it in UI.
virtual void SetLocations(const TRelatedObjectsMap &)
sets objects to be exported.
wxWindow * m_ParentWindow
CFastaAlignExportPage * m_Panel
virtual bool IsCompletedState()
Manager goes into "Complete" state when "Finish" button is pressed and all input data is gatherred an...
TConstScopedObjects m_Objects
virtual IAppTask * GetTask()
Once parameters are gathered and validated this function is called to produce the final Task object t...
virtual void SetServiceLocator(IServiceLocator *srv_locator)
Sets / unsets Service Locator.
virtual bool DoTransition(EAction action)
Performs transition if possible and returns true, otherwise the function shall warn the user about th...
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.