mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 08:10:52 +01:00
terminal editor : use QPropertyUndoCommand instead of ChangePartCommand
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4071 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -17,9 +17,13 @@
|
||||
*/
|
||||
#ifndef TERMINAL_EDITOR_H
|
||||
#define TERMINAL_EDITOR_H
|
||||
#include <QtWidgets>
|
||||
|
||||
#include "elementitemeditor.h"
|
||||
|
||||
class PartTerminal;
|
||||
class QDoubleSpinBox;
|
||||
class QComboBox;
|
||||
|
||||
/**
|
||||
This class provides a widget to edit terminals within the element editor.
|
||||
*/
|
||||
@@ -34,9 +38,10 @@ class TerminalEditor : public ElementItemEditor {
|
||||
|
||||
// attributes
|
||||
private:
|
||||
PartTerminal *part;
|
||||
QDoubleSpinBox *qle_x, *qle_y;
|
||||
QComboBox *orientation;
|
||||
PartTerminal *part;
|
||||
QDoubleSpinBox *qle_x, *qle_y;
|
||||
QComboBox *orientation;
|
||||
bool m_locked;
|
||||
|
||||
// methods
|
||||
public:
|
||||
@@ -44,11 +49,9 @@ class TerminalEditor : public ElementItemEditor {
|
||||
virtual CustomElementPart *currentPart() const;
|
||||
|
||||
public slots:
|
||||
void updateTerminal();
|
||||
void updateTerminalX();
|
||||
void updateTerminalY();
|
||||
void updateTerminalO();
|
||||
void updateForm();
|
||||
void updateTerminalO();
|
||||
void updatePos();
|
||||
void updateForm();
|
||||
|
||||
private:
|
||||
void activeConnections(bool);
|
||||
|
||||
Reference in New Issue
Block a user