Mercurial > octave
comparison libgui/graphics/EditControl.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 | bd9da634f00d |
comparison
equal
deleted
inserted
replaced
31638:474e184321d3 | 31639:ca7d58406f82 |
---|---|
31 class QLineEdit; | 31 class QLineEdit; |
32 class QWidget; | 32 class QWidget; |
33 | 33 |
34 namespace octave | 34 namespace octave |
35 { | 35 { |
36 class base_qobject; | |
37 class interpreter; | 36 class interpreter; |
38 } | 37 } |
39 | 38 |
40 namespace octave | 39 namespace octave |
41 { | 40 { |
45 class EditControl : public BaseControl | 44 class EditControl : public BaseControl |
46 { | 45 { |
47 Q_OBJECT | 46 Q_OBJECT |
48 | 47 |
49 public: | 48 public: |
50 EditControl (octave::base_qobject& oct_qobj, octave::interpreter& interp, | 49 EditControl (octave::interpreter& interp, |
51 const graphics_object& go, QLineEdit *edit); | 50 const graphics_object& go, QLineEdit *edit); |
52 | 51 |
53 EditControl (octave::base_qobject& oct_qobj, octave::interpreter& interp, | 52 EditControl (octave::interpreter& interp, |
54 const graphics_object& go, TextEdit *edit); | 53 const graphics_object& go, TextEdit *edit); |
55 | 54 |
56 ~EditControl (void); | 55 ~EditControl (void); |
57 | 56 |
58 static EditControl * | 57 static EditControl * |
59 create (octave::base_qobject& oct_qobj, octave::interpreter& interp, | 58 create (octave::interpreter& interp, |
60 const graphics_object& go); | 59 const graphics_object& go); |
61 | 60 |
62 protected: | 61 protected: |
63 void update (int pId); | 62 void update (int pId); |
64 | 63 |