]>
git.saurik.com Git - wxWidgets.git/blob - samples/mobile/wxedit/wxedit.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Author: Robert Roebling
5 /////////////////////////////////////////////////////////////////////////////
11 #pragma interface "wxedit.cpp"
14 // Include wxWindows' headers
20 //----------------------------------------------------------------------------
22 //----------------------------------------------------------------------------
41 //----------------------------------------------------------------------------
43 //----------------------------------------------------------------------------
45 class MyFrame
: public wxFrame
48 // constructors and destructors
49 MyFrame( wxWindow
*parent
, wxWindowID id
, const wxString
&title
,
50 const wxPoint
& pos
= wxDefaultPosition
,
51 const wxSize
& size
= wxDefaultSize
,
52 long style
= wxDEFAULT_FRAME_STYLE
);
55 void CreateMyMenuBar();
60 wxArrayString m_history
;
63 void OnAbout( wxCommandEvent
&event
);
64 void OnNew( wxCommandEvent
&event
);
65 void OnOpen( wxCommandEvent
&event
);
66 void OnSave( wxCommandEvent
&event
);
67 void OnSaveAs( wxCommandEvent
&event
);
68 void OnQuit( wxCommandEvent
&event
);
70 void OnCopy( wxCommandEvent
&event
);
71 void OnCut( wxCommandEvent
&event
);
72 void OnPaste( wxCommandEvent
&event
);
73 void OnDelete( wxCommandEvent
&event
);
75 void OnLastFiles( wxCommandEvent
&event
);
78 void AddToHistory( const wxString
&fname
);
83 void OnUpdateUI( wxUpdateUIEvent
&event
);
84 void OnCloseWindow( wxCloseEvent
&event
);
90 //----------------------------------------------------------------------------
92 //----------------------------------------------------------------------------
94 class MyApp
: public wxApp
99 virtual bool OnInit();
100 virtual int OnExit();