add class for auto numerotation (for the time, only same potential)

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2087 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2013-04-04 16:57:15 +00:00
parent 53bc7e8af7
commit 4a038a8bf0
9 changed files with 488 additions and 0 deletions

View File

@@ -495,4 +495,36 @@ class ChangeConductorPropertiesCommand : public QUndoCommand {
/// track whether post-change properties were set
bool new_settings_set;
};
/**
This command changes the properties for several conductors.
*/
class ChangeSeveralConductorsPropertiesCommand : public QUndoCommand {
// constructors, destructor
public:
ChangeSeveralConductorsPropertiesCommand(QSet<Conductor *>, QUndoCommand * = 0);
virtual ~ChangeSeveralConductorsPropertiesCommand();
private:
ChangeSeveralConductorsPropertiesCommand(const ChangeSeveralConductorsPropertiesCommand &);
// methods
public:
virtual void undo();
virtual void redo();
virtual void setOldSettings(const QList<ConductorProperties> &);
virtual void setNewSettings(const QList<ConductorProperties> &);
// attributes
private:
/// modified conductor
QSet<Conductor *> conductors;
/// properties before the change
QList <ConductorProperties> old_properties;
/// properties after the change
QList <ConductorProperties> new_properties;
/// track whether pre-change properties were set
bool old_settings_set;
/// track whether post-change properties were set
bool new_settings_set;
};
#endif