diff options
author | clyne <clyne@bitgloo.com> | 2020-07-16 20:21:36 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-16 20:21:36 -0400 |
commit | 17cda07f3ef79069e9bed2eca6c20f2b7fcb60b9 (patch) | |
tree | 7e787e1b24100d539631a04993e1d6b53ac31f72 /gui/wxapp.hpp | |
parent | 43c53c1122c64da20bbc6f54d2a087f5a457f669 (diff) | |
parent | f07e878cd23e6e35743358ea306951f2218653a4 (diff) |
Merge pull request #1 from tcsullivan/gui
Gui
Diffstat (limited to 'gui/wxapp.hpp')
-rw-r--r-- | gui/wxapp.hpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gui/wxapp.hpp b/gui/wxapp.hpp new file mode 100644 index 0000000..6536554 --- /dev/null +++ b/gui/wxapp.hpp @@ -0,0 +1,20 @@ +#ifndef WXAPP_HPP_ +#define WXAPP_HPP_ + +#include "wxmain.hpp" + +#include <wx/app.h> + +class MainApp : public wxApp +{ +public: + virtual bool OnInit() final { + auto mainFrame = new MainFrame; + mainFrame->Show(true); + SetTopWindow(mainFrame); + return true; + } +}; + +#endif // WXAPP_HPP_ + |