QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
diagrampropertieseditordockwidget.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 DIAGRAMPROPERTIESEDITORDOCKWIDGET_H
19#define DIAGRAMPROPERTIESEDITORDOCKWIDGET_H
20
21#include "../PropertiesEditor/propertieseditordockwidget.h"
22
23class Diagram;
24
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); }
39
40 private slots:
41 void selectionChanged();
42 void diagramWasDeleted();
43
44 private:
47};
48
49#endif // DIAGRAMPROPERTIESEDITORDOCKWIDGET_H
The Diagram class This class represents an electric diagram. It manages its various child elements,...
Definition diagram.h:56
Definition diagrampropertieseditordockwidget.h:26
int m_edited_qgi_type
Definition diagrampropertieseditordockwidget.h:46
void diagramWasDeleted()
DiagramPropertiesEditorDockWidget::diagramWasDeleted Remove current editor and set m_diagram to nullp...
Definition diagrampropertieseditordockwidget.cpp:105
bool removeEditor(PropertiesEditorWidget *editor)
Definition diagrampropertieseditordockwidget.h:37
bool addEditor(PropertiesEditorWidget *editor, int index=0)
Definition diagrampropertieseditordockwidget.h:35
void selectionChanged()
DiagramPropertiesEditorDockWidget::selectionChanged The current selection of diagram was changed....
Definition diagrampropertieseditordockwidget.cpp:76
Diagram * m_diagram
Definition diagrampropertieseditordockwidget.h:45
void setDiagram(Diagram *diagram)
DiagramPropertiesEditorDockWidget::setDiagram Set the diagram to edit the selection....
Definition diagrampropertieseditordockwidget.cpp:42
Definition propertieseditordockwidget.h:30
bool removeEditor(PropertiesEditorWidget *editor)
PropertiesEditorDockWidget::removeEditor Remove editor from this dock. The editor wasn't delete a the...
Definition propertieseditordockwidget.cpp:119
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
The PropertiesEditorWidget class This class extend QWidget method to have a common way to edit proper...
Definition propertieseditorwidget.h:31