]>
git.saurik.com Git - wxWidgets.git/blob - samples/mobile/wxedit/wxedit.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Author: Robert Roebling
5 /////////////////////////////////////////////////////////////////////////////
10 // Include wxWidgets' headers
16 //----------------------------------------------------------------------------
18 //----------------------------------------------------------------------------
37 //----------------------------------------------------------------------------
39 //----------------------------------------------------------------------------
41 class MyFrame
: public wxFrame
44 // constructors and destructors
45 MyFrame( wxWindow
*parent
, wxWindowID id
, const wxString
&title
,
46 const wxPoint
& pos
= wxDefaultPosition
,
47 const wxSize
& size
= wxDefaultSize
,
48 long style
= wxDEFAULT_FRAME_STYLE
);
51 void CreateMyMenuBar();
56 wxArrayString m_history
;
59 void OnAbout( wxCommandEvent
&event
);
60 void OnNew( wxCommandEvent
&event
);
61 void OnOpen( wxCommandEvent
&event
);
62 void OnSave( wxCommandEvent
&event
);
63 void OnSaveAs( wxCommandEvent
&event
);
64 void OnQuit( wxCommandEvent
&event
);
66 void OnCopy( wxCommandEvent
&event
);
67 void OnCut( wxCommandEvent
&event
);
68 void OnPaste( wxCommandEvent
&event
);
69 void OnDelete( wxCommandEvent
&event
);
71 void OnLastFiles( wxCommandEvent
&event
);
74 void AddToHistory( const wxString
&fname
);
79 void OnUpdateUI( wxUpdateUIEvent
&event
);
80 void OnCloseWindow( wxCloseEvent
&event
);
86 //----------------------------------------------------------------------------
88 //----------------------------------------------------------------------------
90 class MyApp
: public wxApp
95 virtual bool OnInit();