mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
Element editor : Editor can change several primitive style in same time. Just select several primitive and edit it with the style editor widget.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3716 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -26,31 +26,33 @@
|
||||
#include <QtGui>
|
||||
|
||||
/**
|
||||
ElementEditionCommand is the base class for all commands classes involved in
|
||||
* @brief The ElementEditionCommand class
|
||||
* ElementEditionCommand is the base class for all commands classes involved in
|
||||
the edition of an electrical element. It provides commonly required methods
|
||||
and attributes, such as accessors to the modified scene and view.
|
||||
*/
|
||||
class ElementEditionCommand : public QUndoCommand {
|
||||
// constructors, destructor
|
||||
*/
|
||||
class ElementEditionCommand : public QUndoCommand
|
||||
{
|
||||
// constructors, destructor
|
||||
public:
|
||||
ElementEditionCommand(ElementScene * = 0, ElementView * = 0, QUndoCommand * = 0);
|
||||
ElementEditionCommand(const QString &, ElementScene * = 0, ElementView * = 0, QUndoCommand * = 0);
|
||||
virtual ~ElementEditionCommand();
|
||||
ElementEditionCommand(ElementScene * = 0, ElementView * = 0, QUndoCommand * = 0);
|
||||
ElementEditionCommand(const QString &, ElementScene * = 0, ElementView * = 0, QUndoCommand * = 0);
|
||||
virtual ~ElementEditionCommand();
|
||||
private:
|
||||
ElementEditionCommand(const ElementEditionCommand &);
|
||||
ElementEditionCommand(const ElementEditionCommand &);
|
||||
|
||||
// methods
|
||||
// methods
|
||||
public:
|
||||
ElementScene *elementScene() const;
|
||||
void setElementScene(ElementScene *);
|
||||
ElementView *elementView() const;
|
||||
void setElementView(ElementView *);
|
||||
ElementScene *elementScene() const;
|
||||
void setElementScene(ElementScene *);
|
||||
ElementView *elementView() const;
|
||||
void setElementView(ElementView *);
|
||||
|
||||
// attributes
|
||||
// attributes
|
||||
protected:
|
||||
/// Element editor/view/scene the command should take place on
|
||||
ElementScene *editor_scene_;
|
||||
ElementView *editor_view_;
|
||||
/// Element editor/view/scene the command should take place on
|
||||
ElementScene *editor_scene_;
|
||||
ElementView *editor_view_;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user