VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtQtDeMainWindow.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCoreQt/vrvCoreQt.h>
13 #include <vrvCore/DtDeMainWindow.h>
16 #include <QtWidgets/QMainWindow>
17 #include <QtCore/QRect>
18 
19 class QAction;
20 
21 namespace makVrv
22 {
23 
24  class DtDe;
25  class DtQtKeyAdapter;
26  class DtDriverManager;
27  class DtInputDriver;
28  class DtDriver;
29  class DtStartupDialog;
30 
36  public DtDeMainWindow
37  {
38  Q_OBJECT;
39 
40  public:
41 
42  static const char* ContainerPlaceHolderString;
43 
45 
47  virtual ~DtQtDeMainWindow();
48 
50  virtual void setApplicationTitle(const std::string& appName);
51 
53  virtual std::string applicationTitle() const;
54 
56  virtual void setApplicationIcon(const std::string& iconName);
57 
59  virtual void setShowQuitDialogOnClose(bool);
60 
62  virtual QDockWidget* dockComponent(QWidget* component,
63  Qt::DockWidgetArea area = Qt::LeftDockWidgetArea);
64 
66  virtual QToolBar* dockComponent(QWidget* component,
67  Qt::ToolBarArea area = Qt::LeftToolBarArea);
68 
70  virtual void setMainWidget(QWidget* widget, DtQtKeyAdapter* keyAdapter = 0);
71 
73  virtual void removeMainWidget();
74 
75  virtual QWidget* mainWidget();
76 
78  virtual void destroyWindow();
79 
81  virtual void quit();
82 
84  virtual bool isToggledAsFullScreen();
85 
89  virtual void toggleFullScreen();
90 
92  virtual void slot_onDisplayEngineConfigurationRealized(
93  const std::string& igName, const std::string& displayName);
94 
96  virtual int screenNumber() const;
97 
99  virtual void showStartupDialog();
100 
102  virtual void hideStartupDialog();
103 
104  signals:
105 
108  void signal_fullScreenToggled();
109 
110  protected:
111 
113  DtQtDeMainWindow(DtDe& de, QWidget* parent = 0, Qt::WindowFlags flags = 0);
114 
115  virtual bool event(QEvent* event);
116 
117  virtual void keyPressEvent( QKeyEvent* event );
118  virtual void keyReleaseEvent( QKeyEvent* event );
119 
122  virtual void closeEvent(QCloseEvent *event);
123 
127  void slot_onWindowToBeDestroyed();
128 
131  void displayLabelInCentralWidget();
132 
136  void slot_onWindowCreated();
137 
139  void hideAllVisibleDockableWidgets();
140 
143  void showAllVisibleDockableWidgets();
144 
146  void configureTabbedDockComponents();
147 
148  protected:
149 
153  QPoint myRestorePos;
157 
158  //this are used for cache the window state before go to fullscreen for restore purpose
164  };
165 
170  {
171 
172  public:
173 
176 
178  virtual ~DtQtDeMainWindowProvider();
179 
180  protected:
181 
184  virtual DtDeMainWindow* createMainWindow(DtDe& de);
185 
186  };
187 }

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)