VR-Forces 4.1 Class Documentation
DtOsgEarthStartupDialog.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2011 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtOsgEarthStartupDialog.h,v $ $Revision: 1.2 $ $State: Exp $
7 ******************************************************************************/
8 
11 
12 #pragma once
13 
14 #include <vrvUtil/signalslib.h>
18 
19 #include <QtGui/QDialog>
20 #include <QtGui/QPixmap>
21 
22 class QRadioButton;
23 class QVBoxLayout;
24 class QHBoxLayout;
25 class QButton;
26 class QCheckBox;
27 class QComboBox;
28 class QLabel;
29 class QGridLayout;
30 
31 namespace makVrv
32 {
33  class DtDe;
34  class DtOsgEarthStartupTitleBar;
35 
41  : public QDialog
43  {
44  Q_OBJECT
45 
46  public:
48  DtOsgEarthStartupDialog(DtDe& de, QWidget* parent = 0,
49  const Qt::WindowFlags& flags = 0);
50 
52  virtual ~DtOsgEarthStartupDialog();
53 
55  virtual void activate();
56 
57  virtual void deactivate();
58 
59  public:
61  virtual void setServerAvailability(
62  const std::string&, ServerStatus, const std::string& reason);
63 
65  virtual void setCurrentServer(const std::string&);
66 
68  virtual void addServer(const std::string& desc);
69 
70  virtual void addTerrain(const std::string& desc);
71 
73  virtual void setStartupPreference(StartupPreference);
74 
76  virtual void setNeverShowAgain(bool neverShow);
77 
79  virtual void showDialog();
80 
82  virtual void clear();
83 
84  protected slots:
85  virtual void currentServerChanged();
86 
87  virtual void serverComboActivated();
88  virtual void terrainComboActivated();
89 
90  protected:
92  void setupGui();
93 
95  virtual void accept();
96 
97  virtual void reject();
98 
100  virtual void paintEvent(QPaintEvent*);
101 
103  void setupServersGui();
104 
106  void setupTerrainGui();
107 
108  public:
109  QVBoxLayout* myMainLayout;
110 
112  QRadioButton* myServerConnectButton;
113 
115  QRadioButton* myLocalTerrainButton;
116 
118  QRadioButton* myDoNothingButton;
119 
123  QGridLayout* myServerLayout;
124 
127  QGridLayout* myTerrainLayout;
128 
131  QHBoxLayout* myButtonLayout;
132 
134 
135  protected:
138  };
139 
143  {
144  public:
147 
150 
152  static DtOsgEarthStartupDialogCreator& instance(DtDe&);
153 
155  static void registerInstance(DtDe&, DtOsgEarthStartupDialogCreator*);
156 
158  virtual DtOsgEarthStartupDialog* create(DtDe&, QWidget* window = 0);
159  };
160 }

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)