VR-Forces 4.10 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 
9 
10 #ifndef DtCheckedItem_H_
11 #define DtCheckedItem_H_
12 
13 #include <vrvCoreQt/vrvCoreQt.h>
14 #include <vrvCoreQt/DtMenuItem.h>
15 
16 namespace makVrv
17 {
22  {
23  Q_OBJECT
24 
25  public:
27  DtCheckedItem(DtDe& de, const std::string& className);
28 
30  virtual ~DtCheckedItem();
31 
33  virtual QAction* createAction(DtDe&, QWidget* parent);
34 
36  virtual void on_settingChanged(bool value);
37 
38  //Update the check state with the value returned from getValue()
39  //This does not emit any signals.
40  void updateValue();
41 
42  protected:
43 
44  virtual void on_triggered();
45 
46  //Set the value due to being triggered.
47  virtual void setValue(bool value) = 0;
48 
49  //Get the current value.
50  virtual bool getValue() const = 0;
51 
52  bool myState;
53  QString myOnText;
54  QString myOffText;
55  QString myToolTip;
56  QString myIcon;
58 
59  protected:
61 
62  };
63 }
64 
65 #endif
66 
Builder for menu items.
Definition: DtMenuItem.h:23
QString myOffText
Definition: DtCheckedItem.h:54
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
Contains DLL export macros.
QString myToolTip
Definition: DtCheckedItem.h:55
Base class item builder for settings toggle items The menu id string is &quot;DtViewSettingsItem&quot;.
Definition: DtCheckedItem.h:21
QAction * myAction
Definition: DtCheckedItem.h:57
QString myOnText
Definition: DtCheckedItem.h:53
QString myIcon
Definition: DtCheckedItem.h:56
bool myState
Definition: DtCheckedItem.h:52
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
DtDe & myDe
Definition: DtCheckedItem.h:60

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)