Code::Blocks  SVN r11506
Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
DebuggerMenuHandler Class Reference

#include <debuggermenu.h>

Inheritance diagram for DebuggerMenuHandler:
Collaboration diagram for DebuggerMenuHandler:

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, WindowMenuItemWindowMenuItemsMap
 

Private Member Functions

void OnUpdateUI (wxUpdateUIEvent &event)
 
void OnStart (wxCommandEvent &event)
 
void OnBreak (wxCommandEvent &event)
 
void OnStop (wxCommandEvent &event)
 
void OnContinue (wxCommandEvent &event)
 
void OnNext (wxCommandEvent &event)
 
void OnNextInstr (wxCommandEvent &event)
 
void OnStepIntoInstr (wxCommandEvent &event)
 
void OnStep (wxCommandEvent &event)
 
void OnStepOut (wxCommandEvent &event)
 
void OnRunToCursor (wxCommandEvent &event)
 
void OnSetNextStatement (wxCommandEvent &event)
 
void OnToggleBreakpoint (wxCommandEvent &event)
 
void OnRemoveAllBreakpoints (wxCommandEvent &event)
 
void OnAddDataBreakpoint (wxCommandEvent &event)
 
void OnSendCommand (wxCommandEvent &event)
 
void OnAttachToProcess (wxCommandEvent &event)
 
void OnDetachFromProcess (wxCommandEvent &event)
 
void OnAddWatch (wxCommandEvent &event)
 
void OnActiveDebuggerClick (wxCommandEvent &event)
 
void OnActiveDebuggerTargetsDefaultClick (wxCommandEvent &event)
 
void LogActiveConfig ()
 
void OnWindowMenuItemUpdateUI (wxUpdateUIEvent &event)
 
void OnWindowMenuItemClicked (wxCommandEvent &event)
 
 DECLARE_EVENT_TABLE ()
 

Private Attributes

WindowMenuItemsMap m_windowMenuItems
 
cbDebuggerPluginm_activeDebugger
 
wxString m_lastCommand
 
bool m_disableContinue
 

Detailed Description

Definition at line 15 of file debuggermenu.h.


Class Documentation

◆ DebuggerMenuHandler::WindowMenuItem

struct DebuggerMenuHandler::WindowMenuItem

Definition at line 64 of file debuggermenu.h.

Collaboration diagram for DebuggerMenuHandler::WindowMenuItem:
Class Members
wxString help
shared_ptr
< cbDebuggerWindowMenuItem >
item
wxString name

Member Typedef Documentation

◆ WindowMenuItemsMap

Definition at line 69 of file debuggermenu.h.

Constructor & Destructor Documentation

◆ DebuggerMenuHandler()

DebuggerMenuHandler::DebuggerMenuHandler ( )

Member Function Documentation

◆ AppendWindowMenuItems()

void DebuggerMenuHandler::AppendWindowMenuItems ( wxMenu menu)

Definition at line 316 of file debuggermenu.cpp.

References wxMenu::AppendCheckItem().

◆ BuildContextMenu()

void DebuggerMenuHandler::BuildContextMenu ( wxMenu menu,
const wxString word_at_caret,
bool  is_running 
)
virtual

◆ DECLARE_EVENT_TABLE()

DebuggerMenuHandler::DECLARE_EVENT_TABLE ( )
private

◆ LogActiveConfig()

void DebuggerMenuHandler::LogActiveConfig ( )
private

◆ MarkActiveTargetAsValid()

void DebuggerMenuHandler::MarkActiveTargetAsValid ( bool  valid)
virtual

◆ OnActiveDebuggerClick()

void DebuggerMenuHandler::OnActiveDebuggerClick ( wxCommandEvent event)
private

◆ OnActiveDebuggerTargetsDefaultClick()

void DebuggerMenuHandler::OnActiveDebuggerTargetsDefaultClick ( wxCommandEvent event)
private

◆ OnAddDataBreakpoint()

void DebuggerMenuHandler::OnAddDataBreakpoint ( wxCommandEvent event)
private

◆ OnAddWatch()

void DebuggerMenuHandler::OnAddWatch ( wxCommandEvent event)
private

◆ OnAttachToProcess()

void DebuggerMenuHandler::OnAttachToProcess ( wxCommandEvent event)
private

Definition at line 696 of file debuggermenu.cpp.

References _(), cbAssert, cbGetTextFromUser(), and wxString::empty().

◆ OnBreak()

void DebuggerMenuHandler::OnBreak ( wxCommandEvent event)
private

Definition at line 557 of file debuggermenu.cpp.

References cbAssert.

◆ OnContinue()

void DebuggerMenuHandler::OnContinue ( wxCommandEvent event)
private

Definition at line 571 of file debuggermenu.cpp.

References cbAssert.

◆ OnDetachFromProcess()

void DebuggerMenuHandler::OnDetachFromProcess ( wxCommandEvent event)
private

Definition at line 706 of file debuggermenu.cpp.

References cbAssert.

◆ OnNext()

void DebuggerMenuHandler::OnNext ( wxCommandEvent event)
private

Definition at line 581 of file debuggermenu.cpp.

References cbAssert.

◆ OnNextInstr()

void DebuggerMenuHandler::OnNextInstr ( wxCommandEvent event)
private

Definition at line 588 of file debuggermenu.cpp.

References cbAssert.

◆ OnRemoveAllBreakpoints()

void DebuggerMenuHandler::OnRemoveAllBreakpoints ( wxCommandEvent event)
private

◆ OnRunToCursor()

void DebuggerMenuHandler::OnRunToCursor ( wxCommandEvent event)
private

◆ OnSendCommand()

void DebuggerMenuHandler::OnSendCommand ( wxCommandEvent event)
private

Definition at line 712 of file debuggermenu.cpp.

References _(), cbAssert, cbGetTextFromUser(), and wxString::IsEmpty().

◆ OnSetNextStatement()

void DebuggerMenuHandler::OnSetNextStatement ( wxCommandEvent event)
private

◆ OnStart()

void DebuggerMenuHandler::OnStart ( wxCommandEvent event)
private

◆ OnStep()

void DebuggerMenuHandler::OnStep ( wxCommandEvent event)
private

◆ OnStepIntoInstr()

void DebuggerMenuHandler::OnStepIntoInstr ( wxCommandEvent event)
private

Definition at line 595 of file debuggermenu.cpp.

References cbAssert.

◆ OnStepOut()

void DebuggerMenuHandler::OnStepOut ( wxCommandEvent event)
private

Definition at line 630 of file debuggermenu.cpp.

References cbAssert.

◆ OnStop()

void DebuggerMenuHandler::OnStop ( wxCommandEvent event)
private

Definition at line 564 of file debuggermenu.cpp.

References cbAssert.

◆ OnToggleBreakpoint()

void DebuggerMenuHandler::OnToggleBreakpoint ( wxCommandEvent event)
private

◆ OnUpdateUI()

void DebuggerMenuHandler::OnUpdateUI ( wxUpdateUIEvent event)
private

◆ OnWindowMenuItemClicked()

void DebuggerMenuHandler::OnWindowMenuItemClicked ( wxCommandEvent event)
private

Definition at line 309 of file debuggermenu.cpp.

Referenced by RegisterWindowMenu().

◆ OnWindowMenuItemUpdateUI()

void DebuggerMenuHandler::OnWindowMenuItemUpdateUI ( wxUpdateUIEvent event)
private

Definition at line 299 of file debuggermenu.cpp.

Referenced by RegisterWindowMenu().

◆ RebuildMenus()

void DebuggerMenuHandler::RebuildMenus ( )
virtual

◆ RegisterDefaultWindowItems()

void DebuggerMenuHandler::RegisterDefaultWindowItems ( )

◆ RegisterWindowMenu()

bool DebuggerMenuHandler::RegisterWindowMenu ( const wxString name,
const wxString help,
cbDebuggerWindowMenuItem item 
)
virtual

◆ SetActiveDebugger()

void DebuggerMenuHandler::SetActiveDebugger ( cbDebuggerPlugin active)
virtual

Implements cbDebuggerMenuHandler.

Definition at line 327 of file debuggermenu.cpp.

◆ UnregisterWindowMenu()

void DebuggerMenuHandler::UnregisterWindowMenu ( const wxString name)
virtual

Implements cbDebuggerMenuHandler.

Definition at line 284 of file debuggermenu.cpp.

References wxEVT_UPDATE_UI.

Member Data Documentation

◆ m_activeDebugger

cbDebuggerPlugin* DebuggerMenuHandler::m_activeDebugger
private

Definition at line 72 of file debuggermenu.h.

◆ m_disableContinue

bool DebuggerMenuHandler::m_disableContinue
private

Definition at line 74 of file debuggermenu.h.

◆ m_lastCommand

wxString DebuggerMenuHandler::m_lastCommand
private

Definition at line 73 of file debuggermenu.h.

◆ m_windowMenuItems

WindowMenuItemsMap DebuggerMenuHandler::m_windowMenuItems
private

Definition at line 71 of file debuggermenu.h.


The documentation for this class was generated from the following files: