Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

TxqParamTableItem Class Reference

TxqParamTableItem is a class to add a QLineEdit widget with a DoubleValidator to a QTableItem in order to edit a double number. More...

#include <TxqParamTableItem.h>

Inheritance diagram for TxqParamTableItem::

TxqTableItem QObject QTableItem TxqParamVecTableItem List of all members.

Public Methods

 TxqParamTableItem (QTable *t, EditType e, TxAttributeSet *a, const QString s, const QVariant &v, int r)
 Construct a TxqParamTableItem given the QTable and EditTye parameters. More...

virtual ~TxqParamTableItem ()
 The destructor. More...

QWidgetcreateEditor () const
 Create the widget. More...

void setContentFromEditor (QWidget *w)
 Set the content from the editor widget. More...

void setText (const QString &newText)
 Set the new text. More...

virtual void setAttribValue ()
 Public interface to set the attribute value from the class data members. More...


Protected Methods

virtual void setAttribValue (const TXSTD::string name, const double value)
 Set the attribute value. More...


Private Attributes

QGuardedPtr<QLineEdit> dLineEdit
 The editor widget. More...


Detailed Description

TxqParamTableItem is a class to add a QLineEdit widget with a DoubleValidator to a QTableItem in order to edit a double number.

Definition at line 33 of file TxqParamTableItem.h.


Constructor & Destructor Documentation

TxqParamTableItem::TxqParamTableItem ( QTable * t,
EditType e,
TxAttributeSet * a,
const QString s,
const QVariant & v,
int r )
 

Construct a TxqParamTableItem given the QTable and EditTye parameters.

Parameters:
t   the QTable pointer that this item belong to
e   the type of edit for this item
a   the attribute set pointer
s   the attribute name
v   the attribute value
r   the row number for this item

TxqParamTableItem::~TxqParamTableItem ( ) [inline, virtual]
 

The destructor.

Definition at line 52 of file TxqParamTableItem.h.


Member Function Documentation

QWidget * TxqParamTableItem::createEditor ( ) const
 

Create the widget.

This widget is a QLineEdit and will edit a double number using a validator.

void TxqParamTableItem::setAttribValue ( const TXSTD::string name,
const double value ) [protected, virtual]
 

Set the attribute value.

Parameters:
name   the attribute name
value   the value to set

Reimplemented in TxqParamVecTableItem.

void TxqParamTableItem::setAttribValue ( ) [virtual]
 

Public interface to set the attribute value from the class data members.

Reimplemented from TxqTableItem.

void TxqParamTableItem::setContentFromEditor ( QWidget * w )
 

Set the content from the editor widget.

Parameters:
w   the editor widget

void TxqParamTableItem::setText ( const QString & newText )
 

Set the new text.

Parameters:
newText   the new text


Member Data Documentation

QGuardedPtr< QLineEdit > TxqParamTableItem::dLineEdit [private]
 

The editor widget.

Definition at line 92 of file TxqParamTableItem.h.


The documentation for this class was generated from the following file: Copyright Tech-X Corporation, all rights reserved.