115 return "local_blast_data_source";
121 return "Local BLAST Data Source";
138 if(items.size() != 1 || workbench ==
NULL) {
155 wxMenu* menu =
new wxMenu;
156 menu->Append(wxID_SEPARATOR,
wxT(
"Top Actions"));
159 contrib.first = menu;
192 "attempt to open already open data source");
261 : m_Descr(
"Local BLAST data Loader",
"")
265 wxT(
"lblast_data_source.png"));
289 static string ext_id(
"local_blast_data_source_type");
304 : m_SrvLocator(
NULL),
305 m_ParentWindow(
NULL),
378 return action ==
eNext;
405 if (action ==
eNext) {
418 if (action ==
eBack) {
422 else if (action ==
eNext) {
User-defined methods of the data storage class.
Data loader implementation that uses the blast databases.
static void COpenDialog(IWorkbench *workbench, const string &loader_label=NcbiEmptyString, const vector< wxString > &filenames=vector< wxString >())
CRegistryWriteView GetWriteView(const string §ion)
get a read-write view at a particular level.
static CGuiRegistry & GetInstance()
access the application-wide singleton
CRegistryReadView GetReadView(const string §ion) const
get a read-only view at a particular level.
CLBLASTDSEvtHandler - wxEvtHandler-derived adapter for local BLAST data source.
CLBLASTDSEvtHandler(IWorkbench *workbench)
void OnLoadBLASTDB(wxCommandEvent &event)
virtual void LoadSettings()
virtual void SaveSettings() const
virtual void SetRegistryPath(const string &path)
CLBLASTLoadParams & GetData()
Data access.
virtual bool TransferDataFromWindow()
Transfer data from the window.
virtual bool TransferDataToWindow()
Transfer data to the window.
void SetData(const CLBLASTLoadParams &data)
CProjectSelectorPanel - a panel that allows the user to specify how the project items created by a pl...
virtual bool TransferDataFromWindow()
void SetProjectService(CProjectService *service)
void GetParams(SProjectSelectorParams ¶ms) const
virtual bool TransferDataToWindow()
void SetParams(const SProjectSelectorParams ¶ms)
CProjectService - a service providing API for operations with Workspaces and Projects.
class CRegistryReadView provides a nested hierarchical view at a particular key.
CProjectSelectOptions - describes how new Project Items shall be added to a workspace.
CUICommandRegistry is a centralized registry where all application commands should be registered.
static CUICommandRegistry & GetInstance()
the main instance associated with the application
wxMenuItem * AppendMenuItem(wxMenu &menu, TCmdID cmd_id) const
pair< wxMenu *, wxEvtHandler * > TContribution
Contribution consists of a Menu object and event handler.
IServiceLocator - an abstract mechanism for locating services.
IUIDataSourceType - defines a type of a Data Source, can serve as a Data Source factory.
IUIDataSource - an interface representing a Data Source.
IUIObject - object that provides basic properties often required in a UI object.
IWorkbench is the central interface in the application framework.
virtual int GetType() const =0
const TData & GetData() const
virtual void RegisterFileAlias(const wxArtID &anId, const wxArtClient &aClient, const wxSize &aSize, const wxString &aName, long aType=wxBITMAP_TYPE_ANY, int anIndex=-1)
#define LOG_POST(message)
This macro is deprecated and it's strongly recomended to move in all projects (except tests) to macro...
void Error(CExceptionArgs_Base &args)
static string AddDataLoader(const objects::CUser_object &obj)
static string GetLoaderName(const objects::CUser_object &obj)
CIRef< T > GetServiceByType()
retrieves a typed reference to a service, the name of C++ type is used as the name of the service.
virtual string GetExtensionLabel() const
returns a displayable label for this extension ( please capitalize the key words - "My Extension" )
virtual void LoadSettings()
virtual void SaveSettings() const
IServiceLocator * m_SrvLocator
virtual IUIDataSourceType & GetType() const
virtual string GetExtensionLabel() const
returns a displayable label for this extension ( please capitalize the key words - "My Extension" )
virtual wxPanel * GetCurrentPanel()
Return the panel corresponding to the current state of Tool Manager.
CLBLASTUILoadManager()
CLBLASTUILoadManager.
virtual string GetExtensionIdentifier() const
returns the unique human-readable identifier for the extension the id should use lowercase letters se...
virtual bool IsOpen()
a Data source needs to be open before use and closed after.
virtual const IUIObject & GetDescr()
returns UI description of the object (label, icon etc.)
virtual bool IsCompletedState()
Manager goes into "Complete" state when "Finish" button is pressed and all input data is gatherred an...
CLBLASTUIDataSourceType()
CLBLASTUIDataSourceType.
virtual bool AutoCreateDefaultDataSource()
returns "true" if this type needs to create a default instance of the Data Source at start-up
virtual void CleanUI()
CleanUI() is called after the host finished using the manager.
virtual void SetServiceLocator(IServiceLocator *srv_locator)
Sets / unsets Service Locator.
virtual void SetServiceLocator(IServiceLocator *locator)
virtual IUIDataSource * CreateDataSource()
factory method; create an Data Source instance
virtual bool Open()
Prepares Data Source for use, any initialization that can be potentially time-consuming or may requir...
virtual IExplorerItemCmdContributor::TContribution GetMenu(wxTreeCtrl &treeCtrl, PT::TItems &items)
for the given set of items returns a contribution
virtual string AddDataLoader(const objects::CUser_object &obj)
Add a new data loader to object manager.
virtual string GetLoaderName(const objects::CUser_object &obj) const
Get the data loader's name based on input object.
virtual IUIToolManager * GetLoadManager()
virtual void SetRegistryPath(const string &path)
virtual void EditProperties()
virtual void SetParentWindow(wxWindow *parent)
CLBLASTParamsPanel * m_ParamsPanel
CLBLASTLoadParams m_LBLASTParams
CRef< CLBLASTUIDataSourceType > m_Type
virtual wxEvtHandler * CreateEvtHandler()
CProjectSelectorPanel * m_ProjectSelPanel
SProjectSelectorParams m_ProjectParams
virtual bool DoTransition(EAction action)
Performs transition if possible and returns true, otherwise the function shall warn the user about th...
virtual string GetExtensionIdentifier() const
returns the unique human-readable identifier for the extension the id should use lowercase letters se...
wxWindow * m_ParentWindow
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 bool IsFinalState()
True if Tool Manager has reached its final state, i.e.
IServiceLocator * m_SrvLocator
virtual IAppTask * GetTask()
Once parameters are gathered and validated this function is called to produce the final Task object t...
virtual const IUIObject & GetDescr()
returns UI description of the type (label, icon etc.)
virtual int GetDefaultCommand()
virtual bool CanDo(EAction action)
Indicates whether given transition is possible in the current state.
static CIRef< IExtensionRegistry > GetInstance()
provides access to the Singleton
virtual void SetLogEvent(const string &log_event)
virtual const string & GetLabel() const
TObjectType * GetPointer(void) THROWS_NONE
Get pointer,.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
void Start(void)
Start the timer.
static const char * kProjectParamsTag
static const char * kMappingAssembly
static const char * kLBLAST_DS_Icon
CLBLASTUIDataSource.
static const int kLoaderPriority
static const char * kAppExpCmdExtPoint
static const char * kLBLASTLoadOption
ViewerWindowBase::OnEditMenu ViewerWindowBase::OnJustification EVT_MENU(MID_SHOW_GEOM_VLTNS, ViewerWindowBase::OnShowGeomVltns) EVT_MENU(MID_FIND_PATTERN
void LoadSettings(CRegistryReadView &view, const string §ion)
bool m_CreateFolder
package in a single item
void ToLoadingOptions(CSelectProjectOptions &options)
void SaveSettings(CRegistryWriteView &view, const string §ion) const
wxFileArtProvider * GetDefaultFileArtProvider()
wxString ToWxString(const string &s)