Code::Blocks  SVN r11506
sdk_events.h
Go to the documentation of this file.
1 /*
2  * This file is part of the Code::Blocks IDE and licensed under the GNU Lesser General Public License, version 3
3  * http://www.gnu.org/licenses/lgpl-3.0.html
4  */
5 
6 #ifndef SDK_EVENTS_H
7 #define SDK_EVENTS_H
8 
9 #include <wx/event.h>
10 #include <wx/intl.h>
11 #include "settings.h"
12 #include "prep.h"
13 
14 class cbProject;
15 class EditorBase;
16 class cbPlugin;
17 class Logger;
18 
21 {
22  public:
23  CodeBlocksEvent(wxEventType commandType = wxEVT_NULL, int id = 0, cbProject* project = nullptr, EditorBase* editor = nullptr, cbPlugin* plugin = nullptr, EditorBase* old_editor = nullptr)
24  : wxCommandEvent(commandType, id),
25  m_pProject(project),
26  m_pEditor(editor),
27  m_pOldEditor(old_editor),
28  m_pPlugin(plugin),
29  m_X(0),
30  m_Y(0) {}
32  : wxCommandEvent(event),
33  m_pProject(event.m_pProject),
34  m_pEditor(event.m_pEditor),
35  m_pOldEditor(event.m_pOldEditor),
36  m_pPlugin(event.m_pPlugin),
37  m_X(event.m_X),
38  m_Y(event.m_Y) {}
39  wxEvent *Clone() const override { return new CodeBlocksEvent(*this); }
40 
41  cbProject* GetProject() const { return m_pProject; }
42  void SetProject(cbProject* project) { m_pProject = project; }
43 
44  EditorBase* GetEditor() const { return m_pEditor; }
45  void SetEditor(EditorBase* editor) { m_pEditor = editor; }
46 
47  EditorBase* GetOldEditor() const { return m_pOldEditor; }
48  void SetOldEditor(EditorBase* editor) { m_pOldEditor = editor; }
49 
50  cbPlugin* GetPlugin() const { return m_pPlugin; }
51  void SetPlugin(cbPlugin* plugin) { m_pPlugin = plugin; }
52 
53  int GetX() const { return m_X; }
54  void SetX(int x) { m_X = x; }
55 
56  int GetY() const { return m_Y; }
57  void SetY(int y) { m_Y = y; }
58 
59  const wxString& GetBuildTargetName() const { return m_TargetName; }
60  void SetBuildTargetName(const wxString& target) { m_TargetName = target; }
61 
62  // the following two functions are only valid for EVT_BUILDTARGET_RENAMED
63  // and EVT_BUILDTARGET_SELECTED events
64  const wxString& GetOldBuildTargetName() const { return m_OldTargetName; }
65  void SetOldBuildTargetName(const wxString& target) { m_OldTargetName = target; }
66  protected:
71  // for some editor events
72  int m_X;
73  int m_Y;
74 
77  private:
78  DECLARE_DYNAMIC_CLASS(CodeBlocksEvent)
79 };
81 
84 {
85  public:
86  enum DockSide
87  {
88  dsLeft = 0,
93  dsUndefined
94  };
95 
96  CodeBlocksDockEvent(wxEventType commandType = wxEVT_NULL, int id = 0)
97  : wxEvent(id, commandType),
98  title(_("Untitled")),
99  pWindow(nullptr),
100  desiredSize(100, 100),
101  floatingSize(150, 150),
102  minimumSize(40, 40),
103  floatingPos(200, 150),
104  dockSide(dsUndefined),
105  row(-1),
106  column(-1),
107  shown(false),
108  stretch(false),
109  hideable(true),
110  asTab(false)
111 
112  {
113  }
115  : wxEvent(rhs),
116  name(rhs.name),
117  title(rhs.title),
118  pWindow(rhs.pWindow),
119  desiredSize(rhs.desiredSize),
120  floatingSize(rhs.floatingSize),
121  minimumSize(rhs.minimumSize),
122  floatingPos(rhs.floatingPos),
123  dockSide(rhs.dockSide),
124  row(rhs.row),
125  column(rhs.column),
126  shown(rhs.shown),
127  stretch(rhs.stretch),
128  hideable(rhs.hideable),
129  asTab(rhs.asTab),
130  bitmap(rhs.bitmap)
131  {
132  }
133  wxEvent *Clone() const override { return new CodeBlocksDockEvent(*this); }
134 
143  int row;
144  int column;
145  bool shown;
146  bool stretch;
147  bool hideable;
148  bool asTab;
150 
151  char padding[64];
152  private:
153  DECLARE_DYNAMIC_CLASS(CodeBlocksDockEvent)
154 };
156 
159 {
160  public:
161  CodeBlocksLayoutEvent(wxEventType commandType = wxEVT_NULL, const wxString& layout_name = wxEmptyString)
162  : wxEvent(wxID_ANY, commandType),
163  layout(layout_name)
164  {}
166  : wxEvent(rhs), layout(rhs.layout)
167  {}
168  wxEvent *Clone() const override { return new CodeBlocksLayoutEvent(*this); }
169 
171  private:
172  DECLARE_DYNAMIC_CLASS(CodeBlocksLayoutEvent)
173 };
175 
183 {
184  public:
185  CodeBlocksLogEvent(wxEventType commandType = wxEVT_NULL, Logger* logger = nullptr, const wxString& title = wxEmptyString, wxBitmap *icon = nullptr);
186  CodeBlocksLogEvent(wxEventType commandType, wxWindow* window, const wxString& title = wxEmptyString, wxBitmap *icon = nullptr);
187  CodeBlocksLogEvent(wxEventType commandType, int logIndex, const wxString& title = wxEmptyString, wxBitmap *icon = nullptr);
189 
190  wxEvent *Clone() const override { return new CodeBlocksLogEvent(*this); }
191 
193  int logIndex;
197  private:
198  DECLARE_DYNAMIC_CLASS(CodeBlocksLogEvent)
199 };
201 
202 
203 // Thread event, this is basically a derived wxCommandEvent but enforce a deep copy of its
204 // m_cmdString member. wxEVT_COMMAND_MENU_SELECTED is reused and event handlers are matched by
205 // ids. This is just to conserve the old code, an alternative is use some
206 // new event type like: cbEVT_THREAD_LOG_MESSAGE, cbEVT_THREAD_LOGDEBUG_MESSAGE
207 // cbEVT_THREAD_SYSTEM_HEADER_UPDATE.
208 
210 {
211 public:
212  CodeBlocksThreadEvent(wxEventType eventType = wxEVT_NULL, int id = wxID_ANY)
213  : wxCommandEvent(eventType,id)
214  { }
215 
217  : wxCommandEvent(event)
218  {
219  // make sure our string member (which uses COW, aka refcounting) is not
220  // shared by other wxString instances:
221  SetString(GetString().c_str());
222  }
223 
224  wxEvent *Clone() const override
225  {
226  return new CodeBlocksThreadEvent(*this);
227  }
228 
229 
230 private:
231  DECLARE_DYNAMIC_CLASS_NO_ASSIGN(CodeBlocksThreadEvent)
232 };
233 
235 
236 #define CodeBlocksThreadEventHandler(func) \
237  (wxObjectEventFunction)(wxEventFunction) \
238  wxStaticCastEvent(CodeblocksThreadEventFunction, &func)
239 
240 
241 #define EVT_CODEBLOCKS_THREAD(id, fn) \
242  DECLARE_EVENT_TABLE_ENTRY(wxEVT_COMMAND_MENU_SELECTED, id, wxID_ANY, \
243  (wxObjectEventFunction) (wxEventFunction) (CodeblocksThreadEventFunction) \
244  wxStaticCastEvent( ThreadEventFunction, & fn ), (wxObject *) NULL ),
245 
246 //
247 // if you add more event types, remember to add event sinks in Manager...
248 //
249 
250 // app events
252 #define EVT_APP_STARTUP_DONE(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_APP_STARTUP_DONE, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
254 #define EVT_APP_START_SHUTDOWN(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_APP_START_SHUTDOWN, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
256 #define EVT_APP_ACTIVATED(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_APP_ACTIVATED, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
258 #define EVT_APP_DEACTIVATED(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_APP_DEACTIVATED, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
260 #define EVT_APP_CMDLINE(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_APP_CMDLINE, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
261 
262 
263 // plugin events
265 #define EVT_PLUGIN_ATTACHED(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_PLUGIN_ATTACHED, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
267 #define EVT_PLUGIN_RELEASED(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_PLUGIN_RELEASED, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
269 #define EVT_PLUGIN_INSTALLED(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_PLUGIN_INSTALLED, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
271 #define EVT_PLUGIN_UNINSTALLED(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_PLUGIN_UNINSTALLED, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
273 #define EVT_PLUGIN_LOADING_COMPLETE(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_PLUGIN_LOADING_COMPLETE, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
274 
275 // editor events
277 #define EVT_EDITOR_CLOSE(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_EDITOR_CLOSE, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
279 #define EVT_EDITOR_OPEN(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_EDITOR_OPEN, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
281 #define EVT_EDITOR_SWITCHED(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_EDITOR_SWITCHED, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
283 #define EVT_EDITOR_ACTIVATED(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_EDITOR_ACTIVATED, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
285 #define EVT_EDITOR_DEACTIVATED(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_EDITOR_DEACTIVATED, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
287 #define EVT_EDITOR_BEFORE_SAVE(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_EDITOR_BEFORE_SAVE, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
289 #define EVT_EDITOR_SAVE(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_EDITOR_SAVE, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
291 #define EVT_EDITOR_MODIFIED(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_EDITOR_MODIFIED, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
293 #define EVT_EDITOR_TOOLTIP(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_EDITOR_TOOLTIP, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
295 #define EVT_EDITOR_TOOLTIP_CANCEL(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_EDITOR_TOOLTIP_CANCEL, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
297 #define EVT_EDITOR_SPLIT(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_EDITOR_SPLIT, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
299 #define EVT_EDITOR_UNSPLIT(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_EDITOR_UNSPLIT, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
301 #define EVT_EDITOR_UPDATE_UI(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_EDITOR_UPDATE_UI, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
302 
304 #define EVT_EDITOR_CC_DONE(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_EDITOR_CC_DONE, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
305 
306 // project events
308 #define EVT_PROJECT_NEW(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_PROJECT_NEW, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
310 #define EVT_PROJECT_CLOSE(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_PROJECT_CLOSE, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
312 #define EVT_PROJECT_OPEN(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_PROJECT_OPEN, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
314 #define EVT_PROJECT_SAVE(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_PROJECT_SAVE, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
316 #define EVT_PROJECT_ACTIVATE(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_PROJECT_ACTIVATE, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
318 #define EVT_PROJECT_BEGIN_ADD_FILES(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_PROJECT_BEGIN_ADD_FILES, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
320 #define EVT_PROJECT_END_ADD_FILES(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_PROJECT_END_ADD_FILES, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
322 #define EVT_PROJECT_BEGIN_REMOVE_FILES(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_PROJECT_BEGIN_REMOVE_FILES, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
324 #define EVT_PROJECT_END_REMOVE_FILES(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_PROJECT_END_REMOVE_FILES, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
326 #define EVT_PROJECT_FILE_ADDED(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_PROJECT_FILE_ADDED, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
328 #define EVT_PROJECT_FILE_REMOVED(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_PROJECT_FILE_REMOVED, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
330 #define EVT_PROJECT_FILE_CHANGED(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_PROJECT_FILE_CHANGED, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
332 #define EVT_PROJECT_POPUP_MENU(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_PROJECT_POPUP_MENU, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
334 #define EVT_PROJECT_TARGETS_MODIFIED(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_PROJECT_TARGETS_MODIFIED, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
336 #define EVT_PROJECT_RENAMED(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_PROJECT_RENAMED, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
338 #define EVT_PROJECT_OPTIONS_CHANGED(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_PROJECT_OPTIONS_CHANGED, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
340 #define EVT_WORKSPACE_CHANGED(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_WORKSPACE_CHANGED, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
342 #define EVT_WORKSPACE_LOADING_COMPLETE(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_WORKSPACE_LOADING_COMPLETE, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
344 #define EVT_WORKSPACE_CLOSING_BEGIN(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_WORKSPACE_CLOSING_BEGIN, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
346 #define EVT_WORKSPACE_CLOSING_COMPLETE(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_WORKSPACE_CLOSING_COMPLETE, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
347 
348 // build targets events
350 #define EVT_BUILDTARGET_ADDED(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_BUILDTARGET_ADDED, -1, -1, (wxObjectEventFunction) (wxEventFunction) (CodeBlocksEventFunction) & fn, (wxObject *) NULL ),
352 #define EVT_BUILDTARGET_REMOVED(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_BUILDTARGET_REMOVED, -1, -1, (wxObjectEventFunction) (wxEventFunction) (CodeBlocksEventFunction) & fn, (wxObject *) NULL ),
354 #define EVT_BUILDTARGET_RENAMED(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_BUILDTARGET_RENAMED, -1, -1, (wxObjectEventFunction) (wxEventFunction) (CodeBlocksEventFunction) & fn, (wxObject *) NULL ),
356 #define EVT_BUILDTARGET_SELECTED(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_BUILDTARGET_SELECTED, -1, -1, (wxObjectEventFunction) (wxEventFunction) (CodeBlocksEventFunction) & fn, (wxObject *) NULL ),
357 
358 // pipedprocess events
360 #define EVT_PIPEDPROCESS_STDOUT(id, fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_PIPEDPROCESS_STDOUT, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) & fn, (wxObject *) NULL ),
361 #define EVT_PIPEDPROCESS_STDOUT_RANGE(id, id1, fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_PIPEDPROCESS_STDOUT, id, id1, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) & fn, (wxObject *) NULL ),
363 #define EVT_PIPEDPROCESS_STDERR(id, fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_PIPEDPROCESS_STDERR, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) & fn, (wxObject *) NULL ),
364 #define EVT_PIPEDPROCESS_STDERR_RANGE(id, id1, fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_PIPEDPROCESS_STDERR, id, id1, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) & fn, (wxObject *) NULL ),
366 #define EVT_PIPEDPROCESS_TERMINATED(id, fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_PIPEDPROCESS_TERMINATED, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) (wxNotifyEventFunction) (CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
367 #define EVT_PIPEDPROCESS_TERMINATED_RANGE(id, id1, fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_PIPEDPROCESS_TERMINATED, id, id1, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) & fn, (wxObject *) NULL ),
368 
369 // thread-pool events
371 #define EVT_THREADTASK_STARTED(id, fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_THREADTASK_STARTED, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) & fn, (wxObject *) NULL ),
373 #define EVT_THREADTASK_ENDED(id, fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_THREADTASK_ENDED, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) & fn, (wxObject *) NULL ),
375 #define EVT_THREADTASK_ALLDONE(id, fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_THREADTASK_ALLDONE, id, wxID_ANY, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) & fn, (wxObject *) NULL ),
376 
377 // request app to add and manage a docked window
379 #define EVT_ADD_DOCK_WINDOW(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_ADD_DOCK_WINDOW, -1, -1, (wxObjectEventFunction) (wxEventFunction) (CodeBlocksDockEventFunction) & fn, (wxObject *) NULL ),
380 // request app to stop managing a docked window
382 #define EVT_REMOVE_DOCK_WINDOW(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_REMOVE_DOCK_WINDOW, -1, -1, (wxObjectEventFunction) (wxEventFunction) (CodeBlocksDockEventFunction) & fn, (wxObject *) NULL ),
383 // request app to show a docked window
385 #define EVT_SHOW_DOCK_WINDOW(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_SHOW_DOCK_WINDOW, -1, -1, (wxObjectEventFunction) (wxEventFunction) (CodeBlocksDockEventFunction) & fn, (wxObject *) NULL ),
386 // request app to hide a docked window
388 #define EVT_HIDE_DOCK_WINDOW(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_HIDE_DOCK_WINDOW, -1, -1, (wxObjectEventFunction) (wxEventFunction) (CodeBlocksDockEventFunction) & fn, (wxObject *) NULL ),
389 // app notifies that a docked window has been hidden/shown
390 // to actually find out its state use IsWindowReallyShown(event.pWindow);
392 #define EVT_DOCK_WINDOW_VISIBILITY(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_DOCK_WINDOW_VISIBILITY, -1, -1, (wxObjectEventFunction) (wxEventFunction) (CodeBlocksDockEventFunction) & fn, (wxObject *) NULL ),
393 // force update current view layout
395 #define EVT_UPDATE_VIEW_LAYOUT(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_UPDATE_VIEW_LAYOUT, -1, -1, (wxObjectEventFunction) (wxEventFunction) (CodeBlocksLayoutEventFunction) & fn, (wxObject *) NULL ),
396 // ask which is the current view layout
398 #define EVT_QUERY_VIEW_LAYOUT(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_QUERY_VIEW_LAYOUT, -1, -1, (wxObjectEventFunction) (wxEventFunction) (CodeBlocksLayoutEventFunction) & fn, (wxObject *) NULL ),
399 // request app to switch view layout
401 #define EVT_SWITCH_VIEW_LAYOUT(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_SWITCH_VIEW_LAYOUT, -1, -1, (wxObjectEventFunction) (wxEventFunction) (CodeBlocksLayoutEventFunction) & fn, (wxObject *) NULL ),
402 // app notifies that a new layout has been applied
404 #define EVT_SWITCHED_VIEW_LAYOUT(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_SWITCHED_VIEW_LAYOUT, -1, -1, (wxObjectEventFunction) (wxEventFunction) (CodeBlocksLayoutEventFunction) & fn, (wxObject *) NULL ),
405 // app notifies that the menubar is started being (re)created
407 #define EVT_MENUBAR_CREATE_BEGIN(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_MENUBAR_CREATE_BEGIN, -1, -1, (wxObjectEventFunction) (wxEventFunction) (CodeBlocksEventFunction) & fn, (wxObject *) NULL ),
408 // app notifies that the menubar (re)creation ended
410 #define EVT_MENUBAR_CREATE_END(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_MENUBAR_CREATE_END, -1, -1, (wxObjectEventFunction) (wxEventFunction) (CodeBlocksEventFunction) & fn, (wxObject *) NULL ),
411 
412 // compiler-related events (compiler plugins usually fire them)
414 #define EVT_COMPILER_STARTED(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_COMPILER_STARTED, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
416 #define EVT_COMPILER_FINISHED(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_COMPILER_FINISHED, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
418 #define EVT_COMPILER_SET_BUILD_OPTIONS(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_COMPILER_SET_BUILD_OPTIONS, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
420 #define EVT_CLEAN_PROJECT_STARTED(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_CLEAN_PROJECT_STARTED, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
422 #define EVT_CLEAN_WORKSPACE_STARTED(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_CLEAN_WORKSPACE_STARTED, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
424 #define EVT_COMPILER_SETTINGS_CHANGED(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_COMPILER_SETTINGS_CHANGED, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
425 
426 // request app to compile a single file
428 #define EVT_COMPILE_FILE_REQUEST(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_COMPILE_FILE_REQUEST, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
429 
430 // debugger-related events (debugger plugins must fire them)
432 #define EVT_DEBUGGER_STARTED(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_DEBUGGER_STARTED, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
434 #define EVT_DEBUGGER_PAUSED(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_DEBUGGER_PAUSED, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
436 #define EVT_DEBUGGER_FINISHED(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_DEBUGGER_FINISHED, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
437 
438 // logger-related events
439 
440 // add a log window
442 #define EVT_ADD_LOG_WINDOW(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_ADD_LOG_WINDOW, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksLogEventFunction)&fn, (wxObject *) NULL ),
443 // remove a log window
445 #define EVT_REMOVE_LOG_WINDOW(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_REMOVE_LOG_WINDOW, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksLogEventFunction)&fn, (wxObject *) NULL ),
446 // switch to a log window (make it visible)
448 #define EVT_HIIDE_LOG_WINDOW(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_HIDE_LOG_WINDOW, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksLogEventFunction)&fn, (wxObject *) NULL ),
449 // switch to a log window (make it visible)
451 #define EVT_SWITCH_TO_LOG_WINDOW(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_SWITCH_TO_LOG_WINDOW, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksLogEventFunction)&fn, (wxObject *) NULL ),
452 // gets the active log window
454 #define EVT_GET_ACTIVE_LOG_WINDOW(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_GET_ACTIVE_LOG_WINDOW, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksLogEventFunction)&fn, (wxObject *) NULL ),
455 // show log manager
457 #define EVT_SHOW_LOG_MANAGER(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_SHOW_LOG_MANAGER, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksLogEventFunction)&fn, (wxObject *) NULL ),
458 // hide log manager
460 #define EVT_HIDE_LOG_MANAGER(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_HIDE_LOG_MANAGER, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksLogEventFunction)&fn, (wxObject *) NULL ),
461 // "lock" it (used with auto-hiding functionality)
463 #define EVT_LOCK_LOG_MANAGER(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_LOCK_LOG_MANAGER, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksLogEventFunction)&fn, (wxObject *) NULL ),
464 // "unlock" it (used with auto-hiding functionality)
466 #define EVT_UNLOCK_LOG_MANAGER(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_UNLOCK_LOG_MANAGER, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksLogEventFunction)&fn, (wxObject *) NULL ),
467 
468 //cbAUiNotebook related events
469 // left doubleclick on a tab
471 #define EVT_CBAUIBOOK_LEFT_DCLICK(winid, fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_CBAUIBOOK_LEFT_DCLICK, winid, -1, (wxObjectEventFunction)(wxEventFunction)(wxMouseEventFunction)&fn, (wxObject *) NULL ),
472 
473 // code-completion related events (CodeCompletion plugin usually fires them)
475 #define EVT_COMPLETE_CODE(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_COMPLETE_CODE, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
477 #define EVT_SHOW_CALL_TIP(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_SHOW_CALL_TIP, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
478 
479 // settings events
480 
481 // event.GetInt() returns value of type cbSettingsType::Type indicating which setting group was changed
483 {
484  enum Type
485  {
490  Plugins
491  };
492 };
494 #define EVT_SETTINGS_CHANGED(fn) DECLARE_EVENT_TABLE_ENTRY( cbEVT_SETTINGS_CHANGED, -1, -1, (wxObjectEventFunction)(wxEventFunction)(CodeBlocksEventFunction)&fn, (wxObject *) NULL ),
495 
496 #endif // SDK_EVENTS_H
wxString name
Dock&#39;s name. Must be unique. If empty, a unique name will be assigned.
Definition: sdk_events.h:135
EVTIMPORT const wxEventType cbEVT_EDITOR_TOOLTIP
Definition: sdk_events.cpp:88
CodeBlocksLayoutEvent(const CodeBlocksLayoutEvent &rhs)
Definition: sdk_events.h:165
Base class for plugins.
Definition: cbplugin.h:84
const wxString & GetOldBuildTargetName() const
Definition: sdk_events.h:64
EVTIMPORT const wxEventType cbEVT_BUILDTARGET_RENAMED
Definition: sdk_events.cpp:118
EVTIMPORT const wxEventType cbEVT_PROJECT_FILE_ADDED
Definition: sdk_events.cpp:104
EVTIMPORT const wxEventType cbEVT_WORKSPACE_CLOSING_COMPLETE
Definition: sdk_events.cpp:114
EVTIMPORT const wxEventType cbEVT_PROJECT_END_ADD_FILES
Definition: sdk_events.cpp:101
EVTIMPORT const wxEventType cbEVT_PROJECT_RENAMED
Definition: sdk_events.cpp:109
EVTIMPORT const wxEventType cbEVT_EDITOR_CC_DONE
Definition: sdk_events.cpp:93
EVTIMPORT const wxEventType cbEVT_PROJECT_NEW
Definition: sdk_events.cpp:95
EVTIMPORT const wxEventType cbEVT_UNLOCK_LOG_MANAGER
Definition: sdk_events.cpp:170
int row
The row to dock it.
Definition: sdk_events.h:143
EVTIMPORT const wxEventType cbEVT_APP_START_SHUTDOWN
Definition: sdk_events.cpp:69
EVTIMPORT const wxEventType cbEVT_HIDE_DOCK_WINDOW
Definition: sdk_events.cpp:132
wxString title
Dock&#39;s title.
Definition: sdk_events.h:136
wxWindow * window
A non-logger window. Needed at least by cbEVT_REMOVE_LOG_WINDOW.
Definition: sdk_events.h:196
void(wxEvtHandler::* CodeBlocksDockEventFunction)(CodeBlocksDockEvent &)
Definition: sdk_events.h:155
EVTIMPORT const wxEventType cbEVT_SWITCH_VIEW_LAYOUT
Definition: sdk_events.cpp:138
CodeBlocksThreadEvent(const CodeBlocksThreadEvent &event)
Definition: sdk_events.h:216
void SetBuildTargetName(const wxString &target)
Definition: sdk_events.h:60
EVTIMPORT const wxEventType cbEVT_COMPILER_FINISHED
Definition: sdk_events.cpp:149
EVTIMPORT const wxEventType cbEVT_CLEAN_PROJECT_STARTED
Definition: sdk_events.cpp:151
EVTIMPORT const wxEventType cbEVT_WORKSPACE_CLOSING_BEGIN
Definition: sdk_events.cpp:113
wxString layout
Layout&#39;s name.
Definition: sdk_events.h:170
EVTIMPORT const wxEventType cbEVT_PLUGIN_ATTACHED
Definition: sdk_events.cpp:74
EVTIMPORT const wxEventType cbEVT_HIDE_LOG_WINDOW
Definition: sdk_events.cpp:164
CodeBlocksThreadEvent(wxEventType eventType=wxEVT_NULL, int id=wxID_ANY)
Definition: sdk_events.h:212
wxWindow * pWindow
The window to dock.
Definition: sdk_events.h:137
EVTIMPORT const wxEventType cbEVT_PIPEDPROCESS_STDOUT
Definition: sdk_events.cpp:121
EVTIMPORT const wxEventType cbEVT_ADD_DOCK_WINDOW
Definition: sdk_events.cpp:129
void SetPlugin(cbPlugin *plugin)
Definition: sdk_events.h:51
EVTIMPORT const wxEventType cbEVT_BUILDTARGET_SELECTED
Definition: sdk_events.cpp:119
wxPoint floatingPos
The desired floating position.
Definition: sdk_events.h:141
wxEvent * Clone() const override
Definition: sdk_events.h:224
EVTIMPORT const wxEventType cbEVT_COMPILER_SETTINGS_CHANGED
Definition: sdk_events.cpp:153
EVTIMPORT const wxEventType cbEVT_PLUGIN_RELEASED
Definition: sdk_events.cpp:75
EVTIMPORT const wxEventType cbEVT_PROJECT_ACTIVATE
Definition: sdk_events.cpp:99
Event used to request from the main app to add a log.
Definition: sdk_events.h:182
cbPlugin * m_pPlugin
Definition: sdk_events.h:70
int GetX() const
Definition: sdk_events.h:53
Event used to request from the main app to add a window to the docking system.
Definition: sdk_events.h:83
EVTIMPORT const wxEventType cbEVT_UPDATE_VIEW_LAYOUT
Definition: sdk_events.cpp:134
EVTIMPORT const wxEventType cbEVT_SETTINGS_CHANGED
Definition: sdk_events.cpp:179
EVTIMPORT const wxEventType cbEVT_DEBUGGER_STARTED
Definition: sdk_events.cpp:157
cbProject * GetProject() const
Definition: sdk_events.h:41
cbPlugin * GetPlugin() const
Definition: sdk_events.h:50
wxSize minimumSize
The minimum allowed size.
Definition: sdk_events.h:140
EVTIMPORT const wxEventType cbEVT_PROJECT_BEGIN_ADD_FILES
Definition: sdk_events.cpp:100
The base class for all kinds of loggers, see loggers.h for its derived classes.
Definition: logger.h:23
void(wxEvtHandler::* CodeBlocksEventFunction)(CodeBlocksEvent &)
Definition: sdk_events.h:80
bool asTab
Add this window as a tab of an existing docked window (NOT IMPLEMENTED).
Definition: sdk_events.h:148
void(wxEvtHandler::* CodeBlocksLayoutEventFunction)(CodeBlocksLayoutEvent &)
Definition: sdk_events.h:174
EVTIMPORT const wxEventType cbEVT_PROJECT_OPTIONS_CHANGED
Definition: sdk_events.cpp:110
EVTIMPORT const wxEventType cbEVT_EDITOR_TOOLTIP_CANCEL
Definition: sdk_events.cpp:89
EVTIMPORT const wxEventType cbEVT_PROJECT_SAVE
Definition: sdk_events.cpp:98
EVTIMPORT const wxEventType cbEVT_EDITOR_SPLIT
Definition: sdk_events.cpp:90
EVTIMPORT const wxEventType cbEVT_APP_CMDLINE
Definition: sdk_events.cpp:72
EVTIMPORT const wxEventType cbEVT_PIPEDPROCESS_TERMINATED
Definition: sdk_events.cpp:123
EditorBase * GetEditor() const
Definition: sdk_events.h:44
EVTIMPORT const wxEventType cbEVT_THREADTASK_ALLDONE
Definition: sdk_events.cpp:127
wxEvent * Clone() const override
Definition: sdk_events.h:190
EditorBase * GetOldEditor() const
Definition: sdk_events.h:47
EVTIMPORT const wxEventType cbEVT_SHOW_CALL_TIP
Definition: sdk_events.cpp:177
EVTIMPORT const wxEventType cbEVT_COMPILER_SET_BUILD_OPTIONS
Definition: sdk_events.cpp:150
CodeBlocksDockEvent(const CodeBlocksDockEvent &rhs)
Definition: sdk_events.h:114
EVTIMPORT const wxEventType cbEVT_PROJECT_FILE_CHANGED
Definition: sdk_events.cpp:106
DockSide dockSide
The side to dock it.
Definition: sdk_events.h:142
EVTIMPORT const wxEventType cbEVT_CLEAN_WORKSPACE_STARTED
Definition: sdk_events.cpp:152
wxSize floatingSize
The desired floating size.
Definition: sdk_events.h:139
A generic Code::Blocks event.
Definition: sdk_events.h:20
wxEvent * Clone() const override
Definition: sdk_events.h:133
void(wxEvtHandler::* CodeblocksThreadEventFunction)(CodeBlocksThreadEvent &)
Definition: sdk_events.h:234
int GetY() const
Definition: sdk_events.h:56
EVTIMPORT const wxEventType cbEVT_REMOVE_DOCK_WINDOW
Definition: sdk_events.cpp:130
EVTIMPORT const wxEventType cbEVT_COMPILE_FILE_REQUEST
Definition: sdk_events.cpp:155
#define EVTIMPORT
Definition: settings.h:23
EVTIMPORT const wxEventType cbEVT_EDITOR_CLOSE
Definition: sdk_events.cpp:80
wxBitmap * icon
The logger&#39;s icon. Valid only for cbEVT_ADD_LOG_WINDOW.
Definition: sdk_events.h:194
Represents a Code::Blocks project.
Definition: cbproject.h:96
void SetX(int x)
Definition: sdk_events.h:54
EVTIMPORT const wxEventType cbEVT_DOCK_WINDOW_VISIBILITY
Definition: sdk_events.cpp:142
EVTIMPORT const wxEventType cbEVT_WORKSPACE_LOADING_COMPLETE
Definition: sdk_events.cpp:112
EVTIMPORT const wxEventType cbEVT_ADD_LOG_WINDOW
Definition: sdk_events.cpp:162
null_pointer_t nullptr
Definition: nullptr.cpp:16
EVTIMPORT const wxEventType cbEVT_PLUGIN_LOADING_COMPLETE
Definition: sdk_events.cpp:78
EVTIMPORT const wxEventType cbEVT_REMOVE_LOG_WINDOW
Definition: sdk_events.cpp:163
EVTIMPORT const wxEventType cbEVT_PROJECT_BEGIN_REMOVE_FILES
Definition: sdk_events.cpp:102
EVTIMPORT const wxEventType cbEVT_EDITOR_SWITCHED
Definition: sdk_events.cpp:82
EVTIMPORT const wxEventType cbEVT_APP_DEACTIVATED
Definition: sdk_events.cpp:71
EVTIMPORT const wxEventType cbEVT_DEBUGGER_PAUSED
Definition: sdk_events.cpp:158
EVTIMPORT const wxEventType cbEVT_APP_ACTIVATED
Definition: sdk_events.cpp:70
EVTIMPORT const wxEventType cbEVT_HIDE_LOG_MANAGER
Definition: sdk_events.cpp:168
Base class that all "editors" should inherit from.
Definition: editorbase.h:30
EVTIMPORT const wxEventType cbEVT_SWITCH_TO_LOG_WINDOW
Definition: sdk_events.cpp:165
EVTIMPORT const wxEventType cbEVT_EDITOR_UPDATE_UI
Definition: sdk_events.cpp:92
EVTIMPORT const wxEventType cbEVT_BUILDTARGET_REMOVED
Definition: sdk_events.cpp:117
EVTIMPORT const wxEventType cbEVT_SWITCHED_VIEW_LAYOUT
Definition: sdk_events.cpp:140
wxString m_OldTargetName
Definition: sdk_events.h:76
CodeBlocksEvent(wxEventType commandType=wxEVT_NULL, int id=0, cbProject *project=nullptr, EditorBase *editor=nullptr, cbPlugin *plugin=nullptr, EditorBase *old_editor=nullptr)
Definition: sdk_events.h:23
EVTIMPORT const wxEventType cbEVT_GET_ACTIVE_LOG_WINDOW
Definition: sdk_events.cpp:166
EVTIMPORT const wxEventType cbEVT_THREADTASK_ENDED
Definition: sdk_events.cpp:126
wxString wxEmptyString
EVTIMPORT const wxEventType cbEVT_EDITOR_DEACTIVATED
Definition: sdk_events.cpp:84
EVTIMPORT const wxEventType cbEVT_COMPLETE_CODE
Definition: sdk_events.cpp:176
EVTIMPORT const wxEventType cbEVT_CBAUIBOOK_LEFT_DCLICK
Definition: sdk_events.cpp:173
EVTIMPORT const wxEventType cbEVT_DEBUGGER_FINISHED
Definition: sdk_events.cpp:159
EVTIMPORT const wxEventType cbEVT_PROJECT_TARGETS_MODIFIED
Definition: sdk_events.cpp:108
bool stretch
If true, the dock will stretch to fill the dockSide.
Definition: sdk_events.h:146
const wxString & _(const wxString &string)
EVTIMPORT const wxEventType cbEVT_THREADTASK_STARTED
Definition: sdk_events.cpp:125
EditorBase * m_pOldEditor
Definition: sdk_events.h:69
wxEventType wxEVT_NULL
EVTIMPORT const wxEventType cbEVT_PROJECT_END_REMOVE_FILES
Definition: sdk_events.cpp:103
wxEvent * Clone() const override
Definition: sdk_events.h:168
wxString bitmap
The bitmap to use.
Definition: sdk_events.h:149
wxString title
The logger&#39;s title. Valid only for cbEVT_ADD_LOG_WINDOW.
Definition: sdk_events.h:195
EVTIMPORT const wxEventType cbEVT_APP_STARTUP_DONE
Definition: sdk_events.cpp:68
Logger * logger
The logger.
Definition: sdk_events.h:192
EVTIMPORT const wxEventType cbEVT_MENUBAR_CREATE_END
Definition: sdk_events.cpp:146
EVTIMPORT const wxEventType cbEVT_QUERY_VIEW_LAYOUT
Definition: sdk_events.cpp:136
EVTIMPORT const wxEventType cbEVT_PLUGIN_UNINSTALLED
Definition: sdk_events.cpp:77
EVTIMPORT const wxEventType cbEVT_EDITOR_ACTIVATED
Definition: sdk_events.cpp:83
bool hideable
If true, the dock will be allowed to be closed by the user.
Definition: sdk_events.h:147
void SetEditor(EditorBase *editor)
Definition: sdk_events.h:45
void SetOldBuildTargetName(const wxString &target)
Definition: sdk_events.h:65
EVTIMPORT const wxEventType cbEVT_LOCK_LOG_MANAGER
Definition: sdk_events.cpp:169
EVTIMPORT const wxEventType cbEVT_COMPILER_STARTED
Definition: sdk_events.cpp:148
void SetProject(cbProject *project)
Definition: sdk_events.h:42
wxString m_TargetName
Definition: sdk_events.h:75
void SetY(int y)
Definition: sdk_events.h:57
CodeBlocksEvent(const CodeBlocksEvent &event)
Definition: sdk_events.h:31
EVTIMPORT const wxEventType cbEVT_SHOW_DOCK_WINDOW
Definition: sdk_events.cpp:131
EVTIMPORT const wxEventType cbEVT_PROJECT_POPUP_MENU
Definition: sdk_events.cpp:107
EVTIMPORT const wxEventType cbEVT_EDITOR_BEFORE_SAVE
Definition: sdk_events.cpp:85
wxEvent * Clone() const override
Definition: sdk_events.h:39
const wxString & GetBuildTargetName() const
Definition: sdk_events.h:59
EVTIMPORT const wxEventType cbEVT_WORKSPACE_CHANGED
Definition: sdk_events.cpp:111
CodeBlocksLayoutEvent(wxEventType commandType=wxEVT_NULL, const wxString &layout_name=wxEmptyString)
Definition: sdk_events.h:161
EVTIMPORT const wxEventType cbEVT_PROJECT_OPEN
Definition: sdk_events.cpp:97
void(wxEvtHandler::* CodeBlocksLogEventFunction)(CodeBlocksLogEvent &)
Definition: sdk_events.h:200
EVTIMPORT const wxEventType cbEVT_PROJECT_CLOSE
Definition: sdk_events.cpp:96
EVTIMPORT const wxEventType cbEVT_MENUBAR_CREATE_BEGIN
Definition: sdk_events.cpp:144
bool shown
If true, initially shown.
Definition: sdk_events.h:145
EVTIMPORT const wxEventType cbEVT_EDITOR_OPEN
Definition: sdk_events.cpp:81
int wxEventType
EVTIMPORT const wxEventType cbEVT_PROJECT_FILE_REMOVED
Definition: sdk_events.cpp:105
int logIndex
The logger&#39;s index.
Definition: sdk_events.h:193
int column
The column to dock it.
Definition: sdk_events.h:144
cbProject * m_pProject
Definition: sdk_events.h:67
EVTIMPORT const wxEventType cbEVT_BUILDTARGET_ADDED
Definition: sdk_events.cpp:116
EditorBase * m_pEditor
Definition: sdk_events.h:68
wxSize desiredSize
The desired size.
Definition: sdk_events.h:138
EVTIMPORT const wxEventType cbEVT_EDITOR_UNSPLIT
Definition: sdk_events.cpp:91
EVTIMPORT const wxEventType cbEVT_EDITOR_SAVE
Definition: sdk_events.cpp:86
EVTIMPORT const wxEventType cbEVT_PLUGIN_INSTALLED
Definition: sdk_events.cpp:76
void SetOldEditor(EditorBase *editor)
Definition: sdk_events.h:48
CodeBlocksDockEvent(wxEventType commandType=wxEVT_NULL, int id=0)
Definition: sdk_events.h:96
EVTIMPORT const wxEventType cbEVT_PIPEDPROCESS_STDERR
Definition: sdk_events.cpp:122
EVTIMPORT const wxEventType cbEVT_EDITOR_MODIFIED
Definition: sdk_events.cpp:87
EVTIMPORT const wxEventType cbEVT_SHOW_LOG_MANAGER
Definition: sdk_events.cpp:167
Event used to request from the main app to manage the view layouts.
Definition: sdk_events.h:158