VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgEarthSettingsWidget.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2012 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
14 #include <QtWidgets/QWidget>
15 
16 class QPlainTextEdit;
17 class QPushButton;
18 class QVBoxLayout;
19 class QLabel;
20 class QHBoxLayout;
21 class QGroupBox;
22 
23 namespace makVrv
24 {
25 
26  class DtOsgEarthSettingsLogic;
27  class DtSelectInstanceWidget;
28 
33  {
34 
35  Q_OBJECT
36 
37  public:
38 
40  DtOsgEarthSettingsWidget( DtDe& de, QWidget* parent );
41 
43  virtual ~DtOsgEarthSettingsWidget();
44 
45 
49 
51  virtual void setText(const std::string& desc);
52 
54  virtual void addInstance(const std::string& name, bool select = false);
55 
57  virtual void removeInstance(const std::string& name);
58 
60  virtual void clearInstances();
61 
63 
64  public slots:
65 
69 
71  virtual void onSaveClicked();
72 
74  virtual void onCancelClicked();
75 
77 
78  protected slots:
79 
83 
84  virtual void on_myContentsWidget_currentIndexChanged(int);
85  virtual void on_myContentsWidget_NewInstanceRequested();
86  virtual void on_myContentsWidget_DeleteInstanceRequested();
87  virtual void on_myContentsWidget_RenameInstanceRequested();
88  virtual void onTextChanged();
89 
91 
92  protected:
93 
96  void setupGui();
97 
98  int saveOption();
99 
100  protected:
101 
103 
105  std::string myContent;
106  bool myChanged;
107 
108  QVBoxLayout* myMainLayout;
109  QVBoxLayout* myContentsLayout;
110  QHBoxLayout* myControlsLayout;
111 
113 
114  QPlainTextEdit* myDescriptionText;
117 
118  };
119 
120 }
QVBoxLayout * myContentsLayout
Definition: DtOsgEarthSettingsWidget.h:109
DtDe & myDe
Definition: DtOsgEarthSettingsWidget.h:102
Base select instance widget.
Definition: DtSelectInstanceWidget.h:28
QPushButton * mySaveButton
Definition: DtOsgEarthSettingsWidget.h:115
QPlainTextEdit * myDescriptionText
Definition: DtOsgEarthSettingsWidget.h:114
std::string myContent
Definition: DtOsgEarthSettingsWidget.h:105
Contains makVrv::DtOsgEarthSettingsInterface class.
bool myChanged
Definition: DtOsgEarthSettingsWidget.h:106
Contains DLL export macros.
Widget for osgEarth server settings.
Definition: DtOsgEarthSettingsWidget.h:31
Abstract interface used to a user interface.
Definition: DtOsgEarthSettingsInterface.h:19
QHBoxLayout * myControlsLayout
Definition: DtOsgEarthSettingsWidget.h:110
Logic for configuring the Hla13 Connection.
Definition: DtOsgEarthSettingsLogic.h:26
QPushButton * myCancelButton
Definition: DtOsgEarthSettingsWidget.h:116
#define DT_DLL_VRVOSGEARTHQT
Definition: vrvOsgEarthQt.h:25
DtSelectInstanceWidget * mySelectInstanceWidget
Definition: DtOsgEarthSettingsWidget.h:112
DtOsgEarthSettingsLogic * myLogic
Definition: DtOsgEarthSettingsWidget.h:104
QVBoxLayout * myMainLayout
Definition: DtOsgEarthSettingsWidget.h:108
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69

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)