]> git.saurik.com Git - wxWidgets.git/blob - samples/validate/validate.h
Rationalised Cygwin sample makefiles
[wxWidgets.git] / samples / validate / validate.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: validate.h
3 // Purpose: wxWindows validation sample
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 04/01/98
7 // RCS-ID: $Id$
8 // Copyright: (c) Julian Smart and Markus Holzem
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifdef __GNUG__
13 // #pragma interface
14 #endif
15
16 // Define a new application type
17 class MyApp: public wxApp
18 { public:
19 bool OnInit(void);
20 };
21
22 // Define a new frame type
23 class MyFrame: public wxFrame
24 { public:
25 MyFrame(wxFrame *frame, char *title, int x, int y, int w, int h);
26
27 public:
28 void OnQuit(wxCommandEvent& event);
29 void OnTestDialog(wxCommandEvent& event);
30
31 DECLARE_EVENT_TABLE()
32
33 };
34
35 class MyDialog: public wxDialog
36 {
37 public:
38 MyDialog(wxWindow *parent, const wxString& title, const wxPoint& pos, const wxSize& size,
39 const long style = wxDEFAULT_DIALOG_STYLE);
40 };
41
42 class MyData
43 {
44 public:
45 wxString m_string;
46
47 MyData() { m_string = "My string"; }
48 };
49
50 #define VALIDATE_DIALOG_ID 200
51
52 #define VALIDATE_TEST_DIALOG 2
53 #define VALIDATE_TEXT 101
54