VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtMenuItem.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 #include <vrvCoreQt/vrvCoreQt.h>
12 #include <QtCore/QObject>
13 
14 class QAction;
15 class QWidget;
16 
17 namespace makVrv
18 {
24  {
25  Q_OBJECT
26  public:
27 
29  DtMenuItem(const std::string& menuItemIdName);
30 
32  virtual ~DtMenuItem();
33 
36  virtual const std::string& menuItemIdName() const;
37 
39  virtual QAction* createAction(DtDe&, QWidget* parent) = 0;
40 
41  protected slots:
42 
43  virtual void on_triggered();
44 
45  virtual void on_checkStateChanged(bool);
46 
47  virtual void on_aboutToShow();
48 
49  protected:
50  std::string myMenuIdName;
51 
52  };
53 
57  {
58  public:
60 
61  virtual ~DtSeparatorItem();
62 
64  virtual QAction* createAction(DtDe&, QWidget* parent);
65  };
66 }
Builder for menu items.
Definition: DtMenuItem.h:23
std::string myMenuIdName
Definition: DtMenuItem.h:50
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
Contains DLL export macros.
Menu item which represents a separator.
Definition: DtMenuItem.h:56
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69

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)