File: wxfred2.cpp

package info (click to toggle)
freespace2 3.7.4%2Brepack-1
  • links: PTS, VCS
  • area: non-free
  • in suites: buster
  • size: 22,236 kB
  • sloc: cpp: 393,535; ansic: 4,106; makefile: 1,091; xml: 181; sh: 137
file content (35 lines) | stat: -rw-r--r-- 842 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 * Created by Ian "Goober5000" Warfield for the FreeSpace2 Source Code Project.
 * You may not sell or otherwise commercially exploit the source or things you
 * create based on the source.
 */ 

//#include "mission.h"
#include "frmfred2.h"
#include "base/wxfred_base.h"

#include "wxfred2.h"

#include <globalincs/pstypes.h>

#include <wx/image.h>
#include <wx/string.h>
//#include <wx/xrc/xmlres.h>
	#include <wx/wx.h>

IMPLEMENT_APP(wxFRED2)

bool wxFRED2::OnInit()
{
	//wxXmlResource::Get()->InitAllHandlers();
	//InitXmlResource();
	//wxFREDMission* the_Mission = new wxFREDMission();
	wxChar* title = NULL;
	// Init image handlers before frmFRED2 (wxFormBuilder workaround)
	wxImage::AddHandler(new wxPNGHandler);
	frmFRED2 *frame = new frmFRED2( title, 50, 50, 800, 600 );
	SetTopWindow(frame);
	frame->Show(TRUE);

	return true;
}