From 876bbbec3a6bf3d02d4ab7020cc73eaa6e247e9e Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Fri, 12 Jun 2020 18:49:09 -0400 Subject: have basic wxwidgets gui working --- gui/wxapp.hpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 gui/wxapp.hpp (limited to 'gui/wxapp.hpp') 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 + +class MainApp : public wxApp +{ +public: + virtual bool OnInit() final { + auto mainFrame = new MainFrame; + mainFrame->Show(true); + SetTopWindow(mainFrame); + return true; + } +}; + +#endif // WXAPP_HPP_ + -- cgit v1.2.3