QElectroTech  0.70
ellipseeditor.h
Go to the documentation of this file.
1 /*
2  Copyright 2006-2019 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 ELLIPSE_EDITOR_H
19 #define ELLIPSE_EDITOR_H
20 
21 #include "elementitemeditor.h"
22 
23 class PartEllipse;
24 class StyleEditor;
25 class QDoubleSpinBox;
26 
31 {
32  Q_OBJECT
33 
34  // constructors, destructor
35  public:
36  EllipseEditor(QETElementEditor *, PartEllipse * = nullptr, QWidget * = nullptr);
37  ~EllipseEditor() override;
38  private:
40 
41  // attributes
42  private:
45  QDoubleSpinBox *x, *y, *h, *v;
46  bool m_locked;
47 
48  // methods
49  public:
50  bool setPart(CustomElementPart *) override;
51  CustomElementPart *currentPart() const override;
52 
53  public slots:
54  void editingFinished();
55  void updateForm() override;
56 
57  private:
58  void activeConnections(bool);
59 };
60 #endif
void editingFinished()
QDoubleSpinBox * y
Definition: ellipseeditor.h:45
QDoubleSpinBox * v
Definition: ellipseeditor.h:45
bool setPart(CustomElementPart *) override
~EllipseEditor() override
Destructeur.
PartEllipse * part
Definition: ellipseeditor.h:43
EllipseEditor(QETElementEditor *, PartEllipse *=nullptr, QWidget *=nullptr)
QDoubleSpinBox * h
Definition: ellipseeditor.h:45
void activeConnections(bool)
CustomElementPart * currentPart() const override
QDoubleSpinBox * x
Definition: ellipseeditor.h:45
StyleEditor * style_
Definition: ellipseeditor.h:44
The PartEllipse class This class represents an ellipse primitive which may be used to compose the dra...
Definition: partellipse.h:30
void updateForm() override