VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtQtDeMainWindow.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2019 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCoreQt/vrvCoreQt.h>
13 
14 #if !defined(Q_MOC_RUN)
15 #include <vrvCore/DtDeMainWindow.h>
19 #endif
20 
21 #include <QtWidgets/QMainWindow>
22 #include <QtCore/QRect>
23 
24 class QAction;
25 
26 namespace makVrv
27 {
28 
29  class DtDe;
30  class DtQtKeyAdapter;
31  class DtDriverManager;
32  class DtInputDriver;
33  class DtDriver;
34  class DtStartupDialog;
35 
41  public DtDeMainWindow
42  {
43  Q_OBJECT;
44 
45  public:
46 
47  static const char* ContainerPlaceHolderString;
48 
50 
52  virtual ~DtQtDeMainWindow();
53 
55  virtual void setApplicationTitle(const std::string& appName);
56 
58  virtual std::string applicationTitle() const;
59 
61  virtual void setApplicationIcon(const std::string& iconName);
62 
63 
65  virtual QDockWidget* dockComponent(QWidget* component,
66  Qt::DockWidgetArea area = Qt::LeftDockWidgetArea);
67 
69  virtual QToolBar* dockComponent(QWidget* component,
70  Qt::ToolBarArea area = Qt::LeftToolBarArea);
71 
73  virtual void setMainWidget(QWidget* widget, DtQtKeyAdapter* keyAdapter = 0);
74 
76  virtual void removeMainWidget();
77 
78  virtual QWidget* mainWidget();
79 
81  virtual void destroyWindow();
82 
84  virtual void quit();
85 
87  virtual bool isToggledAsFullScreen();
88 
92  virtual void toggleFullScreen();
93 
95  virtual void slot_onDisplayEngineConfigurationRealized(
96  const std::string& igName, const std::string& displayName);
97 
99  virtual int screenNumber() const;
100 
102  virtual void showStartupDialog();
103 
105  virtual void hideStartupDialog();
106 
107  signals:
108 
111  void signal_fullScreenToggled();
112 
113  public slots:
114 
115  virtual void remaximization();
116 
117  protected:
118 
120  DtQtDeMainWindow(DtDe& de, QWidget* parent = 0, Qt::WindowFlags flags = 0);
121 
122  virtual bool event(QEvent* event);
123 
124  virtual void keyPressEvent( QKeyEvent* event );
125  virtual void keyReleaseEvent( QKeyEvent* event );
126 
129  virtual void closeEvent(QCloseEvent *event);
130 
134  void slot_onWindowToBeDestroyed();
135 
138  void displayLabelInCentralWidget();
139 
143  void slot_onWindowCreated();
144 
146  void hideAllVisibleDockableWidgets();
147 
150  void showAllVisibleDockableWidgets();
151 
153  void configureTabbedDockComponents();
154 
155  protected:
156 
160  QPoint myRestorePos;
163 
164  //this are used for cache the window state before go to fullscreen for restore purpose
170 
172  Qt::WindowStates myLastWindowState;
173  };
174 
179  {
180 
181  public:
182 
185 
187  virtual ~DtQtDeMainWindowProvider();
188 
189  protected:
190 
193  virtual DtDeMainWindow* createMainWindow(DtDe& de);
194 
195  };
196 }
Qt::WindowStates myLastWindowState
Definition: DtQtDeMainWindow.h:172
DtStartupDialog provides a dialog to be displayed on VR-Vantage startup to allow the user to choose w...
Definition: DtStartupDialog.h:40
QRect myRestoreRect
Definition: DtQtDeMainWindow.h:159
Contains makVrv::DtSubjectObserver class.
bool myFullScreen
Definition: DtQtDeMainWindow.h:158
DtStartupDialog * myStartupDialog
Definition: DtQtDeMainWindow.h:162
int myWindowXBeforeFullscreen
Definition: DtQtDeMainWindow.h:166
int myWindowHeightBeforeFullscreen
Definition: DtQtDeMainWindow.h:169
DtQtKeyAdapter * myKeyAdapter
Definition: DtQtDeMainWindow.h:157
int myWindowWidthBeforeFullscreen
Definition: DtQtDeMainWindow.h:168
The abstract main window provider.
Definition: DtDeMainWindow.h:66
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
Contains DLL export macros.
Contains makVrv::DtDeMainWindow class.
Abstract clas for grabbing and handling adapter which is owned by the makVrv::DtOsgWindowQt.
Definition: DtQtKeyAdapter.h:23
int myWindowStateBeforeFullscreen
Definition: DtQtDeMainWindow.h:165
Contains makVrv::DtObserverObject class.
DtQtDeMainWindowProvider lazily creates and provides access to the DtQtDeMainWindow.
Definition: DtQtDeMainWindow.h:178
QPoint myRestorePos
Definition: DtQtDeMainWindow.h:160
QObjectList myVisibleButHiddenDockableWidgets
Definition: DtQtDeMainWindow.h:161
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:24
The abstract main window class.
Definition: DtDeMainWindow.h:23
static const char * ContainerPlaceHolderString
Definition: DtQtDeMainWindow.h:43
Base class to provide boost signal/slot management.
int myWindowYBeforeFullscreen
Definition: DtQtDeMainWindow.h:167
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
The Qt main window.
Definition: DtQtDeMainWindow.h:40
DtSignalConnectionManager myConnections
Definition: DtQtDeMainWindow.h:171

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)