#include <jobpropertyitemnodes.h>


Public Slots | |
| void | set (const QString &node) |
| void | onChildChanged (const QString &str) |
Signals | |
| void | itemChanged () |
Public Member Functions | |
| JobPropertyItemNode (JobPropertyModel *model, JobPropertyItemNodes *parent=0) | |
| virtual | ~JobPropertyItemNode () |
| virtual bool | setData (int column, const QVariant &value) |
| virtual void | createCustomContextMenu (QWidget *parent, const QPoint &pos) |
| virtual QWidget * | createEditor (QWidget *parent, const QObject *target, const char *receiver) const |
| virtual void | updateEditorContents (QWidget *editor) |
| virtual void | updateValue (QWidget *editor) |
| virtual QString | toString () |
| virtual void | update () |
| virtual bool | deleteChild (int row) |
Private Attributes | |
| QString | _node |
La classe
Definition at line 56 of file jobpropertyitemnodes.h.
| JobPropertyItemNode::JobPropertyItemNode | ( | JobPropertyModel * | model, | |
| JobPropertyItemNodes * | parent = 0 | |||
| ) |
Construct a JobPropertyItemNode
| model | the model this property is in | |
| parent | parent of this item |
Definition at line 209 of file jobpropertyitemnodes.cpp.
References JobPropertyItem::_name, JobPropertyItem::childItems, JobPropertyItem::data(), itemChanged(), JobPropertyItem::itemData, onChildChanged(), JobPropertyItem::parentItem, JobPropertyItem::setHaveContextMenu(), and JobPropertyItemString::setRegExpValidator().

| JobPropertyItemNode::~JobPropertyItemNode | ( | ) | [virtual] |
Destroy this item and its children
Definition at line 229 of file jobpropertyitemnodes.cpp.
References JobPropertyItem::childItems.
| bool JobPropertyItemNode::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 from JobPropertyItem.
Definition at line 240 of file jobpropertyitemnodes.cpp.
References JobPropertyItem::itemData.
| void JobPropertyItemNode::createCustomContextMenu | ( | QWidget * | parent, | |
| const QPoint & | pos | |||
| ) | [virtual] |
Create a custom context menu.
| parent | parent widget | |
| pos | position where the context menu was requested |
Reimplemented from JobPropertyItem.
Definition at line 348 of file jobpropertyitemnodes.cpp.
References JobPropertyItem::_model, JobPropertyItem::childItems, JobPropertyItem::childNumber(), JobPropertyModel::emitLayoutAboutToBeChanged(), JobPropertyModel::emitLayoutChanged(), JobPropertyItem::getSelfIndex(), itemChanged(), onChildChanged(), and JobPropertyItem::parentItem.

| QWidget * JobPropertyItemNode::createEditor | ( | QWidget * | parent, | |
| const QObject * | target, | |||
| const char * | receiver | |||
| ) | const [virtual] |
Create an editor for this item
| parent | parent widget | |
| target | object to emit a signal to when the value has changed | |
| receiver | method of the target object to connect to |
Implements JobPropertyItem.
Definition at line 256 of file jobpropertyitemnodes.cpp.
| void JobPropertyItemNode::updateEditorContents | ( | QWidget * | editor | ) | [virtual] |
Update the content of the editor
| editor | the editor widget |
Implements JobPropertyItem.
Definition at line 269 of file jobpropertyitemnodes.cpp.
References JobPropertyItem::itemData.
| void JobPropertyItemNode::updateValue | ( | QWidget * | editor | ) | [virtual] |
Update the value of the item from the editor
| editor | the editor widget |
Implements JobPropertyItem.
Definition at line 281 of file jobpropertyitemnodes.cpp.
References itemChanged(), JobPropertyItem::itemData, and update().

| QString JobPropertyItemNode::toString | ( | ) | [virtual] |
Convert the item value to a string
Definition at line 337 of file jobpropertyitemnodes.cpp.
References _node.
Referenced by deleteChild(), and update().
| void JobPropertyItemNode::update | ( | ) | [virtual] |
Update the content of this item using the value of the children.
Definition at line 385 of file jobpropertyitemnodes.cpp.
References _node, JobPropertyItem::childItems, JobPropertyItem::itemData, and toString().
Referenced by deleteChild(), onChildChanged(), and updateValue().

| bool JobPropertyItemNode::deleteChild | ( | int | row | ) | [virtual] |
Delete the specified child
| row | index of the child to delete |
Reimplemented from JobPropertyItem.
Definition at line 405 of file jobpropertyitemnodes.cpp.
References _node, JobPropertyItem::childItems, itemChanged(), toString(), and update().

| void JobPropertyItemNode::set | ( | const QString & | newnode | ) | [slot] |
Set the value of this item
| str | the string to parse to set the value of this item. |
Definition at line 298 of file jobpropertyitemnodes.cpp.
References JobPropertyItem::_model, _node, JobPropertyItem::childItems, JobPropertyModel::emitLayoutAboutToBeChanged(), JobPropertyModel::emitLayoutChanged(), itemChanged(), JobPropertyItem::itemData, onChildChanged(), JobPropertyItemNodeProperty::set(), JobPropertyItemString::set(), and JobPropertyItemString::setRegExpValidator().
Referenced by JobPropertyItemNodes::set().
| void JobPropertyItemNode::onChildChanged | ( | const QString & | str | ) | [slot] |
Slot called when a child has changed
| str | value of the child |
Definition at line 375 of file jobpropertyitemnodes.cpp.
References itemChanged(), and update().
Referenced by createCustomContextMenu(), JobPropertyItemNode(), and set().
| void JobPropertyItemNode::itemChanged | ( | ) | [signal] |
Signal emitted when the item has changed
Referenced by createCustomContextMenu(), deleteChild(), JobPropertyItemNode(), onChildChanged(), set(), and updateValue().
QString JobPropertyItemNode::_node [private] |
Definition at line 83 of file jobpropertyitemnodes.h.
Referenced by deleteChild(), set(), toString(), and update().
1.5.4