![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2008 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: DtSetSpeedAndHeadingDialog.h,v $ $Revision: 1.3 $ $State: Exp $ 00007 ******************************************************************************/ 00008 00009 //\file DtSetSpeedAndHeadingDialog.h 00010 //\brief Contains DtSetSpeedAndHeadingDialog class. 00011 00012 #pragma once 00013 00014 #include <vrfGuiCoreQt/DtBaseTaskSetDialogInterface.h> 00015 00023 class QLabel; 00024 class QGridLayout; 00025 class QLineEdit; 00026 class QDoubleValidator; 00027 00028 namespace vrfAddSetExample 00029 { 00030 class DtSetSpeedAndHeadingDialog : public makVrf::DtBaseTaskSetDialogInterface 00031 { 00032 public: 00033 //CTOR 00034 DtSetSpeedAndHeadingDialog(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0); 00035 00036 //DTOR 00037 virtual ~DtSetSpeedAndHeadingDialog(); 00038 00039 //\brief Returns value in degrees 00040 virtual double heading() const; 00041 00042 //\brief Expects value in degrees 00043 virtual void setHeading(double); 00044 00045 //\brief Returns value in meters / second 00046 virtual double speed() const; 00047 00048 //\brief Expects value in meters / second 00049 virtual void setSpeed(double); 00050 00051 protected: 00053 virtual QWidget* contents(const std::vector<makVrv::DtSimEntry*>& data); 00054 00055 virtual void sendRequest(); 00056 00057 protected: 00059 virtual void setupGui(const std::vector<makVrv::DtSimEntry*>& data); 00060 00062 protected: 00063 virtual void setupStatement(const DtSimStatement*); 00064 00065 public: 00066 QWidget* myCanvas; 00067 QGridLayout* myContentLayout; 00068 QLineEdit* myOrderedSpeed; 00069 QLabel* myOrderedSpeedLabel; 00070 QLineEdit* myHeading; 00071 QLabel* myHeadingLabel; 00072 QDoubleValidator* myValidator; 00073 }; 00074 00075 class DtSetSpeedAndHeadingDialogCreator : public makVrf::DtVrfTaskSetDialogCreator 00076 { 00077 public: 00078 //Creates a TaskSetDialogInterface; called by DtVrfTaskSetDialogManager when set item is selected by user 00079 virtual makVrf::DtTaskSetDialogInterface* create(makVrv::DtDe&, QWidget* parent); 00080 bool supportsType(int, const DtSimStatement*) const; 00081 }; 00082 } 00083