]> git.saurik.com Git - wxWidgets.git/blob - contrib/samples/deprecated/resource/resource.h
Removed useless pragma after fixing code to use insigned ints.
[wxWidgets.git] / contrib / samples / deprecated / resource / resource.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: resource.h
3 // Purpose: Dialog resource sample
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 04/01/98
7 // RCS-ID: $Id$
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
11
12 // Define a new application
13 class MyApp: public wxApp
14 {
15 public:
16 MyApp();
17
18 virtual bool OnInit();
19
20 virtual ~MyApp();
21 };
22
23 class MyPanel: public wxPanel
24 {
25 public:
26 MyPanel(wxWindow *parent, wxWindowID id, const wxPoint& pos,
27 const wxSize& size, int style, const wxString &name);
28 void OnClick(wxMouseEvent &event);
29
30 private:
31 DECLARE_EVENT_TABLE()
32 };
33
34 class MyFrame: public wxFrame
35 {
36 public:
37 MyFrame(wxWindow *parent, const wxWindowID id, const wxString& title,
38 const wxPoint& pos, const wxSize& size);
39 void OnQuit(wxCommandEvent& event);
40 void OnAbout(wxCommandEvent& event);
41 void OnTestDialog(wxCommandEvent& event);
42
43 wxWindow *panel;
44
45 private:
46 DECLARE_EVENT_TABLE()
47 };
48
49 class MyDialog : public wxDialog
50 {
51 public:
52 void OnOk(wxCommandEvent& event);
53 void OnCancel(wxCommandEvent& event);
54
55 private:
56 DECLARE_EVENT_TABLE()
57 };
58
59 // the values should be the same as in menu.wxr file!
60 enum
61 {
62 RESOURCE_TESTDIALOG = 2,
63 RESOURCE_QUIT = 4,
64 RESOURCE_ABOUT = 6
65 };