Mercurial > octave
comparison libgui/src/find-files-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 |
---|---|
37 class QTableView; | 37 class QTableView; |
38 class QTimer; | 38 class QTimer; |
39 | 39 |
40 namespace octave | 40 namespace octave |
41 { | 41 { |
42 class base_qobject; | |
43 | |
44 class find_files_dialog : public QDialog | 42 class find_files_dialog : public QDialog |
45 { | 43 { |
46 Q_OBJECT | 44 Q_OBJECT |
47 | 45 |
48 public: | 46 public: |
49 | 47 |
50 find_files_dialog (QWidget *parent, base_qobject& oct_qobj); | 48 find_files_dialog (QWidget *parent); |
51 | 49 |
52 virtual ~find_files_dialog (void); | 50 virtual ~find_files_dialog (void); |
53 | 51 |
54 void save_settings (void); | 52 void save_settings (void); |
55 | 53 |
73 | 71 |
74 private: | 72 private: |
75 | 73 |
76 bool is_match (const QFileInfo& info); | 74 bool is_match (const QFileInfo& info); |
77 | 75 |
78 base_qobject& m_octave_qobj; | |
79 | |
80 QLineEdit *m_start_dir_edit; | 76 QLineEdit *m_start_dir_edit; |
81 QLineEdit *m_file_name_edit; | 77 QLineEdit *m_file_name_edit; |
82 QPushButton *m_stop_button; | 78 QPushButton *m_stop_button; |
83 QPushButton *m_find_button; | 79 QPushButton *m_find_button; |
84 QPushButton *m_close_button; | 80 QPushButton *m_close_button; |