Code::Blocks
SVN r11506
|
#include <workspaceloader.h>
Public Member Functions | |
WorkspaceLoader () | |
~WorkspaceLoader () override | |
bool | Open (const wxString &filename, wxString &Title) override |
bool | Save (const wxString &title, const wxString &filename) override |
bool | SaveLayout (const wxString &filename) |
bool | LoadLayout (const wxString &filename) |
Public Member Functions inherited from IBaseWorkspaceLoader | |
IBaseWorkspaceLoader () | |
virtual | ~IBaseWorkspaceLoader () |
Definition at line 16 of file workspaceloader.h.
WorkspaceLoader::WorkspaceLoader | ( | ) |
Definition at line 37 of file workspaceloader.cpp.
|
override |
Definition at line 42 of file workspaceloader.cpp.
bool WorkspaceLoader::LoadLayout | ( | const wxString & | filename | ) |
Definition at line 264 of file workspaceloader.cpp.
References _(), _T, cbC2U(), LogManager::DebugLog(), F(), wxString::Format(), Manager::Get(), Manager::GetEditorManager(), wxFileName::GetFullPath(), Manager::GetLogManager(), EditorManager::GetNotebook(), GetpMan(), GetpMsg(), ProjectManager::GetWorkspace(), Manager::IsBatchBuild(), wxString::IsEmpty(), ProjectManager::IsOpen(), TinyXML::LoadDocument(), cbAuiNotebook::LoadPerspective(), wxFileName::MakeAbsolute(), AnnoyingDialog::OK, wxString::Prepend(), cbWorkspace::SetPreferredTarget(), ProjectManager::SetProject(), AnnoyingDialog::ShowModal(), CfgMgrConsts::version, WORKSPACE_LAYOUT_FILE_VERSION_MAJOR, WORKSPACE_LAYOUT_FILE_VERSION_MINOR, wxString::wx_str(), wxART_INFORMATION, and wxART_WARNING.
Referenced by cbWorkspace::LoadLayout().
Implements IBaseWorkspaceLoader.
Definition at line 52 of file workspaceloader.cpp.
References _(), _T, ProjectManager::AddProjectDependency(), cbC2U(), cbMessageBox(), LogManager::DebugLog(), Manager::Get(), wxFileName::GetFullPath(), wxFileName::GetPath(), GetpMan(), GetpMsg(), Manager::GetProjectManager(), Manager::IsAppShuttingDown(), wxString::IsEmpty(), ProjectManager::IsOpen(), TinyXML::LoadDocument(), ProjectManager::LoadProject(), wxFileName::MakeAbsolute(), UnixFilename(), and wxICON_WARNING.
Implements IBaseWorkspaceLoader.
Definition at line 163 of file workspaceloader.cpp.
References cbSaveTinyXMLDocument(), cbU2C(), Manager::Get(), ProjectManager::GetDependenciesForProject(), CompileTargetBase::GetFilename(), wxFileName::GetPath(), Manager::GetProjectManager(), ProjectManager::GetProjects(), wxFileName::MakeRelativeTo(), UnixFilename(), and wxPATH_UNIX.
Referenced by cbWorkspace::Save().
bool WorkspaceLoader::SaveLayout | ( | const wxString & | filename | ) |
Definition at line 205 of file workspaceloader.cpp.
References _T, cbSaveTinyXMLDocument(), cbU2C(), Manager::Get(), ProjectManager::GetActiveProject(), wxFileName::GetPath(), Manager::GetProjectManager(), ProjectManager::GetWorkspace(), wxString::IsEmpty(), wxFileName::MakeRelativeTo(), UnixFilename(), WORKSPACE_LAYOUT_FILE_VERSION_MAJOR, WORKSPACE_LAYOUT_FILE_VERSION_MINOR, and wxPATH_UNIX.
Referenced by cbWorkspace::SaveLayout().