Example #1
0
 def setDataSource(self, data_source):
     old_ds = self.dataSource()
     if old_ds is not None:
         old_ds.environmentChanged.disconnect(self.on_environment_changed)
     if data_source is not None:
         data_source.environmentChanged.connect(self.on_environment_changed)
     TaurusBaseModel.setDataSource(self, data_source)
Example #2
0
 def setDataSource(self, data_source):
     old_ds = self.dataSource()
     if old_ds is not None:
         old_ds.environmentChanged.disconnect(self.on_environment_changed)
     if data_source is not None:
         data_source.environmentChanged.connect(self.on_environment_changed)
     TaurusBaseModel.setDataSource(self, data_source)
Example #3
0
 def setDataSource(self, ms):
     if self._data_src is not None:
         self._data_src.macrosUpdated.disconnect(
             self.macrosUpdated)
     if ms is not None:
         ms.macrosUpdated.connect(
             self.macrosUpdated)
     TaurusBaseModel.setDataSource(self, ms)
Example #4
0
 def setDataSource(self, ms):
     if self._data_src is not None:
         Qt.QObject.disconnect(self._data_src, Qt.SIGNAL('macrosUpdated'),
                               self.macrosUpdated)
     if ms is not None:
         Qt.QObject.connect(ms, Qt.SIGNAL('macrosUpdated'),
                            self.macrosUpdated)
     TaurusBaseModel.setDataSource(self, ms)
Example #5
0
 def setDataSource(self, pool):
     if self._data_src is not None:
         self._data_src.controllerClassesUpdated.disconnect(
             self.controllerClassesUpdated)
     if pool is not None:
         pool.controllerClassesUpdated.connect(
             self.controllerClassesUpdated)
     TaurusBaseModel.setDataSource(self, pool)
Example #6
0
 def setDataSource(self, pool):
     if self._data_src is not None:
         self._data_src.controllerClassesUpdated.disconnect(
             self.controllerClassesUpdated)
     if pool is not None:
         pool.controllerClassesUpdated.connect(
             self.controllerClassesUpdated)
     TaurusBaseModel.setDataSource(self, pool)
Example #7
0
 def setDataSource(self, data_source):
     old_ds = self.dataSource()
     if old_ds is not None:
         Qt.QObject.disconnect(old_ds, Qt.SIGNAL('environmentChanged'),
                               self.on_environment_changed)
     if data_source is not None:
         Qt.QObject.connect(data_source, Qt.SIGNAL('environmentChanged'),
                            self.on_environment_changed)
     TaurusBaseModel.setDataSource(self, data_source)
Example #8
0
 def setDataSource(self, pool):
     if self._data_src is not None:
         Qt.QObject.disconnect(self._data_src,
                               Qt.SIGNAL('controllerClassesUpdated'),
                               self.controllerClassesUpdated)
     if pool is not None:
         Qt.QObject.connect(pool, Qt.SIGNAL('controllerClassesUpdated'),
                            self.controllerClassesUpdated)
     TaurusBaseModel.setDataSource(self, pool)
Example #9
0
 def setDataSource(self, data_source):
     old_ds = self.dataSource()
     if old_ds is not None:
         Qt.QObject.disconnect(old_ds, Qt.SIGNAL('environmentChanged'),
                               self.on_environment_changed)
     if data_source is not None:
         Qt.QObject.connect(data_source, Qt.SIGNAL('environmentChanged'),
                            self.on_environment_changed)
     TaurusBaseModel.setDataSource(self, data_source)
Example #10
0
 def setDataSource(self, data_src):
     self._dirty = False
     TaurusBaseModel.setDataSource(self, data_src)
Example #11
0
 def setDataSource(self, ms):
     if self._data_src is not None:
         Qt.QObject.disconnect(self._data_src, Qt.SIGNAL('macrosUpdated'), self.macrosUpdated)
     if ms is not None:
         Qt.QObject.connect(ms, Qt.SIGNAL('macrosUpdated'), self.macrosUpdated)
     TaurusBaseModel.setDataSource(self, ms)
Example #12
0
 def setDataSource(self, ms):
     if self._data_src is not None:
         self._data_src.macrosUpdated.disconnect(self.macrosUpdated)
     if ms is not None:
         ms.macrosUpdated.connect(self.macrosUpdated)
     TaurusBaseModel.setDataSource(self, ms)
Example #13
0
 def setDataSource(self, pool):
     if self._data_src is not None:
         Qt.QObject.disconnect(self._data_src, Qt.SIGNAL('controllerClassesUpdated'), self.controllerClassesUpdated)
     if pool is not None:
         Qt.QObject.connect(pool, Qt.SIGNAL('controllerClassesUpdated'), self.controllerClassesUpdated)
     TaurusBaseModel.setDataSource(self, pool)
Example #14
0
 def setDataSource(self, data_src):
     self._dirty = False
     TaurusBaseModel.setDataSource(self, data_src)