VR-Forces 5.0.1 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) 2020 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 
24  {
25 
26  protected:
27 
29  DtDeMainWindow(DtDe& de);
30 
31  public:
33  virtual ~DtDeMainWindow();
34 
36  virtual void setApplicationTitle(const std::string& appName) = 0;
37 
39  virtual std::string applicationTitle() const = 0;
40 
42  virtual void setApplicationIcon(const std::string& iconName) = 0;
43 
45  virtual void destroyWindow() = 0;
46 
48  virtual void quit() = 0;
49 
50  inline DtDe& de()
51  {
52  return myDe;
53  }
54 
55  // signal that the MAIN WINDOW has toggled full screen mode.
56  boost::signalslib::signal<void(bool)> signal_fullScreenModeChanged;
57 
58  protected:
59 
61 
62  };
63 
67  {
68 
69  public:
70 
73 
75  virtual ~DtDeMainWindowProvider();
76 
79  static DtDeMainWindowProvider& instance(DtDe& de);
80 
82  static void registerInstance(DtDe& de, DtDeMainWindowProvider* instance);
83 
86  DtDeMainWindow& igMainWindow();
87 
88  protected:
89 
91  virtual DtDeMainWindow* createMainWindow(DtDe& de) = 0;
92 
93  protected:
94 
98 
99  };
100 }
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:60
DtDe & myDe
Definition: DtDeMainWindow.h:95
The abstract main window provider.
Definition: DtDeMainWindow.h:66
Contains makVrv::DtVirtualBaseClass class.
boost::signalslib::signal< void(bool)> signal_fullScreenModeChanged
Definition: DtDeMainWindow.h:56
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
DtDe & de()
Definition: DtDeMainWindow.h:50
bool myDestroyMainWindowFlag
Definition: DtDeMainWindow.h:97
The abstract main window class.
Definition: DtDeMainWindow.h:23
DtDeMainWindow * myMainWindow
Definition: DtDeMainWindow.h:96
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:70
Contains DLL export macros.

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)