FEMSuite
PhotonicaGUIApp.h
1 /*
2  FEMSuite - (C) 2019 Fady Kamel <fady@engmir.com>
3  This program is free software: you can redistribute it and/or modify
4  it under the terms of the GNU General Public License as published by
5  the Free Software Foundation, either version 3 of the License, or
6  (at your option) any later version.
7  FEMSuite is distributed in the hope that it will be useful,
8  but WITHOUT ANY WARRANTY; without even the implied warranty of
9  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  GNU General Public License for more details.
11  You should have received a copy of the GNU General Public License
12  along with FEMSuite. If not, see <http://www.gnu.org/licenses/>.
13 */
14 #pragma once
15 // wxWidgets "Hello world" Program
16 // For compilers that support precompilation, includes "wx/wx.h".
17 
18 #include <wx/wxprec.h>
19 #ifndef WX_PRECOMP
20 #include <wx/wx.h>
21 #endif
22 #include <wx/frame.h>
23 #include "GUIObjectManager.h"
24 
25 class PhotonicaGUIFrame;
26 
27 class PhotonicaGUIApp : public wxApp
28 {
29 public:
30  virtual bool OnInit() override;
31  PhotonicaGUIFrame* GetFrame() { return m_Frame; }
32 
33 protected:
34  PhotonicaGUIFrame* m_Frame;
35 
36 #pragma region Object Manager
37 public:
38 
39  GUIObjectManager& GetObjectManager() { return m_ObjectManager; }
40 
41 private:
42 
43  GUIObjectManager m_ObjectManager;
44 
45 #pragma endregion
46 
47 };
Definition: PhotonicaGUIFrame.h:23
This overrides a few methods in the object manager class mainly to update the GUI ...
Definition: GUIObjectManager.h:19
Definition: PhotonicaGUIApp.h:27