| 1 |
////////////////////////////////////////////////////////////////////////////// |
| 2 |
////////////////////////////////////////////////////////////////////////////// |
| 3 |
// |
| 4 |
// copyright : (C)); Eran Ifrah |
| 5 |
// file name : codelite_events.h |
| 6 |
// |
| 7 |
// ------------------------------------------------------------------------- |
| 8 |
// A |
| 9 |
// _____ _ _ _ _ |
| 10 |
// / __ \ | | | | (_) | |
| 11 |
// | / \/ ___ __| | ___| | _| |_ ___ |
| 12 |
// | | / _ \ / _ |/ _ \ | | | __/ _ ) |
| 13 |
// | \__/\ (_) | (_| | __/ |___| | || __/ |
| 14 |
// \____/\___/ \__,_|\___\_____/_|\__\___| |
| 15 |
// |
| 16 |
// F i l e |
| 17 |
// |
| 18 |
// This program is free software; you can redistribute it and/or modify |
| 19 |
// it under the terms of the GNU General Public License as published by |
| 20 |
// the Free Software Foundation; either version 2 of the License, or |
| 21 |
// (at your option) any later version. |
| 22 |
// |
| 23 |
////////////////////////////////////////////////////////////////////////////// |
| 24 |
////////////////////////////////////////////////////////////////////////////// |
| 25 |
|
| 26 |
#ifndef CODELITE_EVENTS_H |
| 27 |
#define CODELITE_EVENTS_H |
| 28 |
|
| 29 |
#include "clFileSystemEvent.h" |
| 30 |
#include "clWorkspaceEvent.hpp" |
| 31 |
#include "cl_command_event.h" |
| 32 |
#include "codelite_exports.h" |
| 33 |
|
| 34 |
// ------------------------------------------------------------------------ |
| 35 |
// |
| 36 |
// Plugins events |
| 37 |
// will not change when we move an event up or down in this file... |
| 38 |
// ------------------------------------------------------------------------ |
| 39 |
|
| 40 |
// clientData is NULL |
| 41 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_INIT_DONE, wxCommandEvent); |
| 42 |
|
| 43 |
// wxCommandEvent::GetString() will return the node name modified |
| 44 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_EDITOR_CONFIG_CHANGED, wxCommandEvent); |
| 45 |
|
| 46 |
// workspace loading related event |
| 47 |
// use clWorkspaceEvent::GetString(), clWorkspaceEvent::GetFileName() to get the path |
| 48 |
// use clWorkspaceEvent::GetWorkspaceType() to get the type of the workspace loaded/closed |
| 49 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_WORKSPACE_LOADED, clWorkspaceEvent); |
| 50 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_WORKSPACE_PLUGIN_OPEN, clWorkspaceEvent); |
| 51 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_WORKSPACE_RELOAD_STARTED, clWorkspaceEvent); |
| 52 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_WORKSPACE_RELOAD_ENDED, clWorkspaceEvent); |
| 53 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_WORKSPACE_CLOSING, clWorkspaceEvent); |
| 54 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_WORKSPACE_CLOSED, clWorkspaceEvent); |
| 55 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_WORKSPACE_FILES_SCANNED, clWorkspaceEvent); |
| 56 |
|
| 57 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_WORKSPACE_CONFIG_CHANGED, wxCommandEvent); |
| 58 |
|
| 59 |
// clientData is NULL |
| 60 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_FILE_VIEW_INIT_DONE, wxCommandEvent); |
| 61 |
|
| 62 |
// clientData is NULL |
| 63 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_FILE_VIEW_REFRESHED, wxCommandEvent); |
| 64 |
|
| 65 |
// clientData is NULL |
| 66 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_FILE_EXP_INIT_DONE, wxCommandEvent); |
| 67 |
|
| 68 |
// clientData is NULL |
| 69 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_FILE_EXP_REFRESHED, wxCommandEvent); |
| 70 |
|
| 71 |
// clientData is the wxTreeItemId* |
| 72 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CMD_FILE_EXP_ITEM_EXPANDING, wxCommandEvent); |
| 73 |
|
| 74 |
// an attempt to open a file using double click / ENTER was made |
| 75 |
// Use clCommandEvent.GetFileName() to get the file name |
| 76 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_TREE_ITEM_FILE_ACTIVATED, clCommandEvent); |
| 77 |
|
| 78 |
// File(s) were added to the project |
| 79 |
// Event type: clCommandEvent |
| 80 |
// Use: clCommandEvent::GetStrings() to get the list of files added |
| 81 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_PROJ_FILE_ADDED, clCommandEvent); |
| 82 |
|
| 83 |
// File(s) were removed from the project |
| 84 |
// Event type: clCommandEvent |
| 85 |
// Use: clCommandEvent::GetStrings() to get the list of files removed |
| 86 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_PROJ_FILE_REMOVED, clCommandEvent); |
| 87 |
|
| 88 |
// Project has been removed from the workspace |
| 89 |
// Event type: clCommandEvent |
| 90 |
// Use: clCommandEvent::GetStrings() to get the name of the removed project |
| 91 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_PROJ_REMOVED, clCommandEvent); |
| 92 |
|
| 93 |
// Project has been added to the workspace |
| 94 |
// Event type: clCommandEvent |
| 95 |
// Use: clCommandEvent::GetString() to get the name of project |
| 96 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_PROJ_ADDED, clCommandEvent); |
| 97 |
|
| 98 |
// the following 2 events are used as "transaction" |
| 99 |
// the first event indicates that any "wxEVT_FILE_SAVED" event sent from this point |
| 100 |
// is due to build process which is about to starte |
| 101 |
// the later event, indicates the end of that transaction |
| 102 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_FILE_SAVE_BY_BUILD_END, wxCommandEvent); |
| 103 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_FILE_SAVE_BY_BUILD_START, wxCommandEvent); |
| 104 |
|
| 105 |
// Sent when a file has been saved. |
| 106 |
// Event type: clCommandEvent |
| 107 |
// Use: clCommandEvent::GetString() or clCommandEvent::GetFileName() to get the name of file |
| 108 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_FILE_SAVED, clCommandEvent); |
| 109 |
|
| 110 |
// A file was renamed |
| 111 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_FILE_RENAMED, clFileSystemEvent); |
| 112 |
|
| 113 |
// A file was deleted |
| 114 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_FILE_DELETED, clFileSystemEvent); |
| 115 |
|
| 116 |
// A folder was deleted |
| 117 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_FOLDER_DELETED, clFileSystemEvent); |
| 118 |
|
| 119 |
// A file was created |
| 120 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_FILE_CREATED, clFileSystemEvent); |
| 121 |
|
| 122 |
// A folder was created |
| 123 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_FOLDER_CREATED, clFileSystemEvent); |
| 124 |
|
| 125 |
// A file was "Save as" by the user |
| 126 |
// This event can also be fired if the user selected "Duplicate Tab" |
| 127 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_FILE_SAVEAS, clFileSystemEvent); |
| 128 |
|
| 129 |
// find the other file that matches a given file. Usually, this event is sent when user |
| 130 |
// tries to switch to header file from c++ and vice versa or when CodeLite is searching |
| 131 |
// the implementation file to add function body |
| 132 |
// A handler passes back the pair file to CodeLite by setting it in the event e.SetPath(..) |
| 133 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_FILE_FIND_MATCHING_PAIR, clFileSystemEvent); |
| 134 |
|
| 135 |
// The active editor was changed |
| 136 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_ACTIVE_EDITOR_CHANGED, wxCommandEvent); |
| 137 |
|
| 138 |
// clientData is closing editor (IEditor*) |
| 139 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_EDITOR_CLOSING, wxCommandEvent); |
| 140 |
|
| 141 |
// clientData is NULL |
| 142 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_ALL_EDITORS_CLOSING, wxCommandEvent); |
| 143 |
|
| 144 |
// clientData is NULL |
| 145 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_ALL_EDITORS_CLOSED, wxCommandEvent); |
| 146 |
|
| 147 |
// This event is sent when the user clicks inside an editor |
| 148 |
// this event can not be Veto() |
| 149 |
// clientData is NULL. You may query the clicked editor by calling to |
| 150 |
// IManager::GetActiveEditor() |
| 151 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_EDITOR_CLICKED, wxCommandEvent); |
| 152 |
|
| 153 |
// User dismissed the Editor's settings dialog with |
| 154 |
// Apply or OK (Settings | Editor) |
| 155 |
// clientData is NULL |
| 156 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_EDITOR_SETTINGS_CHANGED, wxCommandEvent); |
| 157 |
|
| 158 |
// This event is sent from plugins to the application to tell it to reload |
| 159 |
// any open files (and re-tag them as well) |
| 160 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CMD_RELOAD_EXTERNALLY_MODIFIED, wxCommandEvent); |
| 161 |
|
| 162 |
// Same as wxEVT_CMD_RELOAD_EXTERNALLY_MODIFIED |
| 163 |
// just without prompting the user |
| 164 |
// this event only reload code files without |
| 165 |
// any reload to the workspace / project |
| 166 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CMD_RELOAD_EXTERNALLY_MODIFIED_NOPROMPT, wxCommandEvent); |
| 167 |
|
| 168 |
// Sent by the project settings dialogs to indicate that |
| 169 |
// the project configurations are saved |
| 170 |
// Event type: clProjectSettingsEvent |
| 171 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CMD_PROJ_SETTINGS_SAVED, clProjectSettingsEvent); |
| 172 |
|
| 173 |
// A user requested to execute the active project |
| 174 |
// Event type: |
| 175 |
// clExecuteEvent. |
| 176 |
// Get the target to run by using clExecuteEvent::GetTargetName |
| 177 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CMD_EXECUTE_ACTIVE_PROJECT, clExecuteEvent); |
| 178 |
|
| 179 |
// A user requested to stop the previously executed program |
| 180 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CMD_STOP_EXECUTED_PROGRAM, clExecuteEvent); |
| 181 |
|
| 182 |
// codelite sends this event to query plugins incase there is a program running |
| 183 |
// use evet.SetAnswer(true) to indicate that the plugin has launched an executable |
| 184 |
// it is mainly used for displaying the 'Stop' button in the toolbar as active/disabled |
| 185 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CMD_IS_PROGRAM_RUNNING, clExecuteEvent); |
| 186 |
|
| 187 |
// Execution of a program started |
| 188 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_PROGRAM_STARTED, clExecuteEvent); |
| 189 |
|
| 190 |
// Program terminated event |
| 191 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_PROGRAM_TERMINATED, clExecuteEvent); |
| 192 |
|
| 193 |
// ---------------------------------------------------------------------- |
| 194 |
// Build Events |
| 195 |
// ---------------------------------------------------------------------- |
| 196 |
|
| 197 |
// Event type: clBuildEvent |
| 198 |
// Notify that a build has been started |
| 199 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_BUILD_STARTED, clBuildEvent); |
| 200 |
|
| 201 |
// Event type: clBuildEvent |
| 202 |
// Notify that a build has been ended |
| 203 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_BUILD_ENDED, clBuildEvent); |
| 204 |
|
| 205 |
// Event type: clBuildEvent |
| 206 |
// sent by the application to the plugins to indicate that a |
| 207 |
// build process is about to start. by handling this event |
| 208 |
// and by avoid calling event.Skip() codelite will NOT start |
| 209 |
// the build process |
| 210 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_BUILD_STARTING, clBuildEvent); |
| 211 |
|
| 212 |
// Event type: clBuildEvent |
| 213 |
// return the project clean command |
| 214 |
// set the new clean command using: event.SetCommand( "new-clean-command" ); |
| 215 |
// avoid calling event.Skip() to indicate that a new command was provided |
| 216 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_GET_PROJECT_CLEAN_CMD, clBuildEvent); |
| 217 |
|
| 218 |
// Event type: clBuildEvent |
| 219 |
// return the project build command |
| 220 |
// set the new build command using: event.SetCommand( "new-build-command" ); |
| 221 |
// avoid calling event.Skip() to indicate that a new command was provided |
| 222 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_GET_PROJECT_BUILD_CMD, clBuildEvent); |
| 223 |
|
| 224 |
// Event type: clBuildEvent |
| 225 |
// Set the 'SetRunning' to true to reply to CodeLite |
| 226 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_GET_IS_BUILD_IN_PROGRESS, clBuildEvent); |
| 227 |
|
| 228 |
// Event type: clBuildEvent |
| 229 |
// Stop the current build process. Call event.Skip(false) to indicate that the |
| 230 |
// 'stop' process is done by the plugin |
| 231 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_STOP_BUILD, clBuildEvent); |
| 232 |
|
| 233 |
// Event type: clBuildEvent |
| 234 |
// the below two events are sent by the application to the plugins to query whether a |
| 235 |
// given project and build configuration are handled by the plugin. |
| 236 |
// the first event is whether the makefile file is generated by the plugin |
| 237 |
// and the second is to know whether the build process is also being |
| 238 |
// handled by the plugin. |
| 239 |
// the return answer is done by simply avoid calling event.Skip() (which will result in ProcessEvent() == true) |
| 240 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_GET_IS_PLUGIN_MAKEFILE, clBuildEvent); |
| 241 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_GET_IS_PLUGIN_BUILD, clBuildEvent); |
| 242 |
|
| 243 |
// Event type: clBuildEvent |
| 244 |
// These events allows the plugins to concatenate a string |
| 245 |
// to the compilation/link line of the default build system |
| 246 |
// By using the event.SetCommand()/event.GetCommand() |
| 247 |
// Note, that the since all multiple plugins |
| 248 |
// might be interesting with this feature, it is recommened |
| 249 |
// to use it like this: |
| 250 |
// wxString content = event.GetCommand(); |
| 251 |
// content << wxT(" -DMYMACRO "); |
| 252 |
// event.SetCommand( content ); |
| 253 |
// event.Skip(); |
| 254 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_GET_ADDITIONAL_COMPILEFLAGS, clBuildEvent); |
| 255 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_GET_ADDITIONAL_LINKFLAGS, clBuildEvent); |
| 256 |
|
| 257 |
// Evnet type: clBuildEvent |
| 258 |
// Sent to the plugins to request to export the makefile |
| 259 |
// for the project + configuration |
| 260 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_PLUGIN_EXPORT_MAKEFILE, clBuildEvent); |
| 261 |
|
| 262 |
// User clicked on an highlighted error message in the output tab |
| 263 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_BUILD_OUTPUT_HOTSPOT_CLICKED, clBuildEvent); |
| 264 |
|
| 265 |
// ---------------------------------------------------------------------- |
| 266 |
// ---------------------------------------------------------------------- |
| 267 |
|
| 268 |
/** |
| 269 |
* Debug related events |
| 270 |
*/ |
| 271 |
// sent when the debugger is about to start |
| 272 |
// clientData is a pointer to a DebuggerStartupInfo structure |
| 273 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_DEBUG_STARTING, clDebugEvent); |
| 274 |
|
| 275 |
// sent right after the debugger started; program is not running yet |
| 276 |
// clientData is a pointer to a DebuggerStartupInfo structure |
| 277 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_DEBUG_STARTED, clDebugEvent); |
| 278 |
|
| 279 |
// sent just before the debugger stops |
| 280 |
// clientData is NULL |
| 281 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_DEBUG_ENDING, clDebugEvent); |
| 282 |
|
| 283 |
// sent after the debugger stopped |
| 284 |
// clientData is NULL |
| 285 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_DEBUG_ENDED, clDebugEvent); |
| 286 |
|
| 287 |
// Debugger is requesting to open a file and set the marker at a given position |
| 288 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_DEBUG_SET_FILELINE, clDebugEvent); |
| 289 |
|
| 290 |
// debugger -> IDE. |
| 291 |
// Update the breakpoint |
| 292 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_DEBUG_BREAKPOINTS_LIST, clDebugEvent); |
| 293 |
|
| 294 |
// Notify the debugger to update the active pane |
| 295 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_DEBUGGER_REFRESH_PANE, clDebugEvent); |
| 296 |
|
| 297 |
// Breakpoints were modified programmatically |
| 298 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_BREAKPOINTS_UPDATED, clDebugEvent); |
| 299 |
|
| 300 |
// Breakpoints were modified by the breakpoint management panel |
| 301 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_BREAKPOINTS_UI_UPDATED, clDebugEvent); |
| 302 |
|
| 303 |
// Breakpoint was toggled in an editor (removed or added) |
| 304 |
// check the filename |
| 305 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_BREAKPOINTS_UI_EDITOR_UPDATED, clDebugEvent); |
| 306 |
|
| 307 |
// Instruct the debugger to update the memory |
| 308 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_DEBUGGER_SET_MEMORY, clDebugEvent); |
| 309 |
|
| 310 |
// User initiated debug session from the Debug -> Quick Debug menu option |
| 311 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_QUICK_DEBUG, clDebugEvent); |
| 312 |
|
| 313 |
// Quick debug dialog is showing. The handler can set some parameters |
| 314 |
// such as the debugger to use, exe to debug etc |
| 315 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_QUICK_DEBUG_DLG_SHOWING, clDebugEvent); |
| 316 |
|
| 317 |
// Quick debug dialog is dismissed. Use this event to persist any setting the user might have |
| 318 |
// updated in the UI |
| 319 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_QUICK_DEBUG_DLG_DISMISSED_OK, clDebugEvent); |
| 320 |
|
| 321 |
//------------------------------------------------------------------------------------- |
| 322 |
/// |
| 323 |
// set when the editor gains or loses |
| 324 |
// the control over the debugger |
| 325 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_DEBUG_EDITOR_LOST_CONTROL, wxCommandEvent); |
| 326 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_DEBUG_EDITOR_GOT_CONTROL, wxCommandEvent); |
| 327 |
|
| 328 |
//------------------------------------------------------------------------------------- |
| 329 |
|
| 330 |
//------------------------------------------------------------------------------------- |
| 331 |
//------------------------------------------------------------------------------------- |
| 332 |
// Code completion events |
| 333 |
// Events sent here are of type 'clCodeCompletionEvent' |
| 334 |
//------------------------------------------------------------------------------------- |
| 335 |
//------------------------------------------------------------------------------------- |
| 336 |
|
| 337 |
// User selected an entry from the code completion box. call event.Skip(false) |
| 338 |
// if you wish to perform something unique instead of the default "insert selection into editor" |
| 339 |
// The selected string can be retrieved by calling: event.GetWord() |
| 340 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CCBOX_SELECTION_MADE, clCodeCompletionEvent); |
| 341 |
|
| 342 |
// Code completion box is about to be shown. Let the plugins access the list before it is shown |
| 343 |
// to the user. Call event.Skip(false) if you modify the list. The modified list should be set |
| 344 |
// via the event.SetEntries(); |
| 345 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CCBOX_SHOWING, clCodeCompletionEvent); |
| 346 |
|
| 347 |
// The code completion box has been dismissed |
| 348 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CC_CODE_COMPLETE_BOX_DISMISSED, clCodeCompletionEvent); |
| 349 |
|
| 350 |
// User has requested to display the current files' outline |
| 351 |
// Use m_mgr->GetActiveEditor() to get the active editor |
| 352 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CC_SHOW_QUICK_OUTLINE, clCodeCompletionEvent); |
| 353 |
|
| 354 |
// Send a clCodeCompletionEvent |
| 355 |
// Codelite is about to show the completion box for language keywords |
| 356 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CC_CODE_COMPLETE_LANG_KEYWORD, clCodeCompletionEvent); |
| 357 |
|
| 358 |
// Send clCodeCompletionEvent |
| 359 |
// User clicked on hyper link inside the editor |
| 360 |
// If the plugin wants to handle it, simple avoid calling event.Skip() |
| 361 |
// Use event.GetString() to get the hyperlink text |
| 362 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CC_JUMP_HYPER_LINK, clCodeCompletionEvent); |
| 363 |
|
| 364 |
//===---------------------------------------------------------------------------------------------- |
| 365 |
//===---------------------------------------------------------------------------------------------- |
| 366 |
// Below events are processed via the ServiceProviderManager class and NOT by EventNotifier!! |
| 367 |
// To be able to receive them your handler must subclass ServiceProvider |
| 368 |
//===---------------------------------------------------------------------------------------------- |
| 369 |
//===---------------------------------------------------------------------------------------------- |
| 370 |
|
| 371 |
// Search the workspace for a symbol |
| 372 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CC_FIND_SYMBOL, clCodeCompletionEvent); |
| 373 |
|
| 374 |
// Find header file for a given symbol |
| 375 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CC_FIND_HEADER_FILE, clCodeCompletionEvent); |
| 376 |
|
| 377 |
// Find symbol declaration |
| 378 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CC_FIND_SYMBOL_DECLARATION, clCodeCompletionEvent); |
| 379 |
|
| 380 |
// Find symbol definition |
| 381 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CC_FIND_SYMBOL_DEFINITION, clCodeCompletionEvent); |
| 382 |
|
| 383 |
// Request for code completion |
| 384 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CC_CODE_COMPLETE, clCodeCompletionEvent); |
| 385 |
|
| 386 |
// User asked for "word completion" Ctrl-SPACE |
| 387 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CC_WORD_COMPLETE, clCodeCompletionEvent); |
| 388 |
|
| 389 |
// A function calltip is requesed |
| 390 |
// clientData is set to the client data set by the user |
| 391 |
// the plugin returns the tooltip to the IDE using the: |
| 392 |
// evt.SetTooltip(..) method |
| 393 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CC_CODE_COMPLETE_FUNCTION_CALLTIP, clCodeCompletionEvent); |
| 394 |
|
| 395 |
// User is hovering a text, display the typeinfo |
| 396 |
// Hover position is set in the evt.GetPosition() |
| 397 |
// To pass a new tooltip, just call event.SetTooltip(...) |
| 398 |
// CodeLite will display the tooltip if a non empty string is passed. Simple markup is allowed (<br> <hr> etc) |
| 399 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CC_TYPEINFO_TIP, clCodeCompletionEvent); |
| 400 |
|
| 401 |
// User is hovering a text, display the typeinfo |
| 402 |
// Request semantics tokens for a given file |
| 403 |
// Input: |
| 404 |
// - event.GetFileName() for the input file |
| 405 |
// Output: |
| 406 |
// - event.SetVariables("..") |
| 407 |
// - event.SetClasses("..") |
| 408 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CC_SEMANTICS_HIGHLIGHT, clCodeCompletionEvent); |
| 409 |
|
| 410 |
// Return a list LSP::SymbolInformation by a given query |
| 411 |
// The query is passed using event.SetString(query) |
| 412 |
// we support fuzzy matching by passing space delimited query |
| 413 |
// event.SetString("get name") -> will match "get_name", "getname", "nameget" etc |
| 414 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CC_WORKSPACE_SYMBOLS, clCodeCompletionEvent); |
| 415 |
|
| 416 |
//===---------------------------------------------------------------------------------------------- |
| 417 |
//===---------------------------------------------------------------------------------------------- |
| 418 |
// END ServiceProviderManager events |
| 419 |
//===---------------------------------------------------------------------------------------------- |
| 420 |
//===---------------------------------------------------------------------------------------------- |
| 421 |
|
| 422 |
// Event type: clCodeCompletionEvent |
| 423 |
// Sent by codelite to generate documentation block for class or function |
| 424 |
// after the user has typed "/**" followed by ENTER |
| 425 |
// Use event.SetTooltip(...) to provide the doxygen block comment |
| 426 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CC_GENERATE_DOXY_BLOCK, clCodeCompletionEvent); |
| 427 |
|
| 428 |
// An update to the navigation bar is required |
| 429 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CC_UPDATE_NAVBAR, clCodeCompletionEvent); |
| 430 |
|
| 431 |
// User typed '@' in a block comment section |
| 432 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CC_BLOCK_COMMENT_CODE_COMPLETE, clCodeCompletionEvent); |
| 433 |
|
| 434 |
// User typed Ctrl-Space in a block comment section |
| 435 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CC_BLOCK_COMMENT_WORD_COMPLETE, clCodeCompletionEvent); |
| 436 |
|
| 437 |
//------------------------------------------------------------------------------------- |
| 438 |
//------------------------------------------------------------------------------------- |
| 439 |
// Code completion events - END |
| 440 |
//------------------------------------------------------------------------------------- |
| 441 |
//------------------------------------------------------------------------------------- |
| 442 |
|
| 443 |
///////////////////////////////////////////////// |
| 444 |
// Project management events |
| 445 |
///////////////////////////////////////////////// |
| 446 |
|
| 447 |
// User selected an option to create a new workspace |
| 448 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CMD_CREATE_NEW_WORKSPACE, clCommandEvent); |
| 449 |
|
| 450 |
// Event type: clCommandEvent |
| 451 |
// A workspace file was selected by the user. |
| 452 |
// use event.GetFileName() to get the file name |
| 453 |
// If the plugin wishes to process this file, it should call |
| 454 |
// event.Skip(false) on the event |
| 455 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CMD_OPEN_WORKSPACE, clCommandEvent); |
| 456 |
|
| 457 |
// user initiated a 'OnSwitchWorkspace' event |
| 458 |
// a plugin may override this to change the default behavior |
| 459 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_SWITCHING_TO_WORKSPACE, clCommandEvent); |
| 460 |
|
| 461 |
// Event type: clCommandEvent |
| 462 |
// User requested to close the workspace. |
| 463 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CMD_CLOSE_WORKSPACE, clCommandEvent); |
| 464 |
|
| 465 |
// Event type: clCommandEvent |
| 466 |
// This event is sent by codelite to the plugins to query whether a |
| 467 |
// a custom workspace is opened (i.e. a worksapce which is completely managed |
| 468 |
// by the plugin) this allows codelite to enable menu items which otherwise |
| 469 |
// will be left disabled |
| 470 |
// to return a true or false reply to codelite, use |
| 471 |
// evt.SetAnswer( true / false ) |
| 472 |
// The workspace name should also returned in the evt.SetString(..) |
| 473 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CMD_IS_WORKSPACE_OPEN, clCommandEvent); |
| 474 |
|
| 475 |
// User has requested a retagging for the workspace |
| 476 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CMD_RETAG_WORKSPACE, wxCommandEvent); |
| 477 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CMD_RETAG_WORKSPACE_FULL, wxCommandEvent); |
| 478 |
|
| 479 |
// codelite has requested a complete list of the workspace files. |
| 480 |
// The result should be wxArrayString that contains a list of files |
| 481 |
// in their ABSOLUTE path. |
| 482 |
// The wxArrayString IS OWNED by codelite |
| 483 |
// and the plugin should NOT attempt to delete it |
| 484 |
// <code> |
| 485 |
// if(I_want_to_handle_this_event) { |
| 486 |
// wxArrayString *files = (wxArrayString *) event.GetClientData(); |
| 487 |
// <fill the files* array ...> |
| 488 |
// } else { |
| 489 |
// event.Skip(); |
| 490 |
// } |
| 491 |
// </code> |
| 492 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CMD_GET_WORKSPACE_FILES, wxCommandEvent); |
| 493 |
// Same as the above event, however you should return |
| 494 |
// a list of the current active project files |
| 495 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CMD_GET_ACTIVE_PROJECT_FILES, wxCommandEvent); |
| 496 |
// Same as the above event, however you should return |
| 497 |
// a list of the current files' project files list |
| 498 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CMD_GET_CURRENT_FILE_PROJECT_FILES, wxCommandEvent); |
| 499 |
|
| 500 |
///////////////////////////////////////////////// |
| 501 |
// Search events |
| 502 |
///////////////////////////////////////////////// |
| 503 |
|
| 504 |
// User requested to open the resource dialog |
| 505 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CMD_OPEN_RESOURCE, wxCommandEvent); |
| 506 |
|
| 507 |
// codelite is about to display the editor's context menu |
| 508 |
// A plugin can override the default menu display by catching this event and |
| 509 |
// handling it differently |
| 510 |
// event.GetEventObject() holds a pointer to the editor triggered |
| 511 |
// the menu |
| 512 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CMD_EDITOR_CONTEXT_MENU, wxCommandEvent); |
| 513 |
|
| 514 |
// Sent when the parser thread has completed a tagging request |
| 515 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CMD_RETAG_COMPLETED, wxCommandEvent); |
| 516 |
|
| 517 |
// send a wxNotifyEvent about page closing. |
| 518 |
// This event can be vetoed |
| 519 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_NOTIFY_PAGE_CLOSING, wxNotifyEvent); |
| 520 |
|
| 521 |
// send an wxCommandEvent indicating that the mainbook page has changed. |
| 522 |
// Unlike 'wxEVT_ACTIVE_EDITOR_CHANGED' this event is only sent when the |
| 523 |
// 'page' is not of type IEditor |
| 524 |
// use event.GetClientData() to get a pointer to the wxWindow* |
| 525 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CMD_PAGE_CHANGED, wxCommandEvent); |
| 526 |
|
| 527 |
// Triggers a workspace view tree rebuild (useful when user has modified the workspace / project structure and he want |
| 528 |
// to reflect the changes in the tree view) |
| 529 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_REBUILD_WORKSPACE_TREE, wxCommandEvent); |
| 530 |
|
| 531 |
// Sent when user has changed the active project |
| 532 |
// Event type: clProjectSettingsEvent |
| 533 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_ACTIVE_PROJECT_CHANGED, clProjectSettingsEvent); |
| 534 |
|
| 535 |
// This event is fired by CodeLite before the find bar is shown |
| 536 |
// The handler can pass a wxStyledTextCtrl class pointer to be associated with the |
| 537 |
// find bar by using the clFindEvent::SetCtrl() method |
| 538 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_FINDBAR_ABOUT_TO_SHOW, clFindEvent); |
| 539 |
|
| 540 |
// A plugin *must* send this event to ask the find bar to release any window associated with it |
| 541 |
// This event should be used with 'wxEVT_FINDBAR_ABOUT_TO_SHOW'. If this event is not sent when the window |
| 542 |
// is destroyed - it might result in a crash |
| 543 |
// The window pointer is passed using event.SetCtrl() |
| 544 |
// If the editor managed by the find-bar is the same as event.GetCtrl() -> the find-bar will un-refernce it |
| 545 |
// but *IT DOES NOT FREE ITS MEMORY* |
| 546 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_FINDBAR_RELEASE_EDITOR, clFindEvent); |
| 547 |
|
| 548 |
// Fired when CodeLite about to show the find-in-files dialog |
| 549 |
// A plugin can override the default 'file mask' and/or the 'search in' fields |
| 550 |
// to do that, it needs to set the new values in the event and call event.Skip(false) to indicate that the event |
| 551 |
// has been processed |
| 552 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_FINDINFILES_DLG_SHOWING, clFindInFilesEvent); |
| 553 |
|
| 554 |
// Fired when CodeLite dismissed the find-in-files dialog |
| 555 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_FINDINFILES_DLG_DISMISSED, clFindInFilesEvent); |
| 556 |
|
| 557 |
// user clicked on a match entry in the "find results tab" |
| 558 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_FINDINFILES_OPEN_MATCH, clFindInFilesEvent); |
| 559 |
|
| 560 |
// User clicked to cancel the currently running search |
| 561 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_FINDINFILES_STOP_SEARCH, clFindInFilesEvent); |
| 562 |
|
| 563 |
// Instruct codelite to build a project only ( no deps ) |
| 564 |
// the project name is passed in the wxCommandEvent::GetString |
| 565 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CMD_BUILD_PROJECT_ONLY, wxCommandEvent); |
| 566 |
// Instruct codelite to clean a project only ( no deps ) |
| 567 |
// the project name is passed in the wxCommandEvent::GetString |
| 568 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CMD_CLEAN_PROJECT_ONLY, wxCommandEvent); |
| 569 |
|
| 570 |
// User changed the default theme color of codelite |
| 571 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CL_THEME_CHANGED, wxCommandEvent); |
| 572 |
|
| 573 |
// Sent from the CodeFormatter plugin when a file indentation was completed |
| 574 |
// event.GetString() will return the name of the indented file |
| 575 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CODEFORMATTER_INDENT_COMPLETED, wxCommandEvent); |
| 576 |
|
| 577 |
// Sent from the CodeFormatter plugin when a file indentation is about to begin |
| 578 |
// event.GetString() will return the name of the indented file |
| 579 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CODEFORMATTER_INDENT_STARTING, wxCommandEvent); |
| 580 |
|
| 581 |
// Sent when codelite's main frame gained the focus |
| 582 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CODELITE_MAINFRAME_GOT_FOCUS, wxCommandEvent); |
| 583 |
|
| 584 |
// User clicked on a project item in the treeview |
| 585 |
// the event.GetString() contains the project name that was clicked |
| 586 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_PROJECT_TREEITEM_CLICKED, wxCommandEvent); |
| 587 |
|
| 588 |
// user has deleted all the breakpoints using the "Breakpoints" table |
| 589 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CODELITE_ALL_BREAKPOINTS_DELETED, wxCommandEvent); |
| 590 |
|
| 591 |
// User right click while holding the code-navigation modifier key (default to Shift) |
| 592 |
// send a clCodeCompletionEvent |
| 593 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CC_SHOW_QUICK_NAV_MENU, clCodeCompletionEvent); |
| 594 |
|
| 595 |
// Event type: clCommandEvent |
| 596 |
// User requested to reload the workspace |
| 597 |
// simply avoid calling event.Skip() to indicate to codelite that this event |
| 598 |
// was handled by a plugin |
| 599 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CMD_RELOAD_WORKSPACE, clCommandEvent); |
| 600 |
|
| 601 |
// Event type: clColourEvent |
| 602 |
// Sent by codelite whenever it needs to colour a single tab |
| 603 |
// avoid calling event.Skip() to notify codelite that the plugin wants to place a sepcial |
| 604 |
// colour. The colours (*plural*) should be passed using the 'event.SetFgColour()' and 'event.SetBgColour()' |
| 605 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_COLOUR_TAB, clColourEvent); |
| 606 |
|
| 607 |
// Event type: clCommandEvent |
| 608 |
// Sent by codelite before it starts building the "Workspsace View" tree view. |
| 609 |
// User may provide a different image list by placing it inside the event |
| 610 |
// event.SetClientData() member and by calling event.Skip(false) |
| 611 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_WORKSPACE_VIEW_BUILD_STARTING, clCommandEvent); |
| 612 |
|
| 613 |
// Event type: clColourEvent |
| 614 |
// Sent by codelite adding a project item to the file-view ("Workspace View"). Use event.GetString() to get the project |
| 615 |
// name |
| 616 |
// User may alter the following attributes: |
| 617 |
// . Project item background colour |
| 618 |
// . Project item text colour |
| 619 |
// . Project icon |
| 620 |
// The image id is returned as INT event.SetInt() |
| 621 |
// Avoid calling event.Skip() to notify codelite that a new attributes were provided |
| 622 |
// IMPORTANT: |
| 623 |
// codelite will not check the validity of the icon index. Its up to the plugin to provide a proper |
| 624 |
// index image. One can use the event wxEVT_WORKSPACE_VIEW_BUILD_STARTING to replace the default |
| 625 |
// image list with its own list |
| 626 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_WORKSPACE_VIEW_CUSTOMIZE_PROJECT, clColourEvent); |
| 627 |
|
| 628 |
// Event type: clColourEvent |
| 629 |
// Sent by codelite whenever it needs the pen colour for the tab area |
| 630 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_GET_TAB_BORDER_COLOUR, clColourEvent); |
| 631 |
|
| 632 |
// --------------------------------------------------------------------- |
| 633 |
// Debugger events |
| 634 |
// The following events are firing the clDebugEvent class |
| 635 |
// If a plugin wishes to override codelite's default debugger (gdb) |
| 636 |
// it simply needs to connect the event and avoid calling 'event.Skip(); |
| 637 |
//---------------------------------------------------------------------- |
| 638 |
wxDECLARE_EXPORTED_EVENT( |
| 639 |
WXDLLIMPEXP_CL, wxEVT_DBG_UI_START, |
| 640 |
clDebugEvent); // Start. This event is fired when a debug session is starting. The plugin should also set the |
| 641 |
// "feaures" field to indicate which features are available by the debugger |
| 642 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_DBG_UI_CONTINUE, clDebugEvent); // Continue |
| 643 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_DBG_UI_STOP, clDebugEvent); // Stop the debugger |
| 644 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_DBG_UI_STEP_IN, clDebugEvent); // Step into function |
| 645 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_DBG_UI_STEP_I, clDebugEvent); // Step into instruction |
| 646 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_DBG_UI_STEP_OUT, clDebugEvent); // Step out of current frame |
| 647 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_DBG_UI_NEXT, clDebugEvent); // Next line |
| 648 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_DBG_UI_NEXT_INST, clDebugEvent); // Next instruction |
| 649 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_DBG_UI_INTERRUPT, clDebugEvent); // Interrupt the debugger execution |
| 650 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_DBG_UI_SHOW_CURSOR, |
| 651 |
clDebugEvent); // Set the focus to the current debugger file/line |
| 652 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_DBG_UI_RESTART, clDebugEvent); // Restart the debug session |
| 653 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_DBG_IS_RUNNING, clDebugEvent); // Use evet.SetAnswer() method to reply |
| 654 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_DBG_UI_TOGGLE_BREAKPOINT, |
| 655 |
clDebugEvent); // Toggle breakpoint. Use event.GetFileName() / event.GetInt() for the file:line |
| 656 |
|
| 657 |
/// User added breakpoint from the UI |
| 658 |
/// Call event.GetUiBreakpoint() |
| 659 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_DBG_UI_BREAKPOINT_ADDED, clDebugEvent); |
| 660 |
|
| 661 |
/// User deleted breakpoint from the UI |
| 662 |
/// Call event.GetUiBreakpoint() |
| 663 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_DBG_UI_BREAKPOINT_DELETED, clDebugEvent); |
| 664 |
|
| 665 |
// Can CodeLite interact with the debugger? use event.SetAnswer(true); |
| 666 |
// Note: by avoid calling Skip() CodeLite will assume that the plugin is controlling the debug session |
| 667 |
// and it will use the event.IsAnswer() as the answer to the question to : CanDbgInteract() |
| 668 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_DBG_CAN_INTERACT, clDebugEvent); |
| 669 |
// Provide a tooltip for the expression under the caret. user event.GetString() to get the expression |
| 670 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_DBG_EXPR_TOOLTIP, clDebugEvent); |
| 671 |
|
| 672 |
// This event is sent by codelite to all plugins to determine whether a plugin is actually a debugger. |
| 673 |
// A plugin should *always* call event.Skip() when handling this event. If the plugin is actually a debugger |
| 674 |
// plugin, it should add itself like this: event.GetStrings().Add("<the-debugger-name") |
| 675 |
// This string is later will be availe for codelite to display it in various dialogs (e.g. Quick Debug, project settings |
| 676 |
// etc) |
| 677 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_DBG_IS_PLUGIN_DEBUGGER, clDebugEvent); |
| 678 |
|
| 679 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_DBG_UI_QUICK_DEBUG, |
| 680 |
clDebugEvent); // User clicked on the 'Quick Debug' button. Event type is clDebugEvent |
| 681 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_DBG_UI_CORE_FILE, |
| 682 |
clDebugEvent); // User selected to debug a core file. Event type is clDebugEvent |
| 683 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_DBG_UI_ATTACH_TO_PROCESS, |
| 684 |
clDebugEvent); // Attach to process. Use clDebugEvent::GetInt() to get the process ID |
| 685 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_DBG_UI_DELETE_ALL_BREAKPOINTS, clDebugEvent); // Delete all breakpoints |
| 686 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_DBG_UI_ENABLE_ALL_BREAKPOINTS, clDebugEvent); // Enable all breakpoints |
| 687 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_DBG_UI_DISABLE_ALL_BREAKPOINTS, clDebugEvent); // Disable all breakpoints |
| 688 |
|
| 689 |
// -------------------Debugger events end------------------------------------------------ |
| 690 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CMD_OPEN_PROJ_SETTINGS, |
| 691 |
clCommandEvent); // clCommandEvent. Use event.GetString() to get the project name |
| 692 |
|
| 693 |
// event type: clNewProjectEvent |
| 694 |
// Use this event to add new templates / categories to the wizard |
| 695 |
// If you don't call event.Skip() codelite will assume that the plugin |
| 696 |
// is replacing the dialog with its own and will do nothing |
| 697 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_NEW_PROJECT_WIZARD_SHOWING, clNewProjectEvent); |
| 698 |
|
| 699 |
// event type: clNewProjectEvent |
| 700 |
// User clicked on the 'Finish' button of the new project wizard dialog |
| 701 |
// call event.Skip( false ) if the plugin wants to handle the new project, otherwise |
| 702 |
// call event.Skip( true ) for codelite to run the default behvior |
| 703 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_NEW_PROJECT_WIZARD_FINISHED, clNewProjectEvent); |
| 704 |
|
| 705 |
// -------------------------------------------------------------- |
| 706 |
// Compiler events |
| 707 |
// -------------------------------------------------------------- |
| 708 |
|
| 709 |
// The compiler list was updated (e.g. a compiler was deleted, renamed etc) |
| 710 |
// Event type: clCompilerEvent |
| 711 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_COMPILER_LIST_UPDATED, clCompilerEvent); |
| 712 |
|
| 713 |
// ++++-------------- |
| 714 |
|
| 715 |
// User clicked on the 'Save All Editors' button |
| 716 |
// Editors will be saved, however, if a plugin has a tab which is not an editor |
| 717 |
// save it as well |
| 718 |
// event type: clCommandEvent |
| 719 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_SAVE_ALL_EDITORS, clCommandEvent); |
| 720 |
|
| 721 |
//---------------------------------------------------------------------- |
| 722 |
// Source Code Format events |
| 723 |
//---------------------------------------------------------------------- |
| 724 |
|
| 725 |
// Format an input string |
| 726 |
// Event type: clSourceFormatEvent |
| 727 |
// Use clSourceFormatEvent.SetInputString() / GetFormattedString() |
| 728 |
// to get and set the string to format |
| 729 |
// Note that the plugin should be "smart" enough to indent the file |
| 730 |
// by its type |
| 731 |
// Call event.Skip(false) to mark this event as completed |
| 732 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_FORMAT_STRING, clSourceFormatEvent); |
| 733 |
|
| 734 |
// Format a file |
| 735 |
// Event type: clSourceFormatEvent |
| 736 |
// Use event.SetFileName() to pass the file name to be formatted |
| 737 |
// Note that the plugin should be "smart" enough to indent the file |
| 738 |
// by its type |
| 739 |
// Call event.Skip(false) to mark this event as completed |
| 740 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_FORMAT_FILE, clSourceFormatEvent); |
| 741 |
|
| 742 |
//---------------------------------------------------------------------- |
| 743 |
// Context menu events |
| 744 |
//---------------------------------------------------------------------- |
| 745 |
|
| 746 |
// codelite is about to show the context menu for an editor |
| 747 |
// Event type: clContextMenuEvent. You can use event.GetEditor() to get the editor |
| 748 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CONTEXT_MENU_EDITOR, clContextMenuEvent); |
| 749 |
|
| 750 |
// codelite is about to show the context menu for the editor margin |
| 751 |
// Event type: clContextMenuEvent. You can use event.GetEditor() to get the editor |
| 752 |
// Calling event.Skip(false) will cancel the menu. A plugin may also |
| 753 |
// alter the context menu |
| 754 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CONTEXT_MENU_EDITOR_MARGIN, clContextMenuEvent); |
| 755 |
|
| 756 |
// A context menu for a folder is about to be shown, you may alter the menu using event.GetMenu() |
| 757 |
// Use event.GetPath() to get the path of the folder |
| 758 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CONTEXT_MENU_FOLDER, clContextMenuEvent); |
| 759 |
|
| 760 |
// A context menu for a virtual folder is about to be shown, you may alter the menu using event.GetMenu() |
| 761 |
// Use event.GetPath() to get the virtual folder path |
| 762 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CONTEXT_MENU_VIRTUAL_FOLDER, clContextMenuEvent); |
| 763 |
|
| 764 |
// A context menu for a file is about to be shown, you may alter the menu using event.GetMenu() |
| 765 |
// use event.GetStrings() to get the list of files selected (since there can be multiple items, we use |
| 766 |
// event.GetStrings() a not event.GetFileName()) |
| 767 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CONTEXT_MENU_FILE, clContextMenuEvent); |
| 768 |
|
| 769 |
// A context menu for a project is about to be shown, you may alter the menu using event.GetMenu() |
| 770 |
// use event.GetFileName() to get the project file (if any). event.GetString() will return the project name |
| 771 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CONTEXT_MENU_PROJECT, clContextMenuEvent); |
| 772 |
|
| 773 |
// A context menu for a file is about to be shown, you may alter the menu using event.GetMenu() |
| 774 |
// use event.GetFileName() to get the workspace file (if any). event.GetString() will return the workspace name |
| 775 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CONTEXT_MENU_WORKSPACE, clContextMenuEvent); |
| 776 |
|
| 777 |
// A context menu for the active tab label header is about to be shown. You can get the active page |
| 778 |
// by calling clGetManager()->GetActivePage() |
| 779 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CONTEXT_MENU_TAB_LABEL, clContextMenuEvent); |
| 780 |
|
| 781 |
// User modified the colours and font of the IDE |
| 782 |
// event type: clCommandEvent |
| 783 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CMD_COLOURS_FONTS_UPDATED, clCommandEvent); |
| 784 |
|
| 785 |
// File has been loaded into the IDE |
| 786 |
// User: clCommandEvnet::GetFileName() to get the file name |
| 787 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_FILE_LOADED, clCommandEvent); |
| 788 |
|
| 789 |
// File has been closed |
| 790 |
// User: clCommandEvnet::GetFileName() to get the file name |
| 791 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_FILE_CLOSED, clCommandEvent); |
| 792 |
|
| 793 |
// Sent when codelite is about to set the main frame's title. |
| 794 |
// A plugin may alter the frame title by calling event.SetString(..) |
| 795 |
// To get the current frame title, a plugin may call event.GetString() |
| 796 |
// Event type: clCommandEvent |
| 797 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CL_FRAME_TITLE, clCommandEvent); |
| 798 |
|
| 799 |
// Event: clCommandEvent |
| 800 |
// CodeLite is about to save a file. Use event.GetFilename() to get the file name |
| 801 |
// This event can be vetoed by calling event.Veto() |
| 802 |
// Note that this event is sent for editor files (i.e. it is not sent for internal files like project file being saved |
| 803 |
// etc) only for editors (hence the name) |
| 804 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_BEFORE_EDITOR_SAVE, clCommandEvent); |
| 805 |
|
| 806 |
// Editor has been modified. Use event.GetFilename() to get the file name of the editor |
| 807 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_EDITOR_MODIFIED, clCommandEvent); |
| 808 |
|
| 809 |
// Event: clCommandEvent |
| 810 |
// Sent when clang code completion encountered an error |
| 811 |
// use: event.GetString() to get the error message |
| 812 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_CLANG_CODE_COMPLETE_MESSAGE, clCommandEvent); |
| 813 |
|
| 814 |
// Event: clCommandEvent |
| 815 |
// CodeLite is going down. This event can not be vetoed |
| 816 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_GOING_DOWN, clCommandEvent); |
| 817 |
|
| 818 |
// Event: clCommandEvent |
| 819 |
// Use GetString() to get the new project name |
| 820 |
// Use GetOldName() to get the old project name |
| 821 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_PROJ_RENAMED, clCommandEvent); |
| 822 |
|
| 823 |
// An editor is being instantiated |
| 824 |
// codelite will send a clCommandEvent with the editor pointer |
| 825 |
// set in the event.GetEventObject() member |
| 826 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_EDITOR_INITIALIZING, clCommandEvent); |
| 827 |
|
| 828 |
// Event: clFileSystemEvent |
| 829 |
// Sent when the file system was modified externally (typically, this event is sent |
| 830 |
// after git pull, svn update etc) |
| 831 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_FILE_SYSTEM_UPDATED, clFileSystemEvent); |
| 832 |
|
| 833 |
// Event: clFileSystemEvent |
| 834 |
// List of files were modified by the replace-in-files operation (this event will only include |
| 835 |
// the files that were modified on the file system directly and have no open editor) |
| 836 |
// Use clFileSystemEvent::GetStrings to get list of modified files |
| 837 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_FILES_MODIFIED_REPLACE_IN_FILES, clFileSystemEvent); |
| 838 |
|
| 839 |
// Event: clCommandEvent |
| 840 |
// Sent when CodeLite requires to store the current workspace session |
| 841 |
// Call event.Skip(false) to instruct codelite to skip the default session-save |
| 842 |
// action (this is useful if the session is managed by an external plugin) |
| 843 |
// A good example for this is the PHP plugin which manages its own session |
| 844 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_SAVE_SESSION_NEEDED, clCommandEvent); |
| 845 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_SESSION_LOADING, clCommandEvent); |
| 846 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_SESSION_LOADED, clCommandEvent); |
| 847 |
|
| 848 |
// Event: clCommandEvent |
| 849 |
// User modified its environment variables |
| 850 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_ENVIRONMENT_VARIABLES_MODIFIED, clCommandEvent); |
| 851 |
|
| 852 |
// Event: clCommandEvent |
| 853 |
// user dropped a folder on the window |
| 854 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_DND_FOLDER_DROPPED, clCommandEvent); |
| 855 |
|
| 856 |
// Event: clCommandEvent |
| 857 |
// user dropped a file on the window |
| 858 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_DND_FILE_DROPPED, clCommandEvent); |
| 859 |
|
| 860 |
// Event: clCommandEvent |
| 861 |
// a codelite restart is required |
| 862 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_RESTART_CODELITE, clCommandEvent); |
| 863 |
|
| 864 |
// Event: clCommandEvent |
| 865 |
// Toggle workspace view tab. Use event.IsSelected() to test whether we should hide/show the tab |
| 866 |
// In anycase, you should not destroy the window, just hide it |
| 867 |
// The tab name is set in the event.GetString() |
| 868 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_SHOW_WORKSPACE_TAB, clCommandEvent); |
| 869 |
|
| 870 |
// Event: clCommandEvent |
| 871 |
// Toggle output view tab. Use event.IsSelected() to test whether we should hide/show the tab |
| 872 |
// In anycase, you should not destroy the window, just hide it |
| 873 |
// The tab name is set in the event.GetString() |
| 874 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_SHOW_OUTPUT_TAB, clCommandEvent); |
| 875 |
|
| 876 |
// Event: clCommandEvent |
| 877 |
// Sent by CodeLite when the active editor is _not_ an IEditor instance |
| 878 |
// but something else (probably provided by the plugins) |
| 879 |
// and CodeLite has no way of telling if the "Save" icon should be enabled or not |
| 880 |
// In case the window in the question is modified and owned by the plugin, the plugin should: |
| 881 |
// 1. Call event.SetAnswer(true) |
| 882 |
// 2. Call event.Skip(false); |
| 883 |
// |
| 884 |
// In case the window in the question is not owned by the plugin, the plugin should: |
| 885 |
// 1. Call event.Skip(); |
| 886 |
// |
| 887 |
// Use: event.GetClientData() to get the pointer to the window page |
| 888 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_PAGE_MODIFIED_UPDATE_UI, clCommandEvent); |
| 889 |
|
| 890 |
// Send a clEditorConfig event. This event is sent whenever an editor requires |
| 891 |
// to update its properties (tabs vs spaces, EOL style etc) |
| 892 |
// A plugin may capture the event and send back EditorConfig data by doing the following: |
| 893 |
// Call: |
| 894 |
// 1. event.Skip(false) |
| 895 |
// 2. Set the data using event.SetEditorConfig(...) method |
| 896 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_EDITOR_CONFIG_LOADING, clEditorConfigEvent); |
| 897 |
|
| 898 |
// Sent when PHP settings have been saved to the file system |
| 899 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_PHP_SETTINGS_CHANGED, clCommandEvent); |
| 900 |
|
| 901 |
// Goto Anything item was selected |
| 902 |
// Use: clCommandEvent::GetString to get the selected item |
| 903 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_GOTO_ANYTHING_SELECTED, clGotoEvent); |
| 904 |
|
| 905 |
// Goto Anything dialog is about to be shown |
| 906 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_GOTO_ANYTHING_SHOWING, clGotoEvent); |
| 907 |
|
| 908 |
// This event is sent to allow plugins and other modules to sort the entries before |
| 909 |
// they are displayed to the user |
| 910 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_GOTO_ANYTHING_SORT_NEEDED, clGotoEvent); |
| 911 |
|
| 912 |
// Build configuration for the workspace has changed |
| 913 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_WORKSPACE_BUILD_CONFIG_CHANGED, clCommandEvent); |
| 914 |
|
| 915 |
// The navigation bar is about show the scope drop down menu |
| 916 |
// Build the menu using clContextMenuEvent::GetMenu() |
| 917 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_NAVBAR_SCOPE_MENU_SHOWING, clContextMenuEvent); |
| 918 |
|
| 919 |
// User selected an entry from the scope drop down menu. GetString() contains the selected string |
| 920 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_NAVBAR_SCOPE_MENU_SELECTION_MADE, clCommandEvent); |
| 921 |
|
| 922 |
// A marker was added/removed from an editor. clCommandEvent::GetFileName() will return the relevant file name |
| 923 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_MARKER_CHANGED, clCommandEvent); |
| 924 |
|
| 925 |
// User click a button in the info bar |
| 926 |
// Use: event.GetInt() to get the button ID clicked |
| 927 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_INFO_BAR_BUTTON, clCommandEvent); |
| 928 |
|
| 929 |
// User clicked on the drop down menu of the build button |
| 930 |
// A plugin can change the content of the drop down menu and bind then to his custom actions |
| 931 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_BUILD_CUSTOM_TARGETS_MENU_SHOWING, clContextMenuEvent); |
| 932 |
|
| 933 |
// Source control plugin just pushed changes to the remote server |
| 934 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_SOURCE_CONTROL_PUSHED, clSourceControlEvent); |
| 935 |
|
| 936 |
// Source control plugin just commit locally (this event is only fired where commit->push) exists |
| 937 |
// SVN plugin does not fire this event |
| 938 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_SOURCE_CONTROL_COMMIT_LOCALLY, clSourceControlEvent); |
| 939 |
|
| 940 |
// Some files were reset/reverted their changes |
| 941 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_SOURCE_CONTROL_RESET_FILES, clSourceControlEvent); |
| 942 |
|
| 943 |
// Source control just updated the local files by issuing a pull command (or svn update etc) |
| 944 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_SOURCE_CONTROL_PULLED, clSourceControlEvent); |
| 945 |
|
| 946 |
//------------------------------------------------------------------------------------------ |
| 947 |
// LSP management events |
| 948 |
//------------------------------------------------------------------------------------------ |
| 949 |
|
| 950 |
// stop all LSPs |
| 951 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_LSP_STOP_ALL, clLanguageServerEvent); |
| 952 |
// start all LSPs |
| 953 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_LSP_START_ALL, clLanguageServerEvent); |
| 954 |
// restart all LSPs |
| 955 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_LSP_RESTART_ALL, clLanguageServerEvent); |
| 956 |
// stop a single LSP identified by event.GetLspName() |
| 957 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_LSP_STOP, clLanguageServerEvent); |
| 958 |
// start a single LSP identified by event.GetLspName() |
| 959 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_LSP_START, clLanguageServerEvent); |
| 960 |
// restart a single LSP identified by event.GetLspName() |
| 961 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_LSP_RESTART, clLanguageServerEvent); |
| 962 |
// delete a single LSP identified by event.GetLspName() |
| 963 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_LSP_DELETE, clLanguageServerEvent); |
| 964 |
// configure new LSP |
| 965 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_LSP_CONFIGURE, clLanguageServerEvent); |
| 966 |
// Enable server |
| 967 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_LSP_ENABLE_SERVER, clLanguageServerEvent); |
| 968 |
// Disable server |
| 969 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_LSP_DISABLE_SERVER, clLanguageServerEvent); |
| 970 |
// open LSPs configuration dialog. If event.GetLspName() is not empty, it will also select its page |
| 971 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_LSP_OPEN_SETTINGS_DLG, clLanguageServerEvent); |
| 972 |
|
| 973 |
// Request to download file with a given path |
| 974 |
// Input: event.GetFilename() |
| 975 |
// Output: event.SetFileName(..) <- contains the local file path |
| 976 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_DOWNLOAD_FILE, clCommandEvent); |
| 977 |
|
| 978 |
// Request to load a file into CodeLite |
| 979 |
// This event is usually sent when a the file name is not a local file |
| 980 |
// Input: event.GetFileName() |
| 981 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_OPEN_FILE, clCommandEvent); |
| 982 |
|
| 983 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_RECENT_WORKSPACE, clRecentWorkspaceEvent); |
| 984 |
|
| 985 |
// A file was modified externally |
| 986 |
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_CL, wxEVT_FILE_MODIFIED_EXTERNALLY, clFileSystemEvent); |
| 987 |
|
| 988 |
#endif // CODELITE_EVENTS_H |