wxMASSManager/main.cpp
William JCM fc9d898c54 Add MassManager and move backend stuff to it.
This is a big commit, but a necessary one, as too many things were
intertwined. As a result, the code is now cleaner.
2020-01-12 14:54:23 +01:00

38 lines
1.1 KiB
C++

// 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 <wx/app.h>
#include "GUI/EvtMainFrame.h"
class MyApp: public wxApp {
public:
bool OnInit() {
SetAppName("wxMASSManager");
SetAppDisplayName("wxMASSManager");
EvtMainFrame* main_frame = new EvtMainFrame(nullptr);
if(!main_frame->ready()) {
return false;
}
main_frame->Show();
return true;
}
};
wxIMPLEMENT_APP(MyApp);