]> git.saurik.com Git - wxWidgets.git/blob - include/wx/unix/apptrait.h
wxGraphicContext --> wxGraphicsContext
[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 bool CreateEndProcessPipe(wxExecuteData& execData);
23 virtual bool IsWriteFDOfEndProcessPipe(wxExecuteData& execData, int fd);
24 virtual void DetachWriteFDOfEndProcessPipe(wxExecuteData& execData);
25 virtual int WaitForChild(wxExecuteData& execData);
26 };
27
28 #if wxUSE_GUI
29
30 class WXDLLEXPORT wxGUIAppTraits : public wxGUIAppTraitsBase
31 {
32 public:
33 virtual bool CreateEndProcessPipe(wxExecuteData& execData);
34 virtual bool IsWriteFDOfEndProcessPipe(wxExecuteData& execData, int fd);
35 virtual void DetachWriteFDOfEndProcessPipe(wxExecuteData& execData);
36 virtual int WaitForChild(wxExecuteData& execData);
37
38 #if defined(__WXMAC__) || defined(__WXCOCOA__)
39 virtual wxStandardPathsBase& GetStandardPaths();
40 #endif
41 virtual wxPortId GetToolkitVersion(int *majVer, int *minVer) const;
42
43 #ifdef __WXGTK__
44 virtual wxString GetDesktopEnvironment() const;
45 #endif
46 };
47
48 #endif // wxUSE_GUI
49
50 #endif // _WX_UNIX_APPTRAIT_H_
51