VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
locationCSEntryLabelBasicWidgets.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2021 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
13 #include <QtWidgets/QWidget>
14 
15 namespace makVrv
16 {
17  class DtDe;
18 }
19 
20 class QLabel;
21 class QGridLayout;
22 class QLineEdit;
23 class QDoubleValidator;
24 class QValidator;
25 class QPixmap;
26 
27 namespace makVrf
28 {
30  {
31  Q_OBJECT
32 
33  public:
35  DtLocationCSLabelEntryBasic(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0);
36 
37  //DTOR
38  virtual ~DtLocationCSLabelEntryBasic();
39 
41  virtual void setupConnections()
42  {
43  }
44 
46  virtual void setXYValidatorsEnabled(bool)
47  {
48  return;
49  }
50 
51  virtual QString xValue() const;
52  virtual QString yValue() const;
53  virtual QString zValue() const;
54 
56  virtual bool xyValidatorsEnabled() const
57  {
58  return false;
59  }
60 
62  virtual void setXLabel(const QString&);
63  virtual QString xLabel() const;
64 
65  virtual void setYLabel(const QString&);
66  virtual QString yLabel() const;
67 
68  virtual void setZLabel(const QString&);
69  virtual QString zLabel() const;
70 
72  virtual void setXValue(const QString&);
73  virtual void setYValue(const QString&);
74  virtual void setZValue(const QString&);
75 
76  virtual void setXReadOnly(bool);
77  virtual bool xReadOnly() const;
78 
79  virtual void setYReadOnly(bool);
80  virtual bool yReadOnly() const;
81 
82  virtual void setZReadOnly(bool);
83  virtual bool zReadOnly() const;
84 
86  virtual void setUseInputValidation(bool)
87  {
88  return;
89  }
90  virtual bool useInputValidation() const
91  {
92  return false;
93  }
94 
95  virtual void setZEnabled(bool b);
96  virtual bool zEnabled() const
97  {
98  return myZEnabled;
99  }
100 
101  virtual void setHideZLocation(bool b);
102  virtual bool hideZLocation() const
103  {
104  return myHideZLocation;
105  }
106 
107  virtual void setCoordinateSystemDecimals(int i);
108  virtual int coordinateSystemDecimals() const
109  {
110  return myCoordinateSystemDecimals;
111  }
112 
113  virtual void setShowWarningLabel(bool b);
114  virtual void setEntryInvalid(bool b);
115  virtual bool showWarningLabel() const
116  {
117  return myShowWarningLabel;
118  }
119 
121  virtual void setAdvancedKeyboardHandling(bool)
122  {
123  return;
124  }
125  virtual bool advancedKeyboardHandling() const
126  {
127  return false;
128  }
129 
130  public:
131  QGridLayout* myGridLayout;
139 
140  protected:
145  };
146 
148  {
149  Q_OBJECT
150 
151  public:
153  DtLocationCSLabelEntryBasicDeg(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0);
154 
155  //DTOR
157  };
158 
160 
162  {
163  Q_OBJECT
164 
165  public:
167  DtLocationCSLabelEntryBasicDMS(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0);
168 
169  //DTOR
171 
172  protected:
173  //virtual void setupInputValidators();
174  };
175 
177 
179  {
180  Q_OBJECT
181 
182  public:
184  DtLocationCSLabelEntryBasicUTM(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0);
185 
186  //DTOR
188  };
189 
191 
193  {
194  Q_OBJECT
195 
196  public:
198  DtLocationCSLabelEntryBasicMGRS(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0);
199 
200  //DTOR
202 
203  protected:
205  //virtual void setupInputValidators();
206  };
207 
209 
211  {
212  Q_OBJECT
213 
214  public:
216  DtLocationCSLabelEntryBasicGeocentric(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0);
217 
218  //DTOR
220 
221  protected:
222  //virtual void setupInputValidators();
223  };
224 
226 }
DtLocationCSEntryCreator< DtLocationCSLabelEntryBasicGeocentric > DtLocationCSLabelEntryBasicGeocentricCreator
Definition: locationCSEntryLabelBasicWidgets.h:225
virtual bool hideZLocation() const
Definition: locationCSEntryLabelBasicWidgets.h:102
bool myShowWarningLabel
Definition: locationCSEntryLabelBasicWidgets.h:144
Definition: locationCSEntryLabelBasicWidgets.h:29
virtual bool showWarningLabel() const
Definition: locationCSEntryLabelBasicWidgets.h:115
Definition: locationCSEntryLabelBasicWidgets.h:178
virtual bool advancedKeyboardHandling() const
Definition: locationCSEntryLabelBasicWidgets.h:125
QGridLayout * myGridLayout
Definition: locationCSEntryLabelBasicWidgets.h:131
Definition: locationCSEntryLabelBasicWidgets.h:192
Definition: locationCSEntryLabelBasicWidgets.h:210
QLabel * myLocationX
Definition: locationCSEntryLabelBasicWidgets.h:132
Definition: locationCSEntryInterface.h:24
DtLocationCSEntryCreator< DtLocationCSLabelEntryBasicDeg > DtLocationCSLabelEntryBasicDegCreator
Definition: locationCSEntryLabelBasicWidgets.h:159
bool myHideZLocation
Definition: locationCSEntryLabelBasicWidgets.h:142
Definition: locationCSEntryInterface.h:103
Definition: locationCSEntryLabelBasicWidgets.h:147
virtual bool zEnabled() const
Definition: locationCSEntryLabelBasicWidgets.h:96
QLabel * myLocationZ
Definition: locationCSEntryLabelBasicWidgets.h:136
virtual int coordinateSystemDecimals() const
Definition: locationCSEntryLabelBasicWidgets.h:108
virtual bool xyValidatorsEnabled() const
Interface requires to implement this function but with label entries no input validation is performed...
Definition: locationCSEntryLabelBasicWidgets.h:56
virtual bool useInputValidation() const
Definition: locationCSEntryLabelBasicWidgets.h:90
DtLocationCSEntryCreator< DtLocationCSLabelEntryBasicUTM > DtLocationCSLabelEntryBasicUTMCreator
Definition: locationCSEntryLabelBasicWidgets.h:190
Definition: locationCSEntryLabelBasicWidgets.h:161
#define DT_DLL_VRFGUIDATAENTRYWIDGETS
Definition: vrfGuiDataEntryWidgets.h:22
virtual void setupConnections()
Interface requires to implement this function but nothing to be done.
Definition: locationCSEntryLabelBasicWidgets.h:41
QLabel * myLocationLabelZ
Definition: locationCSEntryLabelBasicWidgets.h:137
QLabel * myLocationLabelY
Definition: locationCSEntryLabelBasicWidgets.h:135
virtual void setUseInputValidation(bool)
Interface requires to implement this function but with label entries no input validation is performed...
Definition: locationCSEntryLabelBasicWidgets.h:86
QLabel * myLocationY
Definition: locationCSEntryLabelBasicWidgets.h:134
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
bool myZEnabled
Definition: locationCSEntryLabelBasicWidgets.h:141
QLabel * myLocationLabelX
Definition: locationCSEntryLabelBasicWidgets.h:133
DtLocationCSEntryCreator< DtLocationCSLabelEntryBasicDMS > DtLocationCSLabelEntryBasicDMSCreator
Definition: locationCSEntryLabelBasicWidgets.h:176
QLabel * myWarningLabel
Definition: locationCSEntryLabelBasicWidgets.h:138
int myCoordinateSystemDecimals
Definition: locationCSEntryLabelBasicWidgets.h:143
virtual void setXYValidatorsEnabled(bool)
Interface requires to implement this function but with label entries no input validation is performed...
Definition: locationCSEntryLabelBasicWidgets.h:46
DtLocationCSEntryCreator< DtLocationCSLabelEntryBasicMGRS > DtLocationCSLabelEntryBasicMGRSCreator
Definition: locationCSEntryLabelBasicWidgets.h:208
virtual void setAdvancedKeyboardHandling(bool)
Interface requires to implement this function but with label entries no special keyboard handling is ...
Definition: locationCSEntryLabelBasicWidgets.h:121

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)