SOFA API  1c8b807d
Open source framework for multi-physics simuation
sofa::gui::qt::table_data_widget_container< T, FLAGS > Class Template Reference

#include <QTableDataContainer.h>

Public Attributes

QSpinBox * wSize
 
QTableViewUpdaterwTableView
 
QTableModelUpdaterwTableModel
 
QPushButtonUpdaterwDisplay
 
DataWidgetwidget
 
Layoutcontainer_layout
 
int rows
 
int cols
 
QTableUpdaterwTable
 

Public Member Functions

 table_data_widget_container ()
 
bool createLayout (DataWidget *parent)
 
bool createLayout (QLayout *layout)
 
void setCellText (int r, int c, const std::string &s)
 
std::string getCellText (int r, int c)
 
template<class V >
void setCell (int r, int c, const V &v)
 
void setCell (int r, int c, const std::string &s)
 
template<class V >
void getCell (int r, int c, V &v)
 
void getCell (int r, int c, const std::string &s)
 
bool createWidgets (DataWidget *parent, const data_type &d, bool readOnly)
 
void setReadOnly (bool readOnly)
 
bool isDisplayed ()
 
void readFromData (const data_type &d)
 
void writeToData (data_type &d)
 
void processTableModifications (const data_type &d)
 
void fillTable (const data_type &d)
 
void insertWidgets ()
 
 table_data_widget_container ()
 
bool createLayout (DataWidget *parent)
 
bool createLayout (QLayout *layout)
 
void setRowHeader (int r, const std::string &s)
 
void setColHeader (int c, const std::string &s)
 
void setCellText (int r, int c, const std::string &s)
 
std::string getCellText (int r, int c)
 
template<class V >
void setCell (int r, int c, const V &v)
 
void setCell (int r, int c, const std::string &s)
 
template<class V >
void getCell (int r, int c, V &v)
 
void getCell (int r, int c, const std::string &s)
 
bool createWidgets (DataWidget *parent, const data_type &d, bool readOnly)
 
void setReadOnly (bool readOnly)
 
bool isDisplayed ()
 
void readFromData (const data_type &d)
 
void writeToData (data_type &d)
 
void processTableModifications (const data_type &d)
 
void fillTable (const data_type &d)
 
void insertWidgets ()
 

Attribute details

◆ cols

template<class T , int FLAGS = TABLE_NORMAL>
int sofa::gui::qt::table_data_widget_container< T, FLAGS >::cols

◆ container_layout

template<class T , int FLAGS = TABLE_NORMAL>
Layout * sofa::gui::qt::table_data_widget_container< T, FLAGS >::container_layout

◆ rows

template<class T , int FLAGS = TABLE_NORMAL>
int sofa::gui::qt::table_data_widget_container< T, FLAGS >::rows

◆ wDisplay

template<class T , int FLAGS = TABLE_NORMAL>
QPushButtonUpdater * sofa::gui::qt::table_data_widget_container< T, FLAGS >::wDisplay

◆ widget

template<class T , int FLAGS = TABLE_NORMAL>
DataWidget * sofa::gui::qt::table_data_widget_container< T, FLAGS >::widget

◆ wSize

template<class T , int FLAGS = TABLE_NORMAL>
QSpinBox * sofa::gui::qt::table_data_widget_container< T, FLAGS >::wSize

◆ wTable

template<class T , int FLAGS = TABLE_NORMAL>
QTableUpdater* sofa::gui::qt::table_data_widget_container< T, FLAGS >::wTable

◆ wTableModel

template<class T , int FLAGS = TABLE_NORMAL>
QTableModelUpdater* sofa::gui::qt::table_data_widget_container< T, FLAGS >::wTableModel

◆ wTableView

template<class T , int FLAGS = TABLE_NORMAL>
QTableViewUpdater* sofa::gui::qt::table_data_widget_container< T, FLAGS >::wTableView

Constructor details

◆ table_data_widget_container() [1/2]

template<class T , int FLAGS = TABLE_NORMAL>
sofa::gui::qt::table_data_widget_container< T, FLAGS >::table_data_widget_container ( )
inline

◆ table_data_widget_container() [2/2]

template<class T , int FLAGS = TABLE_NORMAL>
sofa::gui::qt::table_data_widget_container< T, FLAGS >::table_data_widget_container ( )
inline

Function details

◆ createLayout() [1/4]

template<class T , int FLAGS = TABLE_NORMAL>
bool sofa::gui::qt::table_data_widget_container< T, FLAGS >::createLayout ( DataWidget parent)
inline

◆ createLayout() [2/4]

template<class T , int FLAGS = TABLE_NORMAL>
bool sofa::gui::qt::table_data_widget_container< T, FLAGS >::createLayout ( DataWidget parent)
inline

◆ createLayout() [3/4]

template<class T , int FLAGS = TABLE_NORMAL>
bool sofa::gui::qt::table_data_widget_container< T, FLAGS >::createLayout ( QLayout *  layout)
inline

◆ createLayout() [4/4]

template<class T , int FLAGS = TABLE_NORMAL>
bool sofa::gui::qt::table_data_widget_container< T, FLAGS >::createLayout ( QLayout *  layout)
inline

◆ createWidgets() [1/2]

template<class T , int FLAGS = TABLE_NORMAL>
bool sofa::gui::qt::table_data_widget_container< T, FLAGS >::createWidgets ( DataWidget parent,
const data_type d,
bool  readOnly 
)
inline

◆ createWidgets() [2/2]

template<class T , int FLAGS = TABLE_NORMAL>
bool sofa::gui::qt::table_data_widget_container< T, FLAGS >::createWidgets ( DataWidget parent,
const data_type d,
bool  readOnly 
)
inline

◆ fillTable() [1/2]

template<class T , int FLAGS = TABLE_NORMAL>
void sofa::gui::qt::table_data_widget_container< T, FLAGS >::fillTable ( const data_type d)
inline

◆ fillTable() [2/2]

template<class T , int FLAGS = TABLE_NORMAL>
void sofa::gui::qt::table_data_widget_container< T, FLAGS >::fillTable ( const data_type d)
inline

◆ getCell() [1/4]

template<class T , int FLAGS = TABLE_NORMAL>
void sofa::gui::qt::table_data_widget_container< T, FLAGS >::getCell ( int  r,
int  c,
const std::string &  s 
)
inline

◆ getCell() [2/4]

template<class T , int FLAGS = TABLE_NORMAL>
void sofa::gui::qt::table_data_widget_container< T, FLAGS >::getCell ( int  r,
int  c,
const std::string &  s 
)
inline

◆ getCell() [3/4]

template<class T , int FLAGS = TABLE_NORMAL>
template<class V >
void sofa::gui::qt::table_data_widget_container< T, FLAGS >::getCell ( int  r,
int  c,
V &  v 
)
inline

◆ getCell() [4/4]

template<class T , int FLAGS = TABLE_NORMAL>
template<class V >
void sofa::gui::qt::table_data_widget_container< T, FLAGS >::getCell ( int  r,
int  c,
V &  v 
)
inline

◆ getCellText() [1/2]

template<class T , int FLAGS = TABLE_NORMAL>
std::string sofa::gui::qt::table_data_widget_container< T, FLAGS >::getCellText ( int  r,
int  c 
)
inline

◆ getCellText() [2/2]

template<class T , int FLAGS = TABLE_NORMAL>
std::string sofa::gui::qt::table_data_widget_container< T, FLAGS >::getCellText ( int  r,
int  c 
)
inline

◆ insertWidgets() [1/2]

template<class T , int FLAGS = TABLE_NORMAL>
void sofa::gui::qt::table_data_widget_container< T, FLAGS >::insertWidgets ( )
inline

◆ insertWidgets() [2/2]

template<class T , int FLAGS = TABLE_NORMAL>
void sofa::gui::qt::table_data_widget_container< T, FLAGS >::insertWidgets ( )
inline

◆ isDisplayed() [1/2]

template<class T , int FLAGS = TABLE_NORMAL>
bool sofa::gui::qt::table_data_widget_container< T, FLAGS >::isDisplayed ( )
inline

◆ isDisplayed() [2/2]

template<class T , int FLAGS = TABLE_NORMAL>
bool sofa::gui::qt::table_data_widget_container< T, FLAGS >::isDisplayed ( )
inline

◆ processTableModifications() [1/2]

template<class T , int FLAGS = TABLE_NORMAL>
void sofa::gui::qt::table_data_widget_container< T, FLAGS >::processTableModifications ( const data_type d)
inline

◆ processTableModifications() [2/2]

template<class T , int FLAGS = TABLE_NORMAL>
void sofa::gui::qt::table_data_widget_container< T, FLAGS >::processTableModifications ( const data_type d)
inline

◆ readFromData() [1/2]

template<class T , int FLAGS = TABLE_NORMAL>
void sofa::gui::qt::table_data_widget_container< T, FLAGS >::readFromData ( const data_type d)
inline

◆ readFromData() [2/2]

template<class T , int FLAGS = TABLE_NORMAL>
void sofa::gui::qt::table_data_widget_container< T, FLAGS >::readFromData ( const data_type d)
inline

◆ setCell() [1/4]

template<class T , int FLAGS = TABLE_NORMAL>
void sofa::gui::qt::table_data_widget_container< T, FLAGS >::setCell ( int  r,
int  c,
const std::string &  s 
)
inline

◆ setCell() [2/4]

template<class T , int FLAGS = TABLE_NORMAL>
void sofa::gui::qt::table_data_widget_container< T, FLAGS >::setCell ( int  r,
int  c,
const std::string &  s 
)
inline

◆ setCell() [3/4]

template<class T , int FLAGS = TABLE_NORMAL>
template<class V >
void sofa::gui::qt::table_data_widget_container< T, FLAGS >::setCell ( int  r,
int  c,
const V &  v 
)
inline

◆ setCell() [4/4]

template<class T , int FLAGS = TABLE_NORMAL>
template<class V >
void sofa::gui::qt::table_data_widget_container< T, FLAGS >::setCell ( int  r,
int  c,
const V &  v 
)
inline

◆ setCellText() [1/2]

template<class T , int FLAGS = TABLE_NORMAL>
void sofa::gui::qt::table_data_widget_container< T, FLAGS >::setCellText ( int  r,
int  c,
const std::string &  s 
)
inline

◆ setCellText() [2/2]

template<class T , int FLAGS = TABLE_NORMAL>
void sofa::gui::qt::table_data_widget_container< T, FLAGS >::setCellText ( int  r,
int  c,
const std::string &  s 
)
inline

◆ setColHeader()

template<class T , int FLAGS = TABLE_NORMAL>
void sofa::gui::qt::table_data_widget_container< T, FLAGS >::setColHeader ( int  c,
const std::string &  s 
)
inline

◆ setReadOnly() [1/2]

template<class T , int FLAGS = TABLE_NORMAL>
void sofa::gui::qt::table_data_widget_container< T, FLAGS >::setReadOnly ( bool  readOnly)
inline

◆ setReadOnly() [2/2]

template<class T , int FLAGS = TABLE_NORMAL>
void sofa::gui::qt::table_data_widget_container< T, FLAGS >::setReadOnly ( bool  readOnly)
inline

◆ setRowHeader()

template<class T , int FLAGS = TABLE_NORMAL>
void sofa::gui::qt::table_data_widget_container< T, FLAGS >::setRowHeader ( int  r,
const std::string &  s 
)
inline

◆ writeToData() [1/2]

template<class T , int FLAGS = TABLE_NORMAL>
void sofa::gui::qt::table_data_widget_container< T, FLAGS >::writeToData ( data_type d)
inline

◆ writeToData() [2/2]

template<class T , int FLAGS = TABLE_NORMAL>
void sofa::gui::qt::table_data_widget_container< T, FLAGS >::writeToData ( data_type d)
inline