![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2009 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: DtSimulationCommandActions.h,v $ $Revision: 1.2 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00011 00014 00015 #pragma once 00016 00017 #include <vrfGuiCoreQt/vrfGuiCoreQt.h> 00018 #include <vrvCoreQt/DtMenuItem.h> 00019 00020 #include <QtGui/QAction> 00021 00022 class DtSimCommand; 00023 00024 namespace makVrf 00025 { 00026 class DtVrfSimulationCommandMenu; 00027 class DtSimCommandObjectWrapper; 00028 00029 class DT_DLL_VRFGUICOREQT DtVrfSimulationCommandAction : public QAction 00030 { 00031 Q_OBJECT 00032 00033 public: 00034 DtVrfSimulationCommandAction(QWidget*); 00035 virtual ~DtVrfSimulationCommandAction(); 00036 00037 void setParentMenu(DtVrfSimulationCommandMenu* p) 00038 { 00039 myParentMenu = p; 00040 } 00041 00042 DtVrfSimulationCommandMenu* parentMenu() 00043 { 00044 return myParentMenu; 00045 } 00046 00047 void setCommandAction(const std::string& s) 00048 { 00049 myCommandAction = s; 00050 } 00051 00052 const std::string& commandAction() const 00053 { 00054 return myCommandAction; 00055 } 00056 00057 public: 00058 virtual void slot_onSimCommandActivated(const DtSimCommandObjectWrapper&); 00059 boost::signal<void (const DtSimCommandObjectWrapper&)> signal_simCommandActivated; 00060 00061 protected: 00062 DtVrfSimulationCommandMenu* myParentMenu; 00063 std::string myCommandAction; 00064 }; 00065 00068 00069 class DT_DLL_VRFGUICOREQT DtVrfSimulationCommand : public makVrv::DtMenuItem 00070 { 00071 Q_OBJECT 00072 00073 public: 00074 DtVrfSimulationCommand(const std::string&, makVrv::DtDe&); 00075 virtual ~DtVrfSimulationCommand(); 00076 00077 protected: 00078 virtual QAction* registerMenuItem(DtVrfSimulationCommandAction* action, const std::string& commandAction); 00079 virtual void on_triggered(); 00080 00081 protected: 00082 makVrv::DtDe& myDe; 00083 }; 00084 00085 class DT_DLL_VRFGUICOREQT DtSimulationCommandAbandonPlan : public DtVrfSimulationCommand 00086 { 00087 Q_OBJECT 00088 00089 public: 00090 //CTOR 00091 DtSimulationCommandAbandonPlan(makVrv::DtDe& de); 00092 00093 //DTOR 00094 virtual ~DtSimulationCommandAbandonPlan(); 00095 00097 virtual QAction* createAction(makVrv::DtDe&, QWidget* parent); 00098 }; 00099 00100 class DT_DLL_VRFGUICOREQT DtSimulationCommandComment : public DtVrfSimulationCommand 00101 { 00102 Q_OBJECT 00103 00104 public: 00105 //CTOR 00106 DtSimulationCommandComment(makVrv::DtDe& de); 00107 00108 //DTOR 00109 virtual ~DtSimulationCommandComment(); 00110 00112 virtual QAction* createAction(makVrv::DtDe&, QWidget* parent); 00113 }; 00114 00115 class DT_DLL_VRFGUICOREQT DtSimulationCommandChangeHostility : public DtVrfSimulationCommand 00116 { 00117 Q_OBJECT 00118 00119 public: 00120 //CTOR 00121 DtSimulationCommandChangeHostility(makVrv::DtDe& de); 00122 00123 //DTOR 00124 virtual ~DtSimulationCommandChangeHostility(); 00125 00127 virtual QAction* createAction(makVrv::DtDe&, QWidget* parent); 00128 }; 00129 00130 class DT_DLL_VRFGUICOREQT DtSimulationCommandSetTimeOfDay : public DtVrfSimulationCommand 00131 { 00132 Q_OBJECT 00133 00134 public: 00135 //CTOR 00136 DtSimulationCommandSetTimeOfDay(makVrv::DtDe& de); 00137 00138 //DTOR 00139 virtual ~DtSimulationCommandSetTimeOfDay(); 00140 00142 virtual QAction* createAction(makVrv::DtDe&, QWidget* parent); 00143 }; 00144 00145 class DT_DLL_VRFGUICOREQT DtSimulationCommandSetGlobalWeather : public DtVrfSimulationCommand 00146 { 00147 Q_OBJECT 00148 00149 public: 00150 //CTOR 00151 DtSimulationCommandSetGlobalWeather(makVrv::DtDe& de); 00152 00153 //DTOR 00154 virtual ~DtSimulationCommandSetGlobalWeather(); 00155 00157 virtual QAction* createAction(makVrv::DtDe&, QWidget* parent); 00158 }; 00159 00160 class DT_DLL_VRFGUICOREQT DtSimulationCommandDelete : public DtVrfSimulationCommand 00161 { 00162 Q_OBJECT 00163 00164 public: 00165 //CTOR 00166 DtSimulationCommandDelete(makVrv::DtDe& de); 00167 00168 //DTOR 00169 virtual ~DtSimulationCommandDelete(); 00170 00172 virtual QAction* createAction(makVrv::DtDe&, QWidget* parent); 00173 }; 00174 00175 00177 class DT_DLL_VRFGUICOREQT DtSimulationCommandSelfDelete : public DtVrfSimulationCommand 00178 { 00179 Q_OBJECT 00180 00181 public: 00182 //CTOR 00183 DtSimulationCommandSelfDelete(makVrv::DtDe& de); 00184 00185 //DTOR 00186 virtual ~DtSimulationCommandSelfDelete(); 00187 00189 virtual QAction* createAction(makVrv::DtDe&, QWidget* parent); 00190 00193 virtual void on_triggered(); 00194 }; 00195 00196 class DT_DLL_VRFGUICOREQT DtSimulationCommandRestartPlan : public DtVrfSimulationCommand 00197 { 00198 Q_OBJECT 00199 00200 public: 00201 //CTOR 00202 DtSimulationCommandRestartPlan(makVrv::DtDe& de); 00203 00204 //DTOR 00205 virtual ~DtSimulationCommandRestartPlan(); 00206 00208 virtual QAction* createAction(makVrv::DtDe&, QWidget* parent); 00209 }; 00210 00212 class DT_DLL_VRFGUICOREQT DtSimulationCommandIssuePlan : public DtVrfSimulationCommand 00213 { 00214 Q_OBJECT 00215 00216 public: 00217 //CTOR 00218 DtSimulationCommandIssuePlan(makVrv::DtDe& de); 00219 00220 //DTOR 00221 virtual ~DtSimulationCommandIssuePlan(); 00222 00224 virtual QAction* createAction(makVrv::DtDe&, QWidget* parent); 00225 }; 00226 }