]> git.saurik.com Git - wxWidgets.git/blob - include/wx/unix/apptrait.h
STL compilation fix
[wxWidgets.git] / include / wx / unix / apptrait.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/unix/apptrait.h
3 // Purpose: standard implementations of wxAppTraits for Unix
4 // Author: Vadim Zeitlin
5 // Modified by:
6 // Created: 23.06.2003
7 // RCS-ID: $Id$
8 // Copyright: (c) 2003 Vadim Zeitlin <vadim@wxwidgets.org>
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_UNIX_APPTRAIT_H_
13 #define _WX_UNIX_APPTRAIT_H_
14
15 // ----------------------------------------------------------------------------
16 // wxGUI/ConsoleAppTraits: must derive from wxAppTraits, not wxAppTraitsBase
17 // ----------------------------------------------------------------------------
18
19 class WXDLLEXPORT wxConsoleAppTraits : public wxConsoleAppTraitsBase
20 {
21 public:
22 virtual wxEventLoopBase *CreateEventLoop();
23 virtual bool CreateEndProcessPipe(wxExecuteData& execData);
24 virtual bool IsWriteFDOfEndProcessPipe(wxExecuteData& execData, int fd);
25 virtual void DetachWriteFDOfEndProcessPipe(wxExecuteData& execData);
26 virtual int WaitForChild(wxExecuteData& execData);
27 #if wxUSE_TIMER
28 virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer);
29 #endif
30 };
31
32 #if wxUSE_GUI
33
34 class WXDLLEXPORT wxGUIAppTraits : public wxGUIAppTraitsBase
35 {
36 public:
37 virtual wxEventLoopBase *CreateEventLoop();
38 virtual bool CreateEndProcessPipe(wxExecuteData& execData);
39 virtual bool IsWriteFDOfEndProcessPipe(wxExecuteData& execData, int fd);
40 virtual void DetachWriteFDOfEndProcessPipe(wxExecuteData& execData);
41 virtual int WaitForChild(wxExecuteData& execData);
42 #if wxUSE_TIMER
43 virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer);
44 #endif
45
46 #if (defined(__WXMAC__) || defined(__WXCOCOA__)) && wxUSE_STDPATHS
47 virtual wxStandardPathsBase& GetStandardPaths();
48 #endif
49 virtual wxPortId GetToolkitVersion(int *majVer, int *minVer) const;
50
51 #if defined(__WXGTK__) && wxUSE_INTL
52 virtual void SetLocale();
53 #endif // __WXGTK__
54
55 #ifdef __WXGTK20__
56 virtual wxString GetDesktopEnvironment() const;
57 virtual wxString GetStandardCmdLineOptions(wxArrayString& names,
58 wxArrayString& desc) const;
59 #endif // __WXGTK20____
60
61 #if defined(__WXDEBUG__) && defined(__WXGTK20__)
62 virtual bool ShowAssertDialog(const wxString& msg);
63 #endif
64 };
65
66 #endif // wxUSE_GUI
67
68 #endif // _WX_UNIX_APPTRAIT_H_
69