QElectroTech  0.70
propertieseditordockwidget.h
Go to the documentation of this file.
1 /*
2  Copyright 2006-2019 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() override
PropertiesEditorDockWidget::~PropertiesEditorDockWidget Destructor.
PropertiesEditorDockWidget(QWidget *parent=nullptr)
PropertiesEditorDockWidget::PropertiesEditorDockWidget Constructor.
The PropertiesEditorWidget class This class extend QWidget method for have common way to edit propert...
bool removeEditor(PropertiesEditorWidget *editor)
PropertiesEditorDockWidget::removeEditor Remove from this dock. The editor wasn&#39;t delete a the end o...
virtual void reset()
PropertiesEditorDockWidget::reset Call the reset method for each editor present in this widget...
Ui::PropertiesEditorDockWidget * ui
virtual void apply()
PropertiesEditorDockWidget::apply Call the apply method for each editor present in this dock...
bool addEditor(PropertiesEditorWidget *editor, int index=0)
PropertiesEditorDockWidget::addEditor Add an in this dock at in the main vertical layout (note the ...
QList< PropertiesEditorWidget * > m_editor_list
QList< PropertiesEditorWidget * > editors() const
PropertiesEditorDockWidget::editors.
virtual void clear()
PropertiesEditorDockWidget::clear Remove all editor present in this dock and delete it...