VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfQtValidators.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
9 
10 #include <QtGui/QValidator>
11 #include <QtCore/QRegExp>
12 
13 #include <set>
14 
15 class QLineEdit;
16 
17 namespace makVrv
18 {
19  class DtDe;
20  class DtCoordinateDisplay;
21 }
22 
23 namespace makVrf
24 {
25  class DT_DLL_VRFGUICOMMONQT DtDoubleValidator : public QDoubleValidator
26  {
27  public:
28  DtDoubleValidator(QObject* p) : QDoubleValidator(p) {};
29  virtual ~DtDoubleValidator() override;
30 
31  virtual QValidator::State validate(QString& input, int& i) const override;
32  };
33 
36  class DT_DLL_VRFGUICOMMONQT DtIntSumValidator : public QIntValidator
37  {
38  public:
39  DtIntSumValidator(QObject* p) : QIntValidator(p) {};
40  virtual ~DtIntSumValidator() override;
41 
42  virtual QValidator::State validate(QString& input, int& i) const override;
43  virtual void addLineEdit(QLineEdit*);
44  virtual void removeLineEdit(QLineEdit*);
45 
46  protected:
47  std::set<QLineEdit*> myToCheck;
48  };
49 
53  {
54  public:
56  virtual ~DtDoubleSumValidator() override;
57 
58  virtual QValidator::State validate(QString& input, int& i) const override;
59  virtual void addLineEdit(QLineEdit*);
60  virtual void removeLineEdit(QLineEdit*);
61 
62  protected:
63  std::set<QLineEdit*> myToCheck;
64  };
65 
66  class DT_DLL_VRFGUICOMMONQT DtGeodeticDoubleValidator : public QDoubleValidator
67  {
68  public:
70  virtual ~DtGeodeticDoubleValidator() override;
71 
72  virtual void setRegExpr(const std::string&);
73  virtual void setLineEdit(QLineEdit*);
74  virtual void setCoordinateDisplay(makVrv::DtCoordinateDisplay*);
75  virtual void clearRegularExpression();
76 
77  virtual QValidator::State validate(QString& input, int& i) const override;
78 
79  protected:
81  QRegExp myRegExpr;
84  };
85 
88  {
89  public:
90  DtEntityTypeValidator(QObject* p, bool allowWildcards);
91  virtual ~DtEntityTypeValidator() override;
92  virtual QValidator::State validate(QString& input, int& pos) const override;
93 
94  virtual void setAllowWildcards(bool);
95  bool allowWildcards() const
96  {
97  return myAllowWildcards;
98  }
99 
100  protected:
102  };
103 }
makVrv::DtCoordinateDisplay * myCoordinateDisplay
Definition: vrfQtValidators.h:82
std::set< QLineEdit * > myToCheck
Definition: vrfQtValidators.h:63
Abstract interface class for all coordinate system displays.
Definition: DtCoordinateDisplay.h:24
makVrv::DtDe & myDe
Definition: vrfQtValidators.h:80
Given the current item, check all the associated items for their integer values, and, if this item plus the others would be greater than or less than the bottom do not allow validation.
Definition: vrfQtValidators.h:36
DtDoubleSumValidator(QObject *p)
Definition: vrfQtValidators.h:55
Definition: vrfQtValidators.h:25
QLineEdit * myLineEdit
Definition: vrfQtValidators.h:83
!!!!!!!! DtEntityTypeValidator
Definition: vrfQtValidators.h:87
#define DT_DLL_VRFGUICOMMONQT
Definition: vrfGuiCommonQt.h:20
QRegExp myRegExpr
Definition: vrfQtValidators.h:81
bool myAllowWildcards
Definition: vrfQtValidators.h:101
Given the current item, check all the associated items for their integer values, and, if this item plus the others would be greater than or less than the bottom do not allow validation.
Definition: vrfQtValidators.h:52
DtIntSumValidator(QObject *p)
Definition: vrfQtValidators.h:39
std::set< QLineEdit * > myToCheck
Definition: vrfQtValidators.h:47
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 allowWildcards() const
Definition: vrfQtValidators.h:95
Definition: vrfQtValidators.h:66
DtDoubleValidator(QObject *p)
Definition: vrfQtValidators.h:28

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)