16 #include <boost/signals2.hpp>
24 class DtColorPushButton;
34 Q_PROPERTY(
bool showAlphaChannel READ showAlphaChannel WRITE setShowAlphaChannel)
35 Q_PROPERTY(
bool showColorWidget READ showColorWidget WRITE setShowColorWidget)
36 Q_PROPERTY(
bool blackIsOne READ blackIsOne WRITE setBlackIsOne)
45 virtual
void setLabel(const QString&) override;
46 virtual QString label() const override;
49 virtual
void setRange(
double bottom,
double top) override;
52 virtual
void setDefaultValue(const std::
string&) override;
55 virtual
void setVariableData(const QString&) override;
58 virtual
DtReaderWriter* createBoundVariable(const std::
string& variableName) override;
61 virtual
void setupFromBoundVariable(const
DtReaderWriter* variableName) override;
65 virtual DtRwColor color() const;
67 static makVrv::DtUnicode codeVariableType()
74 virtual void setBlackIsOne(
bool);
75 virtual bool blackIsOne()
const;
85 QWidget* parent,
const Qt::WindowFlags& flags = 0)
const override;
88 virtual void setShowColorWidget(
bool);
92 virtual void setShowAlphaChannel(
bool);
97 return tr(
"VR-Forces Data Entry").toUtf8().constData();
102 return tr(
"<vrfGuiDataEntryWidgets/colorEntryWidget.h>").toUtf8().constData();
107 return tr(
"color").toUtf8().constData();
111 virtual std::string variableDataFromUiDesigner(
115 virtual void onColorChanged();
116 virtual void onColorAccepted();
117 virtual void onColorRejected();
bool myBlackIsOne
Definition: colorEntryWidget.h:129
QLabel * myColorLabel
Definition: colorEntryWidget.h:121
QHBoxLayout * myContentLayout
Definition: colorEntryWidget.h:123
DtTaskSetVariableWidgetCreator< DtColorEntryWidget > DtColorEntryWidgetCreator
Definition: colorEntryWidget.h:132
boost::signals2::signal< void()> signal_accepted
Signal sent when color change is accepted.
Definition: colorEntryWidget.h:80
bool showAlphaChannel() const
Definition: colorEntryWidget.h:93
This class will parse the UI file for known scripted task variable types and pull out specified scrip...
Definition: scriptedTaskVariableLayoutConverter.h:32
bool showColorWidget() const
Definition: colorEntryWidget.h:89
Definition: readerWriter.h:85
static std::string variableName()
Definition: colorEntryWidget.h:105
boost::signals2::signal< void()> signal_changed
Signal sent when anything about the color has changed.
Definition: colorEntryWidget.h:78
Widget that allows for the selection of a color value.
Definition: colorEntryWidget.h:30
Reader-Writer color specified by red, green, blue components.
Definition: rwColor.h:19
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
#define DT_DLL_VRFGUIDATAENTRYWIDGETS
Definition: vrfGuiDataEntryWidgets.h:22
static std::string designerGroup()
Definition: colorEntryWidget.h:95
boost::signals2::signal< void()> signal_done
Signal sent when color change is rejected/cancelled.
Definition: colorEntryWidget.h:82
QColorDialog * myColorDialog
Definition: colorEntryWidget.h:124
bool myShowAlphaChannel
Definition: colorEntryWidget.h:127
static std::string headerFile()
Definition: colorEntryWidget.h:100
makVrv::DtColorPushButton * myColor
Definition: colorEntryWidget.h:122
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
bool myColorWidgetShown
Definition: colorEntryWidget.h:128