JobPropertyItemNodeProperty Class Reference

classe More...

#include <jobpropertyitemnodes.h>

Inheritance diagram for JobPropertyItemNodeProperty:

Inheritance graph
[legend]
Collaboration diagram for JobPropertyItemNodeProperty:

Collaboration graph
[legend]

List of all members.

Public Slots

void set (const QString &property)

Signals

void itemChanged (const QString &)

Public Member Functions

 JobPropertyItemNodeProperty (JobPropertyModel *model, JobPropertyItemNode *parent=0)
virtual ~JobPropertyItemNodeProperty ()
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)
QString toString ()


Detailed Description

classe

La classe

Definition at line 91 of file jobpropertyitemnodes.h.


Constructor & Destructor Documentation

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

Construct a JobPropertyItemNodeProperty

Parameters:
model the model this property is in
parent parent of this item

Definition at line 426 of file jobpropertyitemnodes.cpp.

References JobPropertyItem::_name, JobPropertyItem::data(), JobPropertyItem::itemData, JobPropertyItem::parentItem, and JobPropertyItem::setHaveContextMenu().

Here is the call graph for this function:

JobPropertyItemNodeProperty::~JobPropertyItemNodeProperty (  )  [virtual]

Destroy this item and its children

Definition at line 441 of file jobpropertyitemnodes.cpp.

References JobPropertyItem::childItems.


Member Function Documentation

bool JobPropertyItemNodeProperty::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 452 of file jobpropertyitemnodes.cpp.

References JobPropertyItem::itemData.

void JobPropertyItemNodeProperty::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 531 of file jobpropertyitemnodes.cpp.

References JobPropertyItem::_model, JobPropertyItem::childNumber(), JobPropertyItem::getSelfIndex(), and JobPropertyItem::parentItem.

Here is the call graph for this function:

QWidget * JobPropertyItemNodeProperty::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 468 of file jobpropertyitemnodes.cpp.

void JobPropertyItemNodeProperty::updateEditorContents ( QWidget *  editor  )  [virtual]

Update the content of the editor

Parameters:
editor the editor widget

Implements JobPropertyItem.

Definition at line 481 of file jobpropertyitemnodes.cpp.

References JobPropertyItem::itemData.

void JobPropertyItemNodeProperty::updateValue ( QWidget *  editor  )  [virtual]

Update the value of the item from the editor

Parameters:
editor the editor widget

Implements JobPropertyItem.

Definition at line 493 of file jobpropertyitemnodes.cpp.

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

QString JobPropertyItemNodeProperty::toString (  ) 

Convert the item value to a string

Definition at line 520 of file jobpropertyitemnodes.cpp.

References JobPropertyItem::itemData.

void JobPropertyItemNodeProperty::set ( const QString &  str  )  [slot]

Set the value of this item

Parameters:
str the string to parse to set the value of this item.

Definition at line 510 of file jobpropertyitemnodes.cpp.

References JobPropertyItem::itemData.

Referenced by JobPropertyItemNode::set().

void JobPropertyItemNodeProperty::itemChanged ( const QString &   )  [signal]

Signal emitted when the item has changed

Referenced by updateValue().


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