]> git.saurik.com Git - wxWidgets.git/blame - src/x11/settings.cpp
added missing headers to fix compilation without PCH
[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{
b28d3abf
JS
25 // Overridden by wxSystemSettings::GetColour in wxUniversal
26 // to do the Right Thing
27 return *wxWHITE;
83df96d6
JS
28}
29
30wxFont wxSystemSettingsNative::GetFont(wxSystemFont index)
31{
32 switch (index)
33 {
34 case wxSYS_SYSTEM_FIXED_FONT:
35 {
36 return wxFont(12, wxMODERN, wxNORMAL, wxNORMAL, FALSE);
37 break;
38 }
39 case wxSYS_DEVICE_DEFAULT_FONT:
40 case wxSYS_SYSTEM_FONT:
41 case wxSYS_DEFAULT_GUI_FONT:
42 default:
43 {
44 return wxFont(12, wxSWISS, wxNORMAL, wxNORMAL, FALSE);
45 break;
46 }
47 }
48
49 return wxFont();
50}
51
52// Get a system metric, e.g. scrollbar size
53int wxSystemSettingsNative::GetMetric(wxSystemMetric index)
54{
55 switch ( index)
56 {
57 case wxSYS_MOUSE_BUTTONS:
58 // TODO
59 return 0;
60 case wxSYS_BORDER_X:
61 // TODO
62 return 0;
63 case wxSYS_BORDER_Y:
64 // TODO
65 return 0;
66 case wxSYS_CURSOR_X:
67 // TODO
68 return 0;
69 case wxSYS_CURSOR_Y:
70 // TODO
71 return 0;
72 case wxSYS_DCLICK_X:
73 // TODO
74 return 0;
75 case wxSYS_DCLICK_Y:
76 // TODO
77 return 0;
78 case wxSYS_DRAG_X:
79 // TODO
80 return 0;
81 case wxSYS_DRAG_Y:
82 // TODO
83 return 0;
84 case wxSYS_EDGE_X:
85 // TODO
86 return 0;
87 case wxSYS_EDGE_Y:
88 // TODO
89 return 0;
90 case wxSYS_HSCROLL_ARROW_X:
91 // TODO
92 return 0;
93 case wxSYS_HSCROLL_ARROW_Y:
94 // TODO
95 return 0;
96 case wxSYS_HTHUMB_X:
97 // TODO
98 return 0;
99 case wxSYS_ICON_X:
100 // TODO
101 return 0;
102 case wxSYS_ICON_Y:
103 // TODO
104 return 0;
105 case wxSYS_ICONSPACING_X:
106 // TODO
107 return 0;
108 case wxSYS_ICONSPACING_Y:
109 // TODO
110 return 0;
111 case wxSYS_WINDOWMIN_X:
112 // TODO
113 return 0;
114 case wxSYS_WINDOWMIN_Y:
115 // TODO
116 return 0;
117 case wxSYS_SCREEN_X:
118 // TODO
119 return 0;
120 case wxSYS_SCREEN_Y:
121 // TODO
122 return 0;
123 case wxSYS_FRAMESIZE_X:
124 // TODO
125 return 0;
126 case wxSYS_FRAMESIZE_Y:
127 // TODO
128 return 0;
129 case wxSYS_SMALLICON_X:
130 // TODO
131 return 0;
132 case wxSYS_SMALLICON_Y:
133 // TODO
134 return 0;
135 case wxSYS_HSCROLL_Y:
136 // TODO
137 return 0;
138 case wxSYS_VSCROLL_X:
139 // TODO
140 return 0;
141 case wxSYS_VSCROLL_ARROW_X:
142 // TODO
143 return 0;
144 case wxSYS_VSCROLL_ARROW_Y:
145 // TODO
146 return 0;
147 case wxSYS_VTHUMB_Y:
148 // TODO
149 return 0;
150 case wxSYS_CAPTION_Y:
151 // TODO
152 return 0;
153 case wxSYS_MENU_Y:
154 // TODO
155 return 0;
156 case wxSYS_NETWORK_PRESENT:
157 // TODO
158 return 0;
159 case wxSYS_PENWINDOWS_PRESENT:
160 // TODO
161 return 0;
162 case wxSYS_SHOW_SOUNDS:
163 // TODO
164 return 0;
165 case wxSYS_SWAP_BUTTONS:
166 // TODO
167 return 0;
168 default:
169 return 0;
170 }
171}
172
173bool wxSystemSettingsNative::HasFeature(wxSystemFeature index)
174{
175 switch (index)
176 {
177 case wxSYS_CAN_ICONIZE_FRAME:
178 case wxSYS_CAN_DRAW_FRAME_DECORATIONS:
179 return TRUE;
180
181 default:
182 return FALSE;
183 }
184}