]> git.saurik.com Git - wxWidgets.git/blame - src/x11/settings.cpp
Rename wxGenericImageList to wxImageList in generic wxListCtrl, too.
[wxWidgets.git] / src / x11 / settings.cpp
CommitLineData
83df96d6
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: settings.cpp
3// Purpose: wxSettings
4// Author: Julian Smart
5// Modified by:
6// Created: 17/09/98
7// RCS-ID: $Id$
8// Copyright: (c) Julian Smart
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
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.
15
16#ifdef __GNUG__
17#pragma implementation "settings.h"
18#endif
19
20#include "wx/settings.h"
21#include "wx/gdicmn.h"
22
23wxColour wxSystemSettingsNative::GetColour(wxSystemColour index)
24{
c2c0dabf
RR
25 switch (index)
26 {
27 case wxSYS_COLOUR_APPWORKSPACE:
28 return wxColour( 0xc0c0c0 );
29
30 default:
31 break;
32 }
33
34 // Overridden mostly by wxSystemSettings::GetColour in wxUniversal
b28d3abf 35 return *wxWHITE;
83df96d6
JS
36}
37
38wxFont wxSystemSettingsNative::GetFont(wxSystemFont index)
39{
40 switch (index)
41 {
42 case wxSYS_SYSTEM_FIXED_FONT:
43 {
44 return wxFont(12, wxMODERN, wxNORMAL, wxNORMAL, FALSE);
45 break;
46 }
47 case wxSYS_DEVICE_DEFAULT_FONT:
48 case wxSYS_SYSTEM_FONT:
49 case wxSYS_DEFAULT_GUI_FONT:
50 default:
51 {
52 return wxFont(12, wxSWISS, wxNORMAL, wxNORMAL, FALSE);
53 break;
54 }
55 }
56
57 return wxFont();
58}
59
60// Get a system metric, e.g. scrollbar size
61int wxSystemSettingsNative::GetMetric(wxSystemMetric index)
62{
63 switch ( index)
64 {
65 case wxSYS_MOUSE_BUTTONS:
66 // TODO
67 return 0;
68 case wxSYS_BORDER_X:
69 // TODO
70 return 0;
71 case wxSYS_BORDER_Y:
72 // TODO
73 return 0;
74 case wxSYS_CURSOR_X:
75 // TODO
76 return 0;
77 case wxSYS_CURSOR_Y:
78 // TODO
79 return 0;
80 case wxSYS_DCLICK_X:
81 // TODO
82 return 0;
83 case wxSYS_DCLICK_Y:
84 // TODO
85 return 0;
86 case wxSYS_DRAG_X:
87 // TODO
88 return 0;
89 case wxSYS_DRAG_Y:
90 // TODO
91 return 0;
92 case wxSYS_EDGE_X:
93 // TODO
94 return 0;
95 case wxSYS_EDGE_Y:
96 // TODO
97 return 0;
98 case wxSYS_HSCROLL_ARROW_X:
99 // TODO
100 return 0;
101 case wxSYS_HSCROLL_ARROW_Y:
102 // TODO
103 return 0;
104 case wxSYS_HTHUMB_X:
105 // TODO
106 return 0;
107 case wxSYS_ICON_X:
108 // TODO
109 return 0;
110 case wxSYS_ICON_Y:
111 // TODO
112 return 0;
113 case wxSYS_ICONSPACING_X:
114 // TODO
115 return 0;
116 case wxSYS_ICONSPACING_Y:
117 // TODO
118 return 0;
119 case wxSYS_WINDOWMIN_X:
120 // TODO
121 return 0;
122 case wxSYS_WINDOWMIN_Y:
123 // TODO
124 return 0;
125 case wxSYS_SCREEN_X:
126 // TODO
127 return 0;
128 case wxSYS_SCREEN_Y:
129 // TODO
130 return 0;
131 case wxSYS_FRAMESIZE_X:
132 // TODO
133 return 0;
134 case wxSYS_FRAMESIZE_Y:
135 // TODO
136 return 0;
137 case wxSYS_SMALLICON_X:
138 // TODO
139 return 0;
140 case wxSYS_SMALLICON_Y:
141 // TODO
142 return 0;
143 case wxSYS_HSCROLL_Y:
144 // TODO
145 return 0;
146 case wxSYS_VSCROLL_X:
147 // TODO
148 return 0;
149 case wxSYS_VSCROLL_ARROW_X:
150 // TODO
151 return 0;
152 case wxSYS_VSCROLL_ARROW_Y:
153 // TODO
154 return 0;
155 case wxSYS_VTHUMB_Y:
156 // TODO
157 return 0;
158 case wxSYS_CAPTION_Y:
159 // TODO
160 return 0;
161 case wxSYS_MENU_Y:
162 // TODO
163 return 0;
164 case wxSYS_NETWORK_PRESENT:
165 // TODO
166 return 0;
167 case wxSYS_PENWINDOWS_PRESENT:
168 // TODO
169 return 0;
170 case wxSYS_SHOW_SOUNDS:
171 // TODO
172 return 0;
173 case wxSYS_SWAP_BUTTONS:
174 // TODO
175 return 0;
176 default:
177 return 0;
178 }
179}
180
181bool wxSystemSettingsNative::HasFeature(wxSystemFeature index)
182{
183 switch (index)
184 {
185 case wxSYS_CAN_ICONIZE_FRAME:
186 case wxSYS_CAN_DRAW_FRAME_DECORATIONS:
187 return TRUE;
188
189 default:
190 return FALSE;
191 }
192}