66 "Bulk Source Editing",
67 "Assistant for preparing sequences "
68 "for submission to GenBank",
70 "Bulk Source Editing"),
78 return "srcedit_tool";
84 return "Submission Preparation Tool";
159 const CObject* ptr = it2->object.GetPointer();
163 dynamic_cast<const CSeq_id*
>(ptr))
205 m_Descr =
"Submission Preparation Job";
212 string changelist =
"";
214 vector<CRef<objects::CSeq_entry> >
entries;
217 const CObject* ptr = it->object.GetPointer();
220 const objects::CSeq_entry* seqEntry =
dynamic_cast<const objects::CSeq_entry*
>(ptr);
223 e->Assign(*seqEntry);
226 const objects::CSeq_submit* seqsubmit =
dynamic_cast<const objects::CSeq_submit*
>(ptr);
228 submit.
Reset(
new objects::CSeq_submit());
229 submit->Assign(*submit);
234 submit =
new objects::CSeq_submit();
235 submit->SetSub().SetContact().SetFirst_name(
"");
236 submit->SetSub().SetContact().SetLast_name(
"");
238 new_auth->
SetName().SetName().SetLast(
"");
239 new_auth->
SetName().SetName().SetFirst(
"");
240 submit->SetSub().SetCit().SetAuthors().SetNames().SetStd().push_back(new_auth);
243 submit->SetData().SetEntrys().push_back (*it);
246 item->
SetItem().SetSubmit(*submit);
User-defined methods of the data storage class.
User-defined methods of the data storage class.
CDataLoadingAppJob - a base class for Jobs loading data into projects.
void AddProjectItem(objects::CProjectItem &item)
CRef< objects::CScope > m_Scope
CDataLoadingAppTask - a task that executes CDataLoadingAppJob.
CProjectService - a service providing API for operations with Workspaces and Projects.
CProjectSelectOptions - describes how new Project Items shall be added to a workspace.
void Set_CreateNewProject(const string &folder=kEmptyStr)
CSrcEditJob(const CSrcEditParams ¶ms)
virtual void x_CreateProjectItems()
override this function in derived classes and populate m_Items.
bool Create(wxWindow *parent, wxWindowID id=10011, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
Creation.
void SetObjects(TConstScopedObjects *objects)
CSrcEditParams & GetData()
Data access.
virtual void LoadSettings()
void SetData(const CSrcEditParams &data)
IRegSettings An interface for objects that save / restore settings using CGuiRegistry.
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
CIRef< T > GetServiceByType()
retrieves a typed reference to a service, the name of C++ type is used as the name of the service.
virtual bool IsFinalState()
True if Tool Manager has reached its final state, i.e.
virtual void InitUI()
override this function in a derived class and initialize extra members
virtual IAppTask * GetTask()
Once parameters are gathered and validated this function is called to produce the final Task object t...
virtual IRegSettings * x_GetParamsAsRegSetting()
return a pointer to Parameters object as IRegSettings interface
TConstScopedObjects m_Objects
virtual string GetExtensionIdentifier() const
returns the unique human-readable identifier for the extension the id should use lowercase letters se...
virtual string GetExtensionLabel() const
returns a displayable label for this extension ( please capitalize the key words - "My Extension" )
virtual void CleanUI()
override this function in a derived class and clean extra members
virtual CDataLoadingAppJob * x_CreateLoadingJob()
factory method for creating the job that executes the tool algorithm override in derived classes
TConstScopedObjects m_Objects
virtual bool x_ValidateParams()
validates user input in Parameters panel, report errors if any
virtual bool DoTransition(EAction action)
Performs transition if possible and returns true, otherwise the function shall warn the user about th...
CSrcEditTool()
CSrcEditTool.
virtual bool x_CreateParamsPanelIfNeeded()
returns / creates Parameters panel, override in derived classes see cpp file for example
virtual void x_SelectCompatibleInputObjects()
virtual CAlgoToolManagerParamsPanel * x_GetParamsPanel()
returns a pointer to the parameters panel, override in derived classes
string m_Descr
mutex to sync our internals
static void SetLabelByData(objects::CProjectItem &item, objects::CScope *scope=NULL)
virtual void SetLogEvent(const string &log_event)
vector< SConstScopedObject > TConstScopedObjects
TObjectType * GetPointer(void) THROWS_NONE
Get pointer,.
void Reset(void)
Reset reference object.
TObjectType * Release(void)
Release a reference to the object and return a pointer to the object.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
void SetName(TName &value)
Assign a value to Name data member.
void SetItem(TItem &value)
Assign a value to Item data member.
static wxAcceleratorEntry entries[3]