]>
git.saurik.com Git - wxWidgets.git/blob - samples/mobile/wxedit/wxedit.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Author: Robert Roebling
6 /////////////////////////////////////////////////////////////////////////////
11 // Include wxWidgets' headers
17 //----------------------------------------------------------------------------
19 //----------------------------------------------------------------------------
38 //----------------------------------------------------------------------------
40 //----------------------------------------------------------------------------
42 class MyFrame
: public wxFrame
45 // constructors and destructors
46 MyFrame( wxWindow
*parent
, wxWindowID id
, const wxString
&title
,
47 const wxPoint
& pos
= wxDefaultPosition
,
48 const wxSize
& size
= wxDefaultSize
,
49 long style
= wxDEFAULT_FRAME_STYLE
);
52 void CreateMyMenuBar();
57 wxArrayString m_history
;
60 void OnAbout( wxCommandEvent
&event
);
61 void OnNew( wxCommandEvent
&event
);
62 void OnOpen( wxCommandEvent
&event
);
63 void OnSave( wxCommandEvent
&event
);
64 void OnSaveAs( wxCommandEvent
&event
);
65 void OnQuit( wxCommandEvent
&event
);
67 void OnCopy( wxCommandEvent
&event
);
68 void OnCut( wxCommandEvent
&event
);
69 void OnPaste( wxCommandEvent
&event
);
70 void OnDelete( wxCommandEvent
&event
);
72 void OnLastFiles( wxCommandEvent
&event
);
75 void AddToHistory( const wxString
&fname
);
80 void OnUpdateUI( wxUpdateUIEvent
&event
);
81 void OnCloseWindow( wxCloseEvent
&event
);
87 //----------------------------------------------------------------------------
89 //----------------------------------------------------------------------------
91 class MyApp
: public wxApp
96 virtual bool OnInit();