JobPropertyItemNode Class Reference

classe More...

#include <jobpropertyitemnodes.h>

Inheritance diagram for JobPropertyItemNode:

Inheritance graph
[legend]
Collaboration diagram for JobPropertyItemNode:

Collaboration graph
[legend]

List of all members.

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


Detailed Description

classe

La classe

Definition at line 56 of file jobpropertyitemnodes.h.


Constructor & Destructor Documentation

JobPropertyItemNode::JobPropertyItemNode ( JobPropertyModel model,
JobPropertyItemNodes parent = 0 
)

Construct a JobPropertyItemNode

Parameters:
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().

Here is the call graph for this function:

JobPropertyItemNode::~JobPropertyItemNode (  )  [virtual]

Destroy this item and its children

Definition at line 229 of file jobpropertyitemnodes.cpp.

References JobPropertyItem::childItems.


Member Function Documentation

bool JobPropertyItemNode::setData ( int  column,
const QVariant &  value 
) [virtual]

Set the specified data in the specified column

Parameters:
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.

Parameters:
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.

Here is the call graph for this function:

QWidget * JobPropertyItemNode::createEditor ( QWidget *  parent,
const QObject *  target,
const char *  receiver 
) const [virtual]

Create an editor for this item

Parameters:
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

Parameters:
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

Parameters:
editor the editor widget

Implements JobPropertyItem.

Definition at line 281 of file jobpropertyitemnodes.cpp.

References itemChanged(), JobPropertyItem::itemData, and update().

Here is the call graph for this function:

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

Here is the call graph for this function:

bool JobPropertyItemNode::deleteChild ( int  row  )  [virtual]

Delete the specified child

Parameters:
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().

Here is the call graph for this function:

void JobPropertyItemNode::set ( const QString &  newnode  )  [slot]

Set the value of this item

Parameters:
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

Parameters:
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().


Member Data Documentation

QString JobPropertyItemNode::_node [private]

Definition at line 83 of file jobpropertyitemnodes.h.

Referenced by deleteChild(), set(), toString(), and update().


The documentation for this class was generated from the following files:
Generated on Mon Mar 16 18:46:08 2009 for QCJM by  doxygen 1.5.4