16 #include <QtDesigner/QExtensionFactory>
17 #include <QtDesigner/QDesignerTaskMenuExtension>
23 class QListWidgetItem;
39 virtual void setLabel(
const QString&);
42 virtual void setRange(
double bottom,
double top);
65 return tr(
"VR-Forces Example Project").toUtf8().constData();
70 return tr(
"<examples/addScriptVariable/addScriptVariableGui/simpleVariableWidget.h>").toUtf8().constData();
75 return tr(
"intListValueValue").toUtf8().constData();
QString myDefaultValue
Definition: integerListEntryWidget.h:106
QPushButton * myRemove
Definition: integerListEntryWidget.h:102
A unicode string.
Definition: DtUnicode.h:33
QHBoxLayout * myButtonLayout
Definition: integerListEntryWidget.h:103
virtual void setLabel(const QString &)
Display label.
QListWidget * myNumbers
Definition: integerListEntryWidget.h:100
virtual void onAdd()
Adds a new integer (current row count)
DtIntegerListEntryWidget(makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0, const CreationFlags &cflags=NormalMode)
When being used for Qt designer cflags will be QtDesignerMode.
Definition: readerWriter.h:85
QPushButton * myAdd
Definition: integerListEntryWidget.h:101
static std::string designerGroup()
These static members are for use in Qt designer when this plugin is loaded for usage in that applicat...
Definition: integerListEntryWidget.h:63
Widget that allows for the selection of a color vvalue.
Definition: integerListEntryWidget.h:26
virtual void setRange(double bottom, double top)
Validation range. Not applicable.
static DtUnicode tr(const char *ascii)
Ascii translation function, used to be compatible with Qt's translation tools.
Definition: DtUnicode.h:92
virtual void setVariableData(const std::string &)
Variable data. Not used for this class.
virtual DtReaderWriter * createBoundVariable(const std::string &variableName)
Creates the reader/writer variable that will be used as part of the task statement.
virtual ~DtIntegerListEntryWidget()
virtual void setupFromBoundVariable(const DtReaderWriter *variableName)
Sets up the widget from the given reader/writer variables.
virtual void updateDefaultValue()
static makVrv::DtUnicode codeVariableType()
Definition: integerListEntryWidget.h:56
QLabel * myLabel
Definition: integerListEntryWidget.h:99
virtual QString defaultValue() const
static std::string variableName()
Definition: integerListEntryWidget.h:73
static void initializeForQtDesignerExtension(makVrv::DtDe &, QDesignerFormEditorInterface *)
Definition: translator.h:58
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
virtual void setDefaultValue(const std::string &)
Comma list of potential values. Used to seed dialog.
virtual void onItemSelectionChanged()
Item selection changed – enable remove button.
static std::string headerFile()
Definition: integerListEntryWidget.h:68
makVrf::DtTaskSetVariableWidgetCreator< DtIntegerListEntryWidget > DtIntegerListEntryWidgetCreator
Definition: integerListEntryWidget.h:109
virtual void onRemove()
Removes the selected item.