QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
propertieseditordockwidget.h
Go to the documentation of this file.
1/*
2 Copyright 2006-2024 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
25namespace Ui {
27}
28
29class PropertiesEditorDockWidget : public QDockWidget
30{
31 Q_OBJECT
32
33 public:
34 explicit PropertiesEditorDockWidget(QWidget *parent = nullptr);
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;
43
44 protected:
45 QList <PropertiesEditorWidget *> m_editor_list;
46
47 private:
48 Ui::PropertiesEditorDockWidget *ui;
49};
50
51#endif // SELECTIONPROPERTIESDOCKWIDGET_H
Definition propertieseditordockwidget.h:30
QList< PropertiesEditorWidget * > editors() const
PropertiesEditorDockWidget::editors.
Definition propertieseditordockwidget.cpp:106
Ui::PropertiesEditorDockWidget * ui
Definition propertieseditordockwidget.h:48
bool removeEditor(PropertiesEditorWidget *editor)
PropertiesEditorDockWidget::removeEditor Remove editor from this dock. The editor wasn't delete a the...
Definition propertieseditordockwidget.cpp:119
QList< PropertiesEditorWidget * > m_editor_list
Definition propertieseditordockwidget.h:45
virtual void clear()
PropertiesEditorDockWidget::clear Remove all editor present in this dock and delete it....
Definition propertieseditordockwidget.cpp:49
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
virtual void apply()
PropertiesEditorDockWidget::apply Call the apply method for each editor present in this dock.
Definition propertieseditordockwidget.cpp:65
virtual void reset()
PropertiesEditorDockWidget::reset Call the reset method for each editor present in this widget.
Definition propertieseditordockwidget.cpp:75
~PropertiesEditorDockWidget() override
PropertiesEditorDockWidget::~PropertiesEditorDockWidget Destructor.
Definition propertieseditordockwidget.cpp:38
The PropertiesEditorWidget class This class extend QWidget method to have a common way to edit proper...
Definition propertieseditorwidget.h:31
Definition autonumberingdockwidget.h:26