JobPropertyItemString Class Reference

#include <jobpropertyitemstring.h>

Inheritance diagram for JobPropertyItemString:

Inheritance graph
[legend]
Collaboration diagram for JobPropertyItemString:

Collaboration graph
[legend]

List of all members.

Public Slots

void set (const QString &str)

Signals

void itemChanged (const QString &str)

Public Member Functions

 JobPropertyItemString (JobPropertyModel *model, QString inName, JobPropertyItem *parent=0)
virtual ~JobPropertyItemString ()
virtual bool setData (int column, const QVariant &value)
virtual QWidget * createEditor (QWidget *parent, const QObject *target, const char *receiver) const
virtual void updateEditorContents (QWidget *editor)
virtual void updateValue (QWidget *editor)
virtual void setRegExpValidator (QRegExp rx)
virtual QString toString ()

Protected Attributes

QRegExp _rx


Detailed Description

Job property described as a string

Definition at line 16 of file jobpropertyitemstring.h.


Constructor & Destructor Documentation

JobPropertyItemString::JobPropertyItemString ( JobPropertyModel model,
QString  inName,
JobPropertyItem parent = 0 
)

Construct a JobPropertyItemNodeProperty

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

Definition at line 19 of file jobpropertyitemstring.cpp.

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

Here is the call graph for this function:

JobPropertyItemString::~JobPropertyItemString (  )  [virtual]

Destroy this item

Definition at line 32 of file jobpropertyitemstring.cpp.


Member Function Documentation

bool JobPropertyItemString::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 41 of file jobpropertyitemstring.cpp.

References JobPropertyItem::itemData.

QWidget * JobPropertyItemString::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 58 of file jobpropertyitemstring.cpp.

References _rx.

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

Update the content of the editor

Parameters:
editor the editor widget

Implements JobPropertyItem.

Definition at line 73 of file jobpropertyitemstring.cpp.

References JobPropertyItem::itemData.

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

Update the value of the item from the editor

Parameters:
editor the editor widget

Implements JobPropertyItem.

Definition at line 85 of file jobpropertyitemstring.cpp.

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

void JobPropertyItemString::setRegExpValidator ( QRegExp  rx  )  [virtual]

Set a RegExpValidator for this item

Parameters:
rx the rexgexp to validate agains

Definition at line 118 of file jobpropertyitemstring.cpp.

References _rx.

Referenced by JobPropertyItemNode::JobPropertyItemNode(), JobPropertyItemRoot::JobPropertyItemRoot(), and JobPropertyItemNode::set().

QString JobPropertyItemString::toString (  )  [virtual]

Convert the item value to a string

Definition at line 126 of file jobpropertyitemstring.cpp.

References JobPropertyItem::itemData.

void JobPropertyItemString::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 102 of file jobpropertyitemstring.cpp.

References JobPropertyItem::_model, JobPropertyModel::emitLayoutAboutToBeChanged(), JobPropertyModel::emitLayoutChanged(), and JobPropertyItem::itemData.

Referenced by JobPropertyItemNode::set().

void JobPropertyItemString::itemChanged ( const QString &  str  )  [signal]

Signal emitted when the item has changed

Referenced by updateValue().


Member Data Documentation

QRegExp JobPropertyItemString::_rx [protected]

Definition at line 40 of file jobpropertyitemstring.h.

Referenced by createEditor(), and setRegExpValidator().


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