]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/sysopt.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxSystemOptions
4 // Author: Julian Smart
7 // Copyright: (c) Julian Smart
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
14 #include "wx/object.h"
16 // ----------------------------------------------------------------------------
17 // Enables an application to influence the wxWidgets implementation
18 // ----------------------------------------------------------------------------
21 #if wxUSE_SYSTEM_OPTIONS
24 wxSystemOptions
: public wxObject
29 // User-customizable hints to wxWidgets or associated libraries
30 // These could also be used to influence GetSystem... calls, indeed
31 // to implement SetSystemColour/Font/Metric
33 #if wxUSE_SYSTEM_OPTIONS
34 static void SetOption(const wxString
& name
, const wxString
& value
);
35 static void SetOption(const wxString
& name
, int value
);
36 #endif // wxUSE_SYSTEM_OPTIONS
37 static wxString
GetOption(const wxString
& name
);
38 static int GetOptionInt(const wxString
& name
);
39 static bool HasOption(const wxString
& name
);
41 static bool IsFalse(const wxString
& name
)
43 return HasOption(name
) && GetOptionInt(name
) == 0;
47 #if !wxUSE_SYSTEM_OPTIONS
49 // define inline stubs for accessors to make it possible to use wxSystemOptions
50 // in the library itself without checking for wxUSE_SYSTEM_OPTIONS all the time
53 wxString
wxSystemOptions::GetOption(const wxString
& WXUNUSED(name
))
59 int wxSystemOptions::GetOptionInt(const wxString
& WXUNUSED(name
))
65 bool wxSystemOptions::HasOption(const wxString
& WXUNUSED(name
))
70 #endif // !wxUSE_SYSTEM_OPTIONS