]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/sysopt.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxSystemOptions
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 #include "wx/object.h"
17 // ----------------------------------------------------------------------------
18 // Enables an application to influence the wxWidgets implementation
19 // ----------------------------------------------------------------------------
22 #if wxUSE_SYSTEM_OPTIONS
25 wxSystemOptions
: public wxObject
30 // User-customizable hints to wxWidgets or associated libraries
31 // These could also be used to influence GetSystem... calls, indeed
32 // to implement SetSystemColour/Font/Metric
34 #if wxUSE_SYSTEM_OPTIONS
35 static void SetOption(const wxString
& name
, const wxString
& value
);
36 static void SetOption(const wxString
& name
, int value
);
37 #endif // wxUSE_SYSTEM_OPTIONS
38 static wxString
GetOption(const wxString
& name
);
39 static int GetOptionInt(const wxString
& name
);
40 static bool HasOption(const wxString
& name
);
42 static bool IsFalse(const wxString
& name
)
44 return HasOption(name
) && GetOptionInt(name
) == 0;
48 #if !wxUSE_SYSTEM_OPTIONS
50 // define inline stubs for accessors to make it possible to use wxSystemOptions
51 // in the library itself without checking for wxUSE_SYSTEM_OPTIONS all the time
54 wxString
wxSystemOptions::GetOption(const wxString
& WXUNUSED(name
))
60 int wxSystemOptions::GetOptionInt(const wxString
& WXUNUSED(name
))
66 bool wxSystemOptions::HasOption(const wxString
& WXUNUSED(name
))
71 #endif // !wxUSE_SYSTEM_OPTIONS