27#ifndef __EXPANDABLE_FIELD_EDITOR__
28#define __EXPANDABLE_FIELD_EDITOR__
Presenter for a CamiTK extension file model.
Definition CamiTKExtensionModelPresenter.h:47
QPushButton * expandButton
the expand button (">")
Definition ExpandableFieldEditor.h:59
QString label
The title label (left to the ">" button).
Definition ExpandableFieldEditor.h:61
virtual void appendRowTo(QGridLayout *layout)
Append this widget to the given grid layout As ExpandableFieldEditor don't have any label,...
Definition ExpandableFieldEditor.cpp:74
bool expandedAtInitialization
Definition ExpandableFieldEditor.h:67
void expandButtonClicked(bool checked)
called when the ">" button is clicked (shows/hides the inner widget)
Definition ExpandableFieldEditor.cpp:82
ExpandableFieldEditor(CamiTKExtensionModelPresenter *presenter, QWidget *innerWidget, VariantDataModel &dataModel, const QString &label="Advanced", bool compact=false, bool expandedAtInitialization=false)
Definition ExpandableFieldEditor.cpp:32
virtual QWidget * getWidget() override
Build the advanced widget that encapsulate the innerWidget.
Definition ExpandableFieldEditor.cpp:40
bool compact
Definition ExpandableFieldEditor.h:65
QHBoxLayout * expandableWidgetTitleLayout
The layout that has the expand button and label. In subclass AdvandedPlusFieldEditor a "+" is added a...
Definition ExpandableFieldEditor.h:63
QWidget * innerWidget
the advanced/hidden inner widget
Definition ExpandableFieldEditor.h:57
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
VariantDataModel encapsulates QVariant and can be used as a model for any type of QVariant supported ...
Definition VariantDataModel.h:122