SOFA API  c76874b7
Open source framework for multi-physics simuation
sofa::gui::qt::QDataSimpleEdit Class Reference

#include <QDisplayDataWidget.h>

Inheritance diagram for sofa::gui::qt::QDataSimpleEdit:

Protected Attributes

QSimpleEdit innerWidget_
 
- 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

 QDataSimpleEdit (QWidget *, const char *name, core::objectmodel::BaseData *)
 
unsigned int numColumnWidget () override
 Helper method for colum. More...
 
unsigned int sizeWidget () override
 Helper method to give a size. More...
 
bool createWidgets () override
 
void setDataReadOnly (bool readOnly) override
 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::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...
 

Protected Member Functions

void readFromData () override
 The implementation of this method tells how the widget reads the value of the data. More...
 
void writeToData () override
 

Additional Inherited Members

- 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

QSimpleEdit sofa::gui::qt::QDataSimpleEdit::innerWidget_
protected

Constructor details

sofa::gui::qt::QDataSimpleEdit::QDataSimpleEdit ( QWidget parent,
const char *  name,
core::objectmodel::BaseData data 
)

Function details

bool sofa::gui::qt::QDataSimpleEdit::createWidgets ( )
overridevirtual

The implementation of this method holds the widget creation and the signal / slot connections.

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

unsigned int sofa::gui::qt::QDataSimpleEdit::numColumnWidget ( )
inlineoverridevirtual

Helper method for colum.

Reimplemented from sofa::gui::qt::DataWidget.

void sofa::gui::qt::QDataSimpleEdit::readFromData ( )
overrideprotectedvirtual

The implementation of this method tells how the widget reads the value of the data.

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

void sofa::gui::qt::QDataSimpleEdit::setDataReadOnly ( bool  readOnly)
overridevirtual

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

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

unsigned int sofa::gui::qt::QDataSimpleEdit::sizeWidget ( )
inlineoverridevirtual

Helper method to give a size.

Reimplemented from sofa::gui::qt::DataWidget.

void sofa::gui::qt::QDataSimpleEdit::writeToData ( )
overrideprotectedvirtual

The implementation of this methods needs to tell how the widget can write its value in the data

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