VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 {
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;
61 
62  protected:
64 
65  };
66 }
67 
68 #endif
69 
Builder for menu items.
Definition: DtMenuItem.h:26
QString myOffText
Definition: DtCheckedItem.h:57
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
Contains DLL export macros.
QString myToolTip
Definition: DtCheckedItem.h:58
Base class item builder for settings toggle items The menu id string is &quot;DtViewSettingsItem&quot;.
Definition: DtCheckedItem.h:24
QAction * myAction
Definition: DtCheckedItem.h:60
QString myOnText
Definition: DtCheckedItem.h:56
QString myIcon
Definition: DtCheckedItem.h:59
bool myState
Definition: DtCheckedItem.h:55
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
DtDe & myDe
Definition: DtCheckedItem.h:63

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)