![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2008 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: DtAddTerrainPatchDialog.h,v $ $Revision: 1.13 $ $State: Exp $ 00007 ******************************************************************************/ 00008 00012 00013 #ifndef DtAddTerrainPatchDialog_H_ 00014 #define DtAddTerrainPatchDialog_H_ 00015 00016 #include <vrvCoreQt/vrvCoreQt.h> 00017 #include <vrvCoreQt/DtAddTerrainPatchInterface.h> 00018 #include <vrvCore/DtDe.h> 00019 #include <QtGui/QDialog> 00020 00021 class QLineEdit; 00022 class QLabel; 00023 class QComboBox; 00024 class QPushButton; 00025 class QValidator; 00026 class QCheckBox; 00027 00028 namespace makVrv 00029 { 00030 class DtAddTerrainPatchLogic; 00031 00034 class DT_DLL_VRVCOREQT DtAddTerrainPatchDialog 00035 : public QDialog 00036 , DtAddTerrainPatchInterface 00037 { 00038 00039 Q_OBJECT; 00040 00041 public: 00042 00044 DtAddTerrainPatchDialog(DtDe& de, QWidget* parent, Qt::WindowFlags f = Qt::Tool); 00045 00047 virtual ~DtAddTerrainPatchDialog(); 00048 00049 virtual void displayErrorMessage(ErrorMessage msg); 00050 00052 virtual void setFileLabel(const std::string& filePath); 00053 00055 virtual void setCoordSystemComboBox(TerrainCoordinateSystemEnum index); 00056 00058 virtual void setCoordSystemParams( const std::string& params ); 00059 00061 void virtual setOkEnabled(bool flag); 00062 00063 public slots: 00064 00067 bool onBrowseClicked(); 00068 00070 virtual void onOkClicked(); 00071 00073 virtual void onCancelClicked(); 00074 00076 virtual void onCoordSysComboChanged(int index); 00077 00079 virtual void onDdsFlipChanged(int checkState); 00080 00081 00082 00083 // This would be nice to have in a Qt utility lib someplace. It doesn't belong in the 00084 // FileExtensionManager, because it really is building a *QT* file filter. 00085 // 00086 00092 static QString fileFilter( DtDe& de, const std::string& dialogType, 00093 const QString& allSpecifiedString, bool includeGlobal ); 00094 00095 protected: 00096 00098 void setupGui(); 00099 00100 protected: 00101 00102 DtDe& myDe; 00103 DtAddTerrainPatchLogic* myLogic; 00104 QLineEdit* myFilenameLabel; 00105 QComboBox* myCoordSysCombo; 00106 QLineEdit* myCoordSysParamsEdit; 00107 QPushButton* myOkButton; 00108 QPushButton* myCancelButton; 00109 QValidator* myUtmValidator; 00110 QValidator* myFlatEarthValidator; 00111 QValidator* myOriginOffsetValidator; 00112 QValidator* myLambertValidator; 00113 QLabel* myParamInstructions; 00114 QCheckBox* myDdsFlipCheckbox; 00115 }; 00116 } 00117 00118 #endif 00119