FS2_Open
Open source remastering of the Freespace 2 engine
wxfred2.cpp
Go to the documentation of this file.
1 /*
2  * Created by Ian "Goober5000" Warfield for the FreeSpace2 Source Code Project.
3  * You may not sell or otherwise commercially exploit the source or things you
4  * create based on the source.
5  */
6 
7 //#include "mission.h"
8 #include "frmfred2.h"
9 #include "base/wxfred_base.h"
10 
11 #include "wxfred2.h"
12 
13 #include <globalincs/pstypes.h>
14 
15 #include <wx/image.h>
16 #include <wx/string.h>
17 //#include <wx/xrc/xmlres.h>
18  #include <wx/wx.h>
19 
20 IMPLEMENT_APP(wxFRED2)
21 
22 bool wxFRED2::OnInit()
23 {
24  //wxXmlResource::Get()->InitAllHandlers();
25  //InitXmlResource();
26  //wxFREDMission* the_Mission = new wxFREDMission();
27  wxChar* title = NULL;
28  // Init image handlers before frmFRED2 (wxFormBuilder workaround)
29  wxImage::AddHandler(new wxPNGHandler);
30  frmFRED2 *frame = new frmFRED2( title, 50, 50, 800, 600 );
31  SetTopWindow(frame);
32  frame->Show(TRUE);
33 
34  return true;
35 }
#define TRUE
Definition: pstypes.h:399