]> git.saurik.com Git - wxWidgets.git/blame - contrib/utils/wxrcedit/edapp.cpp
added binz handler
[wxWidgets.git] / contrib / utils / wxrcedit / edapp.cpp
CommitLineData
56d2f750
VS
1/////////////////////////////////////////////////////////////////////////////
2// Purpose: XML resources editor
3// Author: Vaclav Slavik
4// Created: 2000/05/05
5// RCS-ID: $Id$
6// Copyright: (c) 2000 Vaclav Slavik
7// Licence: wxWindows licence
8/////////////////////////////////////////////////////////////////////////////
9
10#ifdef __GNUG__
11 #pragma implementation
12 #pragma interface
13#endif
14
15// For compilers that support precompilation, includes "wx/wx.h".
16#include "wx/wxprec.h"
17
18#ifdef __BORLANDC__
19 #pragma hdrstop
20#endif
21
22// for all others, include the necessary headers (this file is usually all you
23// need because it includes almost all "standard" wxWindows headers
24#ifndef WX_PRECOMP
25 #include "wx/wx.h"
26#endif
27
28#include "wx/xml/xml.h"
29#include "wx/image.h"
35a0184e 30#include "wx/wx.h"
56d2f750
VS
31
32#include "editor.h"
33
34
35
36// -- Application
37
38class MyApp : public wxApp
39{
40public:
41 virtual bool OnInit();
42};
43
44IMPLEMENT_APP(MyApp)
45
46
47bool MyApp::OnInit()
48{
49 wxString arg = (argc >= 1) ? argv[1] : "";
50 wxInitAllImageHandlers();
51 wxFrame *frame = new EditorFrame(NULL, arg);
52 SetTopWindow(frame);
53 frame->Show(TRUE);
54 return TRUE;
55}
56