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@16953 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
		
			
				
	
	
		
			104 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			104 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
| /////////////////////////////////////////////////////////////////////////////
 | |
| // Name:        wxedit.h
 | |
| // Author:      Robert Roebling
 | |
| // Created:     04/07/02
 | |
| /////////////////////////////////////////////////////////////////////////////
 | |
| 
 | |
| #ifndef __wxedit_H__
 | |
| #define __wxedit_H__
 | |
| 
 | |
| #if defined(__GNUG__) && !defined(__APPLE__)
 | |
|     #pragma interface "wxedit.cpp"
 | |
| #endif
 | |
| 
 | |
| // Include wxWindows' headers
 | |
| 
 | |
| #ifndef WX_PRECOMP
 | |
|     #include <wx/wx.h>
 | |
| #endif
 | |
| 
 | |
| //----------------------------------------------------------------------------
 | |
| //   constants
 | |
| //----------------------------------------------------------------------------
 | |
| 
 | |
| #define ID_ABOUT    100
 | |
| 
 | |
| #define ID_NEW      200
 | |
| #define ID_OPEN     201
 | |
| #define ID_SAVE     202
 | |
| #define ID_SAVEAS   203
 | |
| #define ID_QUIT     204
 | |
| 
 | |
| #define ID_COPY     300
 | |
| #define ID_CUT      301
 | |
| #define ID_PASTE    302
 | |
| #define ID_DELETE   303
 | |
| 
 | |
| #define ID_LAST_1   401
 | |
| #define ID_LAST_2   402
 | |
| #define ID_LAST_3   403
 | |
| 
 | |
| //----------------------------------------------------------------------------
 | |
| // MyFrame
 | |
| //----------------------------------------------------------------------------
 | |
| 
 | |
| class MyFrame: public wxFrame
 | |
| {
 | |
| public:
 | |
|     // constructors and destructors
 | |
|     MyFrame( wxWindow *parent, wxWindowID id, const wxString &title,
 | |
|         const wxPoint& pos = wxDefaultPosition,
 | |
|         const wxSize& size = wxDefaultSize,
 | |
|         long style = wxDEFAULT_FRAME_STYLE );
 | |
|     
 | |
| private:
 | |
|     void CreateMyMenuBar();
 | |
|     
 | |
| private:
 | |
|     wxTextCtrl     *m_text;
 | |
|     wxString        m_filename;
 | |
|     wxArrayString   m_history;
 | |
|     
 | |
| private:
 | |
|     void OnAbout( wxCommandEvent &event );
 | |
|     void OnNew( wxCommandEvent &event );
 | |
|     void OnOpen( wxCommandEvent &event );
 | |
|     void OnSave( wxCommandEvent &event );
 | |
|     void OnSaveAs( wxCommandEvent &event );
 | |
|     void OnQuit( wxCommandEvent &event );
 | |
|     
 | |
|     void OnCopy( wxCommandEvent &event );
 | |
|     void OnCut( wxCommandEvent &event );
 | |
|     void OnPaste( wxCommandEvent &event );
 | |
|     void OnDelete( wxCommandEvent &event );
 | |
|     
 | |
|     void OnLastFiles( wxCommandEvent &event );
 | |
|     
 | |
|     void MakeHistory();
 | |
|     void AddToHistory( const wxString &fname );
 | |
|     
 | |
|     bool Save();
 | |
|     bool Discard();
 | |
|     
 | |
|     void OnUpdateUI( wxUpdateUIEvent &event );
 | |
|     void OnCloseWindow( wxCloseEvent &event );
 | |
|     
 | |
| private:
 | |
|     DECLARE_EVENT_TABLE()
 | |
| };
 | |
| 
 | |
| //----------------------------------------------------------------------------
 | |
| // MyApp
 | |
| //----------------------------------------------------------------------------
 | |
| 
 | |
| class MyApp: public wxApp
 | |
| {
 | |
| public:
 | |
|     MyApp();
 | |
|     
 | |
|     virtual bool OnInit();
 | |
|     virtual int OnExit();
 | |
| };
 | |
| 
 | |
| #endif
 |