]> git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/apptrait.h
Add wxArtProvider using Tango icons.
[wxWidgets.git] / include / wx / msw / apptrait.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/apptrait.h
3 // Purpose: class implementing wxAppTraits for MSW
4 // Author: Vadim Zeitlin
5 // Modified by:
6 // Created: 21.06.2003
7 // RCS-ID: $Id$
8 // Copyright: (c) 2003 Vadim Zeitlin <vadim@wxwidgets.org>
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_MSW_APPTRAIT_H_
13 #define _WX_MSW_APPTRAIT_H_
14
15 // ----------------------------------------------------------------------------
16 // wxGUI/ConsoleAppTraits: must derive from wxAppTraits, not wxAppTraitsBase
17 // ----------------------------------------------------------------------------
18
19 class WXDLLIMPEXP_BASE wxConsoleAppTraits : public wxConsoleAppTraitsBase
20 {
21 public:
22 virtual wxEventLoopBase *CreateEventLoop();
23 virtual void *BeforeChildWaitLoop();
24 virtual void AfterChildWaitLoop(void *data);
25 #if wxUSE_TIMER
26 virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer);
27 #endif
28 virtual bool DoMessageFromThreadWait();
29 virtual WXDWORD WaitForThread(WXHANDLE hThread);
30 #ifndef __WXWINCE__
31 virtual bool CanUseStderr() { return true; }
32 virtual bool WriteToStderr(const wxString& text);
33 #endif // !__WXWINCE__
34 };
35
36 #if wxUSE_GUI
37
38 class WXDLLIMPEXP_CORE wxGUIAppTraits : public wxGUIAppTraitsBase
39 {
40 public:
41 virtual wxEventLoopBase *CreateEventLoop();
42 virtual void *BeforeChildWaitLoop();
43 virtual void AfterChildWaitLoop(void *data);
44 #if wxUSE_TIMER
45 virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer);
46 #endif
47 virtual bool DoMessageFromThreadWait();
48 virtual wxPortId GetToolkitVersion(int *majVer = NULL, int *minVer = NULL) const;
49 virtual WXDWORD WaitForThread(WXHANDLE hThread);
50
51 #ifndef __WXWINCE__
52 virtual bool CanUseStderr();
53 virtual bool WriteToStderr(const wxString& text);
54 #endif // !__WXWINCE__
55 };
56
57 #endif // wxUSE_GUI
58
59 #endif // _WX_MSW_APPTRAIT_H_