QElectroTech
0.100.0-dev
Loading...
Searching...
No Matches
sources
PropertiesEditor
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
23
class
PropertiesEditorWidget
;
24
25
namespace
Ui
{
26
class
PropertiesEditorDockWidget
;
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
Definition
propertieseditordockwidget.h:30
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:119
PropertiesEditorDockWidget::m_editor_list
QList< PropertiesEditorWidget * > m_editor_list
Definition
propertieseditordockwidget.h:45
PropertiesEditorDockWidget::clear
virtual void clear()
PropertiesEditorDockWidget::clear Remove all editor present in this dock and delete it....
Definition
propertieseditordockwidget.cpp:49
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
PropertiesEditorDockWidget::apply
virtual void apply()
PropertiesEditorDockWidget::apply Call the apply method for each editor present in this dock.
Definition
propertieseditordockwidget.cpp:65
PropertiesEditorDockWidget::reset
virtual void reset()
PropertiesEditorDockWidget::reset Call the reset method for each editor present in this widget.
Definition
propertieseditordockwidget.cpp:75
PropertiesEditorDockWidget::~PropertiesEditorDockWidget
~PropertiesEditorDockWidget() override
PropertiesEditorDockWidget::~PropertiesEditorDockWidget Destructor.
Definition
propertieseditordockwidget.cpp:38
PropertiesEditorWidget
The PropertiesEditorWidget class This class extend QWidget method to have a common way to edit proper...
Definition
propertieseditorwidget.h:31
Ui
Definition
autonumberingdockwidget.h:26
Generated by
1.9.8