#include <VISU_TableDlg.h>

Data Structures | |
| class | WidgetCointainer |
Public Types | |
| enum | { ttNone, ttInt, ttReal, ttAll, ttAuto } |
| enum | { teNone = 0x00, teAddRemove = 0x01, teEditData = 0x02, teRowColumn = 0x04, teAll = teAddRemove | teEditData | teRowColumn } |
Public Slots | |
| void | setEditEnabled (bool enable) |
| void | showColumnTitles (bool showTitles) |
| void | updateButtonsState () |
| void | addRow () |
| void | addCol () |
| void | delRow () |
| void | delCol () |
| void | adjustTable () |
| void | selectAll () |
| void | clearTable () |
| void | columnClicked (int) |
| void | rowClicked (int) |
Public Member Functions | |
| VISU_TableDlg (QWidget *parent, _PTR(Study) study, VISU::Table_i *table, bool allowEdition=false, int which=ttAuto, Qt::Orientation orient=Qt::Horizontal, bool showColumnTitles=true) | |
| ~VISU_TableDlg () | |
| TableWidget (QWidget *parent=0, Qt::Orientation orientation=Qt::Horizontal) | |
| ~TableWidget () | |
| void | initialize (_PTR(Study) study, VISU::Table_i *table, int type) |
| void | setTableTitle (const QString &title) |
| QString | getTableTitle () |
| void | setNumRows (const int num) |
| int | getNumRows () |
| void | setNumCols (const int num) |
| int | getNumCols () |
| void | setRowTitles (QStringList &tlts) |
| void | getRowTitles (QStringList &tlts) |
| void | setColTitles (QStringList &tlts) |
| void | getColTitles (QStringList &tlts) |
| void | setUnitsTitle (const QString &tlt) |
| void | setUnits (QStringList &units) |
| void | getUnits (QStringList &units) |
| void | setRowData (int row, QStringList &data) |
| void | getRowData (int row, QStringList &data) |
| bool | eventFilter (QObject *o, QEvent *e) |
Protected Member Functions | |
| void | keyPressEvent (QKeyEvent *e) |
| void | updateTableFromServant (bool adjust) |
Private Types | |
| enum | { tcTitle, tcTable, tcControls, tcButtons } |
| typedef QMap< int, TableWidget * > | TableMap |
| typedef QMap< int, WidgetCointainer * > | ContMap |
Private Slots | |
| void | help () |
Private Member Functions | |
| QString | tableTitle (int type) |
| _PTR (Study) myStudy | |
| _PTR (Study) myStudy | |
| _PTR (GenericAttribute) myAttr | |
Private Attributes | |
| TableMap | myTableMap |
| ContMap | myContMap |
| QCheckBox * | myEditCheck |
| QCheckBox * | myUpdateCheck |
| QPushButton * | myOKBtn |
| QPushButton * | myHelpBtn |
| VISU::Table_i * | myTable |
| VISU::Table_i * | myTableObj |
| int | myType |
| QLineEdit * | myTitleEdit |
| QTableWidget * | myTable |
| QPushButton * | myAddRowBtn |
| QPushButton * | myAddColBtn |
| QPushButton * | myDelRowBtn |
| QPushButton * | myDelColBtn |
| QPushButton * | myAdjustBtn |
| QPushButton * | mySelectAllBtn |
| QPushButton * | myClearBtn |
| QLabel * | mySortPolicyLabel |
| QComboBox * | mySortPolicyCombo |
| Qt::Orientation | myOrientation |
typedef QMap<int, TableWidget*> VISU_TableDlg.TableMap [private] |
typedef QMap<int, WidgetCointainer*> VISU_TableDlg.ContMap [private] |
| VISU_TableDlg::VISU_TableDlg | ( | QWidget * | parent, |
| _PTR(Study) | study, | ||
| VISU::Table_i * | table, | ||
| bool | allowEdition = false, |
||
| int | which = ttAuto, |
||
| Qt::Orientation | orient = Qt::Horizontal, |
||
| bool | showColumnTitles = true |
||
| ) |
Constructor
References _PTR(), VISU.Table_i.GetObjectEntry(), help(), MARGIN_SIZE, myEditCheck, myHelpBtn, myOKBtn, visu_big_table.myStudy, myTable, myTableMap, myUpdateCheck, setEditEnabled(), SPACING_SIZE, tableTitle(), TableWidget(), ttAll, ttAuto, ttInt, and ttReal.
| VISU_TableDlg::~VISU_TableDlg | ( | ) |
Destructor
| VISU_TableDlg.~TableWidget | ( | ) |
| void VISU_TableDlg::keyPressEvent | ( | QKeyEvent * | e | ) | [protected] |
Provides help on F1 button click
References help().
| void VISU_TableDlg::help | ( | ) | [private, slot] |
<OK> button slot, saves table(s) Called only in create/edit mode ( <edit> parameter for constructor is true )
<Help> button slot, shows corresponding help page
| VISU_TableDlg._PTR | ( | Study | ) | [private] |
| VISU_TableDlg.TableWidget | ( | QWidget * | parent = 0, |
| Qt::Orientation | orientation = Qt::Horizontal |
||
| ) |
| void VISU_TableDlg.initialize | ( | _PTR(Study) | study, |
| VISU::Table_i * | table, | ||
| int | type | ||
| ) |
| void VISU_TableDlg.setTableTitle | ( | const QString & | title | ) |
| QString VISU_TableDlg.getTableTitle | ( | ) |
| void VISU_TableDlg.setNumRows | ( | const int | num | ) |
| int VISU_TableDlg.getNumRows | ( | ) |
| void VISU_TableDlg.setNumCols | ( | const int | num | ) |
| int VISU_TableDlg.getNumCols | ( | ) |
| void VISU_TableDlg.setRowTitles | ( | QStringList & | tlts | ) |
| void VISU_TableDlg.getRowTitles | ( | QStringList & | tlts | ) |
| void VISU_TableDlg.setColTitles | ( | QStringList & | tlts | ) |
| void VISU_TableDlg.getColTitles | ( | QStringList & | tlts | ) |
| void VISU_TableDlg.setUnitsTitle | ( | const QString & | tlt | ) |
| void VISU_TableDlg.setUnits | ( | QStringList & | units | ) |
| void VISU_TableDlg.getUnits | ( | QStringList & | units | ) |
| void VISU_TableDlg.setRowData | ( | int | row, |
| QStringList & | data | ||
| ) |
| void VISU_TableDlg.getRowData | ( | int | row, |
| QStringList & | data | ||
| ) |
| bool VISU_TableDlg.eventFilter | ( | QObject * | o, |
| QEvent * | e | ||
| ) |
| void VISU_TableDlg.setEditEnabled | ( | bool | enable | ) | [slot] |
| void VISU_TableDlg.showColumnTitles | ( | bool | showTitles | ) | [slot] |
| void VISU_TableDlg.updateButtonsState | ( | ) | [slot] |
| void VISU_TableDlg.addRow | ( | ) | [slot] |
| void VISU_TableDlg.addCol | ( | ) | [slot] |
| void VISU_TableDlg.delRow | ( | ) | [slot] |
| void VISU_TableDlg.delCol | ( | ) | [slot] |
| void VISU_TableDlg.adjustTable | ( | ) | [slot] |
| void VISU_TableDlg.selectAll | ( | ) | [slot] |
| void VISU_TableDlg.clearTable | ( | ) | [slot] |
| void VISU_TableDlg.columnClicked | ( | int | ) | [slot] |
| void VISU_TableDlg.rowClicked | ( | int | ) | [slot] |
| void VISU_TableDlg.updateTableFromServant | ( | bool | adjust | ) | [protected] |
| VISU_TableDlg._PTR | ( | Study | ) | [private] |
| VISU_TableDlg._PTR | ( | GenericAttribute | ) | [private] |
TableMap VISU_TableDlg.myTableMap [private] |
ContMap VISU_TableDlg.myContMap [private] |
QCheckBox* VISU_TableDlg.myEditCheck [private] |
QCheckBox* VISU_TableDlg.myUpdateCheck [private] |
QPushButton* VISU_TableDlg.myOKBtn [private] |
QPushButton* VISU_TableDlg.myHelpBtn [private] |
VISU::Table_i* VISU_TableDlg.myTable [private] |
VISU::Table_i* VISU_TableDlg.myTableObj [private] |
int VISU_TableDlg.myType [private] |
QLineEdit* VISU_TableDlg.myTitleEdit [private] |
QTableWidget* VISU_TableDlg.myTable [private] |
QPushButton* VISU_TableDlg.myAddRowBtn [private] |
QPushButton* VISU_TableDlg.myAddColBtn [private] |
QPushButton* VISU_TableDlg.myDelRowBtn [private] |
QPushButton* VISU_TableDlg.myDelColBtn [private] |
QPushButton* VISU_TableDlg.myAdjustBtn [private] |
QPushButton* VISU_TableDlg.mySelectAllBtn [private] |
QPushButton* VISU_TableDlg.myClearBtn [private] |
QLabel* VISU_TableDlg.mySortPolicyLabel [private] |
QComboBox* VISU_TableDlg.mySortPolicyCombo [private] |
Qt::Orientation VISU_TableDlg.myOrientation [private] |