VR-Forces 5.0.3 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();
30 
31  virtual QValidator::State validate(QString & input, int & i) const;
32  };
33 
36  class DT_DLL_VRFGUICOMMONQT DtIntSumValidator : public QIntValidator
37  {
38  public:
39  DtIntSumValidator(QObject* p) : QIntValidator(p) {};
40  virtual ~DtIntSumValidator();
41 
42  virtual QValidator::State validate(QString & input, int & i) const;
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();
57 
58  virtual QValidator::State validate(QString & input, int & i) const;
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();
71 
72  virtual void setRegExpr(const std::string&);
73  virtual void setLineEdit(QLineEdit*);
74  virtual void setCoordinateDisplay(makVrv::DtCoordinateDisplay*);
75 
76  virtual QValidator::State validate(QString & input, int & i) const;
77 
78  protected:
80  QRegExp myRegExpr;
83  };
84 
87  {
88  public:
89  DtEntityTypeValidator(QObject* p, bool allowWildcards);
90  virtual ~DtEntityTypeValidator();
91  virtual QValidator::State validate(QString& input, int& pos) const;
92 
93  virtual void setAllowWildcards(bool);
94  bool allowWildcards() const
95  {
96  return myAllowWildcards;
97  }
98 
99  protected:
101  };
102 }
makVrv::DtCoordinateDisplay * myCoordinateDisplay
Definition: vrfQtValidators.h:81
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:79
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:82
!!!!!!!! DtEntityTypeValidator
Definition: vrfQtValidators.h:86
#define DT_DLL_VRFGUICOMMONQT
Definition: vrfGuiCommonQt.h:20
QRegExp myRegExpr
Definition: vrfQtValidators.h:80
bool myAllowWildcards
Definition: vrfQtValidators.h:100
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:70
bool allowWildcards() const
Definition: vrfQtValidators.h:94
Definition: vrfQtValidators.h:66
DtDoubleValidator(QObject *p)
Definition: vrfQtValidators.h:28

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)