![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2008 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: DtSetSpeedAndHeadingMenuItem.h,v $ $Revision: 1.2 $ $State: Exp $ 00007 ******************************************************************************/ 00008 //\file DtSetSpeedAndHeadingMenuItem.h 00009 00010 #pragma once 00011 00012 #include <vrfGuiCoreQt/DtVrfTaskSetMenu.h> 00013 00014 //class DtSetSpeedAndHeadingMenuItem: 00015 00016 //Instances of DtSetSpeedAndHeading are an example of a new kind of set that 00017 //tells an entity to set their current speed and heading. 00018 00019 //As per the the VR Forces GUI architecture (see the BRFFrontEndDevelopersGuide, 00020 //chapter 3 and especially 3.1), the DtSetSpeedAndHeadingMenuItem provides the 00021 //necessary structure for a DtMenuItem as used by the DtMenuItemBuilder. 00022 00023 00024 namespace vrfAddSetExample 00025 { 00026 class DtSetSpeedAndHeadingMenuItem : public makVrf::DtVrfTaskSetMenuItem 00027 { 00028 public: 00029 //\brief: CTOR 00030 DtSetSpeedAndHeadingMenuItem(makVrv::DtDe& de); 00031 00032 //DTOR 00033 virtual ~DtSetSpeedAndHeadingMenuItem(); 00034 00035 //Build a menu item (via an action). 00036 virtual QAction* createAction(makVrv::DtDe&, QWidget* parent); 00037 00038 protected: 00039 int myId; 00040 }; 00041 } 00042