VR-Forces 4.1.1 Class Documentation
DtSetSpeedAndHeadingDialog.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
6 //\file DtSetSpeedAndHeadingDialog.h
7 //\brief Contains DtSetSpeedAndHeadingDialog class.
8 
9 #pragma once
10 
12 
20 class QLabel;
21 class QGridLayout;
22 class QLineEdit;
23 class QDoubleValidator;
24 
25 namespace vrfAddSetExample
26 {
28  {
29  public:
30  //CTOR
31  DtSetSpeedAndHeadingDialog(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0);
32 
33  //DTOR
35 
36  //\brief Returns value in degrees
37  virtual double heading() const;
38 
39  //\brief Expects value in degrees
40  virtual void setHeading(double);
41 
42  //\brief Returns value in meters / second
43  virtual double speed() const;
44 
45  //\brief Expects value in meters / second
46  virtual void setSpeed(double);
47 
48  protected:
50  virtual QWidget* contents(const std::vector<makVrv::DtSimEntry*>& data);
51 
52  virtual void sendRequest();
53 
54  protected:
56  virtual void setupGui(const std::vector<makVrv::DtSimEntry*>& data);
57 
59  protected:
60  virtual void setupStatement(const DtSimStatement*);
61 
62  public:
64  QGridLayout* myContentLayout;
69  QDoubleValidator* myValidator;
70  };
71 
73  {
74  public:
75  //Creates a TaskSetDialogInterface; called by DtVrfTaskSetDialogManager when set item is selected by user
77  bool supportsType(makVrv::DtDe&, const DtSetMessageType&, const DtSimStatement*) const;
78  };
79 }
80 

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)