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

TxqEditTable Class Reference

TxqEditTable is the a class used to edit a TxAttributeSet. More...

#include <TxqEditTable.h>

Inheritance diagram for TxqEditTable::

QTable List of all members.

Public Methods

 TxqEditTable (QWidget *parent=0, const char *name=0)
 Construct a TxqEditTable. More...

void setAttribute (TxAttributeSet *a)
 Set and create the attributes items from the attributes in the TxAttributeSet pointer. More...

void setAttributeFilter (vector< string > &fn)
 Set the attribute filter names. More...

void addStringItem (const QString name, const QString value, const int row)
 Add a String item to the TxqEditTable. More...

void addOptionItem (const QString name, const int value, const int row)
 Add a Option item to the TxqEditTable. More...

void addOptionVecItem (const QString name, const int value, const int row, const QString attribName, const int index)
 Add an Option item from a vector to the TxqEditTable. More...

void addParamItem (const QString name, const double value, const int row)
 Add a Param item to the TxqEditTable. More...

void addParamVecItem (const QString name, const double value, const int row, const QString attribName, const int index)
 Add a Param item from a vector to the TxqEditTable. More...

void addOptVecItem (const QString name, const vector< int > &value, const int row)
 Add a Option vector item to the TxqEditTable. More...

void addPrmVecItem (const QString name, const vector< double > &value, const int row)
 Add a Param vector item to the TxqEditTable. More...

void hideRows (const int begin, const int size)
 Hide a sequence of rows from row number begin to row number begin + size -1. More...

void showRows (const int begin, const int size, const int rh)
 Show a sequence of rows from row number begin to row number begin + size -1. More...

void hideHeader ()
 Hide the vertical header. More...

void showHeader ()
 Show the vertical header. More...


Protected Methods

void resizeEvent (QResizeEvent *e)
 Overloaded resizeEvent to resize the cells. More...

void updateNumRows ()
 Update the number of rows of the table. More...


Protected Attributes

vector<string> filterNames
 The vector of filter names. More...


Private Attributes

TxAttributeSetattrib
 The class attribute pointer. More...

vector<string> attribNames
 The vector of attribute names. More...


Detailed Description

TxqEditTable is the a class used to edit a TxAttributeSet.

Foreach attribute, it creates a name,value TxqTableItem in which to edit the attribute's value.

Definition at line 49 of file TxqEditTable.h.


Constructor & Destructor Documentation

TxqEditTable::TxqEditTable ( QWidget * parent = 0,
const char * name = 0 )
 

Construct a TxqEditTable.

Parameters:
parent   the QWidget parent defaulted to null.
name   the name of the widget defaulted to null.


Member Function Documentation

void TxqEditTable::addOptVecItem ( const QString name,
const vector< int > & value,
const int row )
 

Add a Option vector item to the TxqEditTable.

Parameters:
name   the name of the attribute
value   the Option vector
row   the row number in the TxqEditTable

void TxqEditTable::addOptionItem ( const QString name,
const int value,
const int row )
 

Add a Option item to the TxqEditTable.

Parameters:
name   the name of the attribute
value   the value of the Option
row   the row number in the TxqEditTable

void TxqEditTable::addOptionVecItem ( const QString name,
const int value,
const int row,
const QString attribName,
const int index )
 

Add an Option item from a vector to the TxqEditTable.

Parameters:
name   the index name that this attribute is known by in the editor, ususally a [ number ] string
value   the value of the Option
row   the row number in the TxqEditTable
attribName   the name of the attribute
index   the index number into the vector which this attribute belongs to

void TxqEditTable::addParamItem ( const QString name,
const double value,
const int row )
 

Add a Param item to the TxqEditTable.

Parameters:
name   the name of the attribute
value   the value of the Param
row   the row number in the TxqEditTable

void TxqEditTable::addParamVecItem ( const QString name,
const double value,
const int row,
const QString attribName,
const int index )
 

Add a Param item from a vector to the TxqEditTable.

Parameters:
name   the index name that this attribute is known by in the editor, ususally a [ number ] string
value   the value of the Param
row   the row number in the TxqEditTable
attribName   the name of the attribute
index   the index number into the vector which this attribute belongs to

void TxqEditTable::addPrmVecItem ( const QString name,
const vector< double > & value,
const int row )
 

Add a Param vector item to the TxqEditTable.

Parameters:
name   the name of the attribute
value   the Param vector
row   the row number in the TxqEditTable

void TxqEditTable::addStringItem ( const QString name,
const QString value,
const int row )
 

Add a String item to the TxqEditTable.

Parameters:
name   the name of the attribute
value   the value of the string
row   the row number in the TxqEditTable

void TxqEditTable::hideHeader ( )
 

Hide the vertical header.

void TxqEditTable::hideRows ( const int begin,
const int size )
 

Hide a sequence of rows from row number begin to row number begin + size -1.

Parameters:
begin   the row number to begin hiding
size   the number of rows to hide

void TxqEditTable::resizeEvent ( QResizeEvent * e ) [protected]
 

Overloaded resizeEvent to resize the cells.

Column 2, Value, will get's resized.

void TxqEditTable::setAttribute ( TxAttributeSet * a )
 

Set and create the attributes items from the attributes in the TxAttributeSet pointer.

Parameters:
a   the TxAttributeSet pointer. The values pointed to by this pointer can be updated by the TxqEditTable.

void TxqEditTable::setAttributeFilter ( vector< string > & fn )
 

Set the attribute filter names.

These names may be in the TxAttibuteSet but will not be displayed in the attribute editor.

Parameters:
fn   the string of filter names.

void TxqEditTable::showHeader ( )
 

Show the vertical header.

void TxqEditTable::showRows ( const int begin,
const int size,
const int rh )
 

Show a sequence of rows from row number begin to row number begin + size -1.

Parameters:
begin   the row number to begin showing
size   the number of rows to show
rh   the row height

void TxqEditTable::updateNumRows ( ) [protected]
 

Update the number of rows of the table.


Member Data Documentation

TxAttributeSet * TxqEditTable::attrib [private]
 

The class attribute pointer.

Definition at line 196 of file TxqEditTable.h.

vector< string > TxqEditTable::attribNames [private]
 

The vector of attribute names.

Definition at line 201 of file TxqEditTable.h.

vector< string > TxqEditTable::filterNames [protected]
 

The vector of filter names.

Definition at line 189 of file TxqEditTable.h.


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