Mercurial > octave
comparison libgui/src/main-window.h @ 21148:e8c3590da9ff
update directory in gui after add-path/change-dir dialog
* file-editor-tab.cc (file_editor_tab): get main window from editor which is
given as argument;
(add_breakpoint_callback, remove_breakpoint_callback,
remove_all_breakpoints_callback): call file_in_path via the instance of
octave_qt_link since it is not static anymore
* file-editor-tab.h: include main-window.h, contructor gets editor widget as
first argument, store the main window widget in a class variable
* file-editor.cc (request_new_file, request_open_file): pass own pointer
to a new file editor tab
* main-window.cc (run_file_callback): pass the instance of octave_qt_link
to the octave cmd
* main-window.h: new function returning the instance of octave_qt_link
* octave-cmd.cc (execute): call file_in_path via instance (not static)
* octave-cmd.h: instance of octave_qt_link is given as argument and stored
in a class variable
* octave-qt-link.cc (file_in_path): update gui directory when user wants to
change the directory
* octave-qt-link.h: file_in_path is normal memebr, not static anymore
author | Torsten <ttl@justmail.de> |
---|---|
date | Fri, 29 Jan 2016 06:24:34 +0100 |
parents | 4a7d9c335402 |
children | 65827e9cccb8 |
comparison
equal
deleted
inserted
replaced
21147:95feb42d7a97 | 21148:e8c3590da9ff |
---|---|
79 ~main_window (void); | 79 ~main_window (void); |
80 | 80 |
81 bool command_window_has_focus (void) const; | 81 bool command_window_has_focus (void) const; |
82 | 82 |
83 void focus_command_window (void); | 83 void focus_command_window (void); |
84 | |
85 octave_qt_link* get_octave_qt_link () { return _octave_qt_link; }; | |
84 | 86 |
85 signals: | 87 signals: |
86 | 88 |
87 void active_dock_changed (octave_dock_widget *, octave_dock_widget *); | 89 void active_dock_changed (octave_dock_widget *, octave_dock_widget *); |
88 void editor_focus_changed (bool); | 90 void editor_focus_changed (bool); |