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 // ----------------------------------------------------------------------------
21 class WXDLLIMPEXP_BASE wxSystemOptions
: public wxObject
26 // User-customizable hints to wxWidgets or associated libraries
27 // These could also be used to influence GetSystem... calls, indeed
28 // to implement SetSystemColour/Font/Metric
30 #if wxUSE_SYSTEM_OPTIONS
31 static void SetOption(const wxString
& name
, const wxString
& value
);
32 static void SetOption(const wxString
& name
, int value
);
33 #endif // wxUSE_SYSTEM_OPTIONS
34 static wxString
GetOption(const wxString
& name
);
35 static int GetOptionInt(const wxString
& name
);
36 static bool HasOption(const wxString
& name
);
38 static bool IsFalse(const wxString
& name
)
40 return HasOption(name
) && GetOptionInt(name
) == 0;
44 #if !wxUSE_SYSTEM_OPTIONS
46 // define inline stubs for accessors to make it possible to use wxSystemOptions
47 // in the library itself without checking for wxUSE_SYSTEM_OPTIONS all the time
50 wxString
wxSystemOptions::GetOption(const wxString
& WXUNUSED(name
))
56 int wxSystemOptions::GetOptionInt(const wxString
& WXUNUSED(name
))
62 bool wxSystemOptions::HasOption(const wxString
& WXUNUSED(name
))
67 #endif // !wxUSE_SYSTEM_OPTIONS