16 #include <QtDesigner/QExtensionFactory>
17 #include <QtDesigner/QDesignerTaskMenuExtension>
42 virtual void setLabel(
const QString&)
override;
45 virtual void setRange(
double bottom,
double top)
override;
68 return tr(
"VR-Forces Example Project").toUtf8().constData();
73 return tr(
"<examples/addScriptVariable/addScriptVariableGui/simpleVariableWidget.h>").toUtf8().constData();
78 return tr(
"boolListValueValue").toUtf8().constData();
DtBooleanListEntryWidget(makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0, const CreationFlags &cflags=NormalMode)
When being used for Qt designer cflags will be QtDesignerMode.
Widget that allows for the entry of booleans.
Definition: booleanListEntryWidget.h:29
QString myDefaultValue
Definition: booleanListEntryWidget.h:110
A unicode string. DtUnicode stores a UTF-16 encoded unicode string. Code Point, a Unicode character...
Definition: DtUnicode.h:33
QPushButton * myRemove
Definition: booleanListEntryWidget.h:106
virtual void setRange(double bottom, double top) override
Validation range. Not applicable.
QHBoxLayout * myButtonLayout
Definition: booleanListEntryWidget.h:107
virtual void setVariableData(const std::string &) override
Variable data. Not used for this class.
virtual QString defaultValue() const
Definition: readerWriter.h:85
virtual void setDefaultValue(const std::string &) override
Comma list of potential values. Used to seed dialog.
virtual void onRemove()
Removes the selected item.
virtual void onItemSelectionChanged()
Item selection changed – enable remove button.
static std::string variableName()
Definition: booleanListEntryWidget.h:76
QLabel * myLabel
Definition: booleanListEntryWidget.h:102
static DtUnicode tr(const char *ascii)
Ascii translation function, used to be compatible with Qt's translation tools. This will simply call ...
Definition: DtUnicode.h:92
QPushButton * myAdd
Definition: booleanListEntryWidget.h:105
static std::string headerFile()
Definition: booleanListEntryWidget.h:71
virtual void setupFromBoundVariable(const DtReaderWriter *variableName) override
Sets up the widget from the given reader/writer variables.
static makVrv::DtUnicode codeVariableType()
Definition: booleanListEntryWidget.h:59
Definition: translator.h:58
virtual DtReaderWriter * createBoundVariable(const std::string &variableName) override
Creates the reader/writer variable that will be used as part of the task statement.
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
virtual void onAdd()
Adds a new boolean.
virtual ~DtBooleanListEntryWidget() override
virtual void setLabel(const QString &) override
Display label.
static std::string designerGroup()
These static members are for use in Qt designer when this plugin is loaded for usage in that applicat...
Definition: booleanListEntryWidget.h:66
QListWidget * myBooleans
list of true/false booleans
Definition: booleanListEntryWidget.h:104
static void initializeForQtDesignerExtension(makVrv::DtDe &, QDesignerFormEditorInterface *)
virtual void updateDefaultValue()
makVrf::DtTaskSetVariableWidgetCreator< DtBooleanListEntryWidget > DtBooleanListEntryWidgetCreator
Definition: booleanListEntryWidget.h:113