QElectroTech
0.200.1-dev
Loading...
Searching...
No Matches
diagrampropertieseditordockwidget.h
Go to the documentation of this file.
1
/*
2
Copyright 2006-2026 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)
36
{
return
PropertiesEditorDockWidget::addEditor
(editor,index); }
37
bool
removeEditor
(
PropertiesEditorWidget
*editor)
38
{
return
PropertiesEditorDockWidget::removeEditor
(editor); }
39
40
private
slots:
41
void
selectionChanged
();
42
void
diagramWasDeleted
();
43
44
private
:
45
Diagram
*
m_diagram
;
46
int
m_edited_qgi_type
;
47
};
48
49
#endif
// DIAGRAMPROPERTIESEDITORDOCKWIDGET_H
Diagram
The Diagram class This class represents an electric diagram. It manages its various child elements,...
Definition
diagram.h:54
DiagramPropertiesEditorDockWidget::m_edited_qgi_type
int m_edited_qgi_type
Definition
diagrampropertieseditordockwidget.h:46
DiagramPropertiesEditorDockWidget::diagramWasDeleted
void diagramWasDeleted()
DiagramPropertiesEditorDockWidget::diagramWasDeleted Remove current editor and set m_diagram to nullp...
Definition
diagrampropertieseditordockwidget.cpp:101
DiagramPropertiesEditorDockWidget::removeEditor
bool removeEditor(PropertiesEditorWidget *editor)
Definition
diagrampropertieseditordockwidget.h:37
DiagramPropertiesEditorDockWidget::addEditor
bool addEditor(PropertiesEditorWidget *editor, int index=0)
Definition
diagrampropertieseditordockwidget.h:35
DiagramPropertiesEditorDockWidget::selectionChanged
void selectionChanged()
DiagramPropertiesEditorDockWidget::selectionChanged The current selection of diagram was changed....
Definition
diagrampropertieseditordockwidget.cpp:72
DiagramPropertiesEditorDockWidget::m_diagram
Diagram * m_diagram
Definition
diagrampropertieseditordockwidget.h:45
DiagramPropertiesEditorDockWidget::DiagramPropertiesEditorDockWidget
DiagramPropertiesEditorDockWidget(QWidget *parent=nullptr)
DiagramPropertiesEditorDockWidget::DiagramPropertiesEditorDockWidget Constructor.
Definition
diagrampropertieseditordockwidget.cpp:29
DiagramPropertiesEditorDockWidget::setDiagram
void setDiagram(Diagram *diagram)
DiagramPropertiesEditorDockWidget::setDiagram Set the diagram to edit the selection....
Definition
diagrampropertieseditordockwidget.cpp:42
PropertiesEditorDockWidget::PropertiesEditorDockWidget
PropertiesEditorDockWidget(QWidget *parent=nullptr)
PropertiesEditorDockWidget::PropertiesEditorDockWidget Constructor.
Definition
propertieseditordockwidget.cpp:27
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::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
PropertiesEditorWidget
The PropertiesEditorWidget class This class extend QWidget method to have a common way to edit proper...
Definition
propertieseditorwidget.h:31
propertieseditordockwidget.h
sources
ui
diagrampropertieseditordockwidget.h
Generated by
1.15.0