2003-06-24 00:56:19 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/unix/apptrait.h
|
|
|
|
// Purpose: standard implementations of wxAppTraits for Unix
|
|
|
|
// Author: Vadim Zeitlin
|
|
|
|
// Modified by:
|
|
|
|
// Created: 23.06.2003
|
|
|
|
// RCS-ID: $Id$
|
2004-05-23 14:56:36 +00:00
|
|
|
// Copyright: (c) 2003 Vadim Zeitlin <vadim@wxwidgets.org>
|
2004-05-23 20:53:33 +00:00
|
|
|
// Licence: wxWindows licence
|
2003-06-24 00:56:19 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_UNIX_APPTRAIT_H_
|
|
|
|
#define _WX_UNIX_APPTRAIT_H_
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// wxGUI/ConsoleAppTraits: must derive from wxAppTraits, not wxAppTraitsBase
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class WXDLLEXPORT wxConsoleAppTraits : public wxConsoleAppTraitsBase
|
|
|
|
{
|
|
|
|
public:
|
2003-06-24 01:31:22 +00:00
|
|
|
virtual bool CreateEndProcessPipe(wxExecuteData& execData);
|
2003-06-24 00:56:19 +00:00
|
|
|
virtual bool IsWriteFDOfEndProcessPipe(wxExecuteData& execData, int fd);
|
|
|
|
virtual void DetachWriteFDOfEndProcessPipe(wxExecuteData& execData);
|
|
|
|
virtual int WaitForChild(wxExecuteData& execData);
|
|
|
|
};
|
|
|
|
|
|
|
|
#if wxUSE_GUI
|
|
|
|
|
|
|
|
class WXDLLEXPORT wxGUIAppTraits : public wxGUIAppTraitsBase
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual bool CreateEndProcessPipe(wxExecuteData& execData);
|
|
|
|
virtual bool IsWriteFDOfEndProcessPipe(wxExecuteData& execData, int fd);
|
|
|
|
virtual void DetachWriteFDOfEndProcessPipe(wxExecuteData& execData);
|
|
|
|
virtual int WaitForChild(wxExecuteData& execData);
|
|
|
|
|
2004-11-12 21:21:00 +00:00
|
|
|
#if defined(__WXMAC__) || defined(__WXCOCOA__)
|
|
|
|
virtual wxStandardPathsBase& GetStandardPaths();
|
|
|
|
#endif
|
2006-08-13 21:00:32 +00:00
|
|
|
virtual wxPortId GetToolkitVersion(int *majVer, int *minVer) const;
|
2006-11-24 10:55:26 +00:00
|
|
|
|
2006-10-18 21:55:54 +00:00
|
|
|
#ifdef __WXGTK__
|
2007-03-12 01:46:14 +00:00
|
|
|
virtual void SetLocale();
|
2006-10-18 21:55:54 +00:00
|
|
|
virtual wxString GetDesktopEnvironment() const;
|
2006-11-24 10:55:26 +00:00
|
|
|
#endif
|
2006-11-24 11:33:53 +00:00
|
|
|
|
|
|
|
#if defined(__WXDEBUG__) && defined(__WXGTK20__)
|
|
|
|
virtual bool ShowAssertDialog(const wxString& msg);
|
2006-10-18 21:55:54 +00:00
|
|
|
#endif
|
2003-06-24 00:56:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // wxUSE_GUI
|
|
|
|
|
|
|
|
#endif // _WX_UNIX_APPTRAIT_H_
|
|
|
|
|