Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
QDS_Table Class Reference

#include <QDS_Table.h>

Inheritance diagram for QDS_Table:
Inheritance graph

Classes

class  DeleteFilter
 

Public Member Functions

 QDS_Table (QWidget *=0, const char *=0)
 
 QDS_Table (int, int, QWidget *=0, const char *=0)
 
virtual ~QDS_Table ()
 
QDS_DatumverticalHeaderEditor () const
 
QDS_DatumhorizontalHeaderEditor () const
 
QDS_DatumheaderEditor (const Orientation) const
 
void setVerticalHeaderEditor (QDS_Datum *)
 
void setHorizontalHeaderEditor (QDS_Datum *)
 
void setHeaderEditor (QDS_Datum *)
 
virtual void setHeaderEditor (const Orientation, QDS_Datum *)
 
QDS_DatumtableEditor () const
 
virtual void setTableEditor (QDS_Datum *)
 
QDS_DatumrowEditor (const int) const
 
QDS_DatumcolumnEditor (const int) const
 
virtual void setRowEditor (const int, QDS_Datum *)
 
virtual void setColumnEditor (const int, QDS_Datum *)
 
QDS_DatumcellEditor (const int, const int) const
 
virtual void setCellEditor (const int, const int, QDS_Datum *)
 
QDS_DatumactualCellEditor (const int, const int) const
 
virtual void setNumRows (int)
 
virtual void setNumCols (int)
 
virtual void clearCellWidget (int, int)
 
bool isKeepEditors () const
 
void setKeepEditors (const bool)
 
- Public Member Functions inherited from QtxTable
 QtxTable (QWidget *=0, const char *=0)
 
 QtxTable (int, int, QWidget *=0, const char *=0)
 
virtual ~QtxTable ()
 
bool headerEditable (Orientation) const
 
bool editHeader (Orientation, const int)
 
void endEditHeader (const bool=true)
 
virtual bool eventFilter (QObject *, QEvent *)
 

Protected Member Functions

virtual QWidgetcreateHeaderEditor (QHeader *, const int, const bool=true)
 
virtual QWidgetcreateEditor (int, int, bool) const
 
virtual void endEdit (int, int, bool, bool)
 
virtual void setCellContentFromEditor (int, int)
 
virtual void setHeaderContentFromEditor (QHeader *, const int, QWidget *)
 
- Protected Member Functions inherited from QtxTable
virtual void resizeEvent (QResizeEvent *)
 
virtual bool beginHeaderEdit (Orientation, const int)
 
virtual void endHeaderEdit (const bool=true)
 
bool isHeaderEditing () const
 
QHeader * header (Orientation o) const
 

Properties

bool KeepEditors
 

Private Types

typedef QVector< QDS_Datum * > DatumVector
 
typedef QMap< int, QDS_Datum * > DatumMap
 
typedef QMap< int, DatumMapCellMap
 

Private Member Functions

void initEditor (QDS_Datum *)
 
QDS_Datumdatum (const QWidget *) const
 

Private Attributes

QDS_DatummyHorEdit
 
QDS_DatummyVerEdit
 
DatumVector myRowEdit
 
DatumVector myColEdit
 
CellMap myCellEdit
 
QDS_DatummyTableEdit
 
bool myKeepEdits
 

Additional Inherited Members

- Public Slots inherited from QtxTable
virtual void hide ()
 
virtual void setHeaderEditable (Orientation, bool)
 
- Signals inherited from QtxTable
void headerEdited (QHeader *, int)
 
void headerEdited (Orientation, int)
 

Member Typedef Documentation

typedef QMap<int, DatumMap> QDS_Table::CellMap
private
typedef QMap<int, QDS_Datum*> QDS_Table::DatumMap
private
typedef QVector<QDS_Datum*> QDS_Table::DatumVector
private

Constructor & Destructor Documentation

QDS_Table::QDS_Table ( QWidget parent = 0,
const char *  name = 0 
)
QDS_Table::QDS_Table ( int  r,
int  c,
QWidget parent = 0,
const char *  name = 0 
)

References myColEdit, and myRowEdit.

QDS_Table::~QDS_Table ( )
virtual

Member Function Documentation

QDS_Datum * QDS_Table::actualCellEditor ( const int  row,
const int  col 
) const
QDS_Datum * QDS_Table::cellEditor ( const int  row,
const int  col 
) const

References myCellEdit.

void QDS_Table::clearCellWidget ( int  row,
int  col 
)
virtual
QDS_Datum * QDS_Table::columnEditor ( const int  col) const

References myColEdit.

QWidget * QDS_Table::createEditor ( int  row,
int  col,
bool  init 
) const
protectedvirtual
QWidget * QDS_Table::createHeaderEditor ( QHeader *  hdr,
const int  sec,
const bool  init = true 
)
protectedvirtual

Creates and

Returns
header editor
Parameters
hdr- header
sec- column/row
init- init editor with value

Reimplemented from QtxTable.

References QDS_Datum::clear(), QDS::Control, QtxTable::createHeaderEditor(), headerEditor(), QDS_Datum::setStringValue(), and QDS_Datum::widget().

QDS_Datum* QDS_Table::datum ( const QWidget ) const
private
void QDS_Table::endEdit ( int  row,
int  col,
bool  accept,
bool   
)
protectedvirtual
QDS_Datum * QDS_Table::headerEditor ( const Orientation  o) const

References Horizontal, myHorEdit, and myVerEdit.

QDS_Datum * QDS_Table::horizontalHeaderEditor ( ) const

References myHorEdit.

void QDS_Table::initEditor ( QDS_Datum dat)
private
bool QDS_Table::isKeepEditors ( ) const

References myKeepEdits.

QDS_Datum * QDS_Table::rowEditor ( const int  row) const

References myRowEdit.

void QDS_Table::setCellContentFromEditor ( int  row,
int  col 
)
protectedvirtual
void QDS_Table::setCellEditor ( const int  row,
const int  col,
QDS_Datum dat 
)
virtual
void QDS_Table::setColumnEditor ( const int  col,
QDS_Datum dat 
)
virtual
void QDS_Table::setHeaderContentFromEditor ( QHeader *  hdr,
const int  sec,
QWidget editor 
)
protectedvirtual

Initialize editor with value

Parameters
hdr- header
sec- column/row
editor- editor

Reimplemented from QtxTable.

References headerEditor(), QtxTable::setHeaderContentFromEditor(), and QDS_Datum::stringValue().

void QDS_Table::setHeaderEditor ( QDS_Datum dat)

References Horizontal, and Vertical.

void QDS_Table::setHeaderEditor ( const Orientation  o,
QDS_Datum dat 
)
virtual
void QDS_Table::setHorizontalHeaderEditor ( QDS_Datum dat)

References Horizontal, and setHeaderEditor().

void QDS_Table::setKeepEditors ( const bool  on)

References myKeepEdits.

void QDS_Table::setNumCols ( int  c)
virtual
void QDS_Table::setNumRows ( int  r)
virtual
void QDS_Table::setRowEditor ( const int  row,
QDS_Datum dat 
)
virtual
void QDS_Table::setTableEditor ( QDS_Datum dat)
virtual
void QDS_Table::setVerticalHeaderEditor ( QDS_Datum dat)

References setHeaderEditor(), and Vertical.

QDS_Datum * QDS_Table::tableEditor ( ) const

References myTableEdit.

QDS_Datum * QDS_Table::verticalHeaderEditor ( ) const

References myVerEdit.

Member Data Documentation

CellMap QDS_Table::myCellEdit
private
DatumVector QDS_Table::myColEdit
private
QDS_Datum* QDS_Table::myHorEdit
private
bool QDS_Table::myKeepEdits
private
DatumVector QDS_Table::myRowEdit
private
QDS_Datum* QDS_Table::myTableEdit
private
QDS_Datum* QDS_Table::myVerEdit
private

Property Documentation

bool QDS_Table::KeepEditors
readwrite

The documentation for this class was generated from the following files: