36 const int idCopyToClipboard =
wxNewId();
37 const int idSettingJumpDefault =
wxNewId();
38 const int idSettingSwitchDefault =
wxNewId();
72 wxT(
"dbg_backtrace_active_background"), *
wxRED);
74 wxT(
"dbg_backtrace_active_foreground"), *
wxWHITE);
91 int active_frame_index = 0;
94 cb::shared_ptr<const cbStackFrame> frame = plugin->
GetStackFrame(ii);
95 wxString addr = frame->GetAddressAsString();
97 num.
Printf(
wxT(
"%d"), frame->GetNumber());
104 if (active_frame == frame->GetNumber())
106 active_frame_index = ii;
112 if (active_frame_index < m_list->GetItemCount())
117 for (
int i = 1; i < 4; ++i)
131 m.
Append(idJump,
_(
"Jump to this file/line"));
132 m.
Append(idSwitch,
_(
"Switch to this frame"));
134 m.
Append(idSave,
_(
"Save to file..."));
135 m.
Append(idCopyToClipboard,
_(
"Copy to clipboard"));
142 m.
Check(idSettingJumpDefault, jump_on_double_click);
143 m.
Check(idSettingSwitchDefault, !jump_on_double_click);
157 info.m_itemId = index;
166 line.
ToLong(&line_number, 10);
236 <<
_T(
'(') << file <<
_T(
':') << line <<
_T(
')')
262 <<
_T(
'(') << file <<
_T(
':') << line <<
_T(
')')
275 bool checked =
event.IsChecked();
281 bool checked =
event.IsChecked();
cbDebuggerPlugin * GetActiveDebugger()
int GetSelectedItemCount() const
static bool GetFlag(Flags flag)
void SetItemBackgroundColour(long item, const wxColour &col)
Base class for debugger plugins.
static Manager * Get()
Use Manager::Get() to get a pointer to its instance Manager::Get() is guaranteed to never return an i...
long GetNextItem(long item, int geometry=wxLIST_NEXT_ALL, int state=wxLIST_STATE_DONTCARE) const
void RegisterColour(const wxString &category, const wxString &name, const wxString &id, const wxColour &defaultColour)
virtual int GetStackFrameCount() const =0
#define wxLIST_STATE_SELECTED
DLLIMPORT wxString GetFilterAll()
Generates a simple special filter "All files".
SyncEditorResult SyncEditor(const wxString &filename, int line, bool setMarker=true)
#define wxICON_INFORMATION
bool IsSwitchFrameEnabled() const
long InsertItem(wxListItem &info)
DebuggerManager * GetDebuggerManager() const
void OnSave(wxCommandEvent &event)
wxColour GetColour(const wxString &id) const
wxSizerItem * Add(wxWindow *window, const wxSizerFlags &flags)
void SetItemTextColour(long item, const wxColour &col)
void OnDoubleClick(wxListEvent &event)
const wxSize wxDefaultSize
const wxPoint wxDefaultPosition
wxString GetItemText(long item, int col=0) const
virtual wxString GetPath() const
const wxString & _(const wxString &string)
virtual cb::shared_ptr< const cbStackFrame > GetStackFrame(int index) const =0
void OnJump(wxCommandEvent &event)
bool ToLong(long *val, int base=10) const
ColourManager * GetColourManager() const
virtual void SwitchToFrame(int number)=0
DLLIMPORT void PlaceWindow(wxTopLevelWindow *w, cbPlaceDialogMode mode=pdlBest, bool enforce=false)
void OnCopyToClipboard(wxCommandEvent &event)
virtual bool IsRunning() const =0
Is the plugin currently debugging?
virtual int GetActiveStackFrame() const =0
void OnSwitchFrame(wxCommandEvent &event)
void EnableWindow(bool enable)
bool SetItem(wxListItem &info)
bool SetColumnWidth(int col, int width)
void OnSettingJumpDefault(wxCommandEvent &event)
static void SetFlag(Flags flag, bool value)
void OnListRightClick(wxListEvent &event)
virtual bool IsStopped() const =0
Is the plugin stopped on breakpoint?
void OnUpdateUI(wxUpdateUIEvent &event)
int Printf(const wxString &pszFormat,...)
void OnSettingSwitchDefault(wxCommandEvent &event)
bool EnsureVisible(long item)
DLLIMPORT int cbMessageBox(const wxString &message, const wxString &caption=wxEmptyString, int style=wxOK, wxWindow *parent=NULL, int x=-1, int y=-1)
wxMessageBox wrapper.
bool GetItem(wxListItem &info) const