VR-Forces Developer's Guide
 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. There will be only one of these per DtDe instance. Note, this window will be destroyed by Qt when the QApp is destroyed.

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

Public Slots

virtual void remaximization ()
 

Signals

void signal_fullScreenToggled ()
 

Public Member Functions

virtual ~DtQtDeMainWindow ()
 
virtual void setApplicationTitle (const std::string &appName)
 
virtual std::string applicationTitle () const
 
virtual void setApplicationIcon (const std::string &iconName)
 
virtual QDockWidgetdockComponent (QWidget *component, Qt::DockWidgetArea area=Qt::LeftDockWidgetArea)
 
virtual QToolBardockComponent (QWidget *component, Qt::ToolBarArea area=Qt::LeftToolBarArea)
 
virtual void setMainWidget (QWidget *widget, DtQtKeyAdapter *keyAdapter=0)
 
virtual void removeMainWidget ()
 
virtual QWidget * mainWidget ()
 
virtual void destroyWindow ()
 
virtual void quit ()
 
virtual bool isToggledAsFullScreen ()
 
virtual void toggleFullScreen ()
 
virtual void slot_onDisplayEngineConfigurationRealized (const std::string &igName, const std::string &displayName)
 
virtual int screenNumber () const
 
virtual void showStartupDialog ()
 
virtual void hideStartupDialog ()
 
virtual void showHelpDialog ()
 
virtual void hideHelpDialog ()
 
- Public Member Functions inherited from makVrv::DtStyledQMainWindow
virtual std::vector< std::pair
< QColor, QColor > > 
iconColorMappings (QIcon::Mode modeToGetMappingsFor, QIcon::State stateToGetMappingsFor) const
 
virtual void invalidateIconColorMappings ()
 
- Public Member Functions inherited from makVrv::DtDeMainWindow
virtual ~DtDeMainWindow ()
 
DtDede ()
 

Static Public Attributes

static const charContainerPlaceHolderString
 

Protected Member Functions

 DtQtDeMainWindow (DtDe &de, QWidget *parent=0, Qt::WindowFlags flags=0)
 
virtual bool event (QEvent *event)
 
virtual void keyPressEvent (QKeyEvent *event)
 
virtual void keyReleaseEvent (QKeyEvent *event)
 
virtual void closeEvent (QCloseEvent *event)
 
void onMainEmbeddedWindowPixelRatioChanged ()
 
void slot_onWindowToBeDestroyed ()
 
void displayLabelInCentralWidget ()
 
void slot_onWindowCreated ()
 
virtual void setSplashScreen (DtDeSplashScreen *splashScreen)
 
virtual void showBasedOnSettings ()
 
void hideAllVisibleDockableWidgets ()
 
void showAllVisibleDockableWidgets ()
 
void configureTabbedDockComponents ()
 
virtual void dragEnterEvent (QDragEnterEvent *event) override
 
virtual void dropEvent (QDropEvent *event) override
 
- Protected Member Functions inherited from makVrv::DtStyledQMainWindow
 DtStyledQMainWindow (QWidget *parent=0, Qt::WindowFlags flags=0)
 
- Protected Member Functions inherited from makVrv::DtDeMainWindow
 DtDeMainWindow (DtDe &de)
 

Protected Attributes

DtDeSplashScreenmySplashScreen
 
DtQtKeyAdaptermyKeyAdapter
 
bool myFullScreen
 
QRect myRestoreRect
 
QPoint myRestorePos
 
QObjectList myVisibleButHiddenDockableWidgets
 
DtStartupDialogmyStartupDialog
 
DtHelpDialogmyHelpDialog
 
int myWindowStateBeforeFullscreen
 
int myWindowXBeforeFullscreen
 
int myWindowYBeforeFullscreen
 
int myWindowWidthBeforeFullscreen
 
int myWindowHeightBeforeFullscreen
 
DtSignalConnectionManager myConnections
 
Qt::WindowStates myLastWindowState
 
int myOldDevicePixelRatio
 
- Protected Attributes inherited from makVrv::DtStyledQMainWindow
QColor myActualIconPrimaryColor
 
QColor myNormalOffIconPrimaryColor
 
QColor myNormalOnIconPrimaryColor
 
QColor myDisabledOffIconPrimaryColor
 
QColor myDisabledOnIconPrimaryColor
 
QColor mySelectedOffIconPrimaryColor
 
QColor mySelectedOnIconPrimaryColor
 
QColor myActiveOffIconPrimaryColor
 
QColor myActiveOnIconPrimaryColor
 
QColor myActualIconSecondaryColorOne
 
QColor myNormalOffIconSecondaryColorOne
 
QColor myNormalOnIconSecondaryColorOne
 
QColor myDisabledOffIconSecondaryColorOne
 
QColor myDisabledOnIconSecondaryColorOne
 
QColor mySelectedOffIconSecondaryColorOne
 
QColor mySelectedOnIconSecondaryColorOne
 
QColor myActiveOffIconSecondaryColorOne
 
QColor myActiveOnIconSecondaryColorOne
 
QColor myActualIconSecondaryColorTwo
 
QColor myNormalOffIconSecondaryColorTwo
 
QColor myNormalOnIconSecondaryColorTwo
 
QColor myDisabledOffIconSecondaryColorTwo
 
QColor myDisabledOnIconSecondaryColorTwo
 
QColor mySelectedOffIconSecondaryColorTwo
 
QColor mySelectedOnIconSecondaryColorTwo
 
QColor myActiveOffIconSecondaryColorTwo
 
QColor myActiveOnIconSecondaryColorTwo
 
QColor myActualIconSecondaryColorThree
 
QColor myNormalOffIconSecondaryColorThree
 
QColor myNormalOnIconSecondaryColorThree
 
QColor myDisabledOffIconSecondaryColorThree
 
QColor myDisabledOnIconSecondaryColorThree
 
QColor mySelectedOffIconSecondaryColorThree
 
QColor mySelectedOnIconSecondaryColorThree
 
QColor myActiveOffIconSecondaryColorThree
 
QColor myActiveOnIconSecondaryColorThree
 
QColor myActualIconSecondaryColorFour
 
QColor myNormalOffIconSecondaryColorFour
 
QColor myNormalOnIconSecondaryColorFour
 
QColor myDisabledOffIconSecondaryColorFour
 
QColor myDisabledOnIconSecondaryColorFour
 
QColor mySelectedOffIconSecondaryColorFour
 
QColor mySelectedOnIconSecondaryColorFour
 
QColor myActiveOffIconSecondaryColorFour
 
QColor myActiveOnIconSecondaryColorFour
 
QColor myActualIconSecondaryColorFive
 
QColor myNormalOffIconSecondaryColorFive
 
QColor myNormalOnIconSecondaryColorFive
 
QColor myDisabledOffIconSecondaryColorFive
 
QColor myDisabledOnIconSecondaryColorFive
 
QColor mySelectedOffIconSecondaryColorFive
 
QColor mySelectedOnIconSecondaryColorFive
 
QColor myActiveOffIconSecondaryColorFive
 
QColor myActiveOnIconSecondaryColorFive
 
QColor myActualIconSecondaryColorSix
 
QColor myNormalOffIconSecondaryColorSix
 
QColor myNormalOnIconSecondaryColorSix
 
QColor myDisabledOffIconSecondaryColorSix
 
QColor myDisabledOnIconSecondaryColorSix
 
QColor mySelectedOffIconSecondaryColorSix
 
QColor mySelectedOnIconSecondaryColorSix
 
QColor myActiveOffIconSecondaryColorSix
 
QColor myActiveOnIconSecondaryColorSix
 
QColor myActualIconSecondaryColorSeven
 
QColor myNormalOffIconSecondaryColorSeven
 
QColor myNormalOnIconSecondaryColorSeven
 
QColor myDisabledOffIconSecondaryColorSeven
 
QColor myDisabledOnIconSecondaryColorSeven
 
QColor mySelectedOffIconSecondaryColorSeven
 
QColor mySelectedOnIconSecondaryColorSeven
 
QColor myActiveOffIconSecondaryColorSeven
 
QColor myActiveOnIconSecondaryColorSeven
 
QColor myActualIconSecondaryColorEight
 
QColor myNormalOffIconSecondaryColorEight
 
QColor myNormalOnIconSecondaryColorEight
 
QColor myDisabledOffIconSecondaryColorEight
 
QColor myDisabledOnIconSecondaryColorEight
 
QColor mySelectedOffIconSecondaryColorEight
 
QColor mySelectedOnIconSecondaryColorEight
 
QColor myActiveOffIconSecondaryColorEight
 
QColor myActiveOnIconSecondaryColorEight
 
- Protected Attributes inherited from makVrv::DtDeMainWindow
DtDemyDe
 

Friends

class DtQtDeMainWindowProvider
 

Additional Inherited Members

- Public Attributes inherited from makVrv::DtDeMainWindow
boost::signalslib::signal
< void(bool)> 
signal_fullScreenModeChanged
 
- Properties inherited from makVrv::DtStyledQMainWindow
QColor ActualIconPrimaryColor
 
QColor NormalOffIconPrimaryColor
 
QColor NormalOnIconPrimaryColor
 
QColor DisabledOffIconPrimaryColor
 
QColor DisabledOnIconPrimaryColor
 
QColor SelectedOffIconPrimaryColor
 
QColor SelectedOnIconPrimaryColor
 
QColor ActiveIconOffPrimaryColor
 
QColor ActiveIconOnPrimaryColor
 
QColor ActualIconSecondaryColorOne
 
QColor NormalOffIconSecondaryColorOne
 
QColor NormalOnIconSecondaryColorOne
 
QColor DisabledOffIconSecondaryColorOne
 
QColor DisabledOnIconSecondaryColorOne
 
QColor SelectedOffIconSecondaryColorOne
 
QColor SelectedOnIconSecondaryColorOne
 
QColor ActiveOffIconSecondaryColorOne
 
QColor ActiveOnIconSecondaryColorOne
 
QColor ActualIconSecondaryColorTwo
 
QColor NormalOffIconSecondaryColorTwo
 
QColor NormalOnIconSecondaryColorTwo
 
QColor DisabledOffIconSecondaryColorTwo
 
QColor DisabledOnIconSecondaryColorTwo
 
QColor SelectedOffIconSecondaryColorTwo
 
QColor SelectedOnIconSecondaryColorTwo
 
QColor ActiveIconOffSecondaryColorTwo
 
QColor ActiveIconOnSecondaryColorTwo
 
QColor ActualIconSecondaryColorThree
 
QColor NormalOffIconSecondaryColorThree
 
QColor NormalOnIconSecondaryColorThree
 
QColor DisabledOffIconSecondaryColorThree
 
QColor DisabledOnIconSecondaryColorThree
 
QColor SelectedOffIconSecondaryColorThree
 
QColor SelectedOnIconSecondaryColorThree
 
QColor ActiveOffOffIconSecondaryColorThree
 
QColor ActiveOffOnIconSecondaryColorThree
 
QColor ActualIconSecondaryColorFour
 
QColor NormalOffIconSecondaryColorFour
 
QColor NormalOnIconSecondaryColorFour
 
QColor DisabledOffIconSecondaryColorFour
 
QColor DisabledOnIconSecondaryColorFour
 
QColor SelectedOffIconSecondaryColorFour
 
QColor SelectedOnIconSecondaryColorFour
 
QColor ActiveOffIconSecondaryColorFour
 
QColor ActiveOnIconSecondaryColorFour
 
QColor ActualIconSecondaryColorFive
 
QColor NormalOffIconSecondaryColorFive
 
QColor NormalOnIconSecondaryColorFive
 
QColor DisabledOffIconSecondaryColorFive
 
QColor DisabledOnIconSecondaryColorFive
 
QColor SelectedOffIconSecondaryColorFive
 
QColor SelectedOnIconSecondaryColorFive
 
QColor ActiveOffIconSecondaryColorFive
 
QColor ActiveOnIconSecondaryColorFive
 
QColor ActualIconSecondaryColorSix
 
QColor NormalOffIconSecondaryColorSix
 
QColor NormalOnIconSecondaryColorSix
 
QColor DisabledOffIconSecondaryColorSix
 
QColor DisabledOnIconSecondaryColorSix
 
QColor SelectedOffIconSecondaryColorSix
 
QColor SelectedOnIconSecondaryColorSix
 
QColor ActiveOffIconSecondaryColorSix
 
QColor ActiveOnIconSecondaryColorSix
 
QColor ActualIconSecondaryColorSeven
 
QColor NormalOffIconSecondaryColorSeven
 
QColor NormalOnIconSecondaryColorSeven
 
QColor DisabledOffIconSecondaryColorSeven
 
QColor DisabledOnIconSecondaryColorSeven
 
QColor SelectedOffIconSecondaryColorSeven
 
QColor SelectedOnIconSecondaryColorSeven
 
QColor ActiveOffIconSecondaryColorSeven
 
QColor ActiveOnIconSecondaryColorSeven
 
QColor ActualIconSecondaryColorEight
 
QColor NormalOffIconSecondaryColorEight
 
QColor NormalOnIconSecondaryColorEight
 
QColor DisabledOffIconSecondaryColorEight
 
QColor DisabledOnIconSecondaryColorEight
 
QColor SelectedOffIconSecondaryColorEight
 
QColor SelectedOnIconSecondaryColorEight
 
QColor ActiveOffIconSecondaryColorEight
 
QColor ActiveOnIconSecondaryColorEight
 

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.

virtual void makVrv::DtQtDeMainWindow::showHelpDialog ( )
virtual

Show the help dialog.

virtual void makVrv::DtQtDeMainWindow::hideHelpDialog ( )
virtual

Hide the help 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
virtual bool makVrv::DtQtDeMainWindow::event ( QEvent event)
protectedvirtual

Reimplemented in makVrf::DtVrfQtDeMainWindow.

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::onMainEmbeddedWindowPixelRatioChanged ( )
protected

Called when the main embedded window pixel ratio changed.

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.

virtual void makVrv::DtQtDeMainWindow::setSplashScreen ( DtDeSplashScreen splashScreen)
protectedvirtual

The main window will hide the splash screen when it is shown.

Implements makVrv::DtDeMainWindow.

virtual void makVrv::DtQtDeMainWindow::showBasedOnSettings ( )
protectedvirtual

Show the main window based on application settings. This also handles the creation of the startup dialog.

Implements makVrv::DtDeMainWindow.

Reimplemented in makVrf::DtVrfQtDeMainWindow.

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.

virtual void makVrv::DtQtDeMainWindow::dragEnterEvent ( QDragEnterEvent *  event)
overrideprotectedvirtual

override for the QWidget drawEnterEvent function, used to determine if the dropped item is an mtf file.

virtual void makVrv::DtQtDeMainWindow::dropEvent ( QDropEvent *  event)
overrideprotectedvirtual

override for the QWidget dropEvent function, used to load the dropped mtf file.

Friends And Related Function Documentation

friend class DtQtDeMainWindowProvider
friend

Member Data Documentation

const char* makVrv::DtQtDeMainWindow::ContainerPlaceHolderString
static
DtDeSplashScreen* makVrv::DtQtDeMainWindow::mySplashScreen
protected
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
DtHelpDialog* makVrv::DtQtDeMainWindow::myHelpDialog
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
int makVrv::DtQtDeMainWindow::myOldDevicePixelRatio
protected

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

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)