/[pcsx2_0.9.7]/branch/r3113_0.9.7_beta/3rdparty/wxWidgets/include/wx/settings.h
ViewVC logotype

Contents of /branch/r3113_0.9.7_beta/3rdparty/wxWidgets/include/wx/settings.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 32 - (show annotations) (download)
Tue Sep 7 03:29:01 2010 UTC (9 years, 5 months ago) by william
File MIME type: text/plain
File size: 6353 byte(s)
branching from upstream revision (http://pcsx2.googlecode.com/svn/trunk
): r3113 to
https://svn.netsolutions.dnsalias.com/websvn/ps2/pcsx2/pcsx2_0.9.7/branch/r3113_0.9.7_beta
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/settings.h
3 // Purpose: wxSystemSettings class
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 01/02/97
7 // RCS-ID: $Id: settings.h 57542 2008-12-25 13:03:24Z VZ $
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_SETTINGS_H_BASE_
13 #define _WX_SETTINGS_H_BASE_
14
15 #include "wx/colour.h"
16 #include "wx/font.h"
17
18 class WXDLLIMPEXP_FWD_CORE wxWindow;
19
20 // possible values for wxSystemSettings::GetFont() parameter
21 //
22 // NB: wxMSW assumes that they have the same values as the parameters of
23 // Windows GetStockObject() API, don't change the values!
24 enum wxSystemFont
25 {
26 wxSYS_OEM_FIXED_FONT = 10,
27 wxSYS_ANSI_FIXED_FONT,
28 wxSYS_ANSI_VAR_FONT,
29 wxSYS_SYSTEM_FONT,
30 wxSYS_DEVICE_DEFAULT_FONT,
31 wxSYS_DEFAULT_PALETTE,
32 wxSYS_SYSTEM_FIXED_FONT,
33 wxSYS_DEFAULT_GUI_FONT,
34
35 // this was just a temporary aberration, do not use it any more
36 wxSYS_ICONTITLE_FONT = wxSYS_DEFAULT_GUI_FONT
37 };
38
39 // possible values for wxSystemSettings::GetColour() parameter
40 //
41 // NB: wxMSW assumes that they have the same values as the parameters of
42 // Windows GetSysColor() API, don't change the values!
43 enum wxSystemColour
44 {
45 wxSYS_COLOUR_SCROLLBAR,
46 wxSYS_COLOUR_BACKGROUND,
47 wxSYS_COLOUR_DESKTOP = wxSYS_COLOUR_BACKGROUND,
48 wxSYS_COLOUR_ACTIVECAPTION,
49 wxSYS_COLOUR_INACTIVECAPTION,
50 wxSYS_COLOUR_MENU,
51 wxSYS_COLOUR_WINDOW,
52 wxSYS_COLOUR_WINDOWFRAME,
53 wxSYS_COLOUR_MENUTEXT,
54 wxSYS_COLOUR_WINDOWTEXT,
55 wxSYS_COLOUR_CAPTIONTEXT,
56 wxSYS_COLOUR_ACTIVEBORDER,
57 wxSYS_COLOUR_INACTIVEBORDER,
58 wxSYS_COLOUR_APPWORKSPACE,
59 wxSYS_COLOUR_HIGHLIGHT,
60 wxSYS_COLOUR_HIGHLIGHTTEXT,
61 wxSYS_COLOUR_BTNFACE,
62 wxSYS_COLOUR_3DFACE = wxSYS_COLOUR_BTNFACE,
63 wxSYS_COLOUR_BTNSHADOW,
64 wxSYS_COLOUR_3DSHADOW = wxSYS_COLOUR_BTNSHADOW,
65 wxSYS_COLOUR_GRAYTEXT,
66 wxSYS_COLOUR_BTNTEXT,
67 wxSYS_COLOUR_INACTIVECAPTIONTEXT,
68 wxSYS_COLOUR_BTNHIGHLIGHT,
69 wxSYS_COLOUR_BTNHILIGHT = wxSYS_COLOUR_BTNHIGHLIGHT,
70 wxSYS_COLOUR_3DHIGHLIGHT = wxSYS_COLOUR_BTNHIGHLIGHT,
71 wxSYS_COLOUR_3DHILIGHT = wxSYS_COLOUR_BTNHIGHLIGHT,
72 wxSYS_COLOUR_3DDKSHADOW,
73 wxSYS_COLOUR_3DLIGHT,
74 wxSYS_COLOUR_INFOTEXT,
75 wxSYS_COLOUR_INFOBK,
76 wxSYS_COLOUR_LISTBOX,
77 wxSYS_COLOUR_HOTLIGHT,
78 wxSYS_COLOUR_GRADIENTACTIVECAPTION,
79 wxSYS_COLOUR_GRADIENTINACTIVECAPTION,
80 wxSYS_COLOUR_MENUHILIGHT,
81 wxSYS_COLOUR_MENUBAR,
82 wxSYS_COLOUR_LISTBOXTEXT,
83
84 wxSYS_COLOUR_MAX
85 };
86
87 // possible values for wxSystemSettings::GetMetric() index parameter
88 //
89 // NB: update the conversion table in msw/settings.cpp if you change the values
90 // of the elements of this enum
91 enum wxSystemMetric
92 {
93 wxSYS_MOUSE_BUTTONS = 1,
94 wxSYS_BORDER_X,
95 wxSYS_BORDER_Y,
96 wxSYS_CURSOR_X,
97 wxSYS_CURSOR_Y,
98 wxSYS_DCLICK_X,
99 wxSYS_DCLICK_Y,
100 wxSYS_DRAG_X,
101 wxSYS_DRAG_Y,
102 wxSYS_EDGE_X,
103 wxSYS_EDGE_Y,
104 wxSYS_HSCROLL_ARROW_X,
105 wxSYS_HSCROLL_ARROW_Y,
106 wxSYS_HTHUMB_X,
107 wxSYS_ICON_X,
108 wxSYS_ICON_Y,
109 wxSYS_ICONSPACING_X,
110 wxSYS_ICONSPACING_Y,
111 wxSYS_WINDOWMIN_X,
112 wxSYS_WINDOWMIN_Y,
113 wxSYS_SCREEN_X,
114 wxSYS_SCREEN_Y,
115 wxSYS_FRAMESIZE_X,
116 wxSYS_FRAMESIZE_Y,
117 wxSYS_SMALLICON_X,
118 wxSYS_SMALLICON_Y,
119 wxSYS_HSCROLL_Y,
120 wxSYS_VSCROLL_X,
121 wxSYS_VSCROLL_ARROW_X,
122 wxSYS_VSCROLL_ARROW_Y,
123 wxSYS_VTHUMB_Y,
124 wxSYS_CAPTION_Y,
125 wxSYS_MENU_Y,
126 wxSYS_NETWORK_PRESENT,
127 wxSYS_PENWINDOWS_PRESENT,
128 wxSYS_SHOW_SOUNDS,
129 wxSYS_SWAP_BUTTONS
130 };
131
132 // possible values for wxSystemSettings::HasFeature() parameter
133 enum wxSystemFeature
134 {
135 wxSYS_CAN_DRAW_FRAME_DECORATIONS = 1,
136 wxSYS_CAN_ICONIZE_FRAME,
137 wxSYS_TABLET_PRESENT
138 };
139
140 // values for different screen designs
141 enum wxSystemScreenType
142 {
143 wxSYS_SCREEN_NONE = 0, // not yet defined
144
145 wxSYS_SCREEN_TINY, // <
146 wxSYS_SCREEN_PDA, // >= 320x240
147 wxSYS_SCREEN_SMALL, // >= 640x480
148 wxSYS_SCREEN_DESKTOP // >= 800x600
149 };
150
151 // ----------------------------------------------------------------------------
152 // wxSystemSettingsNative: defines the API for wxSystemSettings class
153 // ----------------------------------------------------------------------------
154
155 // this is a namespace rather than a class: it has only non virtual static
156 // functions
157 //
158 // also note that the methods are implemented in the platform-specific source
159 // files (i.e. this is not a real base class as we can't override its virtual
160 // functions because it doesn't have any)
161
162 class WXDLLEXPORT wxSystemSettingsNative
163 {
164 public:
165 // get a standard system colour
166 static wxColour GetColour(wxSystemColour index);
167
168 // get a standard system font
169 static wxFont GetFont(wxSystemFont index);
170
171 // get a system-dependent metric
172 static int GetMetric(wxSystemMetric index, wxWindow * win = NULL);
173
174 // return true if the port has certain feature
175 static bool HasFeature(wxSystemFeature index);
176 };
177
178 // ----------------------------------------------------------------------------
179 // include the declaration of the real platform-dependent class
180 // ----------------------------------------------------------------------------
181
182 class WXDLLEXPORT wxSystemSettings : public wxSystemSettingsNative
183 {
184 public:
185 #ifdef __WXUNIVERSAL__
186 // in wxUniversal we want to use the theme standard colours instead of the
187 // system ones, otherwise wxSystemSettings is just the same as
188 // wxSystemSettingsNative
189 static wxColour GetColour(wxSystemColour index);
190 #endif // __WXUNIVERSAL__
191
192 // Get system screen design (desktop, pda, ..) used for
193 // laying out various dialogs.
194 static wxSystemScreenType GetScreenType();
195
196 // Override default.
197 static void SetScreenType( wxSystemScreenType screen );
198
199 // Value
200 static wxSystemScreenType ms_screen;
201
202 #if WXWIN_COMPATIBILITY_2_4
203 // the backwards compatible versions of wxSystemSettingsNative functions,
204 // don't use these methods in the new code!
205 wxDEPRECATED(static wxColour GetSystemColour(int index));
206 wxDEPRECATED(static wxFont GetSystemFont(int index));
207 wxDEPRECATED(static int GetSystemMetric(int index));
208 #endif
209 };
210
211 #endif
212 // _WX_SETTINGS_H_BASE_
213

  ViewVC Help
Powered by ViewVC 1.1.22