#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
//----------------------------------------------------------------------------
void CreateMyMenuBar();
private:
- wxTextCtrl *m_text;
+ wxTextCtrl *m_text;
+ wxString m_filename;
+ wxArrayString m_history;
private:
void OnAbout( 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: