![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2008 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: DtSetDetonationDialog.h,v $ $Revision: 1.2 $ $State: Exp $ 00007 ******************************************************************************/ 00008 00011 00013 00014 #pragma once 00015 00016 #include <vrfGuiCoreQt/vrfGuiCoreQt.h> 00017 #include <vrfGuiCoreQt/DtBaseYesNoTaskSetDialog.h> 00018 00019 class QHBoxLayout; 00020 class QComboBox; 00021 class QLabel; 00022 class QDoubleValidator; 00023 class QLineEdit; 00024 00025 namespace makVrf 00026 { 00027 class DT_DLL_VRFGUICOREQT DtSetDetonationDialog : public DtBaseYesNoTaskSetDialog 00028 { 00029 Q_OBJECT 00030 public: 00031 //CTOR 00032 DtSetDetonationDialog(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0); 00033 00034 //DTOR 00035 virtual ~DtSetDetonationDialog(); 00036 00037 virtual double detonationTime() const; 00038 virtual void setDetonationTime(double); 00039 virtual void setDetonationTimeEnabled(bool); 00040 00041 virtual double proximity() const; 00042 virtual void setProximity(double); 00043 virtual void setProximityEnabled(bool); 00044 00045 protected: 00046 virtual QWidget* contents(const std::vector<makVrv::DtSimEntry*>& data); 00047 virtual QBoxLayout* createMainLayout(); 00048 virtual void sendRequest(); 00049 00050 protected: 00051 virtual void setupStatement(const DtSimStatement*); 00052 virtual void initializeItems(const std::vector<makVrv::DtSimEntry*>& data); 00053 virtual void enableWidget(); 00054 virtual void comboChanged(const QString& s); 00055 00056 public: 00057 QHBoxLayout* myDetonationLayout; 00058 QLabel* myDetonateLabel; 00059 QLineEdit* myDetonateTime; 00060 00061 QHBoxLayout* myProximityLayout; 00062 QLabel* myProximityLabel; 00063 QLineEdit* myProximity; 00064 00065 QDoubleValidator* myValidator; 00066 }; 00067 00068 class DT_DLL_VRFGUICOREQT DtSetDetonationDialogCreator : public DtVrfTaskSetDialogCreator 00069 { 00070 public: 00071 virtual DtTaskSetDialogInterface* create(makVrv::DtDe&, QWidget* parent); 00072 bool supportsType(int, const DtSimStatement*) const; 00073 }; 00074 }