X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0106a2262834510023555cda6b4d05affb36a29e..02a1dfbae942c883d8651e34dcfbc5153aabc56e:/mobile/wxedit/wxedit.h diff --git a/mobile/wxedit/wxedit.h b/mobile/wxedit/wxedit.h index 1c86055191..1d4ea9c79b 100644 --- a/mobile/wxedit/wxedit.h +++ b/mobile/wxedit/wxedit.h @@ -29,6 +29,15 @@ #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 //---------------------------------------------------------------------------- @@ -46,7 +55,9 @@ private: void CreateMyMenuBar(); private: - wxTextCtrl *m_text; + wxTextCtrl *m_text; + wxString m_filename; + wxArrayString m_history; private: void OnAbout( wxCommandEvent &event ); @@ -55,6 +66,21 @@ 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: