]> git.saurik.com Git - wxWidgets.git/blame - include/wx/sysopt.h
1. extracted MSW-specific part of wxDynamicLibrary in msw/dlmsw.cpp
[wxWidgets.git] / include / wx / sysopt.h
CommitLineData
0cbff120
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: sysopt.h
3// Purpose: wxSystemOptions
4// Author: Julian Smart
5// Modified by:
6// Created: 2001-07-10
7// RCS-ID: $Id$
8// Copyright: (c) Julian Smart
d775fa82 9// Licence: wxWindows licence
0cbff120
JS
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_SYSOPT_H_
13#define _WX_SYSOPT_H_
14
15#include "wx/object.h"
16
0cbff120 17// ----------------------------------------------------------------------------
77ffb593 18// Enables an application to influence the wxWidgets implementation
0cbff120
JS
19// ----------------------------------------------------------------------------
20
bddd7a8d 21class WXDLLIMPEXP_BASE wxSystemOptions : public wxObject
0cbff120
JS
22{
23public:
24 wxSystemOptions() { }
25
77ffb593 26 // User-customizable hints to wxWidgets or associated libraries
0cbff120
JS
27 // These could also be used to influence GetSystem... calls, indeed
28 // to implement SetSystemColour/Font/Metric
29
1972900e 30#if wxUSE_SYSTEM_OPTIONS
0cbff120
JS
31 static void SetOption(const wxString& name, const wxString& value);
32 static void SetOption(const wxString& name, int value);
1972900e
VZ
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);
0cbff120
JS
37};
38
1972900e
VZ
39#if !wxUSE_SYSTEM_OPTIONS
40
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
43
44/* static */ inline
45wxString wxSystemOptions::GetOption(const wxString& WXUNUSED(name))
46{
47 return wxEmptyString;
48}
49
50/* static */ inline
51int wxSystemOptions::GetOptionInt(const wxString& WXUNUSED(name))
52{
53 return 0;
54}
55
56/* static */ inline
57bool wxSystemOptions::HasOption(const wxString& WXUNUSED(name))
58{
59 return false;
60}
0cbff120 61
1972900e 62#endif // !wxUSE_SYSTEM_OPTIONS
0cbff120
JS
63
64#endif
65 // _WX_SYSOPT_H_
66