ToolMap
|
Project operations (new, open,...) More...
#include <projectmanager.h>
Public Member Functions | |
ProjectManager (wxFrame *parent) | |
Constructor. | |
~ProjectManager () | |
Destructor. | |
bool | CreateNewProject () |
Create a new Toolmap project. | |
void | CloseProject () |
Close the active database. | |
int | OpenProject (const wxString &path) |
Open ToolMap project. | |
bool | EditProjectObjectDefinition () |
bool | EditObjectFrequency (int id) |
bool | EditProjectSettings () |
bool | EditProject (int notebooknumber) |
Edit the project (layers,...) | |
bool | BackupProject (const wxString &backup_comment=wxEmptyString) |
bool | MergeProjects (const wxString &slave_project_name, bool beVerbose=true) |
wxString | GetProjectName () |
Get the actual project name. | |
void | SetMenuManager (MenuManager *pMenu) |
MenuManager * | GetMenuManager () |
ObjectManager * | GetObjectManager () |
void | SetStatusBar (wxStatusBar *status) |
void | SetAttributionManager (tmAttributionManager *pAManager) |
void | SetQueriesPanel (Queries_PANEL *queriespanel) |
void | SetShortcutPanel (Shortcuts_PANEL *panel) |
void | SetSnappingPanel (Snapping_PANEL *panel) |
void | SetEditManager (tmEditManager *editmanager) |
DataBaseTM * | GetDatabase () |
void | SetToolManager (tmToolManager *tm) |
void | SetStatManager (tmStatsManager *statmanager) |
void | SetLayerManager (tmLayerManager *layermanager) |
bool | IsProjectOpen () |
bool | LoadProjectDefintion (short int message=0) |
Load project defintion from database to memory. | |
PrjDefMemManage * | GetMemoryProjectDefinition () |
Get the project definition. | |
Project operations (new, open,...)
This is used to implement all project operations such as creating new project, opening existing ToolMap project, closing project,...
ProjectManager::ProjectManager | ( | wxFrame * | parent | ) |
Constructor.
ProjectManager::~ProjectManager | ( | ) |
Destructor.
void ProjectManager::CloseProject | ( | ) |
Close the active database.
This function may be called as often as you want, check is made and database is closed only if previously opened.
bool ProjectManager::CreateNewProject | ( | ) |
Create a new Toolmap project.
This function is called for creating a new embedded database and storing data from project definition
bool ProjectManager::EditProject | ( | int | notebooknumber | ) |
Edit the project (layers,...)
This function may be called for editing the project (layers, fields,...).
PrjDefMemManage * ProjectManager::GetMemoryProjectDefinition | ( | ) |
Get the project definition.
wxString ProjectManager::GetProjectName | ( | ) |
Get the actual project name.
bool ProjectManager::LoadProjectDefintion | ( | short int | message = 0 | ) |
Load project defintion from database to memory.
Project defintion is used for :
message | Message displayed during project loading : |
int ProjectManager::OpenProject | ( | const wxString & | path | ) |
Open ToolMap project.
Try to open a toolmap project
path | path to the project |
m_pMManager->SetStatus(MENU_DB_OPENED);