VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
locationCSEntryDMSWidget.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2020 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  DtLocationCSEntryDMSWidget(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0);
36 
37  //DTOR
38  virtual ~DtLocationCSEntryDMSWidget() override;
39 
40  virtual void setupConnections() override;
41  virtual void setXYValidatorsEnabled(bool) override;
42 
43  virtual QString xValue() const override;
44  virtual QString yValue() const override;
45  virtual QString zValue() const override;
46  virtual bool xyValidatorsEnabled() const override;
47 
49  virtual void setXLabel(const QString&) override {};
50  virtual QString xLabel() const override { return ""; };
51 
52  virtual void setYLabel(const QString&) override {};
53  virtual QString yLabel() const override { return ""; };
54 
55  virtual void setZLabel(const QString&) override;
56  virtual QString zLabel() const override;
57 
59  virtual void setXValue(const QString&) override;
60  virtual void setYValue(const QString&) override;
61  virtual void setZValue(const QString&) override;
62 
63  virtual void setXReadOnly(bool) override;
64  virtual bool xReadOnly() const override;
65 
66  virtual void setYReadOnly(bool) override;
67  virtual bool yReadOnly() const override;
68 
69  virtual void setZReadOnly(bool) override;
70  virtual bool zReadOnly() const override;
71 
73  virtual void setUseInputValidation(bool) override;
74  virtual bool useInputValidation() const override {
75  return myUseInputValidation;
76  }
77 
78  virtual void setZEnabled(bool b) override;
79  virtual bool zEnabled() const override {
80  return myZEnabled;
81  }
82 
83  virtual void setHideZLocation(bool b) override;
84  virtual bool hideZLocation() const override {
85  return myHideZLocation;
86  }
87 
88  virtual void setCoordinateSystemDecimals(int i) override;
89  virtual int coordinateSystemDecimals() const override {
90  return myCoordinateSystemDecimals;
91  }
92 
93  virtual void setShowWarningLabel(bool b) override;
94  virtual void setEntryInvalid(bool b) override;
95  virtual bool showWarningLabel() const override {
96  return myShowWarningLabel;
97  }
98 
101  virtual void setAdvancedKeyboardHandling(bool) override;
102  virtual bool advancedKeyboardHandling() const override {
103  return myAdvancedKeyboardHandling;
104  }
105 
106  protected slots:
107  virtual void slot_onPositionEdited();
108  virtual void slot_onPositionChanged();
109 
110  protected:
111  virtual bool eventFilter(QObject* obj, QEvent* ev) override;
112  virtual void getValues(const QString& val, int& deg, int& min, double& sec) const;
113  virtual QString entryFormatLabel() const;
114 
115  public:
116  QGridLayout* myGridLayout;
132 
133  protected:
147  };
148 
150 }
virtual bool hideZLocation() const override
Definition: locationCSEntryDMSWidget.h:84
DtLocationCSEntryCreator< DtLocationCSEntryDMSWidget > DtLocationCSEntryDMSWidgetCreator
Definition: locationCSEntryDMSWidget.h:149
virtual void setYLabel(const QString &) override
Definition: locationCSEntryDMSWidget.h:52
QLineEdit * myLocationLatMin
Definition: locationCSEntryDMSWidget.h:118
QValidator * myLonDegValidator
Definition: locationCSEntryDMSWidget.h:137
QLabel * myLocationLabelLonSec
Definition: locationCSEntryDMSWidget.h:128
virtual bool showWarningLabel() const override
Definition: locationCSEntryDMSWidget.h:95
QLabel * myLocationLabelLonMin
Definition: locationCSEntryDMSWidget.h:127
QValidator * myLatSecValidator
Definition: locationCSEntryDMSWidget.h:136
bool myZEnabled
Definition: locationCSEntryDMSWidget.h:142
Definition: locationCSEntryInterface.h:24
QLineEdit * myLocationLatDeg
Definition: locationCSEntryDMSWidget.h:117
virtual bool zEnabled() const override
Definition: locationCSEntryDMSWidget.h:79
Definition: locationCSEntryInterface.h:103
QLabel * myLocationLabelLatSec
Definition: locationCSEntryDMSWidget.h:122
virtual bool advancedKeyboardHandling() const override
Definition: locationCSEntryDMSWidget.h:102
virtual QString yLabel() const override
Definition: locationCSEntryDMSWidget.h:53
virtual int coordinateSystemDecimals() const override
Definition: locationCSEntryDMSWidget.h:89
Definition: locationCSEntryDMSWidget.h:29
QValidator * myLatMinValidator
Definition: locationCSEntryDMSWidget.h:135
QLineEdit * myLocationLonSec
Definition: locationCSEntryDMSWidget.h:125
QLineEdit * myLocationLatSec
Definition: locationCSEntryDMSWidget.h:119
int myCoordinateSystemDecimals
Definition: locationCSEntryDMSWidget.h:144
QValidator * myLatDegValidator
Definition: locationCSEntryDMSWidget.h:134
#define DT_DLL_VRFGUIDATAENTRYWIDGETS
Definition: vrfGuiDataEntryWidgets.h:22
virtual QString xLabel() const override
Definition: locationCSEntryDMSWidget.h:50
QValidator * myLonMinValidator
Definition: locationCSEntryDMSWidget.h:138
bool myShowWarningLabel
Definition: locationCSEntryDMSWidget.h:145
bool myUseInputValidation
Definition: locationCSEntryDMSWidget.h:141
virtual bool useInputValidation() const override
Definition: locationCSEntryDMSWidget.h:74
virtual void setXLabel(const QString &) override
Sets label titles.
Definition: locationCSEntryDMSWidget.h:49
QLabel * myLocationLabelLonDeg
Definition: locationCSEntryDMSWidget.h:126
QLineEdit * myLocationLonDeg
Definition: locationCSEntryDMSWidget.h:123
QLabel * myLocationLabelZ
Definition: locationCSEntryDMSWidget.h:130
QLabel * myLocationLabelLatMin
Definition: locationCSEntryDMSWidget.h:121
QLabel * myWarningLabel
Definition: locationCSEntryDMSWidget.h:131
QLineEdit * myLocationZ
Definition: locationCSEntryDMSWidget.h:129
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:76
bool myAdvancedKeyboardHandling
Definition: locationCSEntryDMSWidget.h:146
QLabel * myLocationLabelLatDeg
Definition: locationCSEntryDMSWidget.h:120
QValidator * myLonSecValidator
Definition: locationCSEntryDMSWidget.h:139
bool myHideZLocation
Definition: locationCSEntryDMSWidget.h:143
QValidator * myZValidator
Definition: locationCSEntryDMSWidget.h:140
QLineEdit * myLocationLonMin
Definition: locationCSEntryDMSWidget.h:124
QGridLayout * myGridLayout
Definition: locationCSEntryDMSWidget.h:116

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)