50 #include <wx/msgdlg.h>
58 const string& icon_alias,
60 const string& description,
61 const string& help_id,
62 const string& category)
63 : m_Descriptor(
label, icon_alias, hint, description, help_id,
"tools"),
68 m_ProjectSelPanel(
NULL)
137 if (scope != it2->scope) {
138 return "This tool gives unpredictable results with objects\nfrom different projects.\n\nPlease move all objects to the same project\nand try again.";
171 if (!results.
empty())
184 if (!results.empty())
196 const CScope* scope = it2->scope.GetPointerOrNull();
197 if (scope) scopes.
insert(scope);
201 if (scopes.
size() != 1)
216 if (!cmdProcessor)
return 0;
245 return action ==
eNext;
247 return action ==
eNext;
279 LOG_POST(
Info <<
"CAlgoToolManagerBase::DoTransition() - Objects conversion was canceled or no input objects were found");
291 if (panel.Validate() && panel.TransferDataFromWindow()) {
386 return task.Release();
397 if (wxOK != wxMessageBox(
"The active page settings will be restored to their original defaults.",
"Confirm", wxOK | wxCANCEL))
void AsyncConvertObjects(const CTypeInfo *typeInfo, const TConstScopedObjects &inputObjects, map< string, TConstScopedObjects > &results)
CDataLoadingAppTask - a task that executes CDataLoadingAppJob.
CUndoManager & GetUndoManager()
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.
CProjectSelectOptions - describes how new Project Items shall be added to a workspace.
CTypeInfo class contains all information about C++ types (both basic and classes): members and layout...
Undo/Redo interface for editing operations.
IRegSettings An interface for objects that save / restore settings using CGuiRegistry.
virtual void SaveSettings() const =0
virtual void LoadSettings()=0
virtual void SetRegistryPath(const string &path)=0
IServiceLocator - an abstract mechanism for locating services.
IUIObject - object that provides basic properties often required in a UI object.
iterator_bool insert(const value_type &val)
const_iterator begin() const
static DLIST_TYPE *DLIST_NAME() next(DLIST_LIST_TYPE *list, DLIST_TYPE *item)
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
#define NON_CONST_ITERATE(Type, Var, Cont)
Non constant version of ITERATE macro.
#define LOG_POST(message)
This macro is deprecated and it's strongly recomended to move in all projects (except tests) to macro...
const string & GetMsg(void) const
Get message string.
string ReportAll(TDiagPostFlags flags=eDPF_Exception) const
Report all exceptions.
void Info(CExceptionArgs_Base &args)
CIRef< T > GetServiceByType()
retrieves a typed reference to a service, the name of C++ type is used as the name of the service.
void NcbiErrorBox(const string &message, const string &title="Error")
specialized Message Box function for reporting critical errors
vector< SConstScopedObject > TConstScopedObjects
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static const char label[]
const struct ncbi::grid::netcache::search::fields::CREATED created
void SelectProjectByObjects(TConstScopedObjects &objects, CProjectService *srv)
is all objects belong to the same project - selects the project
bool m_CreateFolder
package in a single item
void ToLoadingOptions(CSelectProjectOptions &options)