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/>.
|
|
|
|
|
2020-09-21 13:48:12 +02:00
|
|
|
#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");
|
2021-03-05 15:03:01 +01:00
|
|
|
SetAppDisplayName("M.A.S.S. Builder Save Tool");
|
2020-01-10 22:47:20 +01:00
|
|
|
|
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);
|
|
|
|
|
2020-01-12 14:54:23 +01:00
|
|
|
if(!main_frame->ready()) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
main_frame->Show();
|
2020-01-09 13:59:19 +01:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
wxIMPLEMENT_APP(MyApp);
|