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

TxqStringTableItem Class Reference

TxqStringTableItem is a class to edit a TxAttributeSet TXSTD::string value. More...

#include <TxqStringTableItem.h>

Inheritance diagram for TxqStringTableItem::

TxqTableItem QObject QTableItem List of all members.

Public Methods

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

virtual ~TxqStringTableItem ()
 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...

int alignment () const
 Overload the aligment to always align right. More...


Protected Methods

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


Private Attributes

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


Detailed Description

TxqStringTableItem is a class to edit a TxAttributeSet TXSTD::string value.

Definition at line 30 of file TxqStringTableItem.h.


Constructor & Destructor Documentation

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

Construct a TxqStringTableItem 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

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

The destructor.

Definition at line 49 of file TxqStringTableItem.h.


Member Function Documentation

int TxqStringTableItem::alignment ( ) const [inline]
 

Overload the aligment to always align right.

Definition at line 78 of file TxqStringTableItem.h.

QWidget * TxqStringTableItem::createEditor ( ) const
 

Create the widget.

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

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

Set the attribute value.

Parameters:
name   the attribute name
value   the value to set

void TxqStringTableItem::setAttribValue ( ) [virtual]
 

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

Reimplemented from TxqTableItem.

void TxqStringTableItem::setContentFromEditor ( QWidget * w )
 

Set the content from the editor widget.

Parameters:
w   the editor widget

void TxqStringTableItem::setText ( const QString & newText )
 

Set the new text.

Parameters:
newText   the new text


Member Data Documentation

QGuardedPtr< QLineEdit > TxqStringTableItem::lineEdit [private]
 

The editor widget.

Definition at line 93 of file TxqStringTableItem.h.


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