]>
git.saurik.com Git - wxWidgets.git/blob - samples/wxtest/test.h
1 /////////////////////////////////////////////////////////////////////////////
6 /////////////////////////////////////////////////////////////////////////////
12 #pragma interface "test.cpp"
15 // Include wxWindows' headers
23 // WDR: class declarations
25 //----------------------------------------------------------------------------
27 //----------------------------------------------------------------------------
29 class MyDialog
: public wxDialog
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
);
38 // WDR: method declarations for MyDialog
39 virtual bool Validate();
40 virtual bool TransferDataToWindow();
41 virtual bool TransferDataFromWindow();
44 // WDR: member variable declarations for MyDialog
47 // WDR: handler declarations for MyDialog
53 //----------------------------------------------------------------------------
55 //----------------------------------------------------------------------------
57 class MyFrame
: public wxFrame
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
);
67 // WDR: method declarations for MyFrame
68 void CreateMyMenuBar();
71 // WDR: member variable declarations for MyFrame
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
);
84 //----------------------------------------------------------------------------
86 //----------------------------------------------------------------------------
88 class MyApp
: public wxApp
93 virtual bool OnInit();