mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-21 16:50:53 +01:00
Arc editor : use QPropertyUndoCommand instead of ChangePartCommand
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4066 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -17,45 +17,48 @@
|
||||
*/
|
||||
#ifndef ARC_EDITOR_H
|
||||
#define ARC_EDITOR_H
|
||||
#include <QtWidgets>
|
||||
|
||||
#include "elementitemeditor.h"
|
||||
|
||||
class PartArc;
|
||||
class StyleEditor;
|
||||
class QDoubleSpinBox;
|
||||
class QSpinBox;
|
||||
|
||||
/**
|
||||
This class provides a widget to edit elliptical arcs within the element editor.
|
||||
*/
|
||||
class ArcEditor : public ElementItemEditor {
|
||||
class ArcEditor : public ElementItemEditor
|
||||
{
|
||||
Q_OBJECT
|
||||
// constructors, destructor
|
||||
|
||||
// constructors, destructor
|
||||
public:
|
||||
ArcEditor(QETElementEditor *, PartArc * = 0, QWidget * = 0);
|
||||
virtual ~ArcEditor();
|
||||
ArcEditor(QETElementEditor *, PartArc * = 0, QWidget * = 0);
|
||||
virtual ~ArcEditor();
|
||||
private:
|
||||
ArcEditor(const ArcEditor &);
|
||||
ArcEditor(const ArcEditor &);
|
||||
|
||||
// attributes
|
||||
// attributes
|
||||
private:
|
||||
PartArc *part;
|
||||
StyleEditor *style_;
|
||||
QDoubleSpinBox *x, *y, *h, *v;
|
||||
QSpinBox *angle, *start_angle;
|
||||
PartArc *part;
|
||||
StyleEditor *style_;
|
||||
QDoubleSpinBox *x, *y, *h, *v;
|
||||
QSpinBox *angle, *start_angle;
|
||||
bool m_locked;
|
||||
|
||||
// methods
|
||||
// methods
|
||||
public:
|
||||
virtual bool setPart(CustomElementPart *);
|
||||
virtual CustomElementPart *currentPart() const;
|
||||
virtual bool setPart(CustomElementPart *);
|
||||
virtual CustomElementPart *currentPart() const;
|
||||
|
||||
public slots:
|
||||
void updateArc();
|
||||
void updateArcX();
|
||||
void updateArcY();
|
||||
void updateArcH();
|
||||
void updateArcV();
|
||||
void updateArcS();
|
||||
void updateArcA();
|
||||
void updateForm();
|
||||
void updateArcS();
|
||||
void updateArcA();
|
||||
void updateArcRect();
|
||||
void updateForm();
|
||||
|
||||
private:
|
||||
void activeConnections(bool);
|
||||
void activeConnections(bool);
|
||||
};
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user