![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /***************************************************************************** 00002 * Copyright (c) 2012 MAK Technologies, Inc. 00003 * All rights reserved. 00004 *****************************************************************************/ 00005 00009 00010 #pragma once 00011 00012 #include <vrvOsgEarthQt/vrvOsgEarthQt.h> 00013 #include <vrvOsgEarthQt/DtOsgEarthSettingsInterface.h> 00014 #include <QtGui/QWidget> 00015 00016 class QPlainTextEdit; 00017 class QPushButton; 00018 class QVBoxLayout; 00019 class QLabel; 00020 class QHBoxLayout; 00021 class QGroupBox; 00022 00023 namespace makVrv 00024 { 00025 00026 class DtOsgEarthSettingsLogic; 00027 class DtSelectInstanceWidget; 00028 00031 class DT_DLL_VRVOSGEARTHQT DtOsgEarthSettingsWidget : public QWidget, 00032 public DtOsgEarthSettingsInterface 00033 { 00034 00035 Q_OBJECT 00036 00037 public: 00038 00040 DtOsgEarthSettingsWidget( DtDe& de, QWidget* parent ); 00041 00043 virtual ~DtOsgEarthSettingsWidget(); 00044 00045 00049 00051 virtual void setText(const std::string& desc); 00052 00054 virtual void addInstance(const std::string& name); 00055 00057 virtual void removeInstance(const std::string& name); 00058 00060 virtual void clearInstances(); 00061 00063 00064 public slots: 00065 00069 00071 virtual void onSaveClicked(); 00072 00074 virtual void onCancelClicked(); 00075 00077 00078 protected slots: 00079 00083 00084 virtual void on_myContentsWidget_currentIndexChanged(int); 00085 virtual void on_myContentsWidget_NewInstanceRequested(); 00086 virtual void on_myContentsWidget_DeleteInstanceRequested(); 00087 virtual void on_myContentsWidget_RenameInstanceRequested(); 00088 virtual void onTextChanged(); 00089 00091 00092 protected: 00093 00096 void setupGui(); 00097 00098 int saveOption(); 00099 00100 protected: 00101 00102 DtDe& myDe; 00103 00104 DtOsgEarthSettingsLogic* myLogic; 00105 std::string myContent; 00106 bool myChanged; 00107 00108 QVBoxLayout* myMainLayout; 00109 QVBoxLayout* myContentsLayout; 00110 QHBoxLayout* myControlsLayout; 00111 00112 DtSelectInstanceWidget* mySelectInstanceWidget; 00113 00114 QPlainTextEdit* myDescriptionText; 00115 QPushButton* mySaveButton; 00116 QPushButton* myCancelButton; 00117 00118 }; 00119 00120 }