2015-05-02 22:25:01 +00:00
|
|
|
/*
|
2020-06-15 17:42:37 +02:00
|
|
|
Copyright 2006-2020 The QElectroTech Team
|
2015-05-02 22:25:01 +00:00
|
|
|
This file is part of QElectroTech.
|
|
|
|
|
|
|
|
QElectroTech is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
QElectroTech is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
2015-05-07 22:15:00 +00:00
|
|
|
#ifndef DIAGRAMPROPERTIESEDITORDOCKWIDGET_H
|
|
|
|
#define DIAGRAMPROPERTIESEDITORDOCKWIDGET_H
|
2015-05-02 22:25:01 +00:00
|
|
|
|
2015-05-07 22:15:00 +00:00
|
|
|
#include "PropertiesEditor/propertieseditordockwidget.h"
|
2015-05-02 22:25:01 +00:00
|
|
|
|
2015-05-07 22:15:00 +00:00
|
|
|
class Diagram;
|
2015-05-02 22:25:01 +00:00
|
|
|
|
2015-05-07 22:15:00 +00:00
|
|
|
class DiagramPropertiesEditorDockWidget : public PropertiesEditorDockWidget
|
2015-05-02 22:25:01 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
2015-05-07 22:15:00 +00:00
|
|
|
|
2015-05-02 22:25:01 +00:00
|
|
|
public:
|
2015-05-07 22:15:00 +00:00
|
|
|
DiagramPropertiesEditorDockWidget(QWidget *parent = nullptr);
|
|
|
|
|
|
|
|
void setDiagram(Diagram *diagram);
|
|
|
|
|
2015-06-19 08:12:17 +00:00
|
|
|
private: //Make this method private because only this class manage the editor widget.
|
|
|
|
bool addEditor(PropertiesEditorWidget *editor, int index = 0) { return PropertiesEditorDockWidget::addEditor(editor, index); }
|
|
|
|
bool removeEditor(PropertiesEditorWidget *editor) { return PropertiesEditorDockWidget::removeEditor(editor); }
|
|
|
|
|
2015-05-07 22:15:00 +00:00
|
|
|
private slots:
|
|
|
|
void selectionChanged();
|
|
|
|
void diagramWasDeleted();
|
2015-05-02 22:25:01 +00:00
|
|
|
|
2015-05-07 22:15:00 +00:00
|
|
|
private:
|
|
|
|
Diagram *m_diagram;
|
2015-06-19 08:12:17 +00:00
|
|
|
int m_edited_qgi_type;
|
2015-05-02 22:25:01 +00:00
|
|
|
};
|
|
|
|
|
2015-05-07 22:15:00 +00:00
|
|
|
#endif // DIAGRAMPROPERTIESEDITORDOCKWIDGET_H
|