VR-Forces Development_Version 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 <QtGui/QMainWindow>
17 
18 class QAction;
19 
20 namespace makVrv
21 {
22 
23  class DtDe;
24  class DtQtKeyAdapter;
25  class DtDriverManager;
26  class DtInputDriver;
27  class DtDriver;
28  class DtStartupDialog;
29 
35  public DtDeMainWindow
36  {
37  Q_OBJECT;
38 
39  public:
40 
41  static const char* ContainerPlaceHolderString;
42 
44 
46  virtual ~DtQtDeMainWindow();
47 
49  virtual void setApplicationTitle(const std::string& appName);
50 
52  virtual std::string applicationTitle() const;
53 
55  virtual void setApplicationIcon(const std::string& iconName);
56 
58  virtual void setShowQuitDialogOnClose(bool);
59 
61  virtual QDockWidget* dockComponent(QWidget* component,
62  Qt::DockWidgetArea area = Qt::LeftDockWidgetArea);
63 
65  virtual QToolBar* dockComponent(QWidget* component,
66  Qt::ToolBarArea area = Qt::LeftToolBarArea);
67 
69  virtual void setMainWidget(QWidget* widget, DtQtKeyAdapter* keyAdapter = 0);
70 
72  virtual void removeMainWidget();
73 
74  virtual QWidget* mainWidget();
75 
77  virtual void destroyWindow();
78 
80  virtual void quit();
81 
83  virtual bool isToggledAsFullScreen();
84 
88  virtual void toggleFullScreen();
89 
91  virtual void slot_onDisplayEngineConfigurationRealized(
92  const std::string& igName, const std::string& displayName);
93 
95  virtual int screenNumber() const;
96 
98  virtual void showStartupDialog();
99 
101  virtual void hideStartupDialog();
102 
103  signals:
104 
107  void signal_fullScreenToggled();
108 
109  protected:
110 
112  DtQtDeMainWindow(DtDe& de, QWidget* parent = 0, Qt::WindowFlags flags = 0);
113 
114  virtual bool event(QEvent* event);
115 
116  virtual void keyPressEvent( QKeyEvent* event );
117  virtual void keyReleaseEvent( QKeyEvent* event );
118 
121  virtual void closeEvent(QCloseEvent *event);
122 
126  void slot_onWindowToBeDestroyed();
127 
130  void displayLabelInCentralWidget();
131 
135  void slot_onWindowCreated();
136 
138  void hideAllVisibleDockableWidgets();
139 
142  void showAllVisibleDockableWidgets();
143 
145  void configureTabbedDockComponents();
146 
147  protected:
148 
155 
156  };
157 
162  {
163 
164  public:
165 
168 
170  virtual ~DtQtDeMainWindowProvider();
171 
172  protected:
173 
176  virtual DtDeMainWindow* createMainWindow(DtDe& de);
177 
178  };
179 }

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)