File: dialoged.cpp

package info (click to toggle)
wxxt 1.67c-6
  • links: PTS
  • area: main
  • in suites: potato
  • size: 9,176 kB
  • ctags: 12,722
  • sloc: cpp: 89,350; sh: 5,110; ansic: 4,510; makefile: 596; lex: 184; yacc: 105
file content (54 lines) | stat: -rw-r--r-- 996 bytes parent folder | download | duplicates (3)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
 * File:	dialoged.cpp
 * Purpose:	
 * Author:	Julian Smart
 * Created:	1995
 * Updated:	
 * Copyright:	(c) 1995, AIAI, University of Edinburgh
 */

static const char sccsid[] = "%W% %G%";

#ifdef __GNUG__
#pragma implementation
#endif

// For compilers that support precompilation, includes "wx.h".
#include "wx_prec.h"

#ifdef __BORLANDC__
#pragma hdrstop
#endif

#ifndef WX_PRECOMP
#include "wx.h"
#endif

#include "dialoged.h"

// A macro needed for some compilers (AIX) that need 'main' to be defined
// in the application itself.
IMPLEMENT_WXWIN_MAIN

// This statement initialises the whole application
MyApp myApp;

MyApp::MyApp(void)
{
}

wxResourceManager theResourceManager;

// The `main program' equivalent, creating the windows and returning the
// main frame
wxFrame *MyApp::OnInit(void)
{
  theResourceManager.Initialize();
  theResourceManager.ShowResourceEditor(TRUE);
  
  if (argc > 1)
    theResourceManager.Load(argv[1]);

  return theResourceManager.GetEditorFrame();
}