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

The Qt main window. More...

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

Public Slots

virtual void remaximization ()
 

Signals

void signal_fullScreenToggled ()
 Emitted by the main window, when toggleFullScreen() is called. More...
 

Public Member Functions

virtual ~DtQtDeMainWindow ()
 DTOR. More...
 
virtual void setApplicationTitle (const std::string &appName)
 Set the application name. More...
 
virtual std::string applicationTitle () const
 Get the application name. More...
 
virtual void setApplicationIcon (const std::string &iconName)
 Set the application icon. More...
 
virtual QDockWidgetdockComponent (QWidget *component, Qt::DockWidgetArea area=Qt::LeftDockWidgetArea)
 Dock widget to left side dock. Returns the QDockWidget that it creates. More...
 
virtual QToolBardockComponent (QWidget *component, Qt::ToolBarArea area=Qt::LeftToolBarArea)
 Toolbar widget to left side dock. Returns the QToolBar that it creates. More...
 
virtual void setMainWidget (QWidget *widget, DtQtKeyAdapter *keyAdapter=0)
 Set the main widget. More...
 
virtual void removeMainWidget ()
 Remove the main widget. More...
 
virtual QWidget * mainWidget ()
 
virtual void destroyWindow ()
 Destroys the window. More...
 
virtual void quit ()
 Quit the application. More...
 
virtual bool isToggledAsFullScreen ()
 Returns myFullScreen;. More...
 
virtual void toggleFullScreen ()
 If gui is fullscreen make it embedded normally, otherwise make gui fullscreen. More...
 
virtual void slot_onDisplayEngineConfigurationRealized (const std::string &igName, const std::string &displayName)
 Called when a display configuration is realized. More...
 
virtual int screenNumber () const
 Get the screen number of the screen that this window is on. More...
 
virtual void showStartupDialog ()
 Show the startup dialog which lets the user pick a terrain. More...
 
virtual void hideStartupDialog ()
 Hide startup dialog. More...
 
- Public Member Functions inherited from makVrv::DtDeMainWindow
virtual ~DtDeMainWindow ()
 Virtual destructor. More...
 
DtDede ()
 

Static Public Attributes

static const charContainerPlaceHolderString
 

Protected Member Functions

 DtQtDeMainWindow (DtDe &de, QWidget *parent=0, Qt::WindowFlags flags=0)
 Constructor protected. Use the provider. More...
 
virtual bool event (QEvent *event)
 
virtual void keyPressEvent (QKeyEvent *event)
 
virtual void keyReleaseEvent (QKeyEvent *event)
 
virtual void closeEvent (QCloseEvent *event)
 Closing the main window, causes the DtDe instance to be destroyed. More...
 
void slot_onWindowToBeDestroyed ()
 Called when a window is going to be destroyed. More...
 
void displayLabelInCentralWidget ()
 Displays a message label in the central widget describing the state of the de. More...
 
void slot_onWindowCreated ()
 Called when a window is created. More...
 
void hideAllVisibleDockableWidgets ()
 Hide all the visible dock widgets when going to fullscreen mode. More...
 
void showAllVisibleDockableWidgets ()
 Show all the dock widgets that were hidden when the gui went into fullscreen mode. More...
 
void configureTabbedDockComponents ()
 Set up dock options based on the guiConfig at the time of creation. More...
 
- Protected Member Functions inherited from makVrv::DtDeMainWindow
 DtDeMainWindow (DtDe &de)
 The constructor for the abstract base class is protected. More...
 

Protected Attributes

DtQtKeyAdaptermyKeyAdapter
 
bool myFullScreen
 
QRect myRestoreRect
 
QPoint myRestorePos
 
QObjectList myVisibleButHiddenDockableWidgets
 
DtStartupDialogmyStartupDialog
 
int myWindowStateBeforeFullscreen
 
int myWindowXBeforeFullscreen
 
int myWindowYBeforeFullscreen
 
int myWindowWidthBeforeFullscreen
 
int myWindowHeightBeforeFullscreen
 
DtSignalConnectionManager myConnections
 
Qt::WindowStates myLastWindowState
 
- Protected Attributes inherited from makVrv::DtDeMainWindow
DtDemyDe
 

Friends

class DtQtDeMainWindowProvider
 

Additional Inherited Members

- Public Attributes inherited from makVrv::DtDeMainWindow
boost::signal< void(bool)> signal_fullScreenModeChanged
 

Detailed Description

The Qt main window.

There will be only one of these per DtDe instance. Note, this window will be destroyed by Qt when the QApp is destroyed.

Constructor & Destructor Documentation

virtual makVrv::DtQtDeMainWindow::~DtQtDeMainWindow ( )
virtual

DTOR.

makVrv::DtQtDeMainWindow::DtQtDeMainWindow ( DtDe de,
QWidget *  parent = 0,
Qt::WindowFlags  flags = 0 
)
protected

Constructor protected. Use the provider.

Member Function Documentation

virtual void makVrv::DtQtDeMainWindow::setApplicationTitle ( const std::string &  appName)
virtual

Set the application name.

Implements makVrv::DtDeMainWindow.

virtual std::string makVrv::DtQtDeMainWindow::applicationTitle ( ) const
virtual

Get the application name.

Implements makVrv::DtDeMainWindow.

virtual void makVrv::DtQtDeMainWindow::setApplicationIcon ( const std::string &  iconName)
virtual

Set the application icon.

Implements makVrv::DtDeMainWindow.

virtual QDockWidget* makVrv::DtQtDeMainWindow::dockComponent ( QWidget *  component,
Qt::DockWidgetArea  area = Qt::LeftDockWidgetArea 
)
virtual

Dock widget to left side dock. Returns the QDockWidget that it creates.

virtual QToolBar* makVrv::DtQtDeMainWindow::dockComponent ( QWidget *  component,
Qt::ToolBarArea  area = Qt::LeftToolBarArea 
)
virtual

Toolbar widget to left side dock. Returns the QToolBar that it creates.

virtual void makVrv::DtQtDeMainWindow::setMainWidget ( QWidget *  widget,
DtQtKeyAdapter keyAdapter = 0 
)
virtual

Set the main widget.

Reimplemented in makVrf::DtVrfQtDeMainWindow.

virtual void makVrv::DtQtDeMainWindow::removeMainWidget ( )
virtual

Remove the main widget.

virtual QWidget* makVrv::DtQtDeMainWindow::mainWidget ( )
virtual
virtual void makVrv::DtQtDeMainWindow::destroyWindow ( )
virtual

Destroys the window.

Implements makVrv::DtDeMainWindow.

virtual void makVrv::DtQtDeMainWindow::quit ( )
virtual

Quit the application.

Implements makVrv::DtDeMainWindow.

virtual bool makVrv::DtQtDeMainWindow::isToggledAsFullScreen ( )
virtual

Returns myFullScreen;.

virtual void makVrv::DtQtDeMainWindow::toggleFullScreen ( )
virtual

If gui is fullscreen make it embedded normally, otherwise make gui fullscreen.

Emits signal_toggleFullScreen.

Reimplemented in makVrf::DtVrfQtDeMainWindow.

virtual void makVrv::DtQtDeMainWindow::slot_onDisplayEngineConfigurationRealized ( const std::string &  igName,
const std::string &  displayName 
)
virtual

Called when a display configuration is realized.

virtual int makVrv::DtQtDeMainWindow::screenNumber ( ) const
virtual

Get the screen number of the screen that this window is on.

virtual void makVrv::DtQtDeMainWindow::showStartupDialog ( )
virtual

Show the startup dialog which lets the user pick a terrain.

virtual void makVrv::DtQtDeMainWindow::hideStartupDialog ( )
virtual

Hide startup dialog.

void makVrv::DtQtDeMainWindow::signal_fullScreenToggled ( )
signal

Emitted by the main window, when toggleFullScreen() is called.

Used to update the fullscreen menu item.

virtual void makVrv::DtQtDeMainWindow::remaximization ( )
virtualslot

Reimplemented in makVrf::DtVrfQtDeMainWindow.

virtual bool makVrv::DtQtDeMainWindow::event ( QEvent event)
protectedvirtual
virtual void makVrv::DtQtDeMainWindow::keyPressEvent ( QKeyEvent *  event)
protectedvirtual
virtual void makVrv::DtQtDeMainWindow::keyReleaseEvent ( QKeyEvent *  event)
protectedvirtual
virtual void makVrv::DtQtDeMainWindow::closeEvent ( QCloseEvent *  event)
protectedvirtual

Closing the main window, causes the DtDe instance to be destroyed.

void makVrv::DtQtDeMainWindow::slot_onWindowToBeDestroyed ( )
protected

Called when a window is going to be destroyed.

The DtQtDeMainWindow needs to know so it can detect when there are no more windows, provide some intelligent message to the user.

void makVrv::DtQtDeMainWindow::displayLabelInCentralWidget ( )
protected

Displays a message label in the central widget describing the state of the de.

void makVrv::DtQtDeMainWindow::slot_onWindowCreated ( )
protected

Called when a window is created.

The DtQtDeMainWindow needs to know so it can remove any messages that were displayed when there weren't any windows.

void makVrv::DtQtDeMainWindow::hideAllVisibleDockableWidgets ( )
protected

Hide all the visible dock widgets when going to fullscreen mode.

void makVrv::DtQtDeMainWindow::showAllVisibleDockableWidgets ( )
protected

Show all the dock widgets that were hidden when the gui went into fullscreen mode.

void makVrv::DtQtDeMainWindow::configureTabbedDockComponents ( )
protected

Set up dock options based on the guiConfig at the time of creation.

Friends And Related Function Documentation

friend class DtQtDeMainWindowProvider
friend

Member Data Documentation

const char* makVrv::DtQtDeMainWindow::ContainerPlaceHolderString
static
DtQtKeyAdapter* makVrv::DtQtDeMainWindow::myKeyAdapter
protected
bool makVrv::DtQtDeMainWindow::myFullScreen
protected
QRect makVrv::DtQtDeMainWindow::myRestoreRect
protected
QPoint makVrv::DtQtDeMainWindow::myRestorePos
protected
QObjectList makVrv::DtQtDeMainWindow::myVisibleButHiddenDockableWidgets
protected
DtStartupDialog* makVrv::DtQtDeMainWindow::myStartupDialog
protected
int makVrv::DtQtDeMainWindow::myWindowStateBeforeFullscreen
protected
int makVrv::DtQtDeMainWindow::myWindowXBeforeFullscreen
protected
int makVrv::DtQtDeMainWindow::myWindowYBeforeFullscreen
protected
int makVrv::DtQtDeMainWindow::myWindowWidthBeforeFullscreen
protected
int makVrv::DtQtDeMainWindow::myWindowHeightBeforeFullscreen
protected
DtSignalConnectionManager makVrv::DtQtDeMainWindow::myConnections
protected
Qt::WindowStates makVrv::DtQtDeMainWindow::myLastWindowState
protected

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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)