]> git.saurik.com Git - wxWidgets.git/blob - samples/wxtest/test.h
don't generate an endless stream of asserts for the 0-sized images
[wxWidgets.git] / samples / wxtest / test.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: test.h
3 // Author: XX
4 // Created: XX/XX/XX
5 // Copyright:
6 /////////////////////////////////////////////////////////////////////////////
7
8 #ifndef __test_H__
9 #define __test_H__
10
11 #ifdef __GNUG__
12 #pragma interface "test.cpp"
13 #endif
14
15 // Include wxWindows' headers
16
17 #ifndef WX_PRECOMP
18 #include <wx/wx.h>
19 #endif
20
21 #include "test_wdr.h"
22
23 // WDR: class declarations
24
25 //----------------------------------------------------------------------------
26 // MyDialog
27 //----------------------------------------------------------------------------
28
29 class MyDialog: public wxDialog
30 {
31 public:
32 // constructors and destructors
33 MyDialog( wxWindow *parent, wxWindowID id, const wxString &title,
34 const wxPoint& pos = wxDefaultPosition,
35 const wxSize& size = wxDefaultSize,
36 long style = wxDEFAULT_DIALOG_STYLE );
37
38 // WDR: method declarations for MyDialog
39 virtual bool Validate();
40 virtual bool TransferDataToWindow();
41 virtual bool TransferDataFromWindow();
42
43 private:
44 // WDR: member variable declarations for MyDialog
45
46 private:
47 // WDR: handler declarations for MyDialog
48
49 private:
50 DECLARE_EVENT_TABLE()
51 };
52
53 //----------------------------------------------------------------------------
54 // MyFrame
55 //----------------------------------------------------------------------------
56
57 class MyFrame: public wxFrame
58 {
59 public:
60 // constructors and destructors
61 MyFrame( wxWindow *parent, wxWindowID id, const wxString &title,
62 const wxPoint& pos = wxDefaultPosition,
63 const wxSize& size = wxDefaultSize,
64 long style = wxDEFAULT_FRAME_STYLE );
65
66 private:
67 // WDR: method declarations for MyFrame
68 void CreateMyMenuBar();
69
70 private:
71 // WDR: member variable declarations for MyFrame
72
73 private:
74 // WDR: handler declarations for MyFrame
75 void OnTest( wxCommandEvent &event );
76 void OnAbout( wxCommandEvent &event );
77 void OnQuit( wxCommandEvent &event );
78 void OnCloseWindow( wxCloseEvent &event );
79
80 private:
81 DECLARE_EVENT_TABLE()
82 };
83
84 //----------------------------------------------------------------------------
85 // MyApp
86 //----------------------------------------------------------------------------
87
88 class MyApp: public wxApp
89 {
90 public:
91 MyApp();
92
93 virtual bool OnInit();
94 virtual int OnExit();
95 };
96
97 #endif