comparison libgui/src/octave-qt-link.h @ 21158:65827e9cccb8

Gui support for enhancement of dbstop. * octave-qscintilla.cc (contextMenuEvent): Capture right-click in the left margins to show a context menu for "dbstop if...". * octave-qscintilla.{cc,h} (contextmenu_break_condition): new function * file-editor-interface.h: pass condition to handle_update_breakpoint_marker_request * file-editor-tab.{cc,h}: (file_editor_tab, bp_info, handle_request_add_breakpoint, next_breakpoint, previous_breakpoint, do_breakpoint_marker, add_breakpoint_callback): Allow conditional breakpoint markers * file-editor-tab.cc (handle_context_menu_break_condition): new function * file-editor.{cc,h} (request_open_file, add_file_editor_tab, handle_delete_debugger_pointer_request): pass bp conditions. * marker.{cc,h} (marker, construct, handle_report_editor_linenr): pass breakpoint conditions * main-window.{cc,h} (handle_update_breakpoint_marker_request): pass breakpoint condition. * octave-link.h (update_breakpoint): pass breakpoint condition. * octave-qt-link.{cc,h} (do_update_breakpoint): pass breakpoint condition.
author Lachlan Andrew <lachlanbis@gmail.com>
date Sat, 30 Jan 2016 10:13:34 +1100
parents e8c3590da9ff
children 710e700cdd7f
comparison
equal deleted inserted replaced
21157:94fc5f13d51b 21158:65827e9cccb8
122 122
123 void do_enter_debugger_event (const std::string& file, int line); 123 void do_enter_debugger_event (const std::string& file, int line);
124 void do_execute_in_debugger_event (const std::string& file, int line); 124 void do_execute_in_debugger_event (const std::string& file, int line);
125 void do_exit_debugger_event (void); 125 void do_exit_debugger_event (void);
126 126
127 void do_update_breakpoint (bool insert, const std::string& file, int line); 127 void do_update_breakpoint (bool insert, const std::string& file, int line,
128 const std::string& cond);
128 129
129 void do_set_default_prompts (std::string& ps1, std::string& ps2, 130 void do_set_default_prompts (std::string& ps1, std::string& ps2,
130 std::string& ps4); 131 std::string& ps4);
131 132
132 bool file_in_path (const std::string& file, const std::string& dir); 133 bool file_in_path (const std::string& file, const std::string& dir);
189 190
190 void enter_debugger_signal (void); 191 void enter_debugger_signal (void);
191 void exit_debugger_signal (void); 192 void exit_debugger_signal (void);
192 193
193 void update_breakpoint_marker_signal (bool insert, const QString& file, 194 void update_breakpoint_marker_signal (bool insert, const QString& file,
194 int line); 195 int line, const QString& cond);
195 196
196 void insert_debugger_pointer_signal (const QString&, int); 197 void insert_debugger_pointer_signal (const QString&, int);
197 void delete_debugger_pointer_signal (const QString&, int); 198 void delete_debugger_pointer_signal (const QString&, int);
198 199
199 void show_preferences_signal (void); 200 void show_preferences_signal (void);