SOFA API  1c8b807d
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

◆ container_layout

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

◆ w

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

Constructor details

◆ data_widget_container()

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

Function details

◆ createLayout() [1/2]

template<class T >
bool sofa::gui::qt::data_widget_container< T >::createLayout ( DataWidget parent)
inline

◆ createLayout() [2/2]

template<class T >
bool sofa::gui::qt::data_widget_container< T >::createLayout ( QLayout *  layout)
inline

◆ createWidgets()

template<class T >
bool sofa::gui::qt::data_widget_container< T >::createWidgets ( DataWidget parent,
const data_type d,
bool  readOnly 
)
inline

◆ insertWidgets()

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

◆ readFromData()

template<class T >
void sofa::gui::qt::data_widget_container< T >::readFromData ( const data_type d)
inline

◆ setReadOnly()

template<class T >
void sofa::gui::qt::data_widget_container< T >::setReadOnly ( bool  readOnly)
inline

◆ writeToData()

template<class T >
void sofa::gui::qt::data_widget_container< T >::writeToData ( data_type d)
inline