]> git.saurik.com Git - wxWidgets.git/blob - src/motif/settings.cpp
Dialog unit mods; wxProp tidying
[wxWidgets.git] / src / motif / settings.cpp
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
23 wxColour wxSystemSettings::GetSystemColour(int index)
24 {
25 switch (index)
26 {
27 case wxSYS_COLOUR_SCROLLBAR:
28 // case wxSYS_COLOUR_DESKTOP: // Same as wxSYS_COLOUR_BACKGROUND
29 case wxSYS_COLOUR_BACKGROUND:
30 case wxSYS_COLOUR_ACTIVECAPTION:
31 case wxSYS_COLOUR_INACTIVECAPTION:
32 case wxSYS_COLOUR_MENU:
33 case wxSYS_COLOUR_WINDOW:
34 case wxSYS_COLOUR_WINDOWFRAME:
35 case wxSYS_COLOUR_ACTIVEBORDER:
36 case wxSYS_COLOUR_INACTIVEBORDER:
37 case wxSYS_COLOUR_BTNFACE:
38 // case wxSYS_COLOUR_3DFACE: // Same as wxSYS_COLOUR_BTNFACE
39 case wxSYS_COLOUR_GRAYTEXT:
40 {
41 return wxColour("LIGHT GREY");
42 }
43 case wxSYS_COLOUR_BTNSHADOW:
44 // case wxSYS_COLOUR_3DSHADOW: // Same as wxSYS_COLOUR_BTNSHADOW
45 {
46 return wxColour("GREY");
47 }
48 case wxSYS_COLOUR_3DDKSHADOW:
49 {
50 return *wxBLACK;
51 }
52 case wxSYS_COLOUR_HIGHLIGHT:
53 case wxSYS_COLOUR_BTNHIGHLIGHT:
54 // case wxSYS_COLOUR_3DHIGHLIGHT: // Same as wxSYS_COLOUR_BTNHIGHLIGHT
55 {
56 return *wxWHITE;
57 }
58 case wxSYS_COLOUR_3DLIGHT:
59 {
60 return wxColour("LIGHT GREY");
61 }
62 case wxSYS_COLOUR_MENUTEXT:
63 case wxSYS_COLOUR_WINDOWTEXT:
64 case wxSYS_COLOUR_CAPTIONTEXT:
65 case wxSYS_COLOUR_INACTIVECAPTIONTEXT:
66 case wxSYS_COLOUR_INFOTEXT:
67 {
68 return *wxBLACK;
69 }
70 case wxSYS_COLOUR_HIGHLIGHTTEXT:
71 {
72 return *wxWHITE;
73 }
74 case wxSYS_COLOUR_INFOBK:
75 case wxSYS_COLOUR_APPWORKSPACE:
76 {
77 return *wxWHITE;
78 }
79 }
80 return *wxWHITE;
81 }
82
83 wxFont wxSystemSettings::GetSystemFont(int index)
84 {
85 switch (index)
86 {
87 case wxSYS_SYSTEM_FIXED_FONT:
88 {
89 return wxFont(12, wxMODERN, wxNORMAL, wxNORMAL, FALSE);
90 break;
91 }
92 case wxSYS_DEVICE_DEFAULT_FONT:
93 case wxSYS_SYSTEM_FONT:
94 case wxSYS_DEFAULT_GUI_FONT:
95 default:
96 {
97 return wxFont(12, wxSWISS, wxNORMAL, wxNORMAL, FALSE);
98 break;
99 }
100 }
101
102 return wxFont();
103 }
104
105 // Get a system metric, e.g. scrollbar size
106 int wxSystemSettings::GetSystemMetric(int index)
107 {
108 switch ( index)
109 {
110 case wxSYS_MOUSE_BUTTONS:
111 // TODO
112 return 0;
113 case wxSYS_BORDER_X:
114 // TODO
115 return 0;
116 case wxSYS_BORDER_Y:
117 // TODO
118 return 0;
119 case wxSYS_CURSOR_X:
120 // TODO
121 return 0;
122 case wxSYS_CURSOR_Y:
123 // TODO
124 return 0;
125 case wxSYS_DCLICK_X:
126 // TODO
127 return 0;
128 case wxSYS_DCLICK_Y:
129 // TODO
130 return 0;
131 case wxSYS_DRAG_X:
132 // TODO
133 return 0;
134 case wxSYS_DRAG_Y:
135 // TODO
136 return 0;
137 case wxSYS_EDGE_X:
138 // TODO
139 return 0;
140 case wxSYS_EDGE_Y:
141 // TODO
142 return 0;
143 case wxSYS_HSCROLL_ARROW_X:
144 // TODO
145 return 0;
146 case wxSYS_HSCROLL_ARROW_Y:
147 // TODO
148 return 0;
149 case wxSYS_HTHUMB_X:
150 // TODO
151 return 0;
152 case wxSYS_ICON_X:
153 // TODO
154 return 0;
155 case wxSYS_ICON_Y:
156 // TODO
157 return 0;
158 case wxSYS_ICONSPACING_X:
159 // TODO
160 return 0;
161 case wxSYS_ICONSPACING_Y:
162 // TODO
163 return 0;
164 case wxSYS_WINDOWMIN_X:
165 // TODO
166 return 0;
167 case wxSYS_WINDOWMIN_Y:
168 // TODO
169 return 0;
170 case wxSYS_SCREEN_X:
171 // TODO
172 return 0;
173 case wxSYS_SCREEN_Y:
174 // TODO
175 return 0;
176 case wxSYS_FRAMESIZE_X:
177 // TODO
178 return 0;
179 case wxSYS_FRAMESIZE_Y:
180 // TODO
181 return 0;
182 case wxSYS_SMALLICON_X:
183 // TODO
184 return 0;
185 case wxSYS_SMALLICON_Y:
186 // TODO
187 return 0;
188 case wxSYS_HSCROLL_Y:
189 // TODO
190 return 0;
191 case wxSYS_VSCROLL_X:
192 // TODO
193 return 0;
194 case wxSYS_VSCROLL_ARROW_X:
195 // TODO
196 return 0;
197 case wxSYS_VSCROLL_ARROW_Y:
198 // TODO
199 return 0;
200 case wxSYS_VTHUMB_Y:
201 // TODO
202 return 0;
203 case wxSYS_CAPTION_Y:
204 // TODO
205 return 0;
206 case wxSYS_MENU_Y:
207 // TODO
208 return 0;
209 case wxSYS_NETWORK_PRESENT:
210 // TODO
211 return 0;
212 case wxSYS_PENWINDOWS_PRESENT:
213 // TODO
214 return 0;
215 case wxSYS_SHOW_SOUNDS:
216 // TODO
217 return 0;
218 case wxSYS_SWAP_BUTTONS:
219 // TODO
220 return 0;
221 default:
222 return 0;
223 }
224 return 0;
225 }
226