VR-Forces 4.0.4 Class Documentation
examples/guiSendInteraction/exampleMenuItem.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2008 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 
00006 #pragma once
00007 
00008 #include <vrfGuiCoreQt/vrfGuiCoreQt.h>
00009 #include <vrfGuiCoreQt/DtVrfSimulationMenuItem.h>
00010 
00011 class DtSimMessage;
00012 
00013 //This is a menu item that will prompt the user for some text and then
00014 //send that text in a comment interaction using the global DtExConnInterface.
00015 class DtExampleMenuItem : public makVrv::DtMenuItem
00016 {
00017 public:
00018    DtExampleMenuItem(makVrv::DtDe& de);
00019 
00020    virtual ~DtExampleMenuItem();
00021 
00022    //Build a menu item (via an action).
00023    virtual QAction* createAction(makVrv::DtDe&, QWidget* parent);
00024 
00025 protected:
00026    //This is the method that is called when the user selects the action.
00027    virtual void on_triggered();
00028 
00029 protected:
00030    makVrv::DtDe&  myDe;
00031 };

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)