Package node_manager_fkie :: Module settings_model :: Class SettingsValueItem
[frames] | no frames]

Class SettingsValueItem

source code

python_qt_binding.QtGui.QStandardItem --+
                                        |
                                       SettingsValueItem

Instance Methods
 
__init__(self, value, (settings, attrname)=(None,None), edit_type=0, value_default=None, value_min=None, value_max=None, value_list=[], value_step=None, need_restart=False)
:param value: the current value :type value: any std types :param settings: the object, which contains `attrname` as property and provide the parameter changes :type settings: object (Settings) :param attrname: the parameter name, which is available as property in `settings` object.
source code
 
type(self) source code
 
attrname(self) source code
 
value(self) source code
 
value_default(self) source code
 
value_min(self) source code
 
value_max(self) source code
 
value_step(self) source code
 
edit_type(self) source code
 
value_list(self) source code
 
data(self, role)
The view asks us for all sorts of information about our data...
source code
 
setData(self, value, role=Qt.EditRole) source code
Class Variables
  ITEM_TYPE = QStandardItem.UserType+ 81
  EDIT_TYPE_AUTODETECT = 0
  EDIT_TYPE_FOLDER = 1
  EDIT_TYPE_LIST = 2
Method Details

__init__(self, value, (settings, attrname)=(None,None), edit_type=0, value_default=None, value_min=None, value_max=None, value_list=[], value_step=None, need_restart=False)
(Constructor)

source code 

:param value: the current value :type value: any std types :param settings: the object, which contains `attrname` as property and provide the parameter changes :type settings: object (Settings) :param attrname: the parameter name, which is available as property in `settings` object. :type attrname: str :param edit_type: the editor type will be detected automatically by default. For different editors you can set manually the `EDIT_TYPE_*` :type edit_type: int (`EDIT_TYPE_*`) :param value_default: the default value, is needed for reset functionality :param value_min: the maximum value (used by int or float) :param value_max: the minimum value (used by int or float) :param value_list: the list of values used for comboboxes

data(self, role)

source code 

The view asks us for all sorts of information about our data...

Parameters: