]> git.saurik.com Git - wxWidgets.git/blame_incremental - utils/dialoged/src/dialoged.cpp
Further border style corrections.
[wxWidgets.git] / utils / dialoged / src / dialoged.cpp
... / ...
CommitLineData
1// Name: dialoged.cpp
2// Purpose: Main Dialog Editor implementation file
3// Author: Julian Smart
4// Modified by:
5// Created: 04/01/98
6// RCS-ID: $Id$
7// Copyright: (c) Julian Smart
8// Licence: wxWindows license
9/////////////////////////////////////////////////////////////////////////////
10
11#ifdef __GNUG__
12#pragma implementation "dialoged.h"
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#ifndef WX_PRECOMP
23#include "wx/wx.h"
24#endif
25
26#include "wx/deprecated/setup.h"
27
28#include "dialoged.h"
29
30#if !wxUSE_PROPSHEET
31#error Please set wxUSE_PROPSHEET to 1 in setup.h.
32#endif
33#if !wxUSE_RESOURCES
34#error Please set wxUSE_RESOURCES to 1 in setup.h.
35#endif
36
37IMPLEMENT_APP(MyApp)
38
39BEGIN_EVENT_TABLE(MyApp, wxApp)
40END_EVENT_TABLE()
41
42MyApp::MyApp(void)
43{
44}
45
46wxResourceManager *theResourceManager = NULL;
47
48#include "symbtabl.h"
49
50bool MyApp::OnInit(void)
51{
52 theResourceManager = new wxResourceManager;
53 theResourceManager->Initialize();
54
55 theResourceManager->ShowResourceEditor(TRUE);
56
57 if (argc > 1)
58 theResourceManager->Load(argv[1]);
59
60 SetTopWindow(theResourceManager->GetEditorFrame());
61
62 return TRUE;
63}
64
65int MyApp::OnExit(void)
66{
67 delete theResourceManager;
68 theResourceManager = NULL;
69 return 0;
70}