VR-Forces 4.5 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrfGuiCoreQt
colorEntryWidget.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2016 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
10
11
#pragma once
12
13
#include <
vrfGuiCoreQt/taskSetVariableWidget.h
>
14
#include <
vrfGuiCoreQt/simpleVariableWidget.h
>
15
#include <
vrfutil/rwColor.h
>
16
17
class
QLabel
;
18
class
QHBoxLayout;
19
class
QColorDialog;
20
21
namespace
makVrv
22
{
23
class
DtColorPushButton;
24
}
25
26
namespace
makVrf
27
{
29
class
DT_DLL_VRFGUICOREQT
DtColorEntryWidget
:
public
DtTaskSetVariableWidget
30
{
31
Q_OBJECT
32
33
public
:
34
DtColorEntryWidget
(
makVrv::DtDe
& de,
QWidget
* parent,
const
Qt::WindowFlags& flags = 0);
35
36
//DTOR
37
virtual
~
DtColorEntryWidget
();
38
40
virtual
void
setLabel(
const
std::string&);
41
43
virtual
void
setRange(
double
bottom,
double
top);
44
46
virtual
void
setDefaultValue(
const
std::string&);
47
49
virtual
void
setVariableData(
const
std::string&);
50
52
virtual
DtReaderWriter
* createBoundVariable(
const
std::string& variableName);
53
55
virtual
void
setupFromBoundVariable(
const
DtReaderWriter
* variableName);
56
58
virtual
void
setColor(
const
DtRwColor
&);
59
virtual
DtRwColor
color()
const
;
60
61
static
makVrv::DtUnicode
codeVariableType()
62
{
63
return
makVrv::DtUnicode::tr
(
"Color: rgba"
);
64
}
65
68
virtual
void
setBlackIsOne(
bool
);
69
virtual
bool
blackIsOne()
const
;
70
72
boost::signal<void ()>
signal_changed
;
73
74
virtual
DtTaskSetVariableWidgetExtensionInterface
* parameterContents(
QWidget
* parent,
const
Qt::WindowFlags& flags = 0)
const
;
75
77
virtual
void
setShowColorWidget(
bool
);
78
80
virtual
void
setShowAlphaChannel(
bool
);
81
82
protected
slots:
83
virtual
void
onColorChanged();
84
85
public
:
86
QLabel
*
myColorLabel
;
87
makVrv::DtColorPushButton
*
myColor
;
88
QHBoxLayout*
myContentLayout
;
89
QColorDialog*
myColorDialog
;
90
91
protected
:
92
bool
myColorWidgetShown
;
93
bool
myBlackIsOne
;
94
};
95
96
typedef
DtTaskSetVariableWidgetCreator<DtColorEntryWidget>
DtColorEntryWidgetCreator
;
97
99
class
DT_DLL_VRFGUICOREQT
DtColorVariableWidgetExtension
:
public
DtSimpleVariableWidgetExtension
100
{
101
public
:
102
DtColorVariableWidgetExtension
(
makVrv::DtDe
&,
QWidget
* w,
const
Qt::WindowFlags& f = 0);
103
virtual
~
DtColorVariableWidgetExtension
();
104
};
105
}
Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (
www.mak.com
)