Home | Trees | Indices | Help |
|
---|
|
object --+ | sip.simplewrapper --+ | sip.wrapper --+ | PyQt5.QtCore.QObject --+ | AbstractParamMapper
A param mapper manages synchronization between target objects that represent various params and a model object that contains those params.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
|||
|
x.__init__(...) initializes x; see help(type(x)) for signature
|
Maps an abstract param to a target object. An abstract param is a param that is owned at the top level by the model's class rather than an instance of the model. This allows the same mapping to be used on multiple model instances. The details of the target object are left to derived mapper classes. Notes: If a param is already mapped to a target, the old mapping will be replaced by the new one. A param may be mapped to only one target. However, multple params may be mapped to the same target. This is useful when the same target (ex. a widget in a panel) is reused for multiple tasks. @param target_obj: the target object mapped to a parameter. @type target_obj: any hashable object which can be operated on by L{AbstractParamMapper._getTargetValue} and L{AbstractParamMapper._setTargetValue}. @param param: an abstract param (ex. Atom.coord.x) @type param: L{parameters.Param} |
The first time this method is called, define
|
Given a model object, return all signals and slots that need to be connected to support auto updating. Override this method in subclasses.
|
Disconnect any signal connections between model and target made in self._connectModel. This is needed when switching models via setModel so that the mapper will not continue syncing the old model object. |
Sets the model instance to map. This should be an instance of the model class that is being used in addMapping().
|
This virtual method should return a mapped object's value, however that is defined by the derived class.
|
This virtual method should set a mapped object's value, however that is defined by the derived class.
|
Updates the param value on the model object from the target object. If the new value is the same as the current value, the param will not be set again.
|
Updates the mapped object from the param value on the model object. If the new value is the same as the target's current value, the value will not be set again on the target object.
|
Updates all mapped parameters on the model object from the target objects. Any target values that are unchanged will be skipped. |
Updates all target objects from the mapped parameters on the model object. Any param values that are unchanged will be skipped. |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Aug 8 02:53:12 2017 | http://epydoc.sourceforge.net |