VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfQtDeMainWindow.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2022 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
6 #pragma once
7 
10 
11 namespace makVrf
12 {
15  {
16  Q_OBJECT
17 
18  public:
20  DtVrfQtDeMainWindow(makVrv::DtDe& de, QWidget* parent = 0, Qt::WindowFlags flags = 0);
21 
23  virtual ~DtVrfQtDeMainWindow();
24 
25  virtual void toggleFullScreen();
26 
27  virtual void setMainWidget(QWidget* widget, makVrv::DtQtKeyAdapter* keyAdapter = 0);
28  virtual void showEvent(QShowEvent *ev);
29  virtual void showBasedOnSettings() override;
30 
31  virtual void grabAdapterFocus();
32 
33  bool initialized() const
34  {
35  return (myMainWidget != nullptr);
36  }
37 
38  QWidget* mainWidget() const
39  {
40  return myMainWidget;
41  }
42 
43  boost::signals2::signal<void (QWidget* from, QWidget* to)> signal_changingMainWidget;
44  boost::signals2::signal<void (QWidget*)> signal_mainWidgetSet;
45  boost::signals2::signal<void ()> signal_mainWindowShown;
46  boost::signals2::signal<void (double)> signal_devicePixelRatioChanged;
47 
48  protected:
49  virtual bool eventFilter(QObject*, QEvent*) override;
50  virtual bool event(QEvent* event) override;
51  virtual bool canAcceptHotKeys(QWidget*) const;
52 
53  public slots:
54  virtual void resetLayout();
55 
56  signals:
57  void signal_preFullScreenToggle();
58 
59  protected:
61  QWidget* myMainWidget = nullptr;
62  };
63 
65  {
66  public:
67 
70 
72  virtual ~DtVrfQtDeMainWindowProvider();
73 
74  protected:
75 
78  virtual makVrv::DtDeMainWindow* createMainWindow(makVrv::DtDe& de);
79 
80  virtual void delayedShow();
81 
82  protected:
83  boost::signals2::scoped_connection myDelayedShowConnection;
84  };
85 }
#define DT_DLL_VRFGUICOREQT
Definition: vrfGuiCoreQt.h:26
bool initialized() const
Definition: vrfQtDeMainWindow.h:33
boost::signals2::signal< void(QWidget *)> signal_mainWidgetSet
Definition: vrfQtDeMainWindow.h:44
boost::signals2::signal< void(double)> signal_devicePixelRatioChanged
Definition: vrfQtDeMainWindow.h:46
boost::signals2::scoped_connection myDelayedShowConnection
Definition: vrfQtDeMainWindow.h:83
Abstract clas for grabbing and handling adapter which is owned by the makVrv::DtOsgWindowQt.
Definition: DtQtKeyAdapter.h:20
boost::signals2::signal< void(QWidget *from, QWidget *to)> signal_changingMainWidget
Definition: vrfQtDeMainWindow.h:43
Override to provide VRF specific functionality associated with the main window.
Definition: vrfQtDeMainWindow.h:14
QWidget * mainWidget() const
Definition: vrfQtDeMainWindow.h:38
bool myFirstShowEvent
Definition: vrfQtDeMainWindow.h:60
DtQtDeMainWindowProvider lazily creates and provides access to the DtQtDeMainWindow.
Definition: DtQtDeMainWindow.h:208
The abstract main window class.
Definition: DtDeMainWindow.h:24
boost::signals2::signal< void()> signal_mainWindowShown
Definition: vrfQtDeMainWindow.h:45
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:72
Definition: vrfQtDeMainWindow.h:64
Contains makVrv::DtQtDeMainWindow class.
The Qt main window. There will be only one of these per DtDe instance. Note, this window will be dest...
Definition: DtQtDeMainWindow.h:44

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)