QElectroTech  0.70
terminaleditor.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 TERMINAL_EDITOR_H
19 #define TERMINAL_EDITOR_H
20 
21 #include "elementitemeditor.h"
22 
23 class PartTerminal;
24 class QDoubleSpinBox;
25 class QComboBox;
26 
31  Q_OBJECT
32  // Constructors, destructor
33  public:
34  TerminalEditor(QETElementEditor *, PartTerminal * = nullptr, QWidget * = nullptr);
35  ~TerminalEditor() override;
36  private:
38 
39  // attributes
40  private:
42  QDoubleSpinBox *qle_x, *qle_y;
43  QComboBox *orientation;
44  bool m_locked;
45 
46  // methods
47  public:
48  bool setPart(CustomElementPart *) override;
49  CustomElementPart *currentPart() const override;
50 
51  public slots:
52  void updateTerminalO();
53  void updatePos();
54  void updateForm() override;
55 
56  private:
57  void activeConnections(bool);
58 };
59 #endif
bool setPart(CustomElementPart *) override
QDoubleSpinBox * qle_x
QComboBox * orientation
PartTerminal * part
TerminalEditor(QETElementEditor *, PartTerminal *=nullptr, QWidget *=nullptr)
CustomElementPart * currentPart() const override
~TerminalEditor() override
Destructeur.
QDoubleSpinBox * qle_y
void activeConnections(bool)
void updateForm() override
update Number and name, create cancel object
void updateTerminalO()
Met a jour l&#39;orientation de la borne et cree un objet d&#39;annulation.