Package schrodinger :: Package tasks :: Module mappers :: Class SettingsParamMapper
[hide private]
[frames] | no frames]

Class SettingsParamMapper

         object --+    
                  |    
AbstractParamMapper --+
                      |
                     SettingsParamMapper

This mapper allows mapping via appframework2's settings module. Any object that can be "get" and "set" in the settings module can be mapped to a param. This includes most basic Qt widgets as well as any classes that support the af2 settings getter and setter API.

Instance Methods [hide private]
 
_getMappedValue(self, mapped_obj)
This virtual method should return a mapped object's value, however that is defined by the derived class.
 
_setMappedValue(self, mapped_obj, value)
This virtual method should set a mapped object's value, however that is defined by the derived class.

Inherited from AbstractParamMapper: __init__, addMapping, onModelParamsChanged, setModelInstance, suspend_auto_update_target, updateModel, updateTarget

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

_getMappedValue(self, mapped_obj)

 

This virtual method should return a mapped object's value, however that is defined by the derived class.

Parameters:
  • mapped_obj - the target object
Overrides: AbstractParamMapper._getMappedValue
(inherited documentation)

_setMappedValue(self, mapped_obj, value)

 

This virtual method should set a mapped object's value, however that is defined by the derived class.

Parameters:
  • mapped_obj - the target object
Overrides: AbstractParamMapper._setMappedValue
(inherited documentation)