VR-Forces 4.1 Class Documentation
exampleMenu.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: exampleMenu.h,v $ $Revision: 1.2 $ $State: Exp $
7 ******************************************************************************/
8 
9 //\file exampleMenu.h
10 //\brief Contains declarations example menu and menu item classes
11 
12 #pragma once
13 
14 #include <vrvCoreQt/DtMenu.h>
15 #include <vrvCoreQt/DtMenuItem.h>
16 
17 //New main menu. This menu will be used to hold the Remote Control Console menu item
19 {
20 public:
22  virtual ~DtCallbackMenu();
23 
24  //Must implement in order to create Qt menu
25  QMenu* createMenu( makVrv::DtDe& de, QWidget* parent );
26 };
27 
28 //This menu item will use the DtExampleEventSignaler to signal the network thread to
29 //send out a pdu or interaction, depending on protocol.
31 {
32 public:
34 
35  virtual ~DtCallbackMenuItem();
36 
37  //Build a menu item (via an action).
38  virtual QAction* createAction(makVrv::DtDe&, QWidget* parent);
39 
40 protected:
41  //Called when the menu item is selected by the user
42  void on_triggered();
43 
44 protected:
46 };

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)