QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
ellipseeditor.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 ELLIPSEEDITOR_H
19#define ELLIPSEEDITOR_H
20
21#include "../elementitemeditor.h"
22
23namespace Ui {
24 class EllipseEditor;
25}
26
27class PartEllipse;
28class StyleEditor;
29
35{
36 Q_OBJECT
37
38 public:
39 explicit EllipseEditor (QETElementEditor *editor, PartEllipse *part = nullptr, QWidget *parent = nullptr);
40 ~EllipseEditor() override;
41
42 bool setPart(CustomElementPart *part) override;
43 bool setParts(QList<CustomElementPart *> parts) override;
44 CustomElementPart *currentPart() const override;
45 QList<CustomElementPart*> currentParts() const override;
46 void updateForm() override;
47
48 private slots:
53
54 private:
55 void updateRect();
58
59 private:
60 Ui::EllipseEditor *ui;
61 PartEllipse *m_part = nullptr;
62 StyleEditor *m_style = nullptr;
63 QList <QMetaObject::Connection> m_change_connections;
64
65};
66
67#endif // ELLIPSEEDITOR_H
The CustomElementPart class This abstract class represents a primitive of the visual representation o...
Definition customelementpart.h:40
Definition elementitemeditor.h:34
The EllipseEditor class This class provide a widget used to edit the properties of a @PartEllipse.
Definition ellipseeditor.h:35
void updateForm() override
EllipseEditor::updateForm.
Definition ellipseeditor.cpp:115
StyleEditor * m_style
Definition ellipseeditor.h:62
void on_m_x_sb_editingFinished()
Definition ellipseeditor.cpp:128
void setUpChangeConnections()
EllipseEditor::setUpChangeConnections.
Definition ellipseeditor.cpp:162
void on_m_vertical_diameter_sb_editingFinished()
Definition ellipseeditor.cpp:131
CustomElementPart * currentPart() const override
EllipseEditor::currentPart.
Definition ellipseeditor.cpp:100
bool setParts(QList< CustomElementPart * > parts) override
EllipseEditor::setParts.
Definition ellipseeditor.cpp:83
void disconnectChangeConnections()
EllipseEditor::disconnectChangeConnections.
Definition ellipseeditor.cpp:172
void on_m_y_sb_editingFinished()
Definition ellipseeditor.cpp:129
void on_m_horizontal_diameter_sb_editingFinished()
Definition ellipseeditor.cpp:130
QList< QMetaObject::Connection > m_change_connections
Definition ellipseeditor.h:63
Ui::EllipseEditor * ui
Definition ellipseeditor.h:60
bool setPart(CustomElementPart *part) override
EllipseEditor::setPart.
Definition ellipseeditor.cpp:56
void updateRect()
EllipseEditor::updateRect.
Definition ellipseeditor.cpp:136
QList< CustomElementPart * > currentParts() const override
EllipseEditor::currentParts.
Definition ellipseeditor.cpp:108
PartEllipse * m_part
Definition ellipseeditor.h:61
~EllipseEditor() override
EllipseEditor::~EllipseEditor.
Definition ellipseeditor.cpp:46
The PartEllipse class This class represents an ellipse primitive which may be used to compose the dra...
Definition partellipse.h:31
Definition qetelementeditor.h:39
Definition styleeditor.h:35
Definition autonumberingdockwidget.h:26