]> git.saurik.com Git - wxWidgets.git/blame - samples/typetest/typetest.h
Fixed fatal typo.
[wxWidgets.git] / samples / typetest / typetest.h
CommitLineData
cfb88c55
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: typetest.h
3// Purpose: Types wxWindows 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 licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifdef __GNUG__
13#pragma interface "typetest.h"
14#endif
15
16#ifndef _WX_TYPETEST_H_
17#define _WX_TYPETEST_H_
18
19// Define a new application type
20class MyApp: public wxApp
21{
22public:
23 bool OnInit(void);
24
25 void DoDateDemo(wxCommandEvent& event);
26 void DoTimeDemo(wxCommandEvent& event);
27 void DoVariantDemo(wxCommandEvent& event);
7e2c43b8 28 void DoByteOrderDemo(wxCommandEvent& event);
dcf924a3
RR
29#if wxUSE_UNICODE
30 void DoUnicodeDemo(wxCommandEvent& event);
31#endif
cfb88c55
JS
32
33 wxTextCtrl* GetTextCtrl() const { return m_textCtrl; }
34
35private:
36 wxTextCtrl* m_textCtrl;
37
38DECLARE_DYNAMIC_CLASS(MyApp)
39DECLARE_EVENT_TABLE()
40};
41
42DECLARE_APP(MyApp)
43
44// Define a new frame type
45class MyFrame: public wxFrame
46{
47public:
48 MyFrame(wxFrame *parent, const wxString& title,
49 const wxPoint& pos, const wxSize& size);
50
51public:
52 void OnQuit(wxCommandEvent& event);
53 void OnAbout(wxCommandEvent& event);
cfb88c55
JS
54
55 DECLARE_EVENT_TABLE()
56
57};
58
59// ID for the menu commands
60#define TYPES_QUIT wxID_EXIT
61#define TYPES_TEXT 101
62#define TYPES_ABOUT 102
63
64#define TYPES_DATE 103
65#define TYPES_TIME 104
66#define TYPES_VARIANT 105
7e2c43b8 67#define TYPES_BYTEORDER 106
dcf924a3 68#define TYPES_UNICODE 107
cfb88c55
JS
69
70#endif
71 // _WX_TYPETEST_H_
72