]> git.saurik.com Git - wxWidgets.git/blame - contrib/utils/wxrcedit/edapp.cpp
Changed type of bitmaps. RC of DMC reported 'is not a valid Windows 3.0 or OS/2 1...
[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
ab7ce33c 10#if defined(__GNUG__) && !defined(__APPLE__)
56d2f750
VS
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
be5a51fb 23// need because it includes almost all "standard" wxWidgets headers
56d2f750
VS
24#ifndef WX_PRECOMP
25 #include "wx/wx.h"
26#endif
27
c74caa09 28#include "wx/xml/xml.h"
56d2f750 29#include "wx/image.h"
35a0184e 30#include "wx/wx.h"
56d2f750
VS
31
32#include "editor.h"
12d9e308
VS
33#include "preview.h"
34#include "propframe.h"
56d2f750
VS
35
36
37// -- Application
38
39class MyApp : public wxApp
40{
41public:
42 virtual bool OnInit();
43};
44
45IMPLEMENT_APP(MyApp)
46
47
48bool MyApp::OnInit()
49{
be5a51fb 50 SetVendorName(wxT("wxWidgets"));
cbe37d08 51 SetAppName(wxT("wxrcedit"));
859e5b17 52 wxString arg = (argc >= 1) ? argv[1] : _T("");
56d2f750
VS
53 wxInitAllImageHandlers();
54 wxFrame *frame = new EditorFrame(NULL, arg);
55 SetTopWindow(frame);
56 frame->Show(TRUE);
12d9e308
VS
57 PreviewFrame::Get()->Show(TRUE);
58 PropertiesFrame::Get()->Show(TRUE);
56d2f750
VS
59 return TRUE;
60}
61