#include <jobpropertyitem.h>


Signals | |
| void | jobPropertyChanged (QVector< QVariant > &) | 
Public Member Functions | |
| JobPropertyItem (JobPropertyModel *_model) | |
| virtual | ~JobPropertyItem () | 
| virtual JobPropertyItem * | child (int number) | 
| virtual int | childCount () const | 
| virtual int | childNumber () const | 
| virtual JobPropertyItem * | parent () | 
| virtual int | columnCount () const | 
| virtual QVariant | data (int column=1) const | 
| virtual bool | setData (int column, const QVariant &value) | 
| virtual void | setReadOnly (bool b) | 
| virtual bool | isReadOnly () const | 
| virtual void | setHaveContextMenu (bool b) | 
| virtual bool | hasContextMenu () const | 
| virtual void | createCustomContextMenu (QWidget *parent, const QPoint &pos) | 
| virtual bool | deleteChild (int row) | 
| virtual QModelIndex | getSelfIndex () | 
| virtual QWidget * | createEditor (QWidget *parent, const QObject *target, const char *receiver) const =0 | 
| virtual void | updateEditorContents (QWidget *editor)=0 | 
| virtual void | updateValue (QWidget *editor)=0 | 
Public Attributes | |
| JobPropertyItem * | parentItem | 
| QList< JobPropertyItem * > | childItems | 
| QVector< QVariant > | itemData | 
Protected Attributes | |
| QString | _name | 
| JobPropertyModel * | _model | 
| bool | _isreadonly | 
| bool | _hascontextmenu | 
Definition at line 20 of file jobpropertyitem.h.
| JobPropertyItem::JobPropertyItem | ( | JobPropertyModel * | model | ) | 
Construct a JobPropertyItem
| model | model where the item is in | 
Definition at line 21 of file jobpropertyitem.cpp.
| virtual JobPropertyItem::~JobPropertyItem | ( | ) |  [inline, virtual] | 
        
Definition at line 26 of file jobpropertyitem.h.
| JobPropertyItem * JobPropertyItem::child | ( | int | number | ) |  [virtual] | 
        
Get the n'th child of this item
| number | index of the child to get in the child list | 
Definition at line 33 of file jobpropertyitem.cpp.
References childItems.
Referenced by JobPropertyModel::index(), and JobEditorWidget::JobEditorWidget().
| int JobPropertyItem::childCount | ( | ) |  const [virtual] | 
        
Get the number of child
Definition at line 41 of file jobpropertyitem.cpp.
References childItems.
Referenced by JobPropertyModel::rowCount().
| int JobPropertyItem::childNumber | ( | ) |  const [virtual] | 
        
Get the number of this item in the child list of its parent
Definition at line 49 of file jobpropertyitem.cpp.
References childItems, and parentItem.
Referenced by JobPropertyItemNodeProperty::createCustomContextMenu(), JobPropertyItemNode::createCustomContextMenu(), getSelfIndex(), and JobPropertyModel::parent().
| JobPropertyItem * JobPropertyItem::parent | ( | ) |  [virtual] | 
        
Get the parent of that item
Definition at line 59 of file jobpropertyitem.cpp.
References parentItem.
Referenced by JobPropertyModel::parent().
| int JobPropertyItem::columnCount | ( | ) |  const [virtual] | 
        
Get the number of columns this item has
Definition at line 67 of file jobpropertyitem.cpp.
References itemData.
Referenced by JobPropertyModel::columnCount().
| QVariant JobPropertyItem::data | ( | int |  column = 1           | 
          ) |  const [virtual] | 
        
Get the data this item has in the specified column
| column | the index of the column where to look the data for | 
Definition at line 77 of file jobpropertyitem.cpp.
References itemData.
Referenced by JobPropertyModel::data(), JobPropertyModel::headerData(), JobPropertyItemNode::JobPropertyItemNode(), JobPropertyItemNodeProperty::JobPropertyItemNodeProperty(), JobPropertyItemNodes::JobPropertyItemNodes(), JobPropertyItemRoot::JobPropertyItemRoot(), and JobPropertyItemString::JobPropertyItemString().
| bool JobPropertyItem::setData | ( | int | column, | |
| const QVariant & | value | |||
| ) |  [virtual] | 
        
Set the specified data in the specified column
| column | the index of the column where to set the data in | |
| value | value to set | 
Reimplemented in JobPropertyItemNodes, JobPropertyItemNode, JobPropertyItemNodeProperty, and JobPropertyItemString.
Definition at line 91 of file jobpropertyitem.cpp.
References _isreadonly, and itemData.
Referenced by JobPropertyModel::setData(), and JobPropertyModel::setHeaderData().
| void JobPropertyItem::setReadOnly | ( | bool | b | ) |  [virtual] | 
        
Set whether this item is read-only
| b | value to set whether this item is read-only | 
Definition at line 124 of file jobpropertyitem.cpp.
References _isreadonly.
Referenced by JobPropertyItemNodes::JobPropertyItemNodes(), and JobPropertyItemRoot::JobPropertyItemRoot().
| bool JobPropertyItem::isReadOnly | ( | ) |  const [virtual] | 
        
Get whether this item is read-only
Definition at line 132 of file jobpropertyitem.cpp.
References _isreadonly.
| void JobPropertyItem::setHaveContextMenu | ( | bool | b | ) |  [virtual] | 
        
Set whether this item accepts context menu requests
| b | value to set whether this item accepts context menu requests | 
Definition at line 106 of file jobpropertyitem.cpp.
References _hascontextmenu.
Referenced by JobPropertyItemNode::JobPropertyItemNode(), JobPropertyItemNodeProperty::JobPropertyItemNodeProperty(), and JobPropertyItemNodes::JobPropertyItemNodes().
| bool JobPropertyItem::hasContextMenu | ( | ) |  const [virtual] | 
        
Get whether this item accepts context menu requests
Definition at line 114 of file jobpropertyitem.cpp.
References _hascontextmenu.
Referenced by JobPropertyDelegate::onCustomContextMenuRequested().
| void JobPropertyItem::createCustomContextMenu | ( | QWidget * | parent, | |
| const QPoint & | pos | |||
| ) |  [virtual] | 
        
Create a custom context menu.
| parent | parent widget | |
| pos | position where the context menu was requested | 
Reimplemented in JobPropertyItemNodes, JobPropertyItemNode, and JobPropertyItemNodeProperty.
Definition at line 143 of file jobpropertyitem.cpp.
Referenced by JobPropertyDelegate::onCustomContextMenuRequested().
| bool JobPropertyItem::deleteChild | ( | int | row | ) |  [virtual] | 
        
Delete the specified child
| row | index of the child to delete | 
Reimplemented in JobPropertyItemNodes, and JobPropertyItemNode.
Definition at line 154 of file jobpropertyitem.cpp.
Referenced by JobPropertyModel::removeRows().
| QModelIndex JobPropertyItem::getSelfIndex | ( | ) |  [virtual] | 
        
Get the index to the first column of this item in the model
Definition at line 163 of file jobpropertyitem.cpp.
References _model, childNumber(), getSelfIndex(), JobPropertyModel::index(), and parentItem.
Referenced by JobPropertyItemNodeProperty::createCustomContextMenu(), JobPropertyItemNode::createCustomContextMenu(), and getSelfIndex().

| virtual QWidget* JobPropertyItem::createEditor | ( | QWidget * | parent, | |
| const QObject * | target, | |||
| const char * | receiver | |||
| ) |  const [pure virtual] | 
        
Implemented in JobPropertyItemRoot, JobPropertyItemNodes, JobPropertyItemNode, JobPropertyItemNodeProperty, and JobPropertyItemString.
Referenced by JobPropertyDelegate::createEditor().
| virtual void JobPropertyItem::updateEditorContents | ( | QWidget * | editor | ) |  [pure virtual] | 
        
Implemented in JobPropertyItemRoot, JobPropertyItemNodes, JobPropertyItemNode, JobPropertyItemNodeProperty, and JobPropertyItemString.
| virtual void JobPropertyItem::updateValue | ( | QWidget * | editor | ) |  [pure virtual] | 
        
Implemented in JobPropertyItemRoot, JobPropertyItemNodes, JobPropertyItemNode, JobPropertyItemNodeProperty, and JobPropertyItemString.
| void JobPropertyItem::jobPropertyChanged | ( | QVector< QVariant > & | ) |  [signal] | 
        
Signal emitted when the property has changed
Referenced by JobPropertyItemString::updateValue(), and JobPropertyItemNodeProperty::updateValue().
Definition at line 49 of file jobpropertyitem.h.
Referenced by childNumber(), JobPropertyItemNodeProperty::createCustomContextMenu(), JobPropertyItemNode::createCustomContextMenu(), getSelfIndex(), JobPropertyItemNode::JobPropertyItemNode(), JobPropertyItemNodeProperty::JobPropertyItemNodeProperty(), JobPropertyItemNodes::JobPropertyItemNodes(), JobPropertyItemRoot::JobPropertyItemRoot(), JobPropertyItemString::JobPropertyItemString(), and parent().
Definition at line 50 of file jobpropertyitem.h.
Referenced by JobPropertyItemNodes::addNode(), child(), childCount(), childNumber(), JobPropertyItemNode::createCustomContextMenu(), JobPropertyItemNode::deleteChild(), JobPropertyItemNodes::deleteChild(), JobPropertyItemNode::JobPropertyItemNode(), JobPropertyItemRoot::JobPropertyItemRoot(), JobPropertyItemNode::set(), JobPropertyItemNodes::set(), JobPropertyItemRoot::setNodes(), JobPropertyItemRoot::setWalltime(), JobPropertyItemNode::update(), JobPropertyItemNodes::update(), JobPropertyItemNode::~JobPropertyItemNode(), JobPropertyItemNodeProperty::~JobPropertyItemNodeProperty(), JobPropertyItemNodes::~JobPropertyItemNodes(), and JobPropertyItemRoot::~JobPropertyItemRoot().
| QVector<QVariant> JobPropertyItem::itemData | 
Definition at line 51 of file jobpropertyitem.h.
Referenced by columnCount(), data(), JobPropertyItemNode::JobPropertyItemNode(), JobPropertyItemNodeProperty::JobPropertyItemNodeProperty(), JobPropertyItemNodes::JobPropertyItemNodes(), JobPropertyItemRoot::JobPropertyItemRoot(), JobPropertyItemString::JobPropertyItemString(), JobPropertyItemString::set(), JobPropertyItemNodeProperty::set(), JobPropertyItemNode::set(), JobPropertyItemString::setData(), JobPropertyItemNodeProperty::setData(), JobPropertyItemNode::setData(), setData(), JobPropertyItemString::toString(), JobPropertyItemNodeProperty::toString(), JobPropertyItemNode::update(), JobPropertyItemString::updateEditorContents(), JobPropertyItemNodeProperty::updateEditorContents(), JobPropertyItemNode::updateEditorContents(), JobPropertyItemString::updateValue(), JobPropertyItemNodeProperty::updateValue(), and JobPropertyItemNode::updateValue().
QString JobPropertyItem::_name [protected]           | 
        
Definition at line 53 of file jobpropertyitem.h.
Referenced by JobPropertyItemNode::JobPropertyItemNode(), JobPropertyItemNodeProperty::JobPropertyItemNodeProperty(), JobPropertyItemNodes::JobPropertyItemNodes(), and JobPropertyItemString::JobPropertyItemString().
JobPropertyModel* JobPropertyItem::_model [protected]           | 
        
Definition at line 54 of file jobpropertyitem.h.
Referenced by JobPropertyItemNodes::addNode(), JobPropertyItemNodeProperty::createCustomContextMenu(), JobPropertyItemNode::createCustomContextMenu(), getSelfIndex(), JobPropertyItemRoot::JobPropertyItemRoot(), JobPropertyItemString::set(), JobPropertyItemNode::set(), and JobPropertyItemNodes::set().
bool JobPropertyItem::_isreadonly [protected]           | 
        
Definition at line 55 of file jobpropertyitem.h.
Referenced by isReadOnly(), setData(), and setReadOnly().
bool JobPropertyItem::_hascontextmenu [protected]           | 
        
Definition at line 56 of file jobpropertyitem.h.
Referenced by hasContextMenu(), and setHaveContextMenu().
 1.5.4