]> git.saurik.com Git - wxWidgets.git/blob - samples/mobile/styles/styles.h
Mention graphics device classes
[wxWidgets.git] / samples / mobile / styles / styles.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: styles.h
3 // Author: Robert Roebling
4 // RCS-ID: $Id$
5 // Created: 04/07/02
6 /////////////////////////////////////////////////////////////////////////////
7
8 #ifndef __styles_H__
9 #define __styles_H__
10
11 // Include wxWidgets' headers
12
13 #ifndef WX_PRECOMP
14 #include "wx/wx.h"
15 #endif
16
17 //----------------------------------------------------------------------------
18 // constants
19 //----------------------------------------------------------------------------
20
21 #define ID_ABOUT 100
22 #define ID_QUIT 204
23
24 //----------------------------------------------------------------------------
25 // MyFrame
26 //----------------------------------------------------------------------------
27
28 class MyFrame: public wxFrame
29 {
30 public:
31 // constructors and destructors
32 MyFrame( wxWindow *parent, wxWindowID id, const wxString &title,
33 const wxPoint& pos = wxDefaultPosition,
34 const wxSize& size = wxDefaultSize,
35 long style = wxDEFAULT_FRAME_STYLE );
36
37 private:
38 void CreateMyMenuBar();
39
40 private:
41 void OnAbout( wxCommandEvent &event );
42 void OnQuit( wxCommandEvent &event );
43
44 void OnCloseWindow( wxCloseEvent &event );
45
46 private:
47 DECLARE_EVENT_TABLE()
48 };
49
50 //----------------------------------------------------------------------------
51 // MyApp
52 //----------------------------------------------------------------------------
53
54 class MyApp: public wxApp
55 {
56 public:
57 MyApp(){};
58
59 virtual bool OnInit();
60 virtual int OnExit();
61 };
62
63 #endif