wxMASSManager/main.cpp

47 lines
1.4 KiB
C++
Raw Normal View History

2020-01-09 13:59:19 +01:00
// wxMASSManager
// Copyright (C) 2020 Guillaume Jacquemin
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
#include <Corrade/version.h>
#if !(CORRADE_VERSION_YEAR * 100 + CORRADE_VERSION_MONTH >= 202006)
#error This application requires Corrade 2020.06 or later to build.
#endif
2020-01-09 13:59:19 +01:00
#include <wx/app.h>
#include "GUI/EvtMainFrame.h"
class MyApp: public wxApp {
public:
bool OnInit() {
2020-01-10 22:47:20 +01:00
SetAppName("wxMASSManager");
SetAppDisplayName("wxMASSManager");
2020-06-14 22:52:17 +02:00
wxImage::AddHandler(new wxPNGHandler);
2020-01-09 13:59:19 +01:00
EvtMainFrame* main_frame = new EvtMainFrame(nullptr);
if(!main_frame->ready()) {
return false;
}
main_frame->Show();
2020-01-09 13:59:19 +01:00
return true;
}
};
wxIMPLEMENT_APP(MyApp);