![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2009 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: DtConditionalActions.h,v $ $Revision: 1.1 $ $State: Exp $ 00007 ******************************************************************************/ 00008 00011 00013 00014 #pragma once 00015 00016 #include <vrfGuiCoreQt/vrfGuiCoreQt.h> 00017 #include <vrvCoreQt/DtMenuItem.h> 00018 00019 #include <QtGui/QAction> 00020 00021 class DtSimStatement; 00022 00023 namespace makVrf 00024 { 00025 class DtVrfConditionalMenu; 00026 00027 class DT_DLL_VRFGUICOREQT DtVrfConditionalAction : public QAction 00028 { 00029 Q_OBJECT 00030 00031 public: 00032 DtVrfConditionalAction(QWidget* parent, const std::string&); 00033 virtual ~DtVrfConditionalAction(); 00034 00035 DtVrfConditionalMenu* parentMenu() 00036 { 00037 return myParentMenu; 00038 } 00039 00040 void setParentMenu(DtVrfConditionalMenu* m) 00041 { 00042 myParentMenu = m; 00043 } 00044 00045 const std::string& conditionType() const 00046 { 00047 return myConditionType; 00048 } 00049 00050 public: 00051 virtual void slot_onConditionComplete(const DtSimStatement&); 00052 boost::signal<void (const DtSimStatement&)> signal_conditionComplete; 00053 00054 protected: 00055 std::string myConditionType; 00056 DtVrfConditionalMenu* myParentMenu; 00057 }; 00058 00059 class DT_DLL_VRFGUICOREQT DtVrfIfConditionalMenuItem : public makVrv::DtMenuItem 00060 { 00061 Q_OBJECT 00062 00063 public: 00064 DtVrfIfConditionalMenuItem(makVrv::DtDe&, const std::string& className); 00065 virtual ~DtVrfIfConditionalMenuItem(); 00066 00067 virtual void on_triggered(); 00068 00069 protected: 00070 makVrv::DtDe& myDe; 00071 }; 00072 00073 class DT_DLL_VRFGUICOREQT DtVrfIfConditional : public DtVrfIfConditionalMenuItem 00074 { 00075 Q_OBJECT 00076 00077 public: 00078 //CTOR 00079 DtVrfIfConditional(makVrv::DtDe& de); 00080 00081 //DTOR 00082 virtual ~DtVrfIfConditional(); 00083 00085 virtual QAction* createAction(makVrv::DtDe&, QWidget* parent); 00086 }; 00087 00088 class DT_DLL_VRFGUICOREQT DtVrfWhenConditional : public DtVrfIfConditionalMenuItem 00089 { 00090 Q_OBJECT 00091 00092 public: 00093 //CTOR 00094 DtVrfWhenConditional(makVrv::DtDe& de); 00095 00096 //DTOR 00097 virtual ~DtVrfWhenConditional(); 00098 00100 virtual QAction* createAction(makVrv::DtDe&, QWidget* parent); 00101 }; 00102 00103 class DT_DLL_VRFGUICOREQT DtVrfWhileConditional : public DtVrfIfConditionalMenuItem 00104 { 00105 Q_OBJECT 00106 00107 public: 00108 //CTOR 00109 DtVrfWhileConditional(makVrv::DtDe& de); 00110 00111 //DTOR 00112 virtual ~DtVrfWhileConditional(); 00113 00115 virtual QAction* createAction(makVrv::DtDe&, QWidget* parent); 00116 }; 00117 }