![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2007 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: DtOsgEarthServerDialog.h,v $ $Revision: 1.6 $ $State: Exp $ 00007 ******************************************************************************/ 00008 00009 00013 00014 #ifndef DtOsgEarthServerDialog_H_ 00015 #define DtOsgEarthServerDialog_H_ 00016 00017 #include <vrvOsgEarthQt/vrvOsgEarthQt.h> 00018 #include <vrvCore/DtDe.h> 00019 #include <QtGui/QDialog> 00020 #include <vrvOsgEarthQt/DtOsgEarthServerInterface.h> 00021 00022 class QPlainTextEdit; 00023 class QLineEdit; 00024 class QListWidgetItem; 00025 class QPushButton; 00026 00027 namespace makVrv 00028 { 00029 class DtOsgEarthServerLogic; 00030 class DtSelectInstanceWidget; 00031 00034 class DT_DLL_VRVOSGEARTHQT DtOsgEarthServerDialog 00035 : public QDialog 00036 , DtOsgEarthServerInterface 00037 { 00038 00039 Q_OBJECT; 00040 00041 public: 00042 00044 DtOsgEarthServerDialog(DtDe& de, QWidget* parent, Qt::WindowFlags f = Qt::Tool); 00045 00047 virtual ~DtOsgEarthServerDialog(); 00048 00050 virtual void setMapNameLabel(const std::string& mapname); 00051 00053 virtual void setImageNameLabel(const std::string& imgname); 00054 00056 virtual void setDescriptionText(const std::string& desc); 00057 00059 virtual void setCordSysLabel(const std::string& cordsys); 00060 00062 virtual void addInstance(const std::string& name); 00063 00065 virtual void removeInstance(const std::string& name); 00066 00068 virtual void clearInstances(); 00069 00070 public slots: 00071 00073 virtual void onConnectClicked(); 00074 00076 virtual void onCancelClicked(); 00077 00078 protected slots: 00079 00080 virtual void on_myContentsWidget_currentIndexChanged(int); 00081 00082 protected: 00083 00085 void setupGui(); 00086 00087 protected: 00088 00089 DtDe& myDe; 00090 DtOsgEarthServerLogic* myLogic; 00091 DtSelectInstanceWidget* mySelectInstanceWidget; 00092 00093 QPlainTextEdit* myDescriptionText; 00094 QLineEdit* myMapNameLabel; 00095 QLineEdit* myImageNameLabel; 00096 QLineEdit* myCoordSysLabel; 00097 QPushButton* myConnectButton; 00098 QPushButton* myCancelButton; 00099 00100 }; 00101 } 00102 00103 #endif 00104