QElectroTech
0.70
sources
ui
diagrampropertieseditordockwidget.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 DIAGRAMPROPERTIESEDITORDOCKWIDGET_H
19
#define DIAGRAMPROPERTIESEDITORDOCKWIDGET_H
20
21
#include "
PropertiesEditor/propertieseditordockwidget.h
"
22
23
class
Diagram
;
24
25
class
DiagramPropertiesEditorDockWidget
:
public
PropertiesEditorDockWidget
26
{
27
Q_OBJECT
28
29
public
:
30
DiagramPropertiesEditorDockWidget
(QWidget *parent =
nullptr
);
31
32
void
setDiagram
(
Diagram
*diagram);
33
34
private
:
//Make this method private because only this class manage the editor widget.
35
bool
addEditor
(
PropertiesEditorWidget
*editor,
int
index = 0) {
return
PropertiesEditorDockWidget::addEditor
(editor, index); }
36
bool
removeEditor
(
PropertiesEditorWidget
*editor) {
return
PropertiesEditorDockWidget::removeEditor
(editor); }
37
38
private
slots:
39
void
selectionChanged
();
40
void
diagramWasDeleted
();
41
42
private
:
43
Diagram
*
m_diagram
;
44
int
m_edited_qgi_type
;
45
};
46
47
#endif // DIAGRAMPROPERTIESEDITORDOCKWIDGET_H
DiagramPropertiesEditorDockWidget::diagramWasDeleted
void diagramWasDeleted()
DiagramPropertiesEditorDockWidget::diagramWasDeleted Remove current editor and set m_diagram to nullp...
Definition:
diagrampropertieseditordockwidget.cpp:247
DiagramPropertiesEditorDockWidget::selectionChanged
void selectionChanged()
DiagramPropertiesEditorDockWidget::selectionChanged The current selection of diagram was changed...
Definition:
diagrampropertieseditordockwidget.cpp:80
DiagramPropertiesEditorDockWidget::addEditor
bool addEditor(PropertiesEditorWidget *editor, int index=0)
Definition:
diagrampropertieseditordockwidget.h:35
DiagramPropertiesEditorDockWidget::DiagramPropertiesEditorDockWidget
DiagramPropertiesEditorDockWidget(QWidget *parent=nullptr)
DiagramPropertiesEditorDockWidget::DiagramPropertiesEditorDockWidget Constructor. ...
Definition:
diagrampropertieseditordockwidget.cpp:36
DiagramPropertiesEditorDockWidget::removeEditor
bool removeEditor(PropertiesEditorWidget *editor)
Definition:
diagrampropertieseditordockwidget.h:36
propertieseditordockwidget.h
DiagramPropertiesEditorDockWidget::m_diagram
Diagram * m_diagram
Definition:
diagrampropertieseditordockwidget.h:43
PropertiesEditorWidget
The PropertiesEditorWidget class This class extend QWidget method for have common way to edit propert...
Definition:
propertieseditorwidget.h:30
DiagramPropertiesEditorDockWidget::setDiagram
void setDiagram(Diagram *diagram)
DiagramPropertiesEditorDockWidget::setDiagram Set the diagram to edit the selection. Connect the diagram signal selectionChanged() to this slot selectionChanged(); If diagram = nullptr, we just disconnect all signal and remove editor.
Definition:
diagrampropertieseditordockwidget.cpp:50
PropertiesEditorDockWidget::removeEditor
bool removeEditor(PropertiesEditorWidget *editor)
PropertiesEditorDockWidget::removeEditor Remove from this dock. The editor wasn't delete a the end o...
Definition:
propertieseditordockwidget.cpp:115
PropertiesEditorDockWidget
Definition:
propertieseditordockwidget.h:29
Diagram
Definition:
diagram.h:49
PropertiesEditorDockWidget::addEditor
bool addEditor(PropertiesEditorWidget *editor, int index=0)
PropertiesEditorDockWidget::addEditor Add an in this dock at in the main vertical layout (note the ...
Definition:
propertieseditordockwidget.cpp:90
DiagramPropertiesEditorDockWidget
Definition:
diagrampropertieseditordockwidget.h:25
DiagramPropertiesEditorDockWidget::m_edited_qgi_type
int m_edited_qgi_type
Definition:
diagrampropertieseditordockwidget.h:44
Generated by
1.8.15