]>
git.saurik.com Git - wxWidgets.git/blob - samples/typetest/typetest.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Types wxWidgets sample
4 // Author: Julian Smart
7 // Copyright: (c) Julian Smart
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_TYPETEST_H_
12 #define _WX_TYPETEST_H_
14 // Define a new application type
15 class MyApp
: public wxApp
18 MyApp() { m_textCtrl
= NULL
; m_mimeDatabase
= NULL
; }
21 int OnExit() { delete m_mimeDatabase
; return wxApp::OnExit(); }
23 void DoVariantDemo(wxCommandEvent
& event
);
24 void DoByteOrderDemo(wxCommandEvent
& event
);
25 void DoStreamDemo(wxCommandEvent
& event
);
26 void DoStreamDemo2(wxCommandEvent
& event
);
27 void DoStreamDemo3(wxCommandEvent
& event
);
28 void DoStreamDemo4(wxCommandEvent
& event
);
29 void DoStreamDemo5(wxCommandEvent
& event
);
30 void DoStreamDemo6(wxCommandEvent
& event
);
31 void DoStreamDemo7(wxCommandEvent
& event
);
33 void DoUnicodeDemo(wxCommandEvent
& event
);
34 #endif // wxUSE_UNICODE
35 void DoMIMEDemo(wxCommandEvent
& event
);
37 wxTextCtrl
* GetTextCtrl() const { return m_textCtrl
; }
40 wxTextCtrl
* m_textCtrl
;
41 wxMimeTypesManager
*m_mimeDatabase
;
43 DECLARE_DYNAMIC_CLASS(MyApp
)
49 // Define a new frame type
50 class MyFrame
: public wxFrame
53 MyFrame(wxFrame
*parent
, const wxString
& title
,
54 const wxPoint
& pos
, const wxSize
& size
);
57 void OnQuit(wxCommandEvent
& event
);
58 void OnAbout(wxCommandEvent
& event
);
63 // ID for the menu commands
66 TYPES_QUIT
= wxID_EXIT
,
68 TYPES_ABOUT
= wxID_ABOUT
,