Mercurial > octave
comparison libgui/src/set-path-dialog.h @ 31639:ca7d58406f82
eliminate unnecessary uses of octave_qobject in GUI classes
* BaseControl.cc, BaseControl.h, ButtonControl.cc, ButtonControl.h,
ButtonGroup.cc, ButtonGroup.h, Canvas.cc, Canvas.h,
CheckBoxControl.cc, CheckBoxControl.h, Container.cc, Container.h,
ContextMenu.cc, ContextMenu.h, EditControl.cc, EditControl.h,
Figure.cc, Figure.h, GLCanvas.cc, GLCanvas.h, ListBoxControl.cc,
ListBoxControl.h, Menu.cc, Menu.h, Object.cc, Object.h, Panel.cc,
Panel.h, PopupMenuControl.cc, PopupMenuControl.h,
PushButtonControl.cc, PushButtonControl.h, PushTool.cc, PushTool.h,
RadioButtonControl.cc, RadioButtonControl.h, SliderControl.cc,
SliderControl.h, Table.cc, Table.h, TextControl.cc, TextControl.h,
ToggleButtonControl.cc, ToggleButtonControl.h, ToggleTool.cc,
ToggleTool.h, ToolBar.cc, ToolBar.h, ToolBarButton.cc,
ToolBarButton.h, annotation-dialog.cc, annotation-dialog.h,
qt-graphics-toolkit.cc, qt-graphics-toolkit.h, command-widget.h,
community-news.cc, community-news.h, documentation-bookmarks.cc,
documentation-bookmarks.h, documentation.cc,
external-editor-interface.cc, external-editor-interface.h,
find-files-dialog.cc, find-files-dialog.h, graphics-init.cc,
graphics-init.h, interpreter-qobject.cc, file-editor.cc,
find-dialog.cc, find-dialog.h, main-window.cc, main-window.h,
news-reader.cc, news-reader.h, octave-qobject.cc, release-notes.cc,
resource-manager.cc, set-path-dialog.cc, set-path-dialog.h,
shortcut-manager.cc, shortcut-manager.h, welcome-wizard.cc,
welcome-wizard.h, workspace-model.cc:
Don't store references to octave_qobject in GUI classes where it is
no longer needed. Eliminate unnecessary octave_qobject constructor
arguments. Change all uses.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 04 Dec 2022 22:57:02 -0500 |
parents | 796f54d4ddbf |
children | 431f80aba37a |
comparison
equal
deleted
inserted
replaced
31638:474e184321d3 | 31639:ca7d58406f82 |
---|---|
39 class QVBoxLayout; | 39 class QVBoxLayout; |
40 class QHBoxLayout; | 40 class QHBoxLayout; |
41 | 41 |
42 namespace octave | 42 namespace octave |
43 { | 43 { |
44 class base_qobject; | |
45 | |
46 class set_path_dialog : public QDialog | 44 class set_path_dialog : public QDialog |
47 { | 45 { |
48 Q_OBJECT | 46 Q_OBJECT |
49 | 47 |
50 public: | 48 public: |
51 | 49 |
52 // You must call update_model to fully initialize the path displayed | 50 // You must call update_model to fully initialize the path displayed |
53 // in the dialog. That may only be done after the intepreter_event | 51 // in the dialog. That may only be done after the intepreter_event |
54 // signal connections are made to the Octave interpreter. | 52 // signal connections are made to the Octave interpreter. |
55 | 53 |
56 set_path_dialog (QWidget *parent, base_qobject& oct_qobj); | 54 set_path_dialog (QWidget *parent); |
57 | 55 |
58 virtual ~set_path_dialog (void) = default; | 56 virtual ~set_path_dialog (void) = default; |
59 | 57 |
60 void save_settings (void); | 58 void save_settings (void); |
61 | 59 |
94 | 92 |
95 private: | 93 private: |
96 | 94 |
97 void add_dir_common (bool subdirs); | 95 void add_dir_common (bool subdirs); |
98 | 96 |
99 base_qobject& m_octave_qobj; | |
100 | |
101 QLabel *m_info_label; | 97 QLabel *m_info_label; |
102 QPushButton *m_reload_button; | 98 QPushButton *m_reload_button; |
103 QPushButton *m_save_button; | 99 QPushButton *m_save_button; |
104 QPushButton *m_close_button; | 100 QPushButton *m_close_button; |
105 QPushButton *m_revert_button; | 101 QPushButton *m_revert_button; |