Code::Blocks
SVN r11506
|
#include <uservarmanager.h>
Public Member Functions | |
UserVariableManager () | |
wxString | Replace (const wxString &variable) |
wxString | GetVariable (wxWindow *parent, const wxString &old) |
void | Preempt (const wxString &variable) |
void | Arrogate () |
bool | Exists (const wxString &variable) const |
void | Configure () |
void | Migrate () |
UserVariableManager & | operator= (cb_unused const UserVariableManager &rhs) |
Private Member Functions | |
UserVariableManager (cb_unused const UserVariableManager &rhs) | |
Private Attributes | |
ConfigManager * | m_CfgMan |
wxString | m_ActiveSet |
wxArrayString | m_Preempted |
Friends | |
class | Manager |
class | Mgr< UserVariableManager > |
class | MacrosManager |
Additional Inherited Members | |
Static Public Member Functions inherited from Mgr< UserVariableManager > | |
static bool | Valid () |
static UserVariableManager * | Get () |
static void | Free () |
Protected Member Functions inherited from Mgr< UserVariableManager > | |
Mgr () | |
virtual | ~Mgr () |
Definition at line 17 of file uservarmanager.h.
UserVariableManager::UserVariableManager | ( | ) |
Definition at line 268 of file uservarmanager.cpp.
References _T, Manager::Get(), and Manager::GetConfigManager().
|
private |
void UserVariableManager::Arrogate | ( | ) |
Definition at line 234 of file uservarmanager.cpp.
References _(), _T, UsrGlblMgrEditDialog::AddVar(), wxString::BeforeLast(), InfoWindow::Display(), PlaceWindow(), wxString::Printf(), wxDialog::ShowModal(), and wxString::wx_str().
Referenced by ProjectManager::EndLoadingProject(), and ProjectManager::EndLoadingWorkspace().
void UserVariableManager::Configure | ( | ) |
Definition at line 143 of file uservarmanager.cpp.
References _T, Manager::Get(), Manager::GetConfigManager(), m_ActiveSet, PlaceWindow(), ConfigManager::Read(), and wxDialog::ShowModal().
Referenced by GetUserVariableDialog::OnConfig(), and MainFrame::OnGlobalUserVars().
bool UserVariableManager::Exists | ( | const wxString & | variable | ) | const |
Definition at line 225 of file uservarmanager.cpp.
References _T, wxString::AfterLast(), wxString::BeforeFirst(), cSets, wxString::find(), wxString::MakeLower(), wxString::npos, and wxT.
Referenced by ScriptBindings::RegisterBindings().
Definition at line 308 of file uservarmanager.cpp.
References GetUserVariableDialog::GetVariable(), GetUserVariableDialog::OnActivated(), GetUserVariableDialog::OnCancel(), GetUserVariableDialog::OnConfig(), GetUserVariableDialog::OnOK(), and wxDialog::ShowModal().
Referenced by EditPathDlg::OnOther().
void UserVariableManager::Migrate | ( | ) |
Definition at line 274 of file uservarmanager.cpp.
References _T, wxString::assign(), ConfigManager::Delete(), ConfigManager::EnumerateKeys(), ConfigManager::EnumerateSubPaths(), ConfigManager::Exists(), Manager::Get(), Manager::GetConfigManager(), wxArrayString::GetCount(), ConfigManager::Read(), and ConfigManager::Write().
|
inline |
Definition at line 41 of file uservarmanager.h.
void UserVariableManager::Preempt | ( | const wxString & | variable | ) |
Definition at line 211 of file uservarmanager.cpp.
References _T, wxString::AfterLast(), wxString::BeforeFirst(), cSets, wxString::find(), wxString::MakeLower(), wxString::npos, wxNOT_FOUND, and wxT.
Definition at line 152 of file uservarmanager.cpp.
References _(), _T, UsrGlblMgrEditDialog::AddVar(), wxString::AfterFirst(), cBase, cBin, cInclude, cLib, cObj, cSets, InfoWindow::Display(), Manager::Get(), Manager::GetProjectManager(), wxString::IsEmpty(), ProjectManager::IsLoading(), wxString::IsSameAs(), wxString::MakeLower(), PlaceWindow(), wxString::Printf(), wxDialog::ShowModal(), wxString::wx_str(), and wxT.
|
friend |
Definition at line 21 of file uservarmanager.h.
|
friend |
Definition at line 19 of file uservarmanager.h.
|
friend |
Definition at line 20 of file uservarmanager.h.
|
private |
Definition at line 24 of file uservarmanager.h.
Referenced by Configure().
|
private |
Definition at line 23 of file uservarmanager.h.
|
private |
Definition at line 25 of file uservarmanager.h.