52 : m_Action(eInvalidAction), m_NewProjectName(
"New Project")
109 if (it->first) loaders.push_back(it->first);
111 items.push_back(*it2);
146 for(
size_t i = 0;
i < items.size();
i++ ) {
156 if (dlg.ShowModal() != wxID_OK)
185 const string& s = it->GetTitle();
200 doc->SetDescr().SetTitle(prjName);
238 if (!it->second.empty()) {
245 items.push_back(*it2);
250 loader->Assign(*it->first);
251 loaders.push_back(loader);
267 loader->Assign(*it->first);
268 loaders.push_back(loader);
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
virtual void SetRegistryPath(const string &path)
virtual void CreateProjectScope()
void AddItems(const string &folderName, vector< CRef< objects::CProjectItem > > &items, const TLoaders &loaders)
void SetCreateDate(const CTime &time)
SetCreateDate() will add a descriptor for creation date.
void SetModifiedDate(const CTime &time)
SetModifiedDate() will add a descriptor for the update date.
const CSerialObject * GetObject() const
retrieve the object pointed to as a CObject*
void SetObjects(TConstScopedObjects &objects)
void SetProjectService(CProjectService *prj_srv)
void GetParams(SProjectSelectorParams ¶ms) const
CProjectService - a service providing API for operations with Workspaces and Projects.
void CreateNewWorkspace()
CRef< objects::CGBWorkspace > GetGBWorkspace()
void AddProject(CGBDocument &doc)
bool AddItemsToWorkspace(CProjectService *service, const TData &data)
void Set_CreateNewProject(const string &folder=kEmptyStr)
void Set_CreateSeparateProjects()
void x_AddToExistingProject(CProjectService *service, TItems &items, const TLoaders &loaders)
void x_CreateSeparateProjects(CProjectService *service, const TData &data)
for every Project Item in m_Items creates a new project, adds the item to the project and loads the d...
vector< TItemRef > TItems
objects::CGBProjectHandle::TId TProjectId
TProjectId m_TargetProjectId
static CGBDocument * CreateProject(CProjectService *service, const string &prjName, const string &prjDesc)
void x_CreateOneProject(CProjectService *service, TItems &items, const TLoaders &loaders)
bool x_ShowSelectProjectDialog(CProjectService *service, TItems &items)
void Set_AddToExistingProject(TProjectId &project_id, const string &folder=kEmptyStr)
vector< TLoaderRef > TLoaders
static void InitProjectnameGenerator(objects::CGBWorkspace &ws, CUniqueLabelGenerator &projectNames)
TProjectId GetTargetProjectId()
CSelectProjectOptions()
CSelectProjectOptions.
@ eCreateSeparateProjects
Template class for iteration on objects of class C (non-medifiable version)
CUniqueLabelGenerator Modifies the given label so that it becomes unique in the given set of labels b...
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
#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)
string MakeUniqueLabel(const string &label) const
after considering all existing labels produces a modified unique version of the original label
void AddExistingLabel(const string &label)
adds an existing label
vector< SConstScopedObject > TConstScopedObjects
static CRef< CObjectManager > GetInstance(void)
Return the existing object manager or create one.
void AddDefaults(TPriority pri=kPriority_Default)
Add default data loaders from object manager.
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.
@ eCurrent
Use current time. See also CCurrentTime.
void SetComment(const TComment &value)
Assign a value to Comment data member.
const TWorkspace & GetWorkspace(void) const
Get the Workspace member data.
SProjectSelectorParams - holds data for CProjectSelectorPanel.
void ToLoadingOptions(CSelectProjectOptions &options)