SOFA API  014b24ea
Open source framework for multi-physics simuation
sofa::gui::qt::data_widget_container< T > Class Template Reference

#include <SimpleDataWidget.h>

Inheritance diagram for sofa::gui::qt::data_widget_container< T >:

Detailed Description

template<class T>
class sofa::gui::qt::data_widget_container< T >

This class is used to create and manage the GUI of a data type, using data_widget_trait to know which widgets to use

Public Attributes

Widgetw
 
Layoutcontainer_layout
 

Public Member Functions

 data_widget_container ()
 
bool createLayout (DataWidget *parent)
 
bool createLayout (QLayout *layout)
 
bool createWidgets (DataWidget *parent, const data_type &d, bool readOnly)
 
void setReadOnly (bool readOnly)
 
void readFromData (const data_type &d)
 
void writeToData (data_type &d)
 
void insertWidgets ()
 

Attribute details

template<class T>
Layout* sofa::gui::qt::data_widget_container< T >::container_layout
template<class T>
Widget* sofa::gui::qt::data_widget_container< T >::w

Constructor details

template<class T>
sofa::gui::qt::data_widget_container< T >::data_widget_container ( )
inline

Function details

template<class T>
bool sofa::gui::qt::data_widget_container< T >::createLayout ( DataWidget parent)
inline
template<class T>
bool sofa::gui::qt::data_widget_container< T >::createLayout ( QLayout *  layout)
inline
template<class T>
bool sofa::gui::qt::data_widget_container< T >::createWidgets ( DataWidget parent,
const data_type d,
bool  readOnly 
)
inline
template<class T>
void sofa::gui::qt::data_widget_container< T >::insertWidgets ( )
inline
template<class T>
void sofa::gui::qt::data_widget_container< T >::readFromData ( const data_type d)
inline
template<class T>
void sofa::gui::qt::data_widget_container< T >::setReadOnly ( bool  readOnly)
inline
template<class T>
void sofa::gui::qt::data_widget_container< T >::writeToData ( data_type d)
inline