示例#1
0
 def setValue2(self, value):
     if (self.getDefaultValue2() != value):
         self.setValue2HasChanged(True)
     if value != self.getValue2():
         # Set the command
         cmdUpdate = CmdSetParamND(self, (self.getValue1(), value))
         cmdManager = CommandManager()
         cmdManager.push(cmdUpdate)
示例#2
0
 def setValue1(self, value):
     # if the value which is setting is different of the default value,
     # so the value has changed and title of param is displayed in bold in qml
     if (self.getDefaultValue1() != value):
         self.setValue1HasChanged(True)
     if value != self.getValue1():
         # Push the command
         cmdUpdate = CmdSetParamND(self, (value, self.getValue2()))
         cmdManager = CommandManager()
         cmdManager.push(cmdUpdate)