1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/unix/apptrait.h
3 // Purpose: standard implementations of wxAppTraits for Unix
4 // Author: Vadim Zeitlin
8 // Copyright: (c) 2003 Vadim Zeitlin <vadim@wxwidgets.org>
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_UNIX_APPTRAIT_H_
13 #define _WX_UNIX_APPTRAIT_H_
15 // ----------------------------------------------------------------------------
16 // wxGUI/ConsoleAppTraits: must derive from wxAppTraits, not wxAppTraitsBase
17 // ----------------------------------------------------------------------------
19 class WXDLLEXPORT wxConsoleAppTraits
: public wxConsoleAppTraitsBase
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
);
28 virtual wxTimerImpl
*CreateTimerImpl(wxTimer
*timer
);
34 class WXDLLEXPORT wxGUIAppTraits
: public wxGUIAppTraitsBase
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
);
43 virtual wxTimerImpl
*CreateTimerImpl(wxTimer
*timer
);
46 #if (defined(__WXMAC__) || defined(__WXCOCOA__)) && wxUSE_STDPATHS
47 virtual wxStandardPathsBase
& GetStandardPaths();
49 virtual wxPortId
GetToolkitVersion(int *majVer
, int *minVer
) const;
51 #if defined(__WXGTK__) && wxUSE_INTL
52 virtual void SetLocale();
56 virtual wxString
GetDesktopEnvironment() const;
57 virtual wxString
GetStandardCmdLineOptions(wxArrayString
& names
,
58 wxArrayString
& desc
) const;
59 #endif // __WXGTK20____
61 #if defined(__WXDEBUG__) && defined(__WXGTK20__)
62 virtual bool ShowAssertDialog(const wxString
& msg
);
68 #endif // _WX_UNIX_APPTRAIT_H_