]> git.saurik.com Git - wxWidgets.git/blob - mobile/wxedit/wxedit.h
removed code (not necessary anymore)
[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 #define ID_COPY 300
33 #define ID_CUT 301
34 #define ID_PASTE 302
35 #define ID_DELETE 303
36
37 #define ID_LAST_1 401
38 #define ID_LAST_2 402
39 #define ID_LAST_3 403
40
41 //----------------------------------------------------------------------------
42 // MyFrame
43 //----------------------------------------------------------------------------
44
45 class MyFrame: public wxFrame
46 {
47 public:
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 );
53
54 private:
55 void CreateMyMenuBar();
56
57 private:
58 wxTextCtrl *m_text;
59
60 private:
61 void OnAbout( wxCommandEvent &event );
62 void OnNew( wxCommandEvent &event );
63 void OnOpen( wxCommandEvent &event );
64 void OnSave( wxCommandEvent &event );
65 void OnSaveAs( wxCommandEvent &event );
66 void OnQuit( wxCommandEvent &event );
67
68 void OnCopy( wxCommandEvent &event );
69 void OnCut( wxCommandEvent &event );
70 void OnPaste( wxCommandEvent &event );
71 void OnDelete( wxCommandEvent &event );
72
73 void OnLast1( wxCommandEvent &event );
74 void OnLast2( wxCommandEvent &event );
75 void OnLast3( wxCommandEvent &event );
76
77 bool Save();
78 bool Discard();
79
80 void OnCloseWindow( wxCloseEvent &event );
81
82 private:
83 DECLARE_EVENT_TABLE()
84 };
85
86 //----------------------------------------------------------------------------
87 // MyApp
88 //----------------------------------------------------------------------------
89
90 class MyApp: public wxApp
91 {
92 public:
93 MyApp();
94
95 virtual bool OnInit();
96 virtual int OnExit();
97 };
98
99 #endif