when change a propertie of conductor, ask for apply the change for each conductor of the same potential

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2634 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2013-11-21 21:34:49 +00:00
parent 8496b000d1
commit 73bf32a640
3 changed files with 44 additions and 22 deletions

View File

@@ -544,6 +544,7 @@ class ChangeSeveralConductorsPropertiesCommand : public QUndoCommand {
virtual void redo();
virtual void setOldSettings(const QList<ConductorProperties> &);
virtual void setNewSettings(const QList<ConductorProperties> &);
virtual void setNewSettings(const ConductorProperties &);
// attributes
private:
@@ -553,6 +554,8 @@ class ChangeSeveralConductorsPropertiesCommand : public QUndoCommand {
QList <ConductorProperties> old_properties;
/// properties after the change
QList <ConductorProperties> new_properties;
/// single properties for each conductor
ConductorProperties single_new_properties;
/// track whether pre-change properties were set
bool old_settings_set;
/// track whether post-change properties were set