]> git.saurik.com Git - wxWidgets.git/blame - samples/typetest/typetest.h
Add semi-public wxDynamicLibrary::MSWGetModuleHandle().
[wxWidgets.git] / samples / typetest / typetest.h
CommitLineData
cfb88c55
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: typetest.h
be5a51fb 3// Purpose: Types wxWidgets sample
cfb88c55
JS
4// Author: Julian Smart
5// Modified by:
6// Created: 04/01/98
7// RCS-ID: $Id$
8// Copyright: (c) Julian Smart
8e124873 9// Licence: wxWindows licence
cfb88c55
JS
10/////////////////////////////////////////////////////////////////////////////
11
cfb88c55
JS
12#ifndef _WX_TYPETEST_H_
13#define _WX_TYPETEST_H_
14
15// Define a new application type
16class MyApp: public wxApp
17{
18public:
8e124873
VZ
19 MyApp() { m_textCtrl = NULL; m_mimeDatabase = NULL; }
20
21 bool OnInit();
22 int OnExit() { delete m_mimeDatabase; return wxApp::OnExit(); }
cfb88c55 23
cfb88c55 24 void DoVariantDemo(wxCommandEvent& event);
7e2c43b8 25 void DoByteOrderDemo(wxCommandEvent& event);
38830220 26 void DoStreamDemo(wxCommandEvent& event);
1b055864 27 void DoStreamDemo2(wxCommandEvent& event);
aa51b2e1 28 void DoStreamDemo3(wxCommandEvent& event);
2bf8e4eb 29 void DoStreamDemo4(wxCommandEvent& event);
f6bcfd97 30 void DoStreamDemo5(wxCommandEvent& event);
cbc906ce
RR
31 void DoStreamDemo6(wxCommandEvent& event);
32 void DoStreamDemo7(wxCommandEvent& event);
dcf924a3
RR
33#if wxUSE_UNICODE
34 void DoUnicodeDemo(wxCommandEvent& event);
3409ae17 35#endif // wxUSE_UNICODE
8e124873 36 void DoMIMEDemo(wxCommandEvent& event);
cfb88c55 37
8e124873 38 wxTextCtrl* GetTextCtrl() const { return m_textCtrl; }
cfb88c55
JS
39
40private:
8e124873
VZ
41 wxTextCtrl* m_textCtrl;
42 wxMimeTypesManager *m_mimeDatabase;
cfb88c55 43
8e124873
VZ
44 DECLARE_DYNAMIC_CLASS(MyApp)
45 DECLARE_EVENT_TABLE()
cfb88c55
JS
46};
47
48DECLARE_APP(MyApp)
49
50// Define a new frame type
51class MyFrame: public wxFrame
52{
53public:
54 MyFrame(wxFrame *parent, const wxString& title,
55 const wxPoint& pos, const wxSize& size);
8e124873 56
cfb88c55
JS
57public:
58 void OnQuit(wxCommandEvent& event);
59 void OnAbout(wxCommandEvent& event);
cfb88c55 60
8e124873 61 DECLARE_EVENT_TABLE()
cfb88c55
JS
62};
63
64// ID for the menu commands
8e124873
VZ
65enum
66{
67 TYPES_QUIT = wxID_EXIT,
68 TYPES_TEXT = 101,
91b07357 69 TYPES_ABOUT = wxID_ABOUT,
8e124873 70
91b07357 71 TYPES_DATE = 102,
8e124873
VZ
72 TYPES_TIME,
73 TYPES_VARIANT,
74 TYPES_BYTEORDER,
75 TYPES_UNICODE,
76 TYPES_STREAM,
1b055864 77 TYPES_STREAM2,
aa51b2e1 78 TYPES_STREAM3,
2bf8e4eb 79 TYPES_STREAM4,
f6bcfd97 80 TYPES_STREAM5,
cbc906ce
RR
81 TYPES_STREAM6,
82 TYPES_STREAM7,
8e124873
VZ
83 TYPES_MIME
84};
cfb88c55
JS
85
86#endif
87 // _WX_TYPETEST_H_
88