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
);
39 #if !wxUSE_SYSTEM_OPTIONS
41 // define inline stubs for accessors to make it possible to use wxSystemOptions
42 // in the library itself without checking for wxUSE_SYSTEM_OPTIONS all the time
45 wxString
wxSystemOptions::GetOption(const wxString
& WXUNUSED(name
))
51 int wxSystemOptions::GetOptionInt(const wxString
& WXUNUSED(name
))
57 bool wxSystemOptions::HasOption(const wxString
& WXUNUSED(name
))
62 #endif // !wxUSE_SYSTEM_OPTIONS