]>
git.saurik.com Git - wxWidgets.git/blob - samples/typetest/typetest.h
504ad26697a9907aeb02d0056586c7c3e8e978b3
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Types wxWidgets sample
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_TYPETEST_H_
13 #define _WX_TYPETEST_H_
15 // Define a new application type
16 class MyApp
: public wxApp
19 MyApp() { m_textCtrl
= NULL
; m_mimeDatabase
= NULL
; }
22 int OnExit() { delete m_mimeDatabase
; return wxApp::OnExit(); }
24 void DoVariantDemo(wxCommandEvent
& event
);
25 void DoByteOrderDemo(wxCommandEvent
& event
);
26 void DoStreamDemo(wxCommandEvent
& event
);
27 void DoStreamDemo2(wxCommandEvent
& event
);
28 void DoStreamDemo3(wxCommandEvent
& event
);
29 void DoStreamDemo4(wxCommandEvent
& event
);
30 void DoStreamDemo5(wxCommandEvent
& event
);
31 void DoStreamDemo6(wxCommandEvent
& event
);
32 void DoStreamDemo7(wxCommandEvent
& event
);
34 void DoUnicodeDemo(wxCommandEvent
& event
);
35 #endif // wxUSE_UNICODE
36 void DoMIMEDemo(wxCommandEvent
& event
);
38 wxTextCtrl
* GetTextCtrl() const { return m_textCtrl
; }
41 wxTextCtrl
* m_textCtrl
;
42 wxMimeTypesManager
*m_mimeDatabase
;
44 DECLARE_DYNAMIC_CLASS(MyApp
)
50 // Define a new frame type
51 class MyFrame
: public wxFrame
54 MyFrame(wxFrame
*parent
, const wxString
& title
,
55 const wxPoint
& pos
, const wxSize
& size
);
58 void OnQuit(wxCommandEvent
& event
);
59 void OnAbout(wxCommandEvent
& event
);
64 // ID for the menu commands
67 TYPES_QUIT
= wxID_EXIT
,
69 TYPES_ABOUT
= wxID_ABOUT
,