SOFA API  99934cbc
Open source framework for multi-physics simuation
sofa::gui::qt::RadioDataWidget Class Reference

#include <SimpleDataWidget.h>

OptionsGroup support. More...

Inheritance diagram for sofa::gui::qt::RadioDataWidget:

Detailed Description

OptionsGroup support.

Protected Attributes

QButtonGroup * buttonList
 
QComboBox * comboList
 
bool buttonMode
 
- Protected Attributes inherited from sofa::gui::qt::TDataWidget< sofa::helper::OptionsGroup >
MyTDataTdata
 
- Protected Attributes inherited from sofa::gui::qt::DataWidget
core::objectmodel::BaseDatabaseData
 
bool dirty
 
int counter
 
bool m_isFilled
 tell if DataWidget has been filled from Data true by default More...
 
bool m_toFill
 bool to warn action is needed to fill Data, false by default More...
 

Public Member Functions

 RadioDataWidget (QWidget *parent, const char *name, core::objectmodel::Data< sofa::helper::OptionsGroup > *m_data)
 
virtual bool createWidgets ()
 In this method we create the widgets and perform the signal / slots connections. More...
 
virtual void setDataReadOnly (bool readOnly)
 This method is called after createWidgets to configure whether the created widgets should be read-only. More...
 
- Public Member Functions inherited from sofa::gui::qt::TDataWidget< sofa::helper::OptionsGroup >
 TDataWidget (QWidget *parent, const char *name, MyTData *d)
 
sofa::core::objectmodel::Data< sofa::helper::OptionsGroup > * getData ()
 
const sofa::core::objectmodel::Data< sofa::helper::OptionsGroup > * getData () const
 
virtual void setData (MyTData *d)
 
- Public Member Functions inherited from sofa::gui::qt::DataWidget
 DataWidget (QWidget *parent, const char *name, MyData *d)
 
 ~DataWidget () override
 
virtual void setData (MyData *d)
 
const core::objectmodel::BaseDatagetBaseData () const
 BaseData pointer accessor function. More...
 
core::objectmodel::BaseDatagetBaseData ()
 
void updateVisibility ()
 
bool isDirty ()
 
bool isFilled ()
 return if DataWidget as been filled More...
 
void setFilled (bool value)
 method to warn if Data has not been filled at constructor. More...
 
virtual unsigned int sizeWidget ()
 Helper method to give a size. More...
 
virtual unsigned int numColumnWidget ()
 Helper method for colum. More...
 

Protected Member Functions

virtual void readFromData ()
 Implements how update the widgets knowing the data value. More...
 
virtual void writeToData ()
 Implements how to update the data, knowing the widget value. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from sofa::gui::qt::TDataWidget< sofa::helper::OptionsGroup >
static RealObject * create (RealObject *, CreatorArgument &arg)
 
- Static Public Member Functions inherited from sofa::gui::qt::DataWidget
template<class T >
static T * create (T *, const CreatorArgument &arg)
 
static DataWidgetCreateDataWidget (const DataWidget::CreatorArgument &dwarg)
 
- Signals inherited from sofa::gui::qt::DataWidget
void WidgetDirty (bool)
 
void DataOwnerDirty (bool)
 
void dataValueChanged (QString dataValueString)
 
- Public Slots inherited from sofa::gui::qt::DataWidget
void updateDataValue ()
 
void updateWidgetValue ()
 
void setWidgetDirty (bool b=true)
 
void fillFromData ()
 

Attribute details

QButtonGroup* sofa::gui::qt::RadioDataWidget::buttonList
protected
bool sofa::gui::qt::RadioDataWidget::buttonMode
protected
QComboBox* sofa::gui::qt::RadioDataWidget::comboList
protected

Constructor details

sofa::gui::qt::RadioDataWidget::RadioDataWidget ( QWidget parent,
const char *  name,
core::objectmodel::Data< sofa::helper::OptionsGroup > *  m_data 
)
inline

The class constructor takes a TData<RadioTrick> since it creates a widget for a that particular data type.

Function details

bool sofa::gui::qt::RadioDataWidget::createWidgets ( )
virtual

In this method we create the widgets and perform the signal / slots connections.

Implements sofa::gui::qt::DataWidget.

void sofa::gui::qt::RadioDataWidget::readFromData ( )
protectedvirtual

Implements how update the widgets knowing the data value.

Implements sofa::gui::qt::DataWidget.

void sofa::gui::qt::RadioDataWidget::setDataReadOnly ( bool  readOnly)
virtual

This method is called after createWidgets to configure whether the created widgets should be read-only.

Implements sofa::gui::qt::DataWidget.

void sofa::gui::qt::RadioDataWidget::writeToData ( )
protectedvirtual

Implements how to update the data, knowing the widget value.

Implements sofa::gui::qt::DataWidget.