]> git.saurik.com Git - wxWidgets.git/blob - include/wx/unix/apptrait.h
don't pass unnecessary arguments to FindOrCreateBrush/Pen()
[wxWidgets.git] / include / wx / unix / apptrait.h
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
19 class WXDLLIMPEXP_BASE wxConsoleAppTraits : public wxConsoleAppTraitsBase
20 {
21 public:
22 #if wxUSE_CONSOLE_EVENTLOOP
23 virtual wxEventLoopBase *CreateEventLoop();
24 #endif // wxUSE_CONSOLE_EVENTLOOP
25 virtual int WaitForChild(wxExecuteData& execData);
26 #if wxUSE_TIMER
27 virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer);
28 #endif
29 };
30
31 #if wxUSE_GUI
32
33 class WXDLLEXPORT wxGUIAppTraits : public wxGUIAppTraitsBase
34 {
35 public:
36 virtual wxEventLoopBase *CreateEventLoop();
37 virtual int WaitForChild(wxExecuteData& execData);
38 #if wxUSE_TIMER
39 virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer);
40 #endif
41 #if wxUSE_THREADS && defined(__WXGTK20__)
42 virtual void MutexGuiEnter();
43 virtual void MutexGuiLeave();
44 #endif
45
46 #if (defined(__WXMAC__) || defined(__WXCOCOA__)) && wxUSE_STDPATHS
47 virtual wxStandardPathsBase& GetStandardPaths();
48 #endif
49 virtual wxPortId GetToolkitVersion(int *majVer = NULL, int *minVer = NULL) const;
50
51 #if defined(__WXGTK__) && wxUSE_INTL
52 virtual void SetLocale();
53 #endif // __WXGTK__
54
55 #ifdef __WXGTK20__
56 virtual wxString GetDesktopEnvironment() const;
57 virtual wxString GetStandardCmdLineOptions(wxArrayString& names,
58 wxArrayString& desc) const;
59 #endif // __WXGTK20____
60
61 #if defined(__WXDEBUG__) && defined(__WXGTK20__)
62 virtual bool ShowAssertDialog(const wxString& msg);
63 #endif
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
75 };
76
77 #endif // wxUSE_GUI
78
79 #endif // _WX_UNIX_APPTRAIT_H_
80