Mercurial > octave
comparison libgui/src/octave-cmd.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 | f7d1050b9b53 |
comparison
equal
deleted
inserted
replaced
21147:95feb42d7a97 | 21148:e8c3590da9ff |
---|---|
64 | 64 |
65 class octave_cmd_eval : public octave_cmd | 65 class octave_cmd_eval : public octave_cmd |
66 { | 66 { |
67 public: | 67 public: |
68 | 68 |
69 octave_cmd_eval (const QFileInfo& info) : octave_cmd () { _info = info; }; | 69 octave_cmd_eval (const QFileInfo& info, |
70 octave_qt_link* octave_qt_link) : octave_cmd () | |
71 { _info = info; | |
72 _octave_qt_link = octave_qt_link; | |
73 }; | |
74 | |
70 void execute (); | 75 void execute (); |
71 | 76 |
72 protected: | 77 protected: |
73 | 78 |
74 QFileInfo _info; | 79 QFileInfo _info; |
80 octave_qt_link *_octave_qt_link; | |
75 }; | 81 }; |
76 | 82 |
77 | 83 |
78 // --------------------------------------------------------------------- | 84 // --------------------------------------------------------------------- |
79 // class octave_cmd_debug | 85 // class octave_cmd_debug |