GNU compiler included with Mac OS X 10.2 (Jaguar) as well as August Developer Tools update contain a bug concerning #pragma interface handling that can only be worked around by not using them (and they are not necessary anyways) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17039 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
		
			
				
	
	
		
			62 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			62 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
| /////////////////////////////////////////////////////////////////////////////
 | |
| // Purpose:     XML resources editor
 | |
| // Author:      Vaclav Slavik
 | |
| // Created:     2000/05/05
 | |
| // RCS-ID:      $Id$
 | |
| // Copyright:   (c) 2000 Vaclav Slavik
 | |
| // Licence:     wxWindows licence
 | |
| /////////////////////////////////////////////////////////////////////////////
 | |
| 
 | |
| #if defined(__GNUG__) && !defined(__APPLE__)
 | |
|     #pragma implementation
 | |
|     #pragma interface
 | |
| #endif
 | |
| 
 | |
| // For compilers that support precompilation, includes "wx/wx.h".
 | |
| #include "wx/wxprec.h"
 | |
| 
 | |
| #ifdef __BORLANDC__
 | |
|     #pragma hdrstop
 | |
| #endif
 | |
| 
 | |
| // for all others, include the necessary headers (this file is usually all you
 | |
| // need because it includes almost all "standard" wxWindows headers
 | |
| #ifndef WX_PRECOMP
 | |
|     #include "wx/wx.h"
 | |
| #endif
 | |
| 
 | |
| #include "wx/xrc/xml.h"
 | |
| #include "wx/image.h"
 | |
| #include "wx/wx.h"
 | |
| 
 | |
| #include "editor.h"
 | |
| #include "preview.h"
 | |
| #include "propframe.h"
 | |
| 
 | |
| 
 | |
| // -- Application
 | |
| 
 | |
| class MyApp : public wxApp
 | |
| {
 | |
| public:
 | |
|     virtual bool OnInit();
 | |
| };
 | |
| 
 | |
| IMPLEMENT_APP(MyApp)
 | |
| 
 | |
| 
 | |
| bool MyApp::OnInit()
 | |
| {
 | |
|     SetVendorName(wxT("wxWindows"));
 | |
|     SetAppName(wxT("wxrcedit"));
 | |
|     wxString arg = (argc >= 1) ? argv[1] : "";
 | |
|     wxInitAllImageHandlers();
 | |
|     wxFrame *frame = new EditorFrame(NULL, arg);
 | |
|     SetTopWindow(frame);
 | |
|     frame->Show(TRUE);
 | |
|     PreviewFrame::Get()->Show(TRUE);
 | |
|     PropertiesFrame::Get()->Show(TRUE);
 | |
|     return TRUE;
 | |
| }
 | |
| 
 |