VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrvCoreQt
DtCheckedItem.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2008 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: DtCheckedItem.h,v $ $Revision: 1.9 $ $State: Exp $
7
******************************************************************************/
8
12
13
#ifndef DtCheckedItem_H_
14
#define DtCheckedItem_H_
15
16
#include <
vrvCoreQt/vrvCoreQt.h
>
17
#include <
vrvCoreQt/DtMenuItem.h
>
18
19
namespace
makVrv
20
{
24
class
DT_DLL_VRVCOREQT
DtCheckedItem
:
public
DtMenuItem
25
{
26
Q_OBJECT
27
28
public
:
30
DtCheckedItem
(
DtDe
& de,
const
std::string& className);
31
33
virtual
~
DtCheckedItem
();
34
36
virtual
QAction
* createAction(
DtDe
&,
QWidget
* parent);
37
39
virtual
void
on_settingChanged(
bool
value);
40
41
//Update the check state with the value returned from getValue()
42
//This does not emit any signals.
43
void
updateValue();
44
45
protected
:
46
47
virtual
void
on_triggered();
48
49
//Set the value due to being triggered.
50
virtual
void
setValue(
bool
value) = 0;
51
52
//Get the current value.
53
virtual
bool
getValue()
const
= 0;
54
55
bool
myState
;
56
QString
myOnText
;
57
QString
myOffText
;
58
QString
myToolTip
;
59
QString
myIcon
;
60
QAction
*
myAction
;
61
62
protected
:
63
DtDe
&
myDe
;
64
65
};
66
}
67
68
#endif
69
Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)