]> git.saurik.com Git - wxWidgets.git/blame - src/os2/settings.cpp
VTK wrapper of vtkRenderWindow for wxPython. Tested on MSW so far.
[wxWidgets.git] / src / os2 / settings.cpp
CommitLineData
0e320a79
DW
1/////////////////////////////////////////////////////////////////////////////
2// Name: settings.cpp
3// Purpose: wxSettings
409c9842 4// Author: David Webster
0e320a79 5// Modified by:
409c9842 6// Created: 10/15/99
0e320a79 7// RCS-ID: $Id$
409c9842
DW
8// Copyright: (c) David Webster
9// Licence: wxWindows licence
0e320a79
DW
10/////////////////////////////////////////////////////////////////////////////
11
409c9842
DW
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"
0e320a79
DW
21#endif
22
23#include "wx/settings.h"
409c9842
DW
24#include "wx/window.h"
25#include "wx/os2/private.h"
0e320a79 26
409c9842
DW
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)
0e320a79
DW
33wxColour wxSystemSettings::GetSystemColour(int index)
34{
35 // TODO
409c9842 36 return wxColour();
0e320a79
DW
37}
38
39wxFont 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
71int wxSystemSettings::GetSystemMetric(int index)
72{
409c9842
DW
73 switch ( index)
74 {
0e320a79
DW
75 case wxSYS_MOUSE_BUTTONS:
76 // TODO
409c9842 77 return 0;
0e320a79
DW
78 case wxSYS_BORDER_X:
79 // TODO
409c9842 80 return 0;
0e320a79
DW
81 case wxSYS_BORDER_Y:
82 // TODO
409c9842 83 return 0;
0e320a79
DW
84 case wxSYS_CURSOR_X:
85 // TODO
409c9842 86 return 0;
0e320a79
DW
87 case wxSYS_CURSOR_Y:
88 // TODO
409c9842 89 return 0;
0e320a79
DW
90 case wxSYS_DCLICK_X:
91 // TODO
409c9842 92 return 0;
0e320a79
DW
93 case wxSYS_DCLICK_Y:
94 // TODO
409c9842 95 return 0;
0e320a79
DW
96 case wxSYS_DRAG_X:
97 // TODO
409c9842 98 return 0;
0e320a79
DW
99 case wxSYS_DRAG_Y:
100 // TODO
409c9842 101 return 0;
0e320a79
DW
102 case wxSYS_EDGE_X:
103 // TODO
409c9842 104 return 0;
0e320a79
DW
105 case wxSYS_EDGE_Y:
106 // TODO
409c9842 107 return 0;
0e320a79
DW
108 case wxSYS_HSCROLL_ARROW_X:
109 // TODO
409c9842 110 return 0;
0e320a79
DW
111 case wxSYS_HSCROLL_ARROW_Y:
112 // TODO
409c9842 113 return 0;
0e320a79
DW
114 case wxSYS_HTHUMB_X:
115 // TODO
409c9842 116 return 0;
0e320a79
DW
117 case wxSYS_ICON_X:
118 // TODO
409c9842 119 return 0;
0e320a79
DW
120 case wxSYS_ICON_Y:
121 // TODO
409c9842 122 return 0;
0e320a79
DW
123 case wxSYS_ICONSPACING_X:
124 // TODO
409c9842 125 return 0;
0e320a79
DW
126 case wxSYS_ICONSPACING_Y:
127 // TODO
409c9842 128 return 0;
0e320a79
DW
129 case wxSYS_WINDOWMIN_X:
130 // TODO
409c9842 131 return 0;
0e320a79
DW
132 case wxSYS_WINDOWMIN_Y:
133 // TODO
409c9842 134 return 0;
0e320a79
DW
135 case wxSYS_SCREEN_X:
136 // TODO
409c9842 137 return 0;
0e320a79
DW
138 case wxSYS_SCREEN_Y:
139 // TODO
409c9842 140 return 0;
0e320a79
DW
141 case wxSYS_FRAMESIZE_X:
142 // TODO
409c9842 143 return 0;
0e320a79
DW
144 case wxSYS_FRAMESIZE_Y:
145 // TODO
409c9842 146 return 0;
0e320a79
DW
147 case wxSYS_SMALLICON_X:
148 // TODO
409c9842 149 return 0;
0e320a79
DW
150 case wxSYS_SMALLICON_Y:
151 // TODO
409c9842 152 return 0;
0e320a79
DW
153 case wxSYS_HSCROLL_Y:
154 // TODO
409c9842 155 return 0;
0e320a79
DW
156 case wxSYS_VSCROLL_X:
157 // TODO
409c9842 158 return 0;
0e320a79
DW
159 case wxSYS_VSCROLL_ARROW_X:
160 // TODO
409c9842 161 return 0;
0e320a79
DW
162 case wxSYS_VSCROLL_ARROW_Y:
163 // TODO
409c9842 164 return 0;
0e320a79
DW
165 case wxSYS_VTHUMB_Y:
166 // TODO
409c9842 167 return 0;
0e320a79
DW
168 case wxSYS_CAPTION_Y:
169 // TODO
409c9842 170 return 0;
0e320a79
DW
171 case wxSYS_MENU_Y:
172 // TODO
409c9842 173 return 0;
0e320a79
DW
174 case wxSYS_NETWORK_PRESENT:
175 // TODO
409c9842 176 return 0;
0e320a79
DW
177 case wxSYS_PENWINDOWS_PRESENT:
178 // TODO
409c9842 179 return 0;
0e320a79
DW
180 case wxSYS_SHOW_SOUNDS:
181 // TODO
409c9842 182 return 0;
0e320a79
DW
183 case wxSYS_SWAP_BUTTONS:
184 // TODO
409c9842
DW
185 return 0;
186 default:
187 return 0;
188 }
189 return 0;
0e320a79
DW
190}
191