VR-Forces 4.0.4 Class Documentation
examples/networkCallbackManager/exampleMenu.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2012 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: exampleMenu.h,v $ $Revision: 1.2 $ $State: Exp $
00007 ******************************************************************************/
00008 
00009 //\file exampleMenu.h
00010 //\brief Contains declarations example menu and menu item classes
00011 
00012 #pragma once
00013 
00014 #include <vrvCoreQt/DtMenu.h>
00015 #include <vrvCoreQt/DtMenuItem.h>
00016 
00017 //New main menu. This menu will be used to hold the Remote Control Console menu item
00018 class DtCallbackMenu : public makVrv::DtMenu
00019 {
00020 public:
00021    DtCallbackMenu(makVrv::DtDe& de);
00022    virtual ~DtCallbackMenu();
00023 
00024    //Must implement in order to create Qt menu
00025    QMenu* createMenu( makVrv::DtDe& de, QWidget* parent );
00026 };
00027 
00028 //This menu item will use the DtExampleEventSignaler to signal the network thread to
00029 //send out a pdu or interaction, depending on protocol.
00030 class DtCallbackMenuItem : public makVrv::DtMenuItem
00031 {
00032 public:
00033    DtCallbackMenuItem(makVrv::DtDe& de);
00034 
00035    virtual ~DtCallbackMenuItem();
00036 
00037    //Build a menu item (via an action).
00038    virtual QAction* createAction(makVrv::DtDe&, QWidget* parent);
00039 
00040 protected:
00041    //Called when the menu item is selected by the user
00042    void on_triggered();
00043 
00044 protected:
00045    makVrv::DtDe& myDe;
00046 };

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)