VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtGotoWidget.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2021 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
13 #include <vrvCoreQt/vrvCoreQt.h>
15 
17 #include <vrvUtil/DtUnicode.h>
18 
19 // VR-Link includes
20 #include <matrix/vlVector.h>
21 #include <matrix/geodeticCoord.h>
22 
23 // Qt includes
24 #include <QtWidgets/QWidget>
25 #include <QtGui/QPixmap>
26 
27 class QVBoxLayout;
28 class QLineEdit;
29 class QButtonGroup;
30 class QRadioButton;
31 class QPushButton;
32 class QLabel;
33 class QGroupBox;
34 class QDoubleValidator;
35 class QString;
36 
37 namespace makVrv
38 {
39  class DtDmsEntryWidget;
40  class DtMgrsEntryWidget;
41  class QAbstractButton;
42 
55  : public QWidget
56  , public DtGotoWidgetInterface
57  {
58  Q_OBJECT
59 
60  public:
61 
63  DtGotoWidget(makVrv::DtDe& de, QWidget* parent);
64 
66  virtual ~DtGotoWidget();
67 
69  virtual void initialize();
70 
72 
77  virtual void setSecondsDecimals(int decimals);
78 
82  virtual void setLocationFound(double lat, double lon);
83 
88  virtual void setAddressError(const DtUnicode& errorStr);
89 
94  virtual void setLatitudeSecondsText(const DtUnicode& secondsText);
95 
98  virtual void setLongitudeSecondsText(const DtUnicode& secondsText);
100 
101  private:
102 
104  DtGotoWidget();
105 
106  protected:
107 
109  virtual void setupUi();
110 
112  virtual void connectSignals();
113 
114  protected slots:
115 
117  virtual void onGotoAddressChecked();
118 
120  virtual void onGotoDmsChecked();
121 
123  virtual void onGotoMgrsChecked();
124 
126  virtual void onHasValidValue(bool valid);
127 
129  virtual void onGoButtonClicked();
130 
132  virtual void onAddressChanged();
133 
135  virtual void onLatitudeSecondsChanged(double seconds);
136 
138  virtual void onLongitudeSecondsChanged(double seconds);
139 
140  protected:
141 
143  virtual QLayout* createGotoWidgets();
144 
146  virtual QLayout* createGoButton();
147 
148  protected:
150 
152 
153  QButtonGroup* mySelectorButtonsGroup;
155  QRadioButton* myGotoDmsRadioButton;
156  QRadioButton* myGotoMgrsRadioButton;
160 
166 
168 
169  QVBoxLayout* myMainLayout;
170  };
171 }
A unicode string. DtUnicode stores a UTF-16 encoded unicode string. Code Point, a Unicode character...
Definition: DtUnicode.h:33
QButtonGroup * mySelectorButtonsGroup
Definition: DtGotoWidget.h:153
QLabel * myAddressWarningLabel
Definition: DtGotoWidget.h:163
QLabel * myGotoMgrsLabel
Definition: DtGotoWidget.h:159
QRadioButton * myGotoDmsRadioButton
Definition: DtGotoWidget.h:155
QLabel * myGotoAddressLabel
Definition: DtGotoWidget.h:157
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
QRadioButton * myGotoAddressRadioButton
Definition: DtGotoWidget.h:154
Contains DLL export macros.
QLineEdit * myAddress
Definition: DtGotoWidget.h:165
DtMgrsEntryWidget * myGotoMgrsWidget
Definition: DtGotoWidget.h:162
DtDe & myDe
Definition: DtGotoWidget.h:149
DtMgrsEntryWidget declaration. Widget for managing input of an MGRS location. It provides 4 edit boxe...
Definition: DtMgrsEntryWidget.h:32
DtDmsEntryWidget declaration. Widget for managing input of an lat/lon Degrees/Minutes/Seconds locatio...
Definition: DtDmsEntryWidget.h:35
QVBoxLayout * myMainLayout
Definition: DtGotoWidget.h:169
DtDmsEntryWidget * myGotoDmsWidget
Definition: DtGotoWidget.h:161
Base class to provide boost signal/slot management.
GotoType
Enumeration for the way the location to go to is currently being input.
Definition: DtGotoWidgetInterface.h:29
Abstract interface for DtGotoWidget. This defines the interface that will be used by the DtGotoLogic ...
Definition: DtGotoWidgetInterface.h:42
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
QRadioButton * myGotoMgrsRadioButton
Definition: DtGotoWidget.h:156
GotoType myCurrentGotoType
Definition: DtGotoWidget.h:151
QLabel * myGotoDmsLabel
Definition: DtGotoWidget.h:158
DtGotoWidget declaration. The DtGotoWidget and DtGotoLogic work together to provide a user interface ...
Definition: DtGotoWidget.h:54
QPushButton * myGoButton
Definition: DtGotoWidget.h:167
QPixmap myAddressWarningIcon
Definition: DtGotoWidget.h:164

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)