]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/unix/apptrait.h
added wxUSE_REGKEY checks
[wxWidgets.git] / include / wx / unix / apptrait.h
... / ...
CommitLineData
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$
8// Copyright: (c) 2003 Vadim Zeitlin <vadim@wxwidgets.org>
9// Licence: wxWindows licence
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:
22#if wxUSE_CONSOLE_EVENTLOOP
23 virtual wxEventLoopBase *CreateEventLoop();
24#endif // wxUSE_CONSOLE_EVENTLOOP
25 virtual bool CreateEndProcessPipe(wxExecuteData& execData);
26 virtual bool IsWriteFDOfEndProcessPipe(wxExecuteData& execData, int fd);
27 virtual void DetachWriteFDOfEndProcessPipe(wxExecuteData& execData);
28 virtual int WaitForChild(wxExecuteData& execData);
29#if wxUSE_TIMER
30 virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer);
31#endif
32};
33
34#if wxUSE_GUI
35
36class WXDLLEXPORT wxGUIAppTraits : public wxGUIAppTraitsBase
37{
38public:
39 virtual wxEventLoopBase *CreateEventLoop();
40 virtual bool CreateEndProcessPipe(wxExecuteData& execData);
41 virtual bool IsWriteFDOfEndProcessPipe(wxExecuteData& execData, int fd);
42 virtual void DetachWriteFDOfEndProcessPipe(wxExecuteData& execData);
43 virtual int WaitForChild(wxExecuteData& execData);
44#if wxUSE_TIMER
45 virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer);
46#endif
47
48#if (defined(__WXMAC__) || defined(__WXCOCOA__)) && wxUSE_STDPATHS
49 virtual wxStandardPathsBase& GetStandardPaths();
50#endif
51 virtual wxPortId GetToolkitVersion(int *majVer, int *minVer) const;
52
53#if defined(__WXGTK__) && wxUSE_INTL
54 virtual void SetLocale();
55#endif // __WXGTK__
56
57#ifdef __WXGTK20__
58 virtual wxString GetDesktopEnvironment() const;
59 virtual wxString GetStandardCmdLineOptions(wxArrayString& names,
60 wxArrayString& desc) const;
61#endif // __WXGTK20____
62
63#if defined(__WXDEBUG__) && defined(__WXGTK20__)
64 virtual bool ShowAssertDialog(const wxString& msg);
65#endif
66};
67
68#endif // wxUSE_GUI
69
70#endif // _WX_UNIX_APPTRAIT_H_
71