]> git.saurik.com Git - wxWidgets.git/blame - samples/mobile/styles/styles.h
offset version by 1 to avoid having compatibility_version of 0.0.0 under Darwin:...
[wxWidgets.git] / samples / mobile / styles / styles.h
CommitLineData
5ebcf581
RR
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
be5a51fb 10// Include wxWidgets' headers
5ebcf581
RR
11
12#ifndef WX_PRECOMP
13 #include <wx/wx.h>
14#endif
15
16//----------------------------------------------------------------------------
17// constants
18//----------------------------------------------------------------------------
19
20#define ID_ABOUT 100
21#define ID_QUIT 204
22
23//----------------------------------------------------------------------------
24// MyFrame
25//----------------------------------------------------------------------------
26
27class MyFrame: public wxFrame
28{
29public:
30 // constructors and destructors
31 MyFrame( wxWindow *parent, wxWindowID id, const wxString &title,
32 const wxPoint& pos = wxDefaultPosition,
33 const wxSize& size = wxDefaultSize,
34 long style = wxDEFAULT_FRAME_STYLE );
925e9792 35
5ebcf581
RR
36private:
37 void CreateMyMenuBar();
925e9792 38
5ebcf581
RR
39private:
40 void OnAbout( wxCommandEvent &event );
41 void OnQuit( wxCommandEvent &event );
925e9792 42
5ebcf581 43 void OnCloseWindow( wxCloseEvent &event );
925e9792 44
5ebcf581
RR
45private:
46 DECLARE_EVENT_TABLE()
47};
48
49//----------------------------------------------------------------------------
50// MyApp
51//----------------------------------------------------------------------------
52
53class MyApp: public wxApp
54{
55public:
925e9792
WS
56 MyApp(){};
57
5ebcf581
RR
58 virtual bool OnInit();
59 virtual int OnExit();
60};
61
62#endif