VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes | Protected Slots | Protected Member Functions | Protected Attributes
makVrv::DtOsgEarthStartupDialog Class Reference

DtOsgEarthStartupDialog provides a dialog to be displayed on VR-Vantage startup to allow the user to choose what server to connect to or which terrain to load. More...

Inheritance diagram for makVrv::DtOsgEarthStartupDialog:
Inheritance graph
[legend]

Public Member Functions

 DtOsgEarthStartupDialog (DtDe &de, QWidget *parent=0, const Qt::WindowFlags &flags=0)
 Constructor.
virtual ~DtOsgEarthStartupDialog ()
 Destructor.
virtual void activate ()
 Update the content in the widget;.
virtual void deactivate ()
virtual void setServerAvailability (const std::string &, ServerStatus, const std::string &reason)
 Sets the availability of the selected server.
virtual void setCurrentServer (const std::string &)
 Sets the currently selected server.
virtual void addServer (const std::string &desc)
 Adds a new server.
virtual void addTerrain (const std::string &desc)
 Add a local terrain to the terrain list.
virtual void setStartupPreference (StartupPreference)
 Sets the initial radio button selected.
virtual void setNeverShowAgain (bool neverShow)
 Sets the state of the Never show again check box.
virtual void showDialog ()
 close the dialog
virtual void clear ()
 Clear the contents of the dropdowns.
- Public Member Functions inherited from makVrv::DtOsgEarthStartupDialogInterface
virtual ~DtOsgEarthStartupDialogInterface ()
 Destructor.

Public Attributes

QVBoxLayout * myMainLayout
QLabelmyServerConnectIcon
QRadioButton * myServerConnectButton
QLabelmyLocalTerrainIcon
QRadioButton * myLocalTerrainButton
QLabelmyDoNothingIcon
QRadioButton * myDoNothingButton
QLabelmyServerStatus
QLabelmyServersLabel
QComboBoxmyServers
QGridLayout * myServerLayout
QLabelmyTerrainsLabel
QComboBoxmyTerrains
QGridLayout * myTerrainLayout
QCheckBoxmyNeverShowAgain
QPushButtonmyOk
QHBoxLayout * myButtonLayout
QImage myStartupImage
- Public Attributes inherited from makVrv::DtOsgEarthStartupDialogInterface
boost::signal< void(const
std::string &)> 
signal_requestServerAvailability
boost::signal< void(bool)> signal_neverShowAgain
boost::signal< void(const
std::string &)> 
signal_connectToServer
boost::signal< void(const
std::string &)> 
signal_loadTerrain

Protected Slots

virtual void currentServerChanged ()
virtual void serverComboActivated ()
virtual void terrainComboActivated ()

Protected Member Functions

void setupGui ()
 Creates the user interface. Called from constructor.
virtual void accept ()
 Accept dialog and emit signal that logic will capture as to what to do.
virtual void reject ()
virtual void paintEvent (QPaintEvent *)
 Overridden method to draw background image.
void setupServersGui ()
 Sets up the server list portion of the GUI.
void setupTerrainGui ()
 Sets up the terrain list portion of the Gui.

Protected Attributes

DtDemyDe
DtVirtualBaseClassmyLogic

Additional Inherited Members

- Public Types inherited from makVrv::DtOsgEarthStartupDialogInterface
enum  ServerStatus { Available = 0, Requesting, Unavailable }
enum  StartupPreference { LoadEarthFile = 0, LoadLocalTerrain, LoadNoTerrain }

Detailed Description

DtOsgEarthStartupDialog provides a dialog to be displayed on VR-Vantage startup to allow the user to choose what server to connect to or which terrain to load.

Constructor & Destructor Documentation

makVrv::DtOsgEarthStartupDialog::DtOsgEarthStartupDialog ( DtDe de,
QWidget parent = 0,
const Qt::WindowFlags &  flags = 0 
)

Constructor.

virtual makVrv::DtOsgEarthStartupDialog::~DtOsgEarthStartupDialog ( )
virtual

Destructor.

Member Function Documentation

virtual void makVrv::DtOsgEarthStartupDialog::activate ( )
virtual

Update the content in the widget;.

virtual void makVrv::DtOsgEarthStartupDialog::deactivate ( )
virtual
virtual void makVrv::DtOsgEarthStartupDialog::setServerAvailability ( const std::string &  ,
ServerStatus  ,
const std::string &  reason 
)
virtual

Sets the availability of the selected server.

Implements makVrv::DtOsgEarthStartupDialogInterface.

virtual void makVrv::DtOsgEarthStartupDialog::setCurrentServer ( const std::string &  )
virtual

Sets the currently selected server.

Implements makVrv::DtOsgEarthStartupDialogInterface.

virtual void makVrv::DtOsgEarthStartupDialog::addServer ( const std::string &  desc)
virtual

Adds a new server.

Implements makVrv::DtOsgEarthStartupDialogInterface.

virtual void makVrv::DtOsgEarthStartupDialog::addTerrain ( const std::string &  desc)
virtual

Add a local terrain to the terrain list.

Implements makVrv::DtOsgEarthStartupDialogInterface.

virtual void makVrv::DtOsgEarthStartupDialog::setStartupPreference ( StartupPreference  )
virtual

Sets the initial radio button selected.

Implements makVrv::DtOsgEarthStartupDialogInterface.

virtual void makVrv::DtOsgEarthStartupDialog::setNeverShowAgain ( bool  neverShow)
virtual

Sets the state of the Never show again check box.

Implements makVrv::DtOsgEarthStartupDialogInterface.

virtual void makVrv::DtOsgEarthStartupDialog::showDialog ( )
virtual

close the dialog

Implements makVrv::DtOsgEarthStartupDialogInterface.

virtual void makVrv::DtOsgEarthStartupDialog::clear ( )
virtual

Clear the contents of the dropdowns.

Implements makVrv::DtOsgEarthStartupDialogInterface.

virtual void makVrv::DtOsgEarthStartupDialog::currentServerChanged ( )
protectedvirtualslot
virtual void makVrv::DtOsgEarthStartupDialog::serverComboActivated ( )
protectedvirtualslot
virtual void makVrv::DtOsgEarthStartupDialog::terrainComboActivated ( )
protectedvirtualslot
void makVrv::DtOsgEarthStartupDialog::setupGui ( )
protected

Creates the user interface. Called from constructor.

virtual void makVrv::DtOsgEarthStartupDialog::accept ( )
protectedvirtual

Accept dialog and emit signal that logic will capture as to what to do.

virtual void makVrv::DtOsgEarthStartupDialog::reject ( )
protectedvirtual
virtual void makVrv::DtOsgEarthStartupDialog::paintEvent ( QPaintEvent *  )
protectedvirtual

Overridden method to draw background image.

void makVrv::DtOsgEarthStartupDialog::setupServersGui ( )
protected

Sets up the server list portion of the GUI.

void makVrv::DtOsgEarthStartupDialog::setupTerrainGui ( )
protected

Sets up the terrain list portion of the Gui.

Member Data Documentation

QVBoxLayout* makVrv::DtOsgEarthStartupDialog::myMainLayout
QLabel* makVrv::DtOsgEarthStartupDialog::myServerConnectIcon
QRadioButton* makVrv::DtOsgEarthStartupDialog::myServerConnectButton
QLabel* makVrv::DtOsgEarthStartupDialog::myLocalTerrainIcon
QRadioButton* makVrv::DtOsgEarthStartupDialog::myLocalTerrainButton
QLabel* makVrv::DtOsgEarthStartupDialog::myDoNothingIcon
QRadioButton* makVrv::DtOsgEarthStartupDialog::myDoNothingButton
QLabel* makVrv::DtOsgEarthStartupDialog::myServerStatus
QLabel* makVrv::DtOsgEarthStartupDialog::myServersLabel
QComboBox* makVrv::DtOsgEarthStartupDialog::myServers
QGridLayout* makVrv::DtOsgEarthStartupDialog::myServerLayout
QLabel* makVrv::DtOsgEarthStartupDialog::myTerrainsLabel
QComboBox* makVrv::DtOsgEarthStartupDialog::myTerrains
QGridLayout* makVrv::DtOsgEarthStartupDialog::myTerrainLayout
QCheckBox* makVrv::DtOsgEarthStartupDialog::myNeverShowAgain
QPushButton* makVrv::DtOsgEarthStartupDialog::myOk
QHBoxLayout* makVrv::DtOsgEarthStartupDialog::myButtonLayout
QImage makVrv::DtOsgEarthStartupDialog::myStartupImage
DtDe& makVrv::DtOsgEarthStartupDialog::myDe
protected
DtVirtualBaseClass* makVrv::DtOsgEarthStartupDialog::myLogic
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)