]> git.saurik.com Git - wxWidgets.git/blame - samples/mobile/styles/styles.h
compilo
[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
a1f9e3ec 10#if defined(__GNUG__) && !defined(__APPLE__)
5ebcf581
RR
11 #pragma interface "styles.cpp"
12#endif
13
be5a51fb 14// Include wxWidgets' headers
5ebcf581
RR
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
31class MyFrame: public wxFrame
32{
33public:
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 );
925e9792 39
5ebcf581
RR
40private:
41 void CreateMyMenuBar();
925e9792 42
5ebcf581
RR
43private:
44 void OnAbout( wxCommandEvent &event );
45 void OnQuit( wxCommandEvent &event );
925e9792 46
5ebcf581 47 void OnCloseWindow( wxCloseEvent &event );
925e9792 48
5ebcf581
RR
49private:
50 DECLARE_EVENT_TABLE()
51};
52
53//----------------------------------------------------------------------------
54// MyApp
55//----------------------------------------------------------------------------
56
57class MyApp: public wxApp
58{
59public:
925e9792
WS
60 MyApp(){};
61
5ebcf581
RR
62 virtual bool OnInit();
63 virtual int OnExit();
64};
65
66#endif