]>
Commit | Line | Data |
---|---|---|
1 | ///////////////////////////////////////////////////////////////////////////// | |
2 | // Name: settings.cpp | |
3 | // Purpose: wxSettings | |
4 | // Author: David Webster | |
5 | // Modified by: | |
6 | // Created: 10/15/99 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) David Webster | |
9 | // Licence: wxWindows licence | |
10 | ///////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | // For compilers that support precompilation, includes "wx.h". | |
13 | #include "wx/wxprec.h" | |
14 | ||
15 | #ifndef WX_PRECOMP | |
16 | #include <stdio.h> | |
17 | #include "wx/defs.h" | |
18 | #include "wx/pen.h" | |
19 | #include "wx/brush.h" | |
20 | #include "wx/gdicmn.h" | |
21 | #endif | |
22 | ||
23 | #include "wx/settings.h" | |
24 | #include "wx/window.h" | |
25 | #include "wx/os2/private.h" | |
26 | ||
27 | // TODO: see ::SystemParametersInfo for all sorts of Windows settings. | |
28 | // Different args are required depending on the id. How does this differ | |
29 | // from GetSystemMetric, and should it? Perhaps call it GetSystemParameter | |
30 | // and pass an optional void* arg to get further info. | |
31 | // Should also have SetSystemParameter. | |
32 | // Also implement WM_WININICHANGE (NT) / WM_SETTINGCHANGE (Win95) | |
33 | wxColour wxSystemSettings::GetSystemColour(int index) | |
34 | { | |
35 | // TODO | |
36 | return wxColour(); | |
37 | } | |
38 | ||
39 | wxFont wxSystemSettings::GetSystemFont(int index) | |
40 | { | |
41 | // TODO | |
42 | switch (index) | |
43 | { | |
44 | case wxSYS_DEVICE_DEFAULT_FONT: | |
45 | { | |
46 | break; | |
47 | } | |
48 | case wxSYS_DEFAULT_PALETTE: | |
49 | { | |
50 | break; | |
51 | } | |
52 | case wxSYS_SYSTEM_FIXED_FONT: | |
53 | { | |
54 | break; | |
55 | } | |
56 | case wxSYS_SYSTEM_FONT: | |
57 | { | |
58 | break; | |
59 | } | |
60 | default: | |
61 | case wxSYS_DEFAULT_GUI_FONT: | |
62 | { | |
63 | break; | |
64 | } | |
65 | } | |
66 | ||
67 | return wxFont(); | |
68 | } | |
69 | ||
70 | // Get a system metric, e.g. scrollbar size | |
71 | int wxSystemSettings::GetSystemMetric(int index) | |
72 | { | |
73 | switch ( index) | |
74 | { | |
75 | case wxSYS_MOUSE_BUTTONS: | |
76 | // TODO | |
77 | return 0; | |
78 | case wxSYS_BORDER_X: | |
79 | // TODO | |
80 | return 0; | |
81 | case wxSYS_BORDER_Y: | |
82 | // TODO | |
83 | return 0; | |
84 | case wxSYS_CURSOR_X: | |
85 | // TODO | |
86 | return 0; | |
87 | case wxSYS_CURSOR_Y: | |
88 | // TODO | |
89 | return 0; | |
90 | case wxSYS_DCLICK_X: | |
91 | // TODO | |
92 | return 0; | |
93 | case wxSYS_DCLICK_Y: | |
94 | // TODO | |
95 | return 0; | |
96 | case wxSYS_DRAG_X: | |
97 | // TODO | |
98 | return 0; | |
99 | case wxSYS_DRAG_Y: | |
100 | // TODO | |
101 | return 0; | |
102 | case wxSYS_EDGE_X: | |
103 | // TODO | |
104 | return 0; | |
105 | case wxSYS_EDGE_Y: | |
106 | // TODO | |
107 | return 0; | |
108 | case wxSYS_HSCROLL_ARROW_X: | |
109 | // TODO | |
110 | return 0; | |
111 | case wxSYS_HSCROLL_ARROW_Y: | |
112 | // TODO | |
113 | return 0; | |
114 | case wxSYS_HTHUMB_X: | |
115 | // TODO | |
116 | return 0; | |
117 | case wxSYS_ICON_X: | |
118 | // TODO | |
119 | return 0; | |
120 | case wxSYS_ICON_Y: | |
121 | // TODO | |
122 | return 0; | |
123 | case wxSYS_ICONSPACING_X: | |
124 | // TODO | |
125 | return 0; | |
126 | case wxSYS_ICONSPACING_Y: | |
127 | // TODO | |
128 | return 0; | |
129 | case wxSYS_WINDOWMIN_X: | |
130 | // TODO | |
131 | return 0; | |
132 | case wxSYS_WINDOWMIN_Y: | |
133 | // TODO | |
134 | return 0; | |
135 | case wxSYS_SCREEN_X: | |
136 | // TODO | |
137 | return 0; | |
138 | case wxSYS_SCREEN_Y: | |
139 | // TODO | |
140 | return 0; | |
141 | case wxSYS_FRAMESIZE_X: | |
142 | // TODO | |
143 | return 0; | |
144 | case wxSYS_FRAMESIZE_Y: | |
145 | // TODO | |
146 | return 0; | |
147 | case wxSYS_SMALLICON_X: | |
148 | // TODO | |
149 | return 0; | |
150 | case wxSYS_SMALLICON_Y: | |
151 | // TODO | |
152 | return 0; | |
153 | case wxSYS_HSCROLL_Y: | |
154 | // TODO | |
155 | return 0; | |
156 | case wxSYS_VSCROLL_X: | |
157 | // TODO | |
158 | return 0; | |
159 | case wxSYS_VSCROLL_ARROW_X: | |
160 | // TODO | |
161 | return 0; | |
162 | case wxSYS_VSCROLL_ARROW_Y: | |
163 | // TODO | |
164 | return 0; | |
165 | case wxSYS_VTHUMB_Y: | |
166 | // TODO | |
167 | return 0; | |
168 | case wxSYS_CAPTION_Y: | |
169 | // TODO | |
170 | return 0; | |
171 | case wxSYS_MENU_Y: | |
172 | // TODO | |
173 | return 0; | |
174 | case wxSYS_NETWORK_PRESENT: | |
175 | // TODO | |
176 | return 0; | |
177 | case wxSYS_PENWINDOWS_PRESENT: | |
178 | // TODO | |
179 | return 0; | |
180 | case wxSYS_SHOW_SOUNDS: | |
181 | // TODO | |
182 | return 0; | |
183 | case wxSYS_SWAP_BUTTONS: | |
184 | // TODO | |
185 | return 0; | |
186 | default: | |
187 | return 0; | |
188 | } | |
189 | return 0; | |
190 | } | |
191 |