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 bool CreateEndProcessPipe(wxExecuteData
& execData
);
23 virtual bool IsWriteFDOfEndProcessPipe(wxExecuteData
& execData
, int fd
);
24 virtual void DetachWriteFDOfEndProcessPipe(wxExecuteData
& execData
);
25 virtual int WaitForChild(wxExecuteData
& execData
);
27 virtual wxTimerImpl
*CreateTimerImpl(wxTimer
*timer
);
33 class WXDLLEXPORT wxGUIAppTraits
: public wxGUIAppTraitsBase
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
);
41 virtual wxTimerImpl
*CreateTimerImpl(wxTimer
*timer
);
44 #if defined(__WXMAC__) || defined(__WXCOCOA__)
45 virtual wxStandardPathsBase
& GetStandardPaths();
47 virtual wxPortId
GetToolkitVersion(int *majVer
, int *minVer
) const;
50 virtual void SetLocale();
51 virtual wxString
GetDesktopEnvironment() const;
52 virtual wxString
GetStandardCmdLineOptions(wxArrayString
& names
,
53 wxArrayString
& desc
) const;
56 #if defined(__WXDEBUG__) && defined(__WXGTK20__)
57 virtual bool ShowAssertDialog(const wxString
& msg
);
63 #endif // _WX_UNIX_APPTRAIT_H_