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

DtStartupDialog 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::DtStartupDialog:
Inheritance graph
[legend]

Public Member Functions

 DtStartupDialog (DtDe &de, QWidget *parent=0, const Qt::WindowFlags &flags=0)
 Constructor.
virtual ~DtStartupDialog ()
 Destructor.
virtual void activate ()
 Update the content in the widget;.
virtual void deactivate ()
virtual void addTerrain (const std::string &desc)
 Adds a new Terrain to the list of terrains.
virtual void addRecentTerrain (const std::string &desc)
 Adds a recently used terrain to the list of recent terrains.
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.
virtual void setDescription (const std::string &description)
 Set the description text for the dialog.
- Public Member Functions inherited from makVrv::DtStartupDialogInterface
virtual ~DtStartupDialogInterface ()
 Destructor.

Public Attributes

QVBoxLayout * myMainLayout
QLabelmyRecentTerrainIcon
QRadioButton * myRecentTerrainButton
QLabelmyLocalTerrainIcon
QRadioButton * myLocalTerrainButton
QComboBoxmyRecentTerrains
QGridLayout * myRecentTerrainLayout
QComboBoxmyTerrains
QGridLayout * myTerrainLayout
QCheckBoxmyNeverShowAgain
QPushButtonmyOk
QPushButtonmyCancelButton
QHBoxLayout * myButtonLayout
QTextEdit * myDescriptionText
QImage myStartupImage
bool myStartupImageLoaded
- Public Attributes inherited from makVrv::DtStartupDialogInterface
boost::signal< void(bool)> signal_neverShowAgain
boost::signal< void(const
std::string &, const int)> 
signal_loadTerrain
boost::signal< void(const
std::string &, const int)> 
signal_selectedTerrainChanged

Protected Slots

virtual void recentTerrainComboActivated ()
virtual void terrainComboActivated ()
virtual void selectedTerrainChanged ()
virtual void neverShowAgainToggled (bool toggled)

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 setupTerrainGui ()
 Sets up the terrain list portion of the Gui.
void setupRecentTerrainsGui ()
 Sets up the recent terrain list portion of the Gui.

Protected Attributes

DtDemyDe
DtVirtualBaseClassmyLogic

Additional Inherited Members

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

Detailed Description

DtStartupDialog 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::DtStartupDialog::DtStartupDialog ( DtDe de,
QWidget *  parent = 0,
const Qt::WindowFlags &  flags = 0 
)

Constructor.

virtual makVrv::DtStartupDialog::~DtStartupDialog ( )
virtual

Destructor.

Member Function Documentation

virtual void makVrv::DtStartupDialog::activate ( )
virtual

Update the content in the widget;.

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

Adds a new Terrain to the list of terrains.

Implements makVrv::DtStartupDialogInterface.

virtual void makVrv::DtStartupDialog::addRecentTerrain ( const std::string &  desc)
virtual

Adds a recently used terrain to the list of recent terrains.

Implements makVrv::DtStartupDialogInterface.

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

Sets the initial radio button selected.

Implements makVrv::DtStartupDialogInterface.

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

Sets the state of the Never show again check box.

Implements makVrv::DtStartupDialogInterface.

virtual void makVrv::DtStartupDialog::showDialog ( )
virtual

close the dialog

Implements makVrv::DtStartupDialogInterface.

virtual void makVrv::DtStartupDialog::clear ( )
virtual

Clear the contents of the dropdowns.

Implements makVrv::DtStartupDialogInterface.

virtual void makVrv::DtStartupDialog::setDescription ( const std::string &  description)
virtual

Set the description text for the dialog.

Implements makVrv::DtStartupDialogInterface.

virtual void makVrv::DtStartupDialog::recentTerrainComboActivated ( )
protectedvirtualslot
virtual void makVrv::DtStartupDialog::terrainComboActivated ( )
protectedvirtualslot
virtual void makVrv::DtStartupDialog::selectedTerrainChanged ( )
protectedvirtualslot
virtual void makVrv::DtStartupDialog::neverShowAgainToggled ( bool  toggled)
protectedvirtualslot
void makVrv::DtStartupDialog::setupGui ( )
protected

Creates the user interface. Called from constructor.

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

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

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

Overridden method to draw background image.

void makVrv::DtStartupDialog::setupTerrainGui ( )
protected

Sets up the terrain list portion of the Gui.

void makVrv::DtStartupDialog::setupRecentTerrainsGui ( )
protected

Sets up the recent terrain list portion of the Gui.

Member Data Documentation

QVBoxLayout* makVrv::DtStartupDialog::myMainLayout
QLabel* makVrv::DtStartupDialog::myRecentTerrainIcon
QRadioButton* makVrv::DtStartupDialog::myRecentTerrainButton
QLabel* makVrv::DtStartupDialog::myLocalTerrainIcon
QRadioButton* makVrv::DtStartupDialog::myLocalTerrainButton
QComboBox* makVrv::DtStartupDialog::myRecentTerrains
QGridLayout* makVrv::DtStartupDialog::myRecentTerrainLayout
QComboBox* makVrv::DtStartupDialog::myTerrains
QGridLayout* makVrv::DtStartupDialog::myTerrainLayout
QCheckBox* makVrv::DtStartupDialog::myNeverShowAgain
QPushButton* makVrv::DtStartupDialog::myOk
QPushButton* makVrv::DtStartupDialog::myCancelButton
QHBoxLayout* makVrv::DtStartupDialog::myButtonLayout
QTextEdit* makVrv::DtStartupDialog::myDescriptionText
QImage makVrv::DtStartupDialog::myStartupImage
bool makVrv::DtStartupDialog::myStartupImageLoaded
DtDe& makVrv::DtStartupDialog::myDe
protected
DtVirtualBaseClass* makVrv::DtStartupDialog::myLogic
protected

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

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)