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:
blacksun
2015-07-24 12:08:03 +00:00
parent 99c867d6d6
commit d56e6e60b1
4 changed files with 73 additions and 43 deletions

View File

@@ -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);