comparison libgui/src/m-editor/file-editor-interface.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 98e75f952a36
children 710e700cdd7f
comparison
equal deleted inserted replaced
21157:94fc5f13d51b 21158:65827e9cccb8
54 virtual void 54 virtual void
55 handle_delete_debugger_pointer_request (const QString& file, int line) = 0; 55 handle_delete_debugger_pointer_request (const QString& file, int line) = 0;
56 56
57 virtual void 57 virtual void
58 handle_update_breakpoint_marker_request (bool insert, const QString& file, 58 handle_update_breakpoint_marker_request (bool insert, const QString& file,
59 int line) = 0; 59 int line, const QString& cond) = 0;
60 60
61 virtual void handle_edit_file_request (const QString& file) = 0; 61 virtual void handle_edit_file_request (const QString& file) = 0;
62 62
63 virtual bool check_closing (void) = 0; 63 virtual bool check_closing (void) = 0;
64 64
74 virtual void request_open_file (const QString& openFileName, 74 virtual void request_open_file (const QString& openFileName,
75 const QString& encoding = QString (), 75 const QString& encoding = QString (),
76 int line = -1, 76 int line = -1,
77 bool debug_pointer = false, 77 bool debug_pointer = false,
78 bool breakpoint_marker = false, 78 bool breakpoint_marker = false,
79 bool insert = true) = 0; 79 bool insert = true,
80 const QString& cond = "") = 0;
80 //signals: 81 //signals:
81 82
82 //protected: 83 //protected:
83 84
84 //protected slots: 85 //protected slots: