X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8f4a9a1025aace6f5f82aa4c05c5ceb651b86dd4..3abcf424a3e250f5537f9f076d3fb86a925e2547:/samples/mobile/wxedit/wxedit.h diff --git a/samples/mobile/wxedit/wxedit.h b/samples/mobile/wxedit/wxedit.h index 1d4ea9c79b..40a80f13bb 100644 --- a/samples/mobile/wxedit/wxedit.h +++ b/samples/mobile/wxedit/wxedit.h @@ -1,20 +1,17 @@ ///////////////////////////////////////////////////////////////////////////// // Name: wxedit.h // Author: Robert Roebling +// RCS-ID: $Id$ // Created: 04/07/02 ///////////////////////////////////////////////////////////////////////////// #ifndef __wxedit_H__ #define __wxedit_H__ -#ifdef __GNUG__ - #pragma interface "wxedit.cpp" -#endif - -// Include wxWindows' headers +// Include wxWidgets' headers #ifndef WX_PRECOMP - #include + #include "wx/wx.h" #endif //---------------------------------------------------------------------------- @@ -50,15 +47,15 @@ public: 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 ); @@ -66,23 +63,23 @@ private: 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() }; @@ -94,8 +91,8 @@ private: class MyApp: public wxApp { public: - MyApp(); - + MyApp(){}; + virtual bool OnInit(); virtual int OnExit(); };