1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Types wxWindows sample
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
13 #pragma interface "typetest.h"
16 #ifndef _WX_TYPETEST_H_
17 #define _WX_TYPETEST_H_
19 // Define a new application type
20 class MyApp
: public wxApp
23 MyApp() { m_textCtrl
= NULL
; m_mimeDatabase
= NULL
; }
26 int OnExit() { delete m_mimeDatabase
; return wxApp
::OnExit(); }
28 void DoDateDemo(wxCommandEvent
& event
);
29 void DoTimeDemo(wxCommandEvent
& event
);
30 void DoVariantDemo(wxCommandEvent
& event
);
31 void DoByteOrderDemo(wxCommandEvent
& event
);
32 void DoStreamDemo(wxCommandEvent
& event
);
33 void DoStreamDemo2(wxCommandEvent
& event
);
35 void DoUnicodeDemo(wxCommandEvent
& event
);
37 void DoMIMEDemo(wxCommandEvent
& event
);
39 wxTextCtrl
* GetTextCtrl() const { return m_textCtrl
; }
42 wxTextCtrl
* m_textCtrl
;
43 wxMimeTypesManager
*m_mimeDatabase
;
45 DECLARE_DYNAMIC_CLASS(MyApp
)
51 // Define a new frame type
52 class MyFrame
: public wxFrame
55 MyFrame(wxFrame
*parent
, const wxString
& title
,
56 const wxPoint
& pos
, const wxSize
& size
);
59 void OnQuit(wxCommandEvent
& event
);
60 void OnAbout(wxCommandEvent
& event
);
65 // ID for the menu commands
68 TYPES_QUIT
= wxID_EXIT
,