Mercurial > jwe > octave
comparison libinterp/corefcn/octave-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 | 94fc5f13d51b |
children | 1473547f50f5 |
comparison
equal
deleted
inserted
replaced
21157:94fc5f13d51b | 21158:65827e9cccb8 |
---|---|
305 static void | 305 static void |
306 update_breakpoint (bool insert, const std::string& file, int line, | 306 update_breakpoint (bool insert, const std::string& file, int line, |
307 const std::string& cond = "") | 307 const std::string& cond = "") |
308 { | 308 { |
309 if (enabled ()) | 309 if (enabled ()) |
310 instance->do_update_breakpoint (insert, file, line); | 310 instance->do_update_breakpoint (insert, file, line, cond); |
311 } | 311 } |
312 | 312 |
313 static void connect_link (octave_link *); | 313 static void connect_link (octave_link *); |
314 | 314 |
315 static void set_default_prompts (std::string& ps1, std::string& ps2, | 315 static void set_default_prompts (std::string& ps1, std::string& ps2, |
465 do_execute_in_debugger_event (const std::string& file, int line) = 0; | 465 do_execute_in_debugger_event (const std::string& file, int line) = 0; |
466 | 466 |
467 virtual void do_exit_debugger_event (void) = 0; | 467 virtual void do_exit_debugger_event (void) = 0; |
468 | 468 |
469 virtual void do_update_breakpoint (bool insert, | 469 virtual void do_update_breakpoint (bool insert, |
470 const std::string& file, int line) = 0; | 470 const std::string& file, int line, |
471 const std::string& cond) = 0; | |
471 | 472 |
472 virtual void do_set_default_prompts (std::string& ps1, std::string& ps2, | 473 virtual void do_set_default_prompts (std::string& ps1, std::string& ps2, |
473 std::string& ps4) = 0; | 474 std::string& ps4) = 0; |
474 | 475 |
475 virtual void do_show_preferences (void) = 0; | 476 virtual void do_show_preferences (void) = 0; |