ochess/src/ochess.cpp

24 lines
570 B
C++
Raw Normal View History

2022-02-23 18:11:55 +01:00
#include "ochess.hpp"
#include "MainWindow.hpp"
bool MyApp::OnInit() {
wxImage::AddHandler(new wxPNGHandler);
MainWindow *frame = new MainWindow();
frame->Show(true);
return true;
}
wxIMPLEMENT_APP(MyApp);
void Abort(std::string msg) {
wxMessageDialog *dial = new wxMessageDialog(NULL, wxString(msg), wxT("Error"),
wxOK | wxICON_ERROR);
dial->ShowModal();
wxLogFatalError(wxString(msg));
}
2022-12-24 10:26:05 +01:00
long TabInfos::tab_count=0;
void TabInfos::Link(TabInfos *tab){
this->is_linked=true;
this->linked_id=tab->id;
}