VR-Vantage API Documentation
DtMenuItem.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtMenuItemBuilder.h,v $ $Revision: 1.10 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #pragma once
14 #include <vrvCoreQt/vrvCoreQt.h>
15 #include <QtCore/QObject>
16 
17 class QAction;
18 class QWidget;
19 
20 namespace makVrv
21 {
27  {
28  Q_OBJECT
29  public:
30 
32  DtMenuItem(const std::string& menuItemIdName);
33 
35  virtual ~DtMenuItem();
36 
39  virtual const std::string& menuItemIdName() const;
40 
42  virtual QAction* createAction(DtDe&, QWidget* parent) = 0;
43 
44  protected slots:
45 
46  virtual void on_triggered();
47 
48  virtual void on_checkStateChanged(bool);
49 
50  virtual void on_aboutToShow();
51 
52  protected:
53  std::string myMenuIdName;
54 
55  };
56 
60  {
61  public:
63 
64  virtual ~DtSeparatorItem();
65 
67  virtual QAction* createAction(DtDe&, QWidget* parent);
68  };
69 }


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