48 m_list->SetFont(font);
56 wxT(
"dbg_threads_active_back"), *
wxRED);
69 long active_index = -1;
72 cb::shared_ptr<const cbThread> thread = plugin->
GetThread(ii);
78 if (thread->IsActive())
85 if (active_index != -1)
111 m.
Append(idSwitch,
_(
"Switch to this thread"));
131 info.m_itemId = index;
135 thread = info.m_text;
139 unsigned long thread_num;
140 if (thread.
ToULong(&thread_num, 10))
cbDebuggerPlugin * GetActiveDebugger()
virtual int GetThreadsCount() const =0
int GetSelectedItemCount() const
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)
void OnListRightClick(wxListEvent &event)
#define wxLIST_STATE_SELECTED
bool ToULong(unsigned long *val, int base=10) const
void OnListDoubleClick(wxListEvent &event)
long InsertItem(wxListItem &info)
DebuggerManager * GetDebuggerManager() const
void EnableWindow(bool enable)
wxColour GetColour(const wxString &id) const
wxSizerItem * Add(wxWindow *window, const wxSizerFlags &flags)
void SetItemTextColour(long item, const wxColour &col)
const wxSize wxDefaultSize
const wxPoint wxDefaultPosition
const wxString & _(const wxString &string)
ColourManager * GetColourManager() const
virtual bool SwitchToThread(int thread_number)=0
virtual cb::shared_ptr< const cbThread > GetThread(int index) const =0
int GetColumnCount() const
bool SetItem(wxListItem &info)
void OnSwitchThread(wxCommandEvent &event)
bool SetColumnWidth(int col, int width)
bool EnsureVisible(long item)
static wxString Format(const wxString &format,...)
bool GetItem(wxListItem &info) const