Code::Blocks
SVN r11506
|
#include <debuggersettingsdlg.h>
Classes | |
struct | Config |
Public Member Functions | |
DebuggerSettingsDlg (wxWindow *parent) | |
virtual | ~DebuggerSettingsDlg () |
bool | CreateConfig (wxWindow *panel, cbDebuggerPlugin *plugin, const wxString &name) |
void | DeleteConfig (wxWindow *panel, cbDebuggerPlugin *plugin) |
void | ResetConfig (wxWindow *panel, cbDebuggerPlugin *plugin) |
Public Member Functions inherited from wxScrollingDialog | |
wxScrollingDialog () | |
wxScrollingDialog (wxWindow *parent, int id=wxID_ANY, const wxString &title=wxEmptyString, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const wxString &name=_("dialogBox")) | |
Public Member Functions inherited from wxDialog | |
virtual int | ShowModal () |
Private Types | |
typedef std::map< wxWindow *, Config > | MapPanelToConfiguration |
Private Member Functions | |
void | OnPageChanged (wxNotebookEvent &event) |
void | OnOK (wxCommandEvent &event) |
Private Attributes | |
wxTreebook * | m_treebook |
wxStaticText * | m_activeInfo |
MapPanelToConfiguration | m_mapPanelToConfig |
DebuggerSettingsCommonPanel * | m_commonPanel |
Static Private Attributes | |
static const long | ID_LABEL_ACTIVE_INFO = wxNewId() |
static const long | ID_TREEBOOK = wxNewId() |
Definition at line 23 of file debuggersettingsdlg.h.
struct DebuggerSettingsDlg::Config |
Definition at line 53 of file debuggersettingsdlg.h.
Class Members | ||
---|---|---|
cbDebuggerConfiguration * | config | |
cbDebuggerPlugin * | plugin | |
wxString | pluginGUIName |
|
private |
Definition at line 60 of file debuggersettingsdlg.h.
DebuggerSettingsDlg::DebuggerSettingsDlg | ( | wxWindow * | parent | ) |
Definition at line 35 of file debuggersettingsdlg.cpp.
References _(), _T, wxBoxSizer::Add(), wxStdDialogButtonSizer::AddButton(), cbDebuggerConfiguration::Clone(), DebuggerSettingsDlg::Config::config, wxBoxSizer::Fit(), Manager::Get(), DebuggerManager::GetAllDebuggers(), DebuggerManager::PluginData::GetConfigurations(), Manager::GetDebuggerManager(), OnPageChanged(), DebuggerSettingsDlg::Config::plugin, DebuggerSettingsDlg::Config::pluginGUIName, wxStdDialogButtonSizer::Realize(), wxBoxSizer::SetSizeHints(), wxALIGN_CENTER_VERTICAL, wxALL, wxBK_DEFAULT, wxBOTTOM, wxCAPTION, wxCLOSE_BOX, wxDEFAULT_DIALOG_STYLE, wxDefaultPosition, wxDefaultSize, wxEmptyString, wxEXPAND, wxFONTENCODING_DEFAULT, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, wxHORIZONTAL, wxID_ANY, wxID_CANCEL, wxID_OK, wxLEFT, wxLI_HORIZONTAL, wxMAXIMIZE_BOX, wxMINIMIZE_BOX, wxNO_BORDER, wxRESIZE_BORDER, wxRIGHT, wxTRANSPARENT_WINDOW, and wxVERTICAL.
|
virtual |
Definition at line 107 of file debuggersettingsdlg.cpp.
References m_mapPanelToConfig.
bool DebuggerSettingsDlg::CreateConfig | ( | wxWindow * | panel, |
cbDebuggerPlugin * | plugin, | ||
const wxString & | name | ||
) |
Definition at line 189 of file debuggersettingsdlg.cpp.
References DebuggerSettingsDlg::Config::config, FindPageIndex(), cbDebuggerPlugin::GetGUIName(), cbDebuggerConfiguration::GetName(), wxBookCtrlBase::GetPageCount(), wxTreebook::GetPageParent(), wxBookCtrlBase::GetPageText(), wxTreebook::InsertSubPage(), cbDebuggerPlugin::LoadConfig(), m_mapPanelToConfig, m_treebook, cbDebuggerConfiguration::MakePanel(), DebuggerSettingsDlg::Config::plugin, DebuggerSettingsDlg::Config::pluginGUIName, and cbDebuggerConfiguration::SetName().
Referenced by DebuggerSettingsPanel::OnButtonCreate(), and ResetConfig().
void DebuggerSettingsDlg::DeleteConfig | ( | wxWindow * | panel, |
cbDebuggerPlugin * | plugin | ||
) |
Definition at line 217 of file debuggersettingsdlg.cpp.
References _(), cbAssert, cbMessageBox(), wxTreebook::DeletePage(), FindPageIndex(), wxArrayString::GetCount(), wxBookCtrlBase::GetPageCount(), wxTreebook::GetPageParent(), wxBookCtrlBase::GetPageText(), wxMultiChoiceDialog::GetSelections(), m_mapPanelToConfig, m_treebook, PlaceWindow(), wxMultiChoiceDialog::ShowModal(), wxICON_ERROR, and wxID_OK.
Referenced by DebuggerSettingsPanel::OnButtonDelete().
|
private |
Definition at line 117 of file debuggersettingsdlg.cpp.
References ConfigManager::DeleteSubPath(), ScriptBindings::EndModal(), Manager::Get(), DebuggerManager::GetActiveDebugger(), DebuggerManager::GetAllDebuggers(), ConfigManagerWrapper::GetBasepath(), cbDebuggerConfiguration::GetConfig(), Manager::GetConfigManager(), Manager::GetDebuggerManager(), DebuggerManager::GetLogger(), cbDebuggerConfiguration::GetName(), wxBookCtrlBase::GetPageCount(), ConfigManagerWrapper::IsValid(), wxString::length(), m_commonPanel, m_mapPanelToConfig, m_treebook, DebuggerManager::NewConfig(), DebuggerManager::RebuildAllConfigs(), wxString::Remove(), DebuggerSettingsCommonPanel::SaveChanges(), cbDebuggerConfiguration::SaveChanges(), cbDebuggerConfiguration::SetConfig(), cbDebuggerPlugin::SetupLog(), ConfigManager::Write(), wxID_OK, and wxT.
|
private |
Definition at line 287 of file debuggersettingsdlg.cpp.
References wxTreebook::GetPageParent(), wxBookCtrlBase::GetPageText(), m_activeInfo, m_treebook, wxNOT_FOUND, and wxT.
Referenced by DebuggerSettingsDlg().
void DebuggerSettingsDlg::ResetConfig | ( | wxWindow * | panel, |
cbDebuggerPlugin * | plugin | ||
) |
Definition at line 263 of file debuggersettingsdlg.cpp.
References cbAssert, CreateConfig(), wxTreebook::DeletePage(), FindPageIndex(), wxBookCtrlBase::GetPageCount(), wxTreebook::GetPageParent(), wxBookCtrlBase::GetPageText(), m_mapPanelToConfig, m_treebook, and wxT.
Referenced by DebuggerSettingsPanel::OnButtonReset().
|
staticprivate |
Definition at line 48 of file debuggersettingsdlg.h.
|
staticprivate |
Definition at line 49 of file debuggersettingsdlg.h.
|
private |
Definition at line 44 of file debuggersettingsdlg.h.
Referenced by OnPageChanged().
|
private |
Definition at line 63 of file debuggersettingsdlg.h.
Referenced by OnOK().
|
private |
Definition at line 62 of file debuggersettingsdlg.h.
Referenced by CreateConfig(), DeleteConfig(), OnOK(), ResetConfig(), and ~DebuggerSettingsDlg().
|
private |
Definition at line 43 of file debuggersettingsdlg.h.
Referenced by CreateConfig(), DeleteConfig(), OnOK(), OnPageChanged(), and ResetConfig().