VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgEarthAddModelLayerWidget.h
Go to the documentation of this file.
1 #if OSGEARTH_UPGRADE_GOOD
2 /******************************************************************************
3 ** Copyright (c) 2019 MAK Technologies, Inc.
4 ** All rights reserved.
5 ******************************************************************************/
6 
10 
11 #pragma once
12 
16 #include <QtWidgets/QWidget>
17 
18 // Class Forward Declarations
19 class QVBoxLayout;
20 class QHBoxLayout;
21 class QLabel;
22 class QLineEdit;
23 class QPushButton;
24 class QRadioButton;
25 class QStackedWidget;
26 class QComboBox;
27 class QListWidget;
28 class QListWidgetItem;
29 
30 namespace makVrv
31 {
32  class DtFileBrowseWidget;
33 
37  class DT_DLL_VRVTERRAINEDITOR DtOsgEarthAddModelLayerWidget
38  : public QWidget
39  , public DtOsgEarthAddModelLayerInterface
40  {
41  Q_OBJECT
42 
43  public:
44 
45  friend class DtOsgEarthAddModelLayerWidgetCreator;
46 
48  virtual void resetWidgets();
49 
51  virtual ~DtOsgEarthAddModelLayerWidget();
52 
53  protected:
54 
57  DtOsgEarthAddModelLayerWidget(DtDe& de);
58 
60  virtual void setupGui();
61 
63  virtual void connectSignals();
64 
67  virtual void enabledWidget(LayerSource type);
68 
71  virtual bool validateSource(const DtUnicode& url);
72 
74  virtual void populateVrTheWroldFeatures();
75 
77  virtual void populateTFSFeatures();
78 
80  std::string getLayerName() const;
81 
83  DtUnicode getLayerURL() const;
84 
86  std::string getLayerDriver() const;
87 
88  protected slots:
93  virtual void on_WFSRadioButton_toggled(bool);
94 
96  virtual void on_TFSRadioButton_toggled(bool);
97 
99  virtual void on_OGRRadioButton_toggled(bool);
100 
102  virtual void on_OGRFileLineEdit_textChanged(const QString&);
103 
105  virtual void on_WFSTypeNameLineEdit_textChanged(const QString&);
106 
108  virtual void on_WFSNameLineEdit_textChanged(const QString&);
109 
111  virtual void on_TFSFeaturesListWidget_currentItemChanged(QListWidgetItem*, QListWidgetItem*);
112 
114  virtual void on_OGRFilePushButton_released();
115 
117  virtual void on_addButton_released();
118 
120  virtual void on_closeButton_released();
121 
123  virtual void on_TFSFeaturesListWidget_itemDoubleClicked(QListWidgetItem*);
124 
126 
127  private:
129  DtOsgEarthAddModelLayerWidget();
131  DtOsgEarthAddModelLayerWidget(const DtOsgEarthAddModelLayerWidget&);
133  DtOsgEarthAddModelLayerWidget &operator=(const DtOsgEarthAddModelLayerWidget&);
134 
135 
136  protected:
137 
138  DtDe& myDe;
139 
140  QVBoxLayout* myMainLayout;
141 
142  QRadioButton* myWFSRadioButton;
143  QRadioButton* myTFSRadioButton;
144  QRadioButton* myOGRRadioButton;
145 
146  QWidget* myWFSWidget;
147  QLabel* myWFSURLLabel;
148  QLineEdit* myWFSURLLineEdit;
149  QLabel* myWFSTypeNameLabel;
150  QLineEdit* myWFSTypeNameLineEdit;
151  QLabel* myWFSNameLabel;
152  QLineEdit* myWFSNameLineEdit;
153 
154  QWidget* myTFSWidget;
155  QLabel* myTFSURLLabel;
156  QLineEdit* myTFSURLLineEdit;
157  QPushButton* myTFSGetLayersButton;
158  QLabel* myTFSFeaturesLabel;
159  QListWidget* myTFSFeaturesListWidget;
160 
161  QWidget* myOGRWidget;
162  QLabel* myOGRFileLabel;
163  QLineEdit* myOGRFileLineEdit;
164  QPushButton* myOGRFilePushButton;
165 
166  QPushButton* myAddButton;
167  QPushButton* myCloseButton;
168 
169  LayerSource mySourceType;
170  std::string myWFSServerAddress;
171  std::string myTFSAddress;
172  std::string myVrTheWolrdApiServerAddress;
173 
174  FeaturesMap myTFSFeaturesMap;
175  };
176 
179  class DT_DLL_VRVTERRAINEDITOR DtOsgEarthAddModelLayerWidgetCreator
180  : public DtVirtualBaseClass
181  {
182  public:
183  static DtOsgEarthAddModelLayerWidgetCreator& instance(DtDe& de);
184  static void registerInstance(DtDe& de, DtOsgEarthAddModelLayerWidgetCreator* creator);
185  virtual DtOsgEarthAddModelLayerWidget* create(DtDe& de) const;
186  };
187 }
188 #endif
Contains DLL export macros.
Contains makVrv::DtVirtualBaseClass class.
#define DT_DLL_VRVTERRAINEDITOR
Definition: vrvTerrainEditor.h:25

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)