Code::Blocks
SVN r11506
|
#include <watchesdlg.h>
Classes | |
struct | WatchItem |
struct | WatchItemPredicate |
Public Member Functions | |
WatchesDlg () | |
wxWindow * | GetWindow () |
void | UpdateWatches () |
void | AddWatch (cb::shared_ptr< cbWatch > watch) |
void | AddSpecialWatch (cb::shared_ptr< cbWatch > watch, bool readonly) |
void | RemoveWatch (cb::shared_ptr< cbWatch > watch) |
void | RenameWatch (wxObject *prop, const wxString &newSymbol) |
void | RefreshUI () |
Public Member Functions inherited from cbWatchesDlg | |
virtual | ~cbWatchesDlg () |
Private Types | |
typedef std::vector< WatchItem > | WatchItems |
Private Member Functions | |
void | OnExpand (wxPropertyGridEvent &event) |
void | OnCollapse (wxPropertyGridEvent &event) |
void | OnPropertySelected (wxPropertyGridEvent &event) |
void | OnPropertyChanged (wxPropertyGridEvent &event) |
void | OnPropertyChanging (wxPropertyGridEvent &event) |
void | OnPropertyLableEditBegin (wxPropertyGridEvent &event) |
void | OnPropertyLableEditEnd (wxPropertyGridEvent &event) |
void | OnPropertyRightClick (wxPropertyGridEvent &event) |
void | OnIdle (wxIdleEvent &event) |
void | OnKeyDown (wxKeyEvent &event) |
void | OnMenuRename (wxCommandEvent &event) |
void | OnMenuProperties (wxCommandEvent &event) |
void | OnMenuDelete (wxCommandEvent &event) |
void | OnMenuDeleteAll (wxCommandEvent &event) |
void | OnMenuAddDataBreak (wxCommandEvent &event) |
void | OnMenuExamineMemory (cb_unused wxCommandEvent &event) |
void | OnMenuAutoUpdate (wxCommandEvent &event) |
void | OnMenuUpdate (wxCommandEvent &event) |
void | DeleteProperty (WatchesProperty &prop) |
Private Attributes | |
wxPropertyGrid * | m_grid |
WatchItems | m_watches |
bool | m_append_empty_watch |
Definition at line 22 of file watchesdlg.h.
|
private |
Definition at line 69 of file watchesdlg.h.
WatchesDlg::WatchesDlg | ( | ) |
Definition at line 373 of file watchesdlg.cpp.
References _(), wxBoxSizer::Add(), wxPropertyGrid::Append(), Manager::Get(), Manager::GetColourManager(), m_grid, OnKeyDown(), ColourManager::RegisterColour(), wxPropertyGrid::RegisterEditorClass(), wxPropertyGrid::SetColumnCount(), wxPropertyGrid::SetColumnProportion(), wxPropertyGrid::SetPropertyAttribute(), watchesDummyEditor, watchesPropertyEditor, wxALL, wxDefaultPosition, wxDefaultSize, wxEmptyString, wxEVT_KEY_DOWN, wxEXPAND, wxPG_EX_DISABLE_TLP_TRACKING, wxPG_EX_HELP_AS_TOOLTIPS, wxPG_SPLITTER_AUTO_CENTER, wxRED, wxT, wxTAB_TRAVERSAL, and wxVERTICAL.
|
virtual |
Implements cbWatchesDlg.
Definition at line 570 of file watchesdlg.cpp.
References wxPropertyGrid::Insert(), m_grid, m_watches, WatchesDlg::WatchItem::property, WatchesDlg::WatchItem::readonly, WatchesDlg::WatchItem::special, WatchesDlg::WatchItem::watch, and wxPG_ITERATE_ALL.
Referenced by GetWindow().
|
virtual |
Implements cbWatchesDlg.
Definition at line 536 of file watchesdlg.cpp.
References wxPropertyGrid::Append(), wxPropertyGrid::EndLabelEdit(), wxPropertyGrid::GetLabelEditor(), wxPropertyGrid::GetLastItem(), m_grid, m_watches, WatchesDlg::WatchItem::property, wxPropertyGrid::SetPropertyLabel(), wxPropertyGrid::SetPropertyName(), WatchesProperty::SetWatch(), WatchesDlg::WatchItem::watch, wxEmptyString, and wxPG_ITERATE_DEFAULT.
Referenced by GetWindow().
|
private |
Definition at line 681 of file watchesdlg.cpp.
References wxPropertyGrid::DeleteProperty(), cbDebuggerPlugin::DeleteWatch(), Manager::Get(), DebuggerManager::GetDebuggerHavingWatch(), Manager::GetDebuggerManager(), WatchesProperty::GetWatch(), wxPGProperty::IsRoot(), m_grid, and m_watches.
Referenced by GetWindow(), OnKeyDown(), OnMenuDelete(), and RemoveWatch().
|
inlinevirtual |
Implements cbWatchesDlg.
Definition at line 27 of file watchesdlg.h.
References AddSpecialWatch(), AddWatch(), DeleteProperty(), OnCollapse(), OnExpand(), OnIdle(), OnKeyDown(), OnMenuAddDataBreak(), OnMenuAutoUpdate(), OnMenuDelete(), OnMenuDeleteAll(), OnMenuExamineMemory(), OnMenuProperties(), OnMenuRename(), OnMenuUpdate(), OnPropertyChanged(), OnPropertyChanging(), OnPropertyLableEditBegin(), OnPropertyLableEditEnd(), OnPropertyRightClick(), OnPropertySelected(), RefreshUI(), RemoveWatch(), RenameWatch(), and UpdateWatches().
|
private |
Definition at line 611 of file watchesdlg.cpp.
References cbDebuggerPlugin::CollapseWatch(), Manager::Get(), DebuggerManager::GetDebuggerHavingWatch(), Manager::GetDebuggerManager(), and WatchesProperty::GetWatch().
Referenced by GetWindow().
|
private |
Definition at line 600 of file watchesdlg.cpp.
References cbDebuggerPlugin::ExpandWatch(), Manager::Get(), DebuggerManager::GetDebuggerHavingWatch(), Manager::GetDebuggerManager(), and WatchesProperty::GetWatch().
Referenced by GetWindow().
|
private |
Definition at line 652 of file watchesdlg.cpp.
References wxPropertyGrid::Append(), wxPropertyGrid::BeginLabelEdit(), m_append_empty_watch, m_grid, wxPropertyGrid::SelectProperty(), and wxEmptyString.
Referenced by GetWindow().
|
private |
Definition at line 709 of file watchesdlg.cpp.
References wxPropertyGrid::BeginLabelEdit(), DeleteProperty(), Manager::Get(), wxPGProperty::GetChildCount(), DebuggerManager::GetDebuggerHavingWatch(), Manager::GetDebuggerManager(), wxKeyEvent::GetKeyCode(), wxPropertyGrid::GetLabelEditor(), wxPGProperty::GetParent(), wxPropertyGrid::GetRoot(), wxPropertyGrid::GetSelection(), WatchesProperty::GetWatch(), wxPropertyGrid::IsEditorFocused(), wxPGProperty::IsRoot(), wxPGProperty::Item(), m_grid, m_watches, wxPropertyGrid::SelectProperty(), cbDebuggerPlugin::SupportsFeature(), cbDebuggerFeature::Watches, WXK_DELETE, and WXK_INSERT.
Referenced by GetWindow(), and WatchesDlg().
|
private |
Definition at line 919 of file watchesdlg.cpp.
References cbDebuggerPlugin::AddDataBreakpoint(), wxString::empty(), Manager::Get(), DebuggerManager::GetActiveDebugger(), DebuggerManager::GetBreakpointDialog(), Manager::GetDebuggerManager(), wxPropertyGrid::GetSelection(), WatchesProperty::GetWatch(), m_grid, and cbBreakpointsDlg::Reload().
Referenced by GetWindow().
|
private |
Definition at line 964 of file watchesdlg.cpp.
References wxPropertyGrid::GetSelection(), WatchesProperty::GetWatch(), and m_grid.
Referenced by GetWindow().
|
private |
Definition at line 890 of file watchesdlg.cpp.
References DeleteProperty(), wxPropertyGrid::GetSelection(), and m_grid.
Referenced by GetWindow().
|
private |
Definition at line 900 of file watchesdlg.cpp.
References wxPropertyGrid::DeleteProperty(), cbDebuggerPlugin::DeleteWatch(), Manager::Get(), DebuggerManager::GetDebuggerHavingWatch(), Manager::GetDebuggerManager(), m_grid, and m_watches.
Referenced by GetWindow().
|
private |
Definition at line 937 of file watchesdlg.cpp.
References cbEVT_SHOW_DOCK_WINDOW, Manager::Get(), Manager::GetDebuggerManager(), DebuggerManager::GetExamineMemoryDialog(), wxPropertyGrid::GetSelection(), WatchesProperty::GetWatch(), cbExamineMemoryDlg::GetWindow(), IsWindowReallyShown(), m_grid, Manager::ProcessEvent(), CodeBlocksDockEvent::pWindow, and cbExamineMemoryDlg::SetBaseAddress().
Referenced by GetWindow().
|
private |
Definition at line 874 of file watchesdlg.cpp.
References Manager::Get(), DebuggerManager::GetDebuggerHavingWatch(), Manager::GetDebuggerManager(), wxPropertyGrid::GetSelection(), WatchesProperty::GetWatch(), m_grid, and cbDebuggerPlugin::ShowWatchProperties().
Referenced by GetWindow().
|
private |
Definition at line 865 of file watchesdlg.cpp.
References wxPropertyGrid::BeginLabelEdit(), wxPropertyGrid::GetLabelEditor(), and m_grid.
Referenced by GetWindow().
|
private |
Definition at line 976 of file watchesdlg.cpp.
References cbGetRootWatch(), Manager::Get(), DebuggerManager::GetActiveDebugger(), Manager::GetDebuggerManager(), wxPropertyGrid::GetSelection(), WatchesProperty::GetWatch(), m_grid, and cbDebuggerPlugin::UpdateWatch().
Referenced by GetWindow().
|
private |
|
private |
Definition at line 628 of file watchesdlg.cpp.
References wxPGProperty::GetChildCount(), wxPropertyGridEvent::GetProperty(), and wxPropertyGridEvent::Veto().
Referenced by GetWindow().
|
private |
Definition at line 634 of file watchesdlg.cpp.
References wxPGProperty::GetParent(), wxPGProperty::IsRoot(), and wxPropertyGridEvent::Veto().
Referenced by GetWindow().
|
private |
Definition at line 646 of file watchesdlg.cpp.
References wxPropertyGrid::GetLabelEditor(), wxPropertyGridEvent::GetProperty(), m_grid, and RenameWatch().
Referenced by GetWindow().
|
private |
Definition at line 764 of file watchesdlg.cpp.
References _(), cbDebuggerPlugin::WatchesDisabledMenuItems::AddDataBreak, wxMenu::Append(), wxMenu::AppendCheckItem(), wxMenu::AppendSeparator(), cbGetRootWatch(), wxMenu::Check(), cbDebuggerPlugin::WatchesDisabledMenuItems::Delete, cbDebuggerPlugin::WatchesDisabledMenuItems::DeleteAll, cbDebuggerPlugin::WatchesDisabledMenuItems::Empty, wxMenu::Enable(), cbDebuggerFeature::ExamineMemory, cbDebuggerPlugin::WatchesDisabledMenuItems::ExamineMemory, wxMenu::FindChildItem(), Manager::Get(), DebuggerManager::GetActiveDebugger(), DebuggerManager::GetDebuggerHavingWatch(), Manager::GetDebuggerManager(), wxPropertyGridEvent::GetProperty(), WatchesProperty::GetWatch(), wxMenu::Insert(), m_watches, cbDebuggerPlugin::OnWatchesContextMenu(), cbDebuggerPlugin::WatchesDisabledMenuItems::Properties, cbDebuggerPlugin::WatchesDisabledMenuItems::Rename, cbDebuggerPlugin::SupportsFeature(), cbDebuggerFeature::Watches, and wxEmptyString.
Referenced by GetWindow().
|
private |
Definition at line 665 of file watchesdlg.cpp.
References wxPropertyGrid::BeginLabelEdit(), Manager::Get(), DebuggerManager::GetActiveDebugger(), Manager::GetDebuggerManager(), wxPropertyGrid::GetSelection(), m_grid, cbDebuggerPlugin::SupportsFeature(), cbDebuggerFeature::Watches, and wxEmptyString.
Referenced by GetWindow().
|
virtual |
Implements cbWatchesDlg.
Definition at line 1031 of file watchesdlg.cpp.
References wxPropertyGrid::DisableProperty(), wxPropertyGrid::EnableProperty(), Manager::Get(), DebuggerManager::GetActiveDebugger(), DebuggerManager::GetDebuggerHavingWatch(), Manager::GetDebuggerManager(), m_grid, m_watches, ValueTooltip::OnCollapse(), ValueTooltip::OnExpand(), ValueTooltip::OnTimer(), wxPropertyGrid::RemoveProperty(), cbDebuggerPlugin::SupportsFeature(), and cbDebuggerFeature::Watches.
Referenced by GetWindow().
|
virtual |
Implements cbWatchesDlg.
Definition at line 591 of file watchesdlg.cpp.
References DeleteProperty(), and m_watches.
Referenced by GetWindow().
Implements cbWatchesDlg.
Definition at line 990 of file watchesdlg.cpp.
References cbDebuggerPlugin::AddWatch(), cbDebuggerPlugin::DeleteWatch(), Manager::Get(), DebuggerManager::GetActiveDebugger(), DebuggerManager::GetDebuggerHavingWatch(), Manager::GetDebuggerManager(), WatchesProperty::GetWatch(), m_append_empty_watch, m_grid, m_watches, WatchesDlg::WatchItem::property, WatchesProperty::SetWatch(), UpdateWatch(), WatchesDlg::WatchItem::watch, and wxEmptyString.
Referenced by GetWindow(), and OnPropertyLableEditEnd().
|
virtual |
Implements cbWatchesDlg.
Definition at line 529 of file watchesdlg.cpp.
References m_grid, m_watches, and UpdateWatch().
Referenced by GetWindow().
|
private |
Definition at line 75 of file watchesdlg.h.
Referenced by OnIdle(), and RenameWatch().
|
private |
Definition at line 73 of file watchesdlg.h.
Referenced by AddSpecialWatch(), AddWatch(), DeleteProperty(), OnIdle(), OnKeyDown(), OnMenuAddDataBreak(), OnMenuAutoUpdate(), OnMenuDelete(), OnMenuDeleteAll(), OnMenuExamineMemory(), OnMenuProperties(), OnMenuRename(), OnMenuUpdate(), OnPropertyLableEditEnd(), OnPropertySelected(), RefreshUI(), RenameWatch(), UpdateWatches(), and WatchesDlg().
|
private |
Definition at line 74 of file watchesdlg.h.
Referenced by AddSpecialWatch(), AddWatch(), DeleteProperty(), OnKeyDown(), OnMenuDeleteAll(), OnPropertyRightClick(), RefreshUI(), RemoveWatch(), RenameWatch(), and UpdateWatches().