mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
Basic Shapes: Edit property(style) added, undo/redo style added
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2910 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -616,6 +616,25 @@ class ImageResizerCommand : public QUndoCommand {
|
||||
Diagram *diagram;
|
||||
};
|
||||
|
||||
|
||||
class ChangeShapeStyleCommand : public QUndoCommand {
|
||||
//constructor and destructor
|
||||
public:
|
||||
ChangeShapeStyleCommand (QetShapeItem *shape, Qt::PenStyle &old_, Qt::PenStyle &new_, QUndoCommand *parent = 0);
|
||||
virtual ~ChangeShapeStyleCommand();
|
||||
|
||||
//methods
|
||||
public:
|
||||
virtual void undo();
|
||||
virtual void redo();
|
||||
|
||||
//attributes
|
||||
private:
|
||||
QetShapeItem *shape_;
|
||||
Qt::PenStyle old_style, new_style;
|
||||
Diagram *diagram;
|
||||
};
|
||||
|
||||
class LinkElementsCommand : public QUndoCommand {
|
||||
public:
|
||||
// constructor destructor
|
||||
|
||||
Reference in New Issue
Block a user