X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1972900ebf36cdec7feb9083854a12ef4bf45d2c..f6669958924c3c3833e2932b65598b06073d2e65:/include/wx/sysopt.h diff --git a/include/wx/sysopt.h b/include/wx/sysopt.h index 90d802215b..5dde52c6dd 100644 --- a/include/wx/sysopt.h +++ b/include/wx/sysopt.h @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: sysopt.h +// Name: wx/sysopt.h // Purpose: wxSystemOptions // Author: Julian Smart // Modified by: @@ -18,7 +18,11 @@ // Enables an application to influence the wxWidgets implementation // ---------------------------------------------------------------------------- -class WXDLLIMPEXP_BASE wxSystemOptions : public wxObject +class +#if wxUSE_SYSTEM_OPTIONS +WXDLLIMPEXP_BASE +#endif +wxSystemOptions : public wxObject { public: wxSystemOptions() { } @@ -34,6 +38,11 @@ public: static wxString GetOption(const wxString& name); static int GetOptionInt(const wxString& name); static bool HasOption(const wxString& name); + + static bool IsFalse(const wxString& name) + { + return HasOption(name) && GetOptionInt(name) == 0; + } }; #if !wxUSE_SYSTEM_OPTIONS