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 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()
};
class MyApp: public wxApp
{
public:
- MyApp();
-
+ MyApp(){};
+
virtual bool OnInit();
virtual int OnExit();
};