mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user