Code::Blocks
SVN r11506
|
#include <debuggermenu.h>
Classes | |
struct | WindowMenuItem |
Public Member Functions | |
DebuggerMenuHandler () | |
void | RegisterDefaultWindowItems () |
void | AppendWindowMenuItems (wxMenu &menu) |
virtual void | SetActiveDebugger (cbDebuggerPlugin *active) |
virtual void | MarkActiveTargetAsValid (bool valid) |
virtual void | RebuildMenus () |
virtual void | BuildContextMenu (wxMenu &menu, const wxString &word_at_caret, bool is_running) |
virtual bool | RegisterWindowMenu (const wxString &name, const wxString &help, cbDebuggerWindowMenuItem *item) |
virtual void | UnregisterWindowMenu (const wxString &name) |
Public Member Functions inherited from cbDebuggerMenuHandler | |
virtual | ~cbDebuggerMenuHandler () |
Private Types | |
typedef std::map< long, WindowMenuItem > | WindowMenuItemsMap |
Private Attributes | |
WindowMenuItemsMap | m_windowMenuItems |
cbDebuggerPlugin * | m_activeDebugger |
wxString | m_lastCommand |
bool | m_disableContinue |
Definition at line 15 of file debuggermenu.h.
struct DebuggerMenuHandler::WindowMenuItem |
Definition at line 64 of file debuggermenu.h.
Class Members | ||
---|---|---|
wxString | help | |
shared_ptr < cbDebuggerWindowMenuItem > |
item | |
wxString | name |
|
private |
Definition at line 69 of file debuggermenu.h.
DebuggerMenuHandler::DebuggerMenuHandler | ( | ) |
Definition at line 145 of file debuggermenu.cpp.
References cbEVT_HIDE_DOCK_WINDOW, cbEVT_SHOW_DOCK_WINDOW, Manager::Get(), DebuggerManager::GetActiveDebugger(), Manager::GetDebuggerManager(), cbDebuggerWindowMenuItem::IsChecked(), cbDebuggerWindowMenuItem::IsEnabled(), IsWindowReallyShown(), cbDebuggerWindowMenuItem::OnClick(), Manager::ProcessEvent(), CodeBlocksDockEvent::pWindow, and cbDebuggerPlugin::RequestUpdate().
void DebuggerMenuHandler::AppendWindowMenuItems | ( | wxMenu & | menu | ) |
Definition at line 316 of file debuggermenu.cpp.
References wxMenu::AppendCheckItem().
|
virtual |
Implements cbDebuggerMenuHandler.
Definition at line 405 of file debuggermenu.cpp.
References _(), cbDebuggerFeature::Breakpoints, wxString::c_str(), wxString::empty(), wxString::Format(), Manager::Get(), DebuggerManager::GetActiveDebugger(), Manager::GetDebuggerManager(), PluginManager::GetFindMenuItemCount(), PluginManager::GetFindMenuItemFirst(), Manager::GetPluginManager(), wxMenu::Insert(), wxMenu::InsertSeparator(), PluginManager::RegisterFindMenuItems(), cbDebuggerFeature::RunToCursor, cbDebuggerFeature::SetNextStatement, cbDebuggerPlugin::SupportsFeature(), and cbDebuggerFeature::Watches.
|
private |
|
private |
Definition at line 516 of file debuggermenu.cpp.
References _(), Manager::Get(), DebuggerManager::GetAllDebuggers(), Manager::GetDebuggerManager(), cbDebuggerConfiguration::GetName(), and wxT.
|
virtual |
Implements cbDebuggerMenuHandler.
Definition at line 332 of file debuggermenu.cpp.
References _(), wxMenu::FindItem(), wxMenuItem::SetItemLabel(), and wxMenuItem::SetText().
|
private |
Definition at line 746 of file debuggermenu.cpp.
References Manager::Get(), DebuggerManager::GetAllDebuggers(), Manager::GetDebuggerManager(), and DebuggerManager::SetActiveDebugger().
Referenced by RebuildMenus().
|
private |
Definition at line 765 of file debuggermenu.cpp.
References Manager::Get(), Manager::GetDebuggerManager(), DebuggerToolbarHandler::OnDebugWindows(), DebuggerToolbarHandler::OnStop(), DebuggerToolbarHandler::OnToolInfo(), DebuggerToolbarHandler::OnUpdateUI(), and DebuggerManager::SetTargetsDefaultAsActiveDebugger().
|
private |
Definition at line 685 of file debuggermenu.cpp.
References cbAssert, wxString::empty(), Manager::Get(), DebuggerManager::GetBreakpointDialog(), Manager::GetDebuggerManager(), and cbBreakpointsDlg::Reload().
|
private |
Definition at line 723 of file debuggermenu.cpp.
References cbWatchesDlg::AddWatch(), cbEVT_SHOW_DOCK_WINDOW, wxString::empty(), Manager::Get(), Manager::GetDebuggerManager(), DebuggerManager::GetWatchesDialog(), cbWatchesDlg::GetWindow(), IsWindowReallyShown(), Manager::ProcessEvent(), and CodeBlocksDockEvent::pWindow.
|
private |
Definition at line 696 of file debuggermenu.cpp.
References _(), cbAssert, cbGetTextFromUser(), and wxString::empty().
|
private |
Definition at line 557 of file debuggermenu.cpp.
References cbAssert.
|
private |
Definition at line 571 of file debuggermenu.cpp.
References cbAssert.
|
private |
Definition at line 706 of file debuggermenu.cpp.
References cbAssert.
|
private |
Definition at line 581 of file debuggermenu.cpp.
References cbAssert.
|
private |
Definition at line 588 of file debuggermenu.cpp.
References cbAssert.
|
private |
Definition at line 679 of file debuggermenu.cpp.
References cbAssert, Manager::Get(), DebuggerManager::GetBreakpointDialog(), Manager::GetDebuggerManager(), and cbBreakpointsDlg::RemoveAllBreakpoints().
|
private |
Definition at line 637 of file debuggermenu.cpp.
References cbAssert, Manager::Get(), EditorManager::GetBuiltinActiveEditor(), cbEditor::GetControl(), wxScintilla::GetCurrentLine(), Manager::GetEditorManager(), EditorBase::GetFilename(), ProjectManager::GetIsRunning(), wxScintilla::GetLine(), Manager::GetProjectManager(), and ProjectManager::SetIsRunning().
|
private |
Definition at line 712 of file debuggermenu.cpp.
References _(), cbAssert, cbGetTextFromUser(), and wxString::IsEmpty().
|
private |
Definition at line 660 of file debuggermenu.cpp.
References cbAssert, Manager::Get(), EditorManager::GetBuiltinActiveEditor(), cbEditor::GetControl(), wxScintilla::GetCurrentLine(), Manager::GetEditorManager(), and EditorBase::GetFilename().
|
private |
Definition at line 530 of file debuggermenu.cpp.
References cbAssert, Manager::Get(), ProjectManager::GetIsRunning(), Manager::GetProjectManager(), and ProjectManager::SetIsRunning().
|
private |
Definition at line 602 of file debuggermenu.cpp.
References cbAssert, Manager::Get(), ProjectManager::GetIsRunning(), Manager::GetProjectManager(), and ProjectManager::SetIsRunning().
|
private |
Definition at line 595 of file debuggermenu.cpp.
References cbAssert.
|
private |
Definition at line 630 of file debuggermenu.cpp.
References cbAssert.
|
private |
Definition at line 564 of file debuggermenu.cpp.
References cbAssert.
|
private |
Definition at line 670 of file debuggermenu.cpp.
References cbAssert, Manager::Get(), EditorManager::GetBuiltinActiveEditor(), Manager::GetEditorManager(), and cbEditor::ToggleBreakpoint().
|
private |
Definition at line 454 of file debuggermenu.cpp.
References cbDebuggerFeature::Breakpoints, wxMenuBar::Enable(), wxMenu::Enable(), wxMenu::FindItemByPosition(), Manager::Get(), ProjectManager::GetActiveProject(), Manager::GetAppFrame(), EditorManager::GetBuiltinActiveEditor(), cbProject::GetCurrentlyCompilingTarget(), Manager::GetEditorManager(), wxMenuItem::GetId(), ProjectManager::GetIsRunning(), wxMenu::GetMenuItemCount(), Manager::GetProjectManager(), NULL, cbDebuggerFeature::RunToCursor, and cbDebuggerFeature::SetNextStatement.
|
private |
Definition at line 309 of file debuggermenu.cpp.
Referenced by RegisterWindowMenu().
|
private |
Definition at line 299 of file debuggermenu.cpp.
Referenced by RegisterWindowMenu().
|
virtual |
Implements cbDebuggerMenuHandler.
Definition at line 346 of file debuggermenu.cpp.
References _(), wxMenu::AppendRadioItem(), cbAssert, wxMenu::Check(), Manager::Get(), DebuggerManager::GetAllDebuggers(), Manager::GetDebuggerManager(), DebuggerManager::IsActiveDebuggerTargetsDefault(), OnActiveDebuggerClick(), wxID_ANY, wxNewId(), and wxT.
void DebuggerMenuHandler::RegisterDefaultWindowItems | ( | ) |
Definition at line 202 of file debuggermenu.cpp.
References _(), cbDebuggerPlugin::Backtrace, cbDebuggerFeature::Callstack, cbEVT_HIDE_DOCK_WINDOW, cbEVT_SHOW_DOCK_WINDOW, cbDebuggerFeature::CPURegisters, cbDebuggerPlugin::CPURegisters, cbDebuggerFeature::Disassembly, cbDebuggerPlugin::Disassembly, cbDebuggerFeature::ExamineMemory, cbDebuggerPlugin::ExamineMemory, Manager::Get(), DebuggerManager::GetBacktraceDialog(), DebuggerManager::GetBreakpointDialog(), DebuggerManager::GetCPURegistersDialog(), Manager::GetDebuggerManager(), DebuggerManager::GetDisassemblyDialog(), DebuggerManager::GetExamineMemoryDialog(), DebuggerManager::GetThreadsDialog(), DebuggerManager::GetWatchesDialog(), cbBreakpointsDlg::GetWindow(), IsWindowReallyShown(), Manager::ProcessEvent(), CodeBlocksDockEvent::pWindow, cbDebuggerFeature::Threads, cbDebuggerPlugin::Threads, cbDebuggerFeature::Watches, and cbDebuggerPlugin::Watches.
|
virtual |
Implements cbDebuggerMenuHandler.
Definition at line 258 of file debuggermenu.cpp.
References _(), LogManager::DebugLog(), Logger::error, wxString::Format(), Manager::Get(), Manager::GetLogManager(), DebuggerMenuHandler::WindowMenuItem::help, DebuggerMenuHandler::WindowMenuItem::item, DebuggerMenuHandler::WindowMenuItem::name, OnWindowMenuItemClicked(), OnWindowMenuItemUpdateUI(), wxString::wx_str(), wxEVT_UPDATE_UI, and wxNewId().
|
virtual |
Implements cbDebuggerMenuHandler.
Definition at line 327 of file debuggermenu.cpp.
|
virtual |
Implements cbDebuggerMenuHandler.
Definition at line 284 of file debuggermenu.cpp.
References wxEVT_UPDATE_UI.
|
private |
Definition at line 72 of file debuggermenu.h.
|
private |
Definition at line 74 of file debuggermenu.h.
|
private |
Definition at line 73 of file debuggermenu.h.
|
private |
Definition at line 71 of file debuggermenu.h.