27#ifndef __LIST_FIELD_EDITOR__
28#define __LIST_FIELD_EDITOR__
55 QListWidget* listWidget;
Presenter for a CamiTK extension file model.
Definition CamiTKExtensionModelPresenter.h:47
QString name
Name of the field (displayed as a label).
Definition FieldEditor.h:92
QString description
Description (displayed as tool tip / what's that).
Definition FieldEditor.h:95
CamiTKExtensionModelPresenter * presenter
The presenter that contains the full VariantDataModel.
Definition FieldEditor.h:83
FieldEditor(CamiTKExtensionModelPresenter *presenter, VariantDataModel &dataModel, const QString &name="", const QString &description="")
Constructor Creates a field for the given data model inside the given presenter A name and descriptio...
Definition FieldEditor.cpp:33
VariantDataModel & dataModel
The edited data model (part of the presenter's full model).
Definition FieldEditor.h:86
ListFieldEditor(CamiTKExtensionModelPresenter *presenter, VariantDataModel &dataModel, const QString &name="", const QString &description="")
Constructor.
Definition ListFieldEditor.cpp:33
void updateModel()
update the VariantDataModel according to the modification in the GUI (and informed the CamiTKExtensio...
Definition ListFieldEditor.cpp:127
virtual QWidget * getWidget() override
Build an editable QListWidget (where items can be added an removed).
Definition ListFieldEditor.cpp:37
VariantDataModel encapsulates QVariant and can be used as a model for any type of QVariant supported ...
Definition VariantDataModel.h:122