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

Class SettingsValueItem

source code

       object --+            
                |            
sip.simplewrapper --+        
                    |        
          sip.wrapper --+    
                        |    
PyQt4.QtGui.QStandardItem --+
                            |
                           SettingsValueItem

Nested Classes

Inherited from PyQt4.QtGui.QStandardItem: ItemType

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)
: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=2) source code

Inherited from PyQt4.QtGui.QStandardItem: __eq__, __ge__, __gt__, __le__, __lt__, __ne__, accessibleDescription, accessibleText, appendColumn, appendRow, appendRows, background, checkState, child, clone, column, columnCount, emitDataChanged, flags, font, foreground, hasChildren, icon, index, insertColumn, insertColumns, insertRow, insertRows, isCheckable, isDragEnabled, isDropEnabled, isEditable, isEnabled, isSelectable, isTristate, model, parent, read, removeColumn, removeColumns, removeRow, removeRows, row, rowCount, setAccessibleDescription, setAccessibleText, setBackground, setCheckState, setCheckable, setChild, setColumnCount, setDragEnabled, setDropEnabled, setEditable, setEnabled, setFlags, setFont, setForeground, setIcon, setRowCount, setSelectable, setSizeHint, setStatusTip, setText, setTextAlignment, setToolTip, setTristate, setWhatsThis, sizeHint, sortChildren, statusTip, takeChild, takeColumn, takeRow, text, textAlignment, toolTip, whatsThis, write

Inherited from sip.simplewrapper: __new__

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

Class Variables
  ITEM_TYPE = 1081
  EDIT_TYPE_AUTODETECT = 0
  EDIT_TYPE_FOLDER = 1
  EDIT_TYPE_LIST = 2

Inherited from PyQt4.QtGui.QStandardItem: Type, UserType

Properties

Inherited from object: __class__

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)
(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

Overrides: object.__init__

type(self)

source code 
Overrides: PyQt4.QtGui.QStandardItem.type

data(self, role)

source code 

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

Parameters:
Overrides: PyQt4.QtGui.QStandardItem.data

setData(self, value, role=2)

source code 
Overrides: PyQt4.QtGui.QStandardItem.setData