VR-Vantage API Documentation
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 


Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)