VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtDeMainWindow.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2026 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 #pragma once
10 #include <vrvCore/vrvCore.h>
12 
13 #include <vrvUtil/signalslib.h>
14 
15 #include <string>
16 
17 namespace makVrv
18 {
19  class DtDe;
20  class DtDeSplashScreen;
21 
25  {
26 
27  protected:
28 
30  DtDeMainWindow(DtDe& de);
31 
32  public:
34  virtual ~DtDeMainWindow();
35 
37  virtual void setApplicationTitle(const std::string& appName) = 0;
38 
40  virtual std::string applicationTitle() const = 0;
41 
43  virtual void setApplicationIcon(const std::string& iconName) = 0;
44 
46  virtual void setSplashScreen(DtDeSplashScreen* splashScreen) = 0;
47 
50  virtual void showBasedOnSettings() = 0;
51 
55  virtual void setStatusBarVisible(bool visible) = 0;
56 
60  virtual bool isStatusBarVisible() const = 0;
61 
63  virtual void destroyWindow() = 0;
64 
66  virtual void quit() = 0;
67 
68  inline DtDe& de()
69  {
70  return myDe;
71  }
72 
73  // signal that the MAIN WINDOW has toggled full screen mode.
74  boost::signalslib::signal<void(bool)> signal_fullScreenModeChanged;
75 
76  protected:
77 
79 
80  };
81 
85  {
86 
87  public:
88 
89  static const std::string theMainWindowProviderRegistrationName;
90 
91  public:
92 
95 
97  virtual ~DtDeMainWindowProvider();
98 
101  static DtDeMainWindowProvider& instance(DtDe& de);
102 
104  static void registerInstance(DtDe& de, DtDeMainWindowProvider* instance);
105 
108  DtDeMainWindow& igMainWindow();
109 
110  protected:
111 
113  virtual DtDeMainWindow* createMainWindow(DtDe& de) = 0;
114 
115  protected:
116 
120 
121  };
122 }
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
DtDe & myDe
Definition: DtDeMainWindow.h:78
DtDe & myDe
Definition: DtDeMainWindow.h:117
The abstract main window provider.
Definition: DtDeMainWindow.h:84
Contains makVrv::DtVirtualBaseClass class.
boost::signalslib::signal< void(bool)> signal_fullScreenModeChanged
Definition: DtDeMainWindow.h:74
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
DtDe & de()
Definition: DtDeMainWindow.h:68
bool myDestroyMainWindowFlag
Definition: DtDeMainWindow.h:119
The abstract main window class.
Definition: DtDeMainWindow.h:24
DtDeMainWindow * myMainWindow
Definition: DtDeMainWindow.h:118
The VR-Vantage Splash Screen Interface.
Definition: DtDeSplashScreen.h:34
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:76
static const std::string theMainWindowProviderRegistrationName
Definition: DtDeMainWindow.h:89
Contains DLL export macros.

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)