27#ifndef __TEXT_FIELD_WIDGET__
28#define __TEXT_FIELD_WIDGET__
67 QString placeHolderText;
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
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
VariantDataModel & dataModel
The edited data model (part of the presenter's full model)
Definition FieldEditor.h:86
FieldEditor for long/multiline string.
Definition TextFieldEditor.h:42
void setLanguage(const QString &language)
set the language for the text field Supported languages are: json, cpp and cmake
Definition TextFieldEditor.cpp:38
void valueChangedInTextEdit()
called when the text has changed (get the plain text string and inform the presenter of the change)
Definition TextFieldEditor.cpp:75
virtual QWidget * getWidget() override
Build a QTextEdit and sets syntax highlighting according to the optionally given language (.
Definition TextFieldEditor.cpp:48
void setPlaceHolderText(const QString &placeHolderText)
set the displayed text when the field value is empty
Definition TextFieldEditor.cpp:43
VariantDataModel encapsulates QVariant and can be used as a model for any type of QVariant supported ...
Definition VariantDataModel.h:124