VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | 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]

Signals

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

Public Member Functions

virtual ~DtQtDeMainWindow ()
 DTOR.
virtual void setApplicationTitle (const std::string &appName)
 Set the application name.
virtual std::string applicationTitle () const
 Get the application name.
virtual void setApplicationIcon (const std::string &iconName)
 Set the application icon.
virtual void setShowQuitDialogOnClose (bool)
 Set whether or not to show quit dialog if this is the last main window.
virtual QDockWidgetdockComponent (QWidget *component, Qt::DockWidgetArea area=Qt::LeftDockWidgetArea)
 Dock widget to left side dock. Returns the QDockWidget that it creates.
virtual QToolBardockComponent (QWidget *component, Qt::ToolBarArea area=Qt::LeftToolBarArea)
 Toolbar widget to left side dock. Returns the QToolBar that it creates.
virtual void setMainWidget (QWidget *widget, DtQtKeyAdapter *keyAdapter=0)
 Set the main widget.
virtual void removeMainWidget ()
 Remove the main widget.
virtual QWidgetmainWidget ()
virtual void destroyWindow ()
 Destroys the window.
virtual void quit ()
 Quit the application.
virtual bool isToggledAsFullScreen ()
 Returns myFullScreen;.
virtual void toggleFullScreen ()
 If gui is fullscreen make it embedded normally, otherwise make gui fullscreen.
virtual void slot_onDisplayEngineConfigurationRealized (const std::string &igName, const std::string &displayName)
 Called when a display configuration is realized.
virtual int screenNumber () const
 Get the screen number of the screen that this window is on.
- Public Member Functions inherited from makVrv::DtDeMainWindow
virtual ~DtDeMainWindow ()
 Virtual destructor.
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.
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.
void slot_onWindowToBeDestroyed ()
 Called when a window is going to be destroyed.
void displayLabelInCentralWidget ()
 Displays a message label in the central widget describing the state of the de.
void slot_onWindowCreated ()
 Called when a window is created.
void hideAllVisibleDockableWidgets ()
 Hide all the visible dock widgets when going to fullscreen mode.
void showAllVisibleDockableWidgets ()
 Show all the dock widgets that were hidden when the gui went into fullscreen mode.
void configureTabbedDockComponents ()
 Set up dock options based on the guiConfig at the time of creation.
- Protected Member Functions inherited from makVrv::DtDeMainWindow
 DtDeMainWindow (DtDe &de)
 The constructor for the abstract base class is protected.

Protected Attributes

DtQtKeyAdaptermyKeyAdapter
bool myFullScreen
QObjectList myVisibleButHiddenDockableWidgets
DtInputDrivermyInputDriver
bool myShowQuitDialogOnClose
- Protected Attributes inherited from makVrv::DtDeMainWindow
DtDemyDe

Friends

class DtQtDeMainWindowProvider

Additional Inherited Members

- Static Public Member Functions inherited from makVrv::DtDeMainWindow
static void setStartUpMaximized (bool maxed)
 Set whether the window will start up maximized.
- Static Protected Attributes inherited from makVrv::DtDeMainWindow
static bool theStartUpMaximizedFlag

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 void makVrv::DtQtDeMainWindow::setShowQuitDialogOnClose ( bool  )
virtual

Set whether or not to show quit dialog if this is the last main window.

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.

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.

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.

void makVrv::DtQtDeMainWindow::signal_fullScreenToggled ( )
signal

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

Used to update the fullscreen menu item.

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
QObjectList makVrv::DtQtDeMainWindow::myVisibleButHiddenDockableWidgets
protected
DtInputDriver* makVrv::DtQtDeMainWindow::myInputDriver
protected
bool makVrv::DtQtDeMainWindow::myShowQuitDialogOnClose
protected

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

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)