VR-Forces 4.6.1 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 }

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)