]>
git.saurik.com Git - wxWidgets.git/blob - samples/typetest/typetest.h
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(); }
29 void DoDateDemo(wxCommandEvent
& event
);
30 #endif // wxUSE_TIMEDATE
31 void DoTimeDemo(wxCommandEvent
& event
);
32 void DoVariantDemo(wxCommandEvent
& event
);
33 void DoByteOrderDemo(wxCommandEvent
& event
);
34 void DoStreamDemo(wxCommandEvent
& event
);
35 void DoStreamDemo2(wxCommandEvent
& event
);
36 void DoStreamDemo3(wxCommandEvent
& event
);
37 void DoStreamDemo4(wxCommandEvent
& event
);
38 void DoStreamDemo5(wxCommandEvent
& event
);
39 void DoStreamDemo6(wxCommandEvent
& event
);
40 void DoStreamDemo7(wxCommandEvent
& event
);
42 void DoUnicodeDemo(wxCommandEvent
& event
);
43 #endif // wxUSE_UNICODE
44 void DoMIMEDemo(wxCommandEvent
& event
);
46 wxTextCtrl
* GetTextCtrl() const { return m_textCtrl
; }
49 wxTextCtrl
* m_textCtrl
;
50 wxMimeTypesManager
*m_mimeDatabase
;
52 DECLARE_DYNAMIC_CLASS(MyApp
)
58 // Define a new frame type
59 class MyFrame
: public wxFrame
62 MyFrame(wxFrame
*parent
, const wxString
& title
,
63 const wxPoint
& pos
, const wxSize
& size
);
66 void OnQuit(wxCommandEvent
& event
);
67 void OnAbout(wxCommandEvent
& event
);
72 // ID for the menu commands
75 TYPES_QUIT
= wxID_EXIT
,