]>
Commit | Line | Data |
---|---|---|
e2478fde VZ |
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$ | |
77ffb593 | 8 | // Copyright: (c) 2003 Vadim Zeitlin <vadim@wxwidgets.org> |
65571936 | 9 | // Licence: wxWindows licence |
e2478fde VZ |
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: | |
46446cc2 | 22 | virtual bool CreateEndProcessPipe(wxExecuteData& execData); |
e2478fde VZ |
23 | virtual bool IsWriteFDOfEndProcessPipe(wxExecuteData& execData, int fd); |
24 | virtual void DetachWriteFDOfEndProcessPipe(wxExecuteData& execData); | |
25 | virtual int WaitForChild(wxExecuteData& execData); | |
c2ca375c VZ |
26 | #if wxUSE_TIMER |
27 | virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer); | |
28 | #endif | |
e2478fde VZ |
29 | }; |
30 | ||
31 | #if wxUSE_GUI | |
32 | ||
33 | class WXDLLEXPORT wxGUIAppTraits : public wxGUIAppTraitsBase | |
34 | { | |
35 | public: | |
36 | virtual bool CreateEndProcessPipe(wxExecuteData& execData); | |
37 | virtual bool IsWriteFDOfEndProcessPipe(wxExecuteData& execData, int fd); | |
38 | virtual void DetachWriteFDOfEndProcessPipe(wxExecuteData& execData); | |
39 | virtual int WaitForChild(wxExecuteData& execData); | |
c2ca375c VZ |
40 | #if wxUSE_TIMER |
41 | virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer); | |
42 | #endif | |
e2478fde | 43 | |
fc480dc1 DE |
44 | #if defined(__WXMAC__) || defined(__WXCOCOA__) |
45 | virtual wxStandardPathsBase& GetStandardPaths(); | |
46 | #endif | |
8bb6b2c0 | 47 | virtual wxPortId GetToolkitVersion(int *majVer, int *minVer) const; |
db9febdf | 48 | |
88bbc332 | 49 | #ifdef __WXGTK__ |
d774f916 | 50 | virtual void SetLocale(); |
88bbc332 | 51 | virtual wxString GetDesktopEnvironment() const; |
db9febdf | 52 | #endif |
5807e60c RR |
53 | |
54 | #if defined(__WXDEBUG__) && defined(__WXGTK20__) | |
55 | virtual bool ShowAssertDialog(const wxString& msg); | |
88bbc332 | 56 | #endif |
e2478fde VZ |
57 | }; |
58 | ||
59 | #endif // wxUSE_GUI | |
60 | ||
61 | #endif // _WX_UNIX_APPTRAIT_H_ | |
62 |