]> git.saurik.com Git - wxWidgets.git/blame - include/wx/unix/apptrait.h
generate double click events in the native MSW version of wxCalendarCtrl
[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
163b3ad7 19class WXDLLIMPEXP_BASE wxConsoleAppTraits : public wxConsoleAppTraitsBase
e2478fde
VZ
20{
21public:
a1873279 22#if wxUSE_CONSOLE_EVENTLOOP
2ddff00c 23 virtual wxEventLoopBase *CreateEventLoop();
a1873279 24#endif // wxUSE_CONSOLE_EVENTLOOP
c2ca375c
VZ
25#if wxUSE_TIMER
26 virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer);
27#endif
e2478fde
VZ
28};
29
30#if wxUSE_GUI
31
53a2db12 32class WXDLLIMPEXP_CORE wxGUIAppTraits : public wxGUIAppTraitsBase
e2478fde
VZ
33{
34public:
2ddff00c 35 virtual wxEventLoopBase *CreateEventLoop();
e2478fde 36 virtual int WaitForChild(wxExecuteData& execData);
1d043598 37 virtual int AddProcessCallback(wxEndProcessData *data, int fd);
c2ca375c
VZ
38#if wxUSE_TIMER
39 virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer);
40#endif
d254213e
PC
41#if wxUSE_THREADS && defined(__WXGTK20__)
42 virtual void MutexGuiEnter();
43 virtual void MutexGuiLeave();
44#endif
e2478fde 45
6ae3ead6 46#if (defined(__WXMAC__) || defined(__WXCOCOA__)) && wxUSE_STDPATHS
fc480dc1
DE
47 virtual wxStandardPathsBase& GetStandardPaths();
48#endif
1f5c6629 49 virtual wxPortId GetToolkitVersion(int *majVer = NULL, int *minVer = NULL) 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
2804f77d
VZ
64
65 // GTK+ and Motif integrate sockets directly in their main loop, the other
66 // Unix ports do it at wxEventLoop level
67 //
68 // TODO: Should we use XtAddInput() for wxX11 too? Or, vice versa, if there
69 // is no advantage in doing this compared to the generic way
70 // currently used by wxX11, should we continue to use GTK/Motif-
71 // specific stuff?
72#if wxUSE_SOCKETS && (defined(__WXGTK__) || defined(__WXMOTIF__))
73 virtual GSocketManager *GetSocketManager();
74#endif
e2478fde
VZ
75};
76
77#endif // wxUSE_GUI
78
79#endif // _WX_UNIX_APPTRAIT_H_
80