27#ifndef __FIELD_EDITOR__
28#define __FIELD_EDITOR__
72 virtual void appendRowTo(QGridLayout* layout,
bool canBeDeleted =
false);
Presenter for a CamiTK extension file model.
Definition CamiTKExtensionModelPresenter.h:47
Abstract class for field editor.
Definition FieldEditor.h:51
QString name
Name of the field (displayed as a label)
Definition FieldEditor.h:92
virtual ~FieldEditor()
Destructor (delete myWidget)
Definition FieldEditor.cpp:43
QString description
Description (displayed as tool tip / what's that)
Definition FieldEditor.h:95
virtual void deleteButtonClicked()
Called when the (optional) delete button is called This will make user the user knows what she/he doe...
Definition FieldEditor.cpp:103
QLabel * rowLabel
the row label widget (that contains the name of the row) the label text can be modified (see CamiTKPr...
Definition FieldEditor.h:102
CamiTKExtensionModelPresenter * presenter
The presenter that contains the full VariantDataModel.
Definition FieldEditor.h:83
QGridLayout * myGridLayout
where the widget is added
Definition FieldEditor.h:98
virtual void appendRowTo(QGridLayout *layout, bool canBeDeleted=false)
Adds a row at the end of the given layout with two columns:
Definition FieldEditor.cpp:48
VariantDataModel & dataModel
The edited data model (part of the presenter's full model)
Definition FieldEditor.h:86
void valueChanged(VariantDataModel &changedDataModel)
emitted when the edited value has changed (useful to synchronize other field editor depending of this...
QWidget * myWidget
The created widget (inheriting must use this to create their widgets)
Definition FieldEditor.h:89
void setEnabled(bool isEnabled)
Is the widget and labels currently enabled.
Definition FieldEditor.cpp:93
virtual QWidget * getWidget()=0
Creates the editor widget (must be implemented in inheriting classes)
VariantDataModel encapsulates QVariant and can be used as a model for any type of QVariant supported ...
Definition VariantDataModel.h:124