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