Ocular Engine
MainWindow.hpp
1 
17 #pragma once
18 #ifndef __H__OCULAR_EDITOR_MAIN_WINDOW__H__
19 #define __H__OCULAR_EDITOR_MAIN_WINDOW__H__
20 
21 #include <QtWidgets/QMainWindow>
22 
23 //------------------------------------------------------------------------------------------
24 
29 namespace Ocular
30 {
35  namespace Editor
36  {
37  class MainMenuBar;
38  class MainStatusBar;
39  class ContentFrame;
40  class ToolbarCommon;
41 
46  class MainWindow : public QMainWindow
47  {
48  Q_OBJECT
49 
50  public:
51 
52  MainWindow(QWidget* parent = nullptr);
53  ~MainWindow();
54 
55  virtual QSize sizeHint() const override;
56 
57  void update();
58 
59  //------------------------------------------------------------
60  // Getters
61  //------------------------------------------------------------
62 
66  MainMenuBar* getMainMenu() const;
67 
72 
77 
82 
83  protected:
84 
85  private:
86 
87  void setupLayouts();
88  void setupMenus();
89  void setupMainWidget();
90  void setupToolbars();
91  void setupContent();
92 
93  void setFrameStatsMessage();
94 
95  //------------------------------------------------------------
96 
97  QWidget* m_MainWidget;
98 
99  QVBoxLayout* m_LayoutMain;
100 
101  MainMenuBar* m_MenuBar;
102  MainStatusBar* m_StatusBar;
103  ContentFrame* m_ContentFrame;
104 
105  ToolbarCommon* m_ToolbarCommon;
106  };
107  }
111 }
116 //------------------------------------------------------------------------------------------
117 
118 #endif
ContentFrame * getContentFrame() const
Definition: MainWindow.cpp:99
MainStatusBar * getMainStatusBar() const
Definition: MainWindow.cpp:89
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70
MainMenuBar * getMainMenu() const
Definition: MainWindow.cpp:84
ToolbarCommon * getCommonToolbar() const
Definition: MainWindow.cpp:94
The primary menu bar in the MainWindow widget.
Definition: MainMenuBar.hpp:43
Tool Bar for common actions (save, camera behaviour, etc.)
Definition: ToolbarCommon.hpp:41
Main window for the Ocular Editor application.
Definition: MainWindow.hpp:46
Main status bar for the Ocular Editor application.
Definition: MainStatusBar.hpp:43
Definition: ContentFrame.hpp:46