![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2012 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 00006 //\file DtTaskRetreatAction.h 00007 00008 //class DtTaskRetreatAction: 00009 // 00010 //Instances of DtRetreatDtTaskRetreatActionTask are an example of the 00011 //structure necessary to request a task ID, to add the task to the menu and to 00012 //link it to the dialog creator. 00013 00014 #pragma once 00015 00016 #include <vrfGuiCoreQt/vrfGuiCoreQt.h> 00017 #include <vrfGuiCoreQt/DtVrfTaskSetMenu.h> 00018 00019 namespace vrfAddTaskExample 00020 { 00021 class DtTaskRetreatAction : public makVrf::DtVrfTaskSetMenuItem 00022 { 00023 public: 00024 //Constructor 00025 //Generates and caches myId, registers the action with 00026 //DtVrfTaskSetDialogManager and DtVrfTaskSetManager 00027 DtTaskRetreatAction(makVrv::DtDe& de); 00028 00029 //Destructor 00030 virtual ~DtTaskRetreatAction(); 00031 00032 //Calls down to DtVrfTaskSetMenuItem::registerMenuItem to create the 00033 //action. 00034 virtual QAction* createAction(makVrv::DtDe&, QWidget* parent); 00035 00036 protected: 00037 //Assigned via the DtVrfTaskSetDialogManager in the constructor, used 00038 //for registrations. 00039 int myId; 00040 }; 00041 }