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&);
46 virtual QString label() const;
49 virtual
void setRange(
double bottom,
double top);
52 virtual
void setDefaultValue(const std::
string&);
55 virtual
void setVariableData(const QString&);
58 virtual
DtReaderWriter* createBoundVariable(const std::
string& variableName);
61 virtual
void setupFromBoundVariable(const
DtReaderWriter* variableName);
65 virtual DtRwColor color() const;
67 static makVrv::DtUnicode codeVariableType()
74 virtual void setBlackIsOne(
bool);
75 virtual bool blackIsOne()
const;
87 virtual void setShowColorWidget(
bool);
91 virtual void setShowAlphaChannel(
bool);
96 return tr(
"VR-Forces Data Entry").toUtf8().constData();
101 return tr(
"<vrfGuiDataEntryWidgets/colorEntryWidget.h>").toUtf8().constData();
106 return tr(
"color").toUtf8().constData();
113 virtual void onColorChanged();
114 virtual void onColorAccepted();
115 virtual void onColorRejected();
bool myBlackIsOne
Definition: colorEntryWidget.h:127
QLabel * myColorLabel
Definition: colorEntryWidget.h:119
QHBoxLayout * myContentLayout
Definition: colorEntryWidget.h:121
DtTaskSetVariableWidgetCreator< DtColorEntryWidget > DtColorEntryWidgetCreator
Definition: colorEntryWidget.h:130
boost::signals2::signal< void()> signal_accepted
Signal sent when color change is accepted.
Definition: colorEntryWidget.h:80
bool showAlphaChannel() const
Definition: colorEntryWidget.h:92
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:88
Definition: readerWriter.h:85
static std::string variableName()
Definition: colorEntryWidget.h:104
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:94
boost::signals2::signal< void()> signal_done
Signal sent when color change is rejected/cancelled.
Definition: colorEntryWidget.h:82
QColorDialog * myColorDialog
Definition: colorEntryWidget.h:122
bool myShowAlphaChannel
Definition: colorEntryWidget.h:125
static std::string headerFile()
Definition: colorEntryWidget.h:99
makVrv::DtColorPushButton * myColor
Definition: colorEntryWidget.h:120
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:70
bool myColorWidgetShown
Definition: colorEntryWidget.h:126