![]() |
VR-Forces 4.0.4 Class Documentation
|
The Qt main window. More...

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 QDockWidget * | dockComponent (QWidget *component, Qt::DockWidgetArea area=Qt::LeftDockWidgetArea) |
| Dock widget to left side dock. Returns the QDockWidget that it creates. | |
| virtual QToolBar * | dockComponent (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 QWidget * | mainWidget () |
| 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. | |
Static Public Attributes | |
| static const char * | ContainerPlaceHolderString |
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 Attributes | |
| DtQtKeyAdapter * | myKeyAdapter |
| bool | myFullScreen |
| QObjectList | myVisibleButHiddenDockableWidgets |
| DtInputDriver * | myInputDriver |
| bool | myShowQuitDialogOnClose |
Friends | |
| class | DtQtDeMainWindowProvider |
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.
| virtual makVrv::DtQtDeMainWindow::~DtQtDeMainWindow | ( | ) | [virtual] |
DTOR.
| makVrv::DtQtDeMainWindow::DtQtDeMainWindow | ( | DtDe & | de, |
| QWidget * | parent = 0, |
||
| Qt::WindowFlags | flags = 0 |
||
| ) | [protected] |
Constructor protected. Use the provider.
| 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 | ) | [protected, virtual] |
| virtual void makVrv::DtQtDeMainWindow::keyPressEvent | ( | QKeyEvent * | event | ) | [protected, virtual] |
| virtual void makVrv::DtQtDeMainWindow::keyReleaseEvent | ( | QKeyEvent * | event | ) | [protected, virtual] |
| virtual void makVrv::DtQtDeMainWindow::closeEvent | ( | QCloseEvent * | event | ) | [protected, virtual] |
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.
friend class DtQtDeMainWindowProvider [friend] |
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] |