1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // TODO: these settings should probably be configurable from some central or
13 // per-user file, which can be edited using a Windows-control-panel clone.
14 // Also they should be documented better. Some are very MS Windows-ish.
16 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
17 #pragma implementation "settings.h"
20 #include "wx/settings.h"
21 #include "wx/gdicmn.h"
22 #include "wx/x11/private.h"
24 wxColour
wxSystemSettingsNative::GetColour(wxSystemColour index
)
28 case wxSYS_COLOUR_APPWORKSPACE
:
29 return wxColour( 0xc0c0c0 );
35 // Overridden mostly by wxSystemSettings::GetColour in wxUniversal
39 wxFont
wxSystemSettingsNative::GetFont(wxSystemFont index
)
43 case wxSYS_SYSTEM_FIXED_FONT
:
45 return wxFont(12, wxMODERN
, wxNORMAL
, wxNORMAL
, FALSE
);
48 case wxSYS_DEVICE_DEFAULT_FONT
:
49 case wxSYS_SYSTEM_FONT
:
50 case wxSYS_DEFAULT_GUI_FONT
:
53 return wxFont(12, wxSWISS
, wxNORMAL
, wxNORMAL
, FALSE
);
61 // Get a system metric, e.g. scrollbar size
62 int wxSystemSettingsNative::GetMetric(wxSystemMetric index
)
66 case wxSYS_MOUSE_BUTTONS
:
99 case wxSYS_HSCROLL_ARROW_X
:
102 case wxSYS_HSCROLL_ARROW_Y
:
114 case wxSYS_ICONSPACING_X
:
117 case wxSYS_ICONSPACING_Y
:
120 case wxSYS_WINDOWMIN_X
:
123 case wxSYS_WINDOWMIN_Y
:
127 return DisplayWidth( wxGlobalDisplay(), 0 );
130 return DisplayHeight( wxGlobalDisplay(), 0 );
132 case wxSYS_FRAMESIZE_X
:
135 case wxSYS_FRAMESIZE_Y
:
138 case wxSYS_SMALLICON_X
:
141 case wxSYS_SMALLICON_Y
:
144 case wxSYS_HSCROLL_Y
:
147 case wxSYS_VSCROLL_X
:
150 case wxSYS_VSCROLL_ARROW_X
:
153 case wxSYS_VSCROLL_ARROW_Y
:
159 case wxSYS_CAPTION_Y
:
165 case wxSYS_NETWORK_PRESENT
:
168 case wxSYS_PENWINDOWS_PRESENT
:
171 case wxSYS_SHOW_SOUNDS
:
174 case wxSYS_SWAP_BUTTONS
:
182 bool wxSystemSettingsNative::HasFeature(wxSystemFeature index
)
186 case wxSYS_CAN_ICONIZE_FRAME
:
187 case wxSYS_CAN_DRAW_FRAME_DECORATIONS
: