]> git.saurik.com Git - wxWidgets.git/blame - include/wx/unix/apptrait.h
Add factory functions for use with future unit tests.
[wxWidgets.git] / include / wx / unix / apptrait.h
CommitLineData
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
19class WXDLLEXPORT wxConsoleAppTraits : public wxConsoleAppTraitsBase
20{
21public:
2ddff00c 22 virtual wxEventLoopBase *CreateEventLoop();
46446cc2 23 virtual bool CreateEndProcessPipe(wxExecuteData& execData);
e2478fde
VZ
24 virtual bool IsWriteFDOfEndProcessPipe(wxExecuteData& execData, int fd);
25 virtual void DetachWriteFDOfEndProcessPipe(wxExecuteData& execData);
26 virtual int WaitForChild(wxExecuteData& execData);
c2ca375c
VZ
27#if wxUSE_TIMER
28 virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer);
29#endif
e2478fde
VZ
30};
31
32#if wxUSE_GUI
33
34class WXDLLEXPORT wxGUIAppTraits : public wxGUIAppTraitsBase
35{
36public:
2ddff00c 37 virtual wxEventLoopBase *CreateEventLoop();
e2478fde
VZ
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);
c2ca375c
VZ
42#if wxUSE_TIMER
43 virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer);
44#endif
e2478fde 45
6ae3ead6 46#if (defined(__WXMAC__) || defined(__WXCOCOA__)) && wxUSE_STDPATHS
fc480dc1
DE
47 virtual wxStandardPathsBase& GetStandardPaths();
48#endif
8bb6b2c0 49 virtual wxPortId GetToolkitVersion(int *majVer, int *minVer) const;
db9febdf 50
b46b1d59 51#if defined(__WXGTK__) && wxUSE_INTL
d774f916 52 virtual void SetLocale();
b46b1d59
VZ
53#endif // __WXGTK__
54
55#ifdef __WXGTK20__
88bbc332 56 virtual wxString GetDesktopEnvironment() const;
d3a0a0ee
VZ
57 virtual wxString GetStandardCmdLineOptions(wxArrayString& names,
58 wxArrayString& desc) const;
b46b1d59 59#endif // __WXGTK20____
5807e60c
RR
60
61#if defined(__WXDEBUG__) && defined(__WXGTK20__)
62 virtual bool ShowAssertDialog(const wxString& msg);
88bbc332 63#endif
e2478fde
VZ
64};
65
66#endif // wxUSE_GUI
67
68#endif // _WX_UNIX_APPTRAIT_H_
69