#include <LinkWidget.h>
Abstract Interface of a qwidget which allows to edit a link. More...
Abstract Interface of a qwidget which allows to edit a link.
Classes | |
struct | CreatorArgument |
Protected Attributes | |
core::objectmodel::BaseLink * | baseLink |
bool | dirty |
int | counter |
Public Member Functions | |
LinkWidget (QWidget *parent, const char *, MyLink *l) | |
~LinkWidget () override | |
virtual void | setLink (MyLink *d) |
const core::objectmodel::BaseLink * | getBaseLink () const |
BaseLink pointer accessor function. More... | |
core::objectmodel::BaseLink * | getBaseLink () |
void | updateVisibility () |
bool | isDirty () |
virtual bool | createWidgets ()=0 |
virtual unsigned int | sizeWidget () |
Helper method to give a size. More... | |
virtual unsigned int | numColumnWidget () |
Helper method for column. More... | |
Static Public Member Functions | |
static LinkWidget * | CreateLinkWidget (const LinkWidget::CreatorArgument &dwarg) |
Protected Member Functions | |
virtual void | readFromLink ()=0 |
The implementation of this method tells how the widget reads the value of the link. More... | |
virtual void | writeToLink ()=0 |
Signals | |
void | WidgetDirty (bool) |
void | LinkOwnerDirty (bool) |
void | LinkBeingChanged () |
Public Slots | |
void | updateLinkValue () |
void | updateWidgetValue () |
void | setWidgetDirty () |
void | setWidgetDirty (bool b) |
|
protected |
|
protected |
|
protected |
|
inlineoverride |
|
static |
|
pure virtual |
The implementation of this method holds the widget creation and the signal / slot connections.
Implemented in sofa::gui::qt::QLinkSimpleEdit.
|
inline |
|
inline |
BaseLink pointer accessor function.
|
inline |
|
signal |
|
signal |
Currently this signal is used to reflect the changes of the component name in the sofaListview.
|
inlinevirtual |
Helper method for column.
Reimplemented in sofa::gui::qt::QLinkSimpleEdit.
|
protectedpure virtual |
The implementation of this method tells how the widget reads the value of the link.
Implemented in sofa::gui::qt::QLinkSimpleEdit.
|
inlinevirtual |
|
inlineslot |
You call this slot anytime you want to specify that the widget value is out of sync with the underlying link value.
|
inlineslot |
|
inlinevirtual |
Helper method to give a size.
Reimplemented in sofa::gui::qt::QLinkSimpleEdit.
|
inlineslot |
Checks that widget has been edited emit LinkOwnerDirty in case the name field has been modified
|
inline |
|
inlineslot |
First checks that the widget is not currently being edited checks that the link has changed since the last time the widget has read the link value. ultimately read the link value.
|
signal |
Emitted each time setWidgetDirty is called. You can also emit it if you want to tell the widget value is out of sync with the underlying link value.
|
protectedpure virtual |
The implementation of this methods needs to tell how the widget can write its value in the link
Implemented in sofa::gui::qt::QLinkSimpleEdit.