QElectroTech  0.8-dev
diagrampropertieseditordockwidget.h
Go to the documentation of this file.
1 /*
2  Copyright 2006-2020 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 
22 
23 class 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
propertieseditordockwidget.h
PropertiesEditorWidget
The PropertiesEditorWidget class This class extend QWidget method for have common way to edit propert...
Definition: propertieseditorwidget.h:31
diagrampropertieseditordockwidget.h
DiagramPropertiesEditorDockWidget::selectionChanged
void selectionChanged()
DiagramPropertiesEditorDockWidget::selectionChanged The current selection of diagram was changed....
Definition: diagrampropertieseditordockwidget.cpp:71
PropertiesEditorDockWidget
Definition: propertieseditordockwidget.h:30
DiagramPropertiesEditorDockWidget
Definition: diagrampropertieseditordockwidget.h:26
DiagramPropertiesEditorDockWidget::m_edited_qgi_type
int m_edited_qgi_type
Definition: diagrampropertieseditordockwidget.h:46
Diagram
The Diagram class This class represents an electric diagram. It manages its various child elements,...
Definition: diagram.h:56
propertieseditorwidget.h
DiagramPropertiesEditorDockWidget::setDiagram
void setDiagram(Diagram *diagram)
DiagramPropertiesEditorDockWidget::setDiagram Set the diagram to edit the selection....
Definition: diagrampropertieseditordockwidget.cpp:41
DiagramPropertiesEditorDockWidget::DiagramPropertiesEditorDockWidget
DiagramPropertiesEditorDockWidget(QWidget *parent=nullptr)
DiagramPropertiesEditorDockWidget::DiagramPropertiesEditorDockWidget Constructor.
Definition: diagrampropertieseditordockwidget.cpp:28
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
DiagramPropertiesEditorDockWidget::addEditor
bool addEditor(PropertiesEditorWidget *editor, int index=0)
Definition: diagrampropertieseditordockwidget.h:35
DiagramPropertiesEditorDockWidget::diagramWasDeleted
void diagramWasDeleted()
DiagramPropertiesEditorDockWidget::diagramWasDeleted Remove current editor and set m_diagram to nullp...
Definition: diagrampropertieseditordockwidget.cpp:97
propertieseditorfactory.h
PropertiesEditorDockWidget::editors
QList< PropertiesEditorWidget * > editors() const
PropertiesEditorDockWidget::editors.
Definition: propertieseditordockwidget.cpp:106
DiagramPropertiesEditorDockWidget::m_diagram
Diagram * m_diagram
Definition: diagrampropertieseditordockwidget.h:45
PropertiesEditorDockWidget::removeEditor
bool removeEditor(PropertiesEditorWidget *editor)
PropertiesEditorDockWidget::removeEditor Remove editor from this dock. The editor wasn't delete a the...
Definition: propertieseditordockwidget.cpp:118
PropertiesEditorFactory::propertiesEditor
PropertiesEditorWidget * propertiesEditor(QAbstractItemModel *model, PropertiesEditorWidget *editor=nullptr, QWidget *parent=nullptr)
PropertiesEditorFactory::propertiesEditor.
Definition: propertieseditorfactory.cpp:47
DiagramPropertiesEditorDockWidget::removeEditor
bool removeEditor(PropertiesEditorWidget *editor)
Definition: diagrampropertieseditordockwidget.h:37
PropertiesEditorDockWidget::clear
virtual void clear()
PropertiesEditorDockWidget::clear Remove all editor present in this dock and delete it....
Definition: propertieseditordockwidget.cpp:49
diagram.h