]> git.saurik.com Git - wxWidgets.git/blob - samples/mobile/styles/styles.h
Implement NSMenuValidation protocol for the wxNSMenuItemTarget
[wxWidgets.git] / samples / mobile / styles / styles.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: styles.h
3 // Author: Robert Roebling
4 // Created: 04/07/02
5 /////////////////////////////////////////////////////////////////////////////
6
7 #ifndef __styles_H__
8 #define __styles_H__
9
10 #if defined(__GNUG__) && !defined(__APPLE__)
11 #pragma interface "styles.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 #define ID_QUIT 204
26
27 //----------------------------------------------------------------------------
28 // MyFrame
29 //----------------------------------------------------------------------------
30
31 class MyFrame: public wxFrame
32 {
33 public:
34 // constructors and destructors
35 MyFrame( wxWindow *parent, wxWindowID id, const wxString &title,
36 const wxPoint& pos = wxDefaultPosition,
37 const wxSize& size = wxDefaultSize,
38 long style = wxDEFAULT_FRAME_STYLE );
39
40 private:
41 void CreateMyMenuBar();
42
43 private:
44 void OnAbout( wxCommandEvent &event );
45 void OnQuit( wxCommandEvent &event );
46
47 void OnCloseWindow( wxCloseEvent &event );
48
49 private:
50 DECLARE_EVENT_TABLE()
51 };
52
53 //----------------------------------------------------------------------------
54 // MyApp
55 //----------------------------------------------------------------------------
56
57 class MyApp: public wxApp
58 {
59 public:
60 MyApp();
61
62 virtual bool OnInit();
63 virtual int OnExit();
64 };
65
66 #endif