QElectroTech  0.8-dev
propertieseditordockwidget.h
Go to the documentation of this file.
1 /*
2  Copyright 2006-2020 The QElectroTech Team
3  This file is part of QElectroTech.
4 
5  QElectroTech is free software: you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation, either version 2 of the License, or
8  (at your option) any later version.
9 
10  QElectroTech is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
17 */
18 #ifndef SELECTIONPROPERTIESDOCKWIDGET_H
19 #define SELECTIONPROPERTIESDOCKWIDGET_H
20 
21 #include <QDockWidget>
22 
24 
25 namespace Ui {
27 }
28 
29 class PropertiesEditorDockWidget : public QDockWidget
30 {
31  Q_OBJECT
32 
33  public:
34  explicit PropertiesEditorDockWidget(QWidget *parent = nullptr);
35  ~PropertiesEditorDockWidget() override;
36 
37  virtual void clear();
38  virtual void apply();
39  virtual void reset();
40  bool addEditor (PropertiesEditorWidget *editor, int index = 0);
41  QList<PropertiesEditorWidget *> editors() const;
42  bool removeEditor (PropertiesEditorWidget *editor);
43 
44  protected:
45  QList <PropertiesEditorWidget *> m_editor_list;
46 
47  private:
48  Ui::PropertiesEditorDockWidget *ui;
49 };
50 
51 #endif // SELECTIONPROPERTIESDOCKWIDGET_H
propertieseditordockwidget.h
PropertiesEditorDockWidget::reset
virtual void reset()
PropertiesEditorDockWidget::reset Call the reset method for each editor present in this widget.
Definition: propertieseditordockwidget.cpp:75
PropertiesEditorWidget
The PropertiesEditorWidget class This class extend QWidget method for have common way to edit propert...
Definition: propertieseditorwidget.h:31
PropertiesEditorDockWidget
Definition: propertieseditordockwidget.h:30
PropertiesEditorDockWidget::apply
virtual void apply()
PropertiesEditorDockWidget::apply Call the apply method for each editor present in this dock.
Definition: propertieseditordockwidget.cpp:65
PropertiesEditorDockWidget::~PropertiesEditorDockWidget
~PropertiesEditorDockWidget() override
PropertiesEditorDockWidget::~PropertiesEditorDockWidget Destructor.
Definition: propertieseditordockwidget.cpp:38
PropertiesEditorDockWidget::PropertiesEditorDockWidget
PropertiesEditorDockWidget(QWidget *parent=nullptr)
PropertiesEditorDockWidget::PropertiesEditorDockWidget Constructor.
Definition: propertieseditordockwidget.cpp:27
PropertiesEditorWidget::reset
virtual void reset()
Definition: propertieseditorwidget.h:37
PropertiesEditorWidget::apply
virtual void apply()
Definition: propertieseditorwidget.h:36
PropertiesEditorDockWidget::m_editor_list
QList< PropertiesEditorWidget * > m_editor_list
Definition: propertieseditordockwidget.h:45
propertieseditorwidget.h
PropertiesEditorDockWidget::addEditor
bool addEditor(PropertiesEditorWidget *editor, int index=0)
PropertiesEditorDockWidget::addEditor Add an editor in this dock at index in the main vertical layout...
Definition: propertieseditordockwidget.cpp:91
Ui
Definition: autonumberingdockwidget.h:25
PropertiesEditorDockWidget::editors
QList< PropertiesEditorWidget * > editors() const
PropertiesEditorDockWidget::editors.
Definition: propertieseditordockwidget.cpp:106
PropertiesEditorDockWidget::ui
Ui::PropertiesEditorDockWidget * ui
Definition: propertieseditordockwidget.h:48
PropertiesEditorDockWidget::removeEditor
bool removeEditor(PropertiesEditorWidget *editor)
PropertiesEditorDockWidget::removeEditor Remove editor from this dock. The editor wasn't delete a the...
Definition: propertieseditordockwidget.cpp:118
PropertiesEditorDockWidget::clear
virtual void clear()
PropertiesEditorDockWidget::clear Remove all editor present in this dock and delete it....
Definition: propertieseditordockwidget.cpp:49