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

#include <SimpleDataWidget.h>

Detailed Description

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

This class is used to specify how to graphically represent a data type, by default using a simple QLineEdit

Static Public Member Functions

static Widgetcreate (QWidget *parent, const data_type &)
 
static void readFromData (Widget *w, const data_type &d)
 
static void writeToData (Widget *w, data_type &d)
 
static void setReadOnly (Widget *w, bool readOnly)
 
static void connectChanged (Widget *w, DataWidget *datawidget)
 

Function details

template<class T >
static void sofa::gui::qt::data_widget_trait< T >::connectChanged ( Widget w,
DataWidget datawidget 
)
inlinestatic
template<class T >
static Widget* sofa::gui::qt::data_widget_trait< T >::create ( QWidget parent,
const data_type  
)
inlinestatic
template<class T >
static void sofa::gui::qt::data_widget_trait< T >::readFromData ( Widget w,
const data_type d 
)
inlinestatic
template<class T >
static void sofa::gui::qt::data_widget_trait< T >::setReadOnly ( Widget w,
bool  readOnly 
)
inlinestatic
template<class T >
static void sofa::gui::qt::data_widget_trait< T >::writeToData ( Widget w,
data_type d 
)
inlinestatic