]> git.saurik.com Git - wxWidgets.git/blob - mobile/wxedit/wxedit.h
some kbd processing code cleanup, no real changes yet
[wxWidgets.git] / mobile / wxedit / wxedit.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wxedit.h
3 // Author: Robert Roebling
4 // Created: 04/07/02
5 /////////////////////////////////////////////////////////////////////////////
6
7 #ifndef __wxedit_H__
8 #define __wxedit_H__
9
10 #ifdef __GNUG__
11 #pragma interface "wxedit.cpp"
12 #endif
13
14 // Include wxWindows' headers
15
16 #ifndef WX_PRECOMP
17 #include <wx/wx.h>
18 #endif
19
20 //----------------------------------------------------------------------------
21 // constants
22 //----------------------------------------------------------------------------
23
24 #define ID_ABOUT 100
25
26 #define ID_NEW 200
27 #define ID_OPEN 201
28 #define ID_SAVE 202
29 #define ID_SAVEAS 203
30 #define ID_QUIT 204
31
32 //----------------------------------------------------------------------------
33 // MyFrame
34 //----------------------------------------------------------------------------
35
36 class MyFrame: public wxFrame
37 {
38 public:
39 // constructors and destructors
40 MyFrame( wxWindow *parent, wxWindowID id, const wxString &title,
41 const wxPoint& pos = wxDefaultPosition,
42 const wxSize& size = wxDefaultSize,
43 long style = wxDEFAULT_FRAME_STYLE );
44
45 private:
46 void CreateMyMenuBar();
47
48 private:
49 wxTextCtrl *m_text;
50
51 private:
52 void OnAbout( wxCommandEvent &event );
53 void OnNew( wxCommandEvent &event );
54 void OnOpen( wxCommandEvent &event );
55 void OnSave( wxCommandEvent &event );
56 void OnSaveAs( wxCommandEvent &event );
57 void OnQuit( wxCommandEvent &event );
58 void OnCloseWindow( wxCloseEvent &event );
59
60 private:
61 DECLARE_EVENT_TABLE()
62 };
63
64 //----------------------------------------------------------------------------
65 // MyApp
66 //----------------------------------------------------------------------------
67
68 class MyApp: public wxApp
69 {
70 public:
71 MyApp();
72
73 virtual bool OnInit();
74 virtual int OnExit();
75 };
76
77 #endif