VR-Forces 5.0.1 Developer's Guide
 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) 2021 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCoreQt/vrvCoreQt.h>
13 #include <vrvCoreQt/DtMenuItem.h>
14 
16 
17 namespace makVrv
18 {
23  {
24  Q_OBJECT
25 
26  public:
28  DtCheckedItem(DtDe& de, const std::string& className);
29 
31  virtual ~DtCheckedItem();
32 
34  virtual QAction* createAction(DtDe&, QWidget* parent);
35 
37  virtual void on_settingChanged(bool value);
38 
39  //Update the check state with the value returned from getValue()
40  //This does not emit any signals.
41  void updateValue();
42 
43  protected:
44 
45  virtual void on_triggered();
46 
47  //Set the value due to being triggered.
48  virtual void setValue(bool value) = 0;
49 
50  //Get the current value.
51  virtual bool getValue() const = 0;
52 
53  bool myState;
54  QString myOnText;
55  QString myOffText;
56  QString myToolTip;
59 
60  protected:
62 
63  };
64 }
Builder for menu items.
Definition: DtMenuItem.h:23
Contains makVrv::DtQIconConfiguration class declaration.
QString myOffText
Definition: DtCheckedItem.h:55
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
Contains DLL export macros.
QString myToolTip
Definition: DtCheckedItem.h:56
Base class item builder for settings toggle items The menu id string is &quot;DtViewSettingsItem&quot;.
Definition: DtCheckedItem.h:22
QAction * myAction
Definition: DtCheckedItem.h:58
QString myOnText
Definition: DtCheckedItem.h:54
DtQIconConfigurations myIconConfigurations
Definition: DtCheckedItem.h:57
bool myState
Definition: DtCheckedItem.h:53
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
A collection of icon configurations. The collection maintains flags indicating whether to generate ic...
Definition: DtQIconConfiguration.h:75
DtDe & myDe
Definition: DtCheckedItem.h:61

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)