wxSystemSettings::GetMetric returns -1 if the metric is not supported
by the port. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29554 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -217,6 +217,9 @@ All:
|
|||||||
- active mode support in wxFTP (Randall Fox)
|
- active mode support in wxFTP (Randall Fox)
|
||||||
- sped up wxHTTP and wxFTP
|
- sped up wxHTTP and wxFTP
|
||||||
- added wxStringInput/OutputStreams
|
- added wxStringInput/OutputStreams
|
||||||
|
- wxSystemSettings::GetMetric now returns -1 for metrics that are not
|
||||||
|
supported, instead of zero.
|
||||||
|
|
||||||
|
|
||||||
All (GUI):
|
All (GUI):
|
||||||
|
|
||||||
|
@@ -99,7 +99,8 @@ standalone function named {\tt wxSystemSettings\_GetFont}}
|
|||||||
|
|
||||||
\func{static int}{GetMetric}{\param{wxSystemMetric}{ index}}
|
\func{static int}{GetMetric}{\param{wxSystemMetric}{ index}}
|
||||||
|
|
||||||
Returns a system metric.
|
Returns the value of a system metric, or -1 if the metric is not
|
||||||
|
supported on the current platform.
|
||||||
|
|
||||||
{\it index} can be one of:
|
{\it index} can be one of:
|
||||||
|
|
||||||
|
@@ -158,78 +158,38 @@ int wxSystemSettingsNative::GetMetric(wxSystemMetric index)
|
|||||||
{
|
{
|
||||||
case wxSYS_MOUSE_BUTTONS:
|
case wxSYS_MOUSE_BUTTONS:
|
||||||
return 2; // we emulate a two button mouse (ctrl + click = right button )
|
return 2; // we emulate a two button mouse (ctrl + click = right button )
|
||||||
case wxSYS_BORDER_X:
|
|
||||||
// TODO
|
// TODO case wxSYS_BORDER_X:
|
||||||
return 0;
|
// TODO case wxSYS_BORDER_Y:
|
||||||
case wxSYS_BORDER_Y:
|
// TODO case wxSYS_CURSOR_X:
|
||||||
// TODO
|
// TODO case wxSYS_CURSOR_Y:
|
||||||
return 0;
|
// TODO case wxSYS_DCLICK_X:
|
||||||
case wxSYS_CURSOR_X:
|
// TODO case wxSYS_DCLICK_Y:
|
||||||
// TODO
|
// TODO case wxSYS_DRAG_X:
|
||||||
return 0;
|
// TODO case wxSYS_DRAG_Y:
|
||||||
case wxSYS_CURSOR_Y:
|
// TODO case wxSYS_EDGE_X:
|
||||||
// TODO
|
// TODO case wxSYS_EDGE_Y:
|
||||||
return 0;
|
|
||||||
case wxSYS_DCLICK_X:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_DCLICK_Y:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_DRAG_X:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_DRAG_Y:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_EDGE_X:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_EDGE_Y:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_HSCROLL_ARROW_X:
|
case wxSYS_HSCROLL_ARROW_X:
|
||||||
return 16;
|
return 16;
|
||||||
case wxSYS_HSCROLL_ARROW_Y:
|
case wxSYS_HSCROLL_ARROW_Y:
|
||||||
return 16;
|
return 16;
|
||||||
case wxSYS_HTHUMB_X:
|
case wxSYS_HTHUMB_X:
|
||||||
return 16;
|
return 16;
|
||||||
case wxSYS_ICON_X:
|
|
||||||
// TODO
|
// TODO case wxSYS_ICON_X:
|
||||||
return 0;
|
// TODO case wxSYS_ICON_Y:
|
||||||
case wxSYS_ICON_Y:
|
// TODO case wxSYS_ICONSPACING_X:
|
||||||
// TODO
|
// TODO case wxSYS_ICONSPACING_Y:
|
||||||
return 0;
|
// TODO case wxSYS_WINDOWMIN_X:
|
||||||
case wxSYS_ICONSPACING_X:
|
// TODO case wxSYS_WINDOWMIN_Y:
|
||||||
// TODO
|
// TODO case wxSYS_SCREEN_X:
|
||||||
return 0;
|
// TODO case wxSYS_SCREEN_Y:
|
||||||
case wxSYS_ICONSPACING_Y:
|
// TODO case wxSYS_FRAMESIZE_X:
|
||||||
// TODO
|
// TODO case wxSYS_FRAMESIZE_Y:
|
||||||
return 0;
|
// TODO case wxSYS_SMALLICON_X:
|
||||||
case wxSYS_WINDOWMIN_X:
|
// TODO case wxSYS_SMALLICON_Y:
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_WINDOWMIN_Y:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_SCREEN_X:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_SCREEN_Y:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_FRAMESIZE_X:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_FRAMESIZE_Y:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_SMALLICON_X:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_SMALLICON_Y:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_HSCROLL_Y:
|
case wxSYS_HSCROLL_Y:
|
||||||
return 16;
|
return 16;
|
||||||
case wxSYS_VSCROLL_X:
|
case wxSYS_VSCROLL_X:
|
||||||
@@ -240,24 +200,21 @@ int wxSystemSettingsNative::GetMetric(wxSystemMetric index)
|
|||||||
return 16;
|
return 16;
|
||||||
case wxSYS_VTHUMB_Y:
|
case wxSYS_VTHUMB_Y:
|
||||||
return 16;
|
return 16;
|
||||||
case wxSYS_CAPTION_Y:
|
|
||||||
// TODO
|
// TODO case wxSYS_CAPTION_Y:
|
||||||
return 0;
|
// TODO case wxSYS_MENU_Y:
|
||||||
case wxSYS_MENU_Y:
|
// TODO case wxSYS_NETWORK_PRESENT:
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_NETWORK_PRESENT:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_PENWINDOWS_PRESENT:
|
case wxSYS_PENWINDOWS_PRESENT:
|
||||||
return 0;
|
return 0;
|
||||||
case wxSYS_SHOW_SOUNDS:
|
|
||||||
// TODO
|
// TODO case wxSYS_SHOW_SOUNDS:
|
||||||
return 0;
|
|
||||||
case wxSYS_SWAP_BUTTONS:
|
case wxSYS_SWAP_BUTTONS:
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return 0;
|
return -1; // unsupported metric
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@@ -378,7 +378,7 @@ int wxSystemSettingsNative::GetMetric( wxSystemMetric index )
|
|||||||
case wxSYS_ICON_X: return 32;
|
case wxSYS_ICON_X: return 32;
|
||||||
case wxSYS_ICON_Y: return 32;
|
case wxSYS_ICON_Y: return 32;
|
||||||
default:
|
default:
|
||||||
return 0; // metric is unknown
|
return -1; // metric is unknown
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -378,7 +378,7 @@ int wxSystemSettingsNative::GetMetric( wxSystemMetric index )
|
|||||||
case wxSYS_ICON_X: return 32;
|
case wxSYS_ICON_X: return 32;
|
||||||
case wxSYS_ICON_Y: return 32;
|
case wxSYS_ICON_Y: return 32;
|
||||||
default:
|
default:
|
||||||
return 0; // metric is unknown
|
return -1; // metric is unknown
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -161,78 +161,44 @@ int wxSystemSettingsNative::GetMetric(wxSystemMetric index)
|
|||||||
case wxSYS_MOUSE_BUTTONS:
|
case wxSYS_MOUSE_BUTTONS:
|
||||||
// we emulate a two button mouse (ctrl + click = right button )
|
// we emulate a two button mouse (ctrl + click = right button )
|
||||||
return 2;
|
return 2;
|
||||||
case wxSYS_BORDER_X:
|
|
||||||
// TODO
|
// TODO case wxSYS_BORDER_X:
|
||||||
return 0;
|
// TODO case wxSYS_BORDER_Y:
|
||||||
case wxSYS_BORDER_Y:
|
// TODO case wxSYS_CURSOR_X:
|
||||||
// TODO
|
// TODO case wxSYS_CURSOR_Y:
|
||||||
return 0;
|
// TODO case wxSYS_DCLICK_X:
|
||||||
case wxSYS_CURSOR_X:
|
// TODO case wxSYS_DCLICK_Y:
|
||||||
// TODO
|
// TODO case wxSYS_DRAG_X:
|
||||||
return 0;
|
// TODO case wxSYS_DRAG_Y:
|
||||||
case wxSYS_CURSOR_Y:
|
// TODO case wxSYS_EDGE_X:
|
||||||
// TODO
|
// TODO case wxSYS_EDGE_Y:
|
||||||
return 0;
|
|
||||||
case wxSYS_DCLICK_X:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_DCLICK_Y:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_DRAG_X:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_DRAG_Y:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_EDGE_X:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_EDGE_Y:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_HSCROLL_ARROW_X:
|
case wxSYS_HSCROLL_ARROW_X:
|
||||||
return 16;
|
return 16;
|
||||||
case wxSYS_HSCROLL_ARROW_Y:
|
case wxSYS_HSCROLL_ARROW_Y:
|
||||||
return 16;
|
return 16;
|
||||||
case wxSYS_HTHUMB_X:
|
case wxSYS_HTHUMB_X:
|
||||||
return 16;
|
return 16;
|
||||||
case wxSYS_ICON_X:
|
|
||||||
// TODO
|
// TODO case wxSYS_ICON_X:
|
||||||
return 0;
|
// TODO case wxSYS_ICON_Y:
|
||||||
case wxSYS_ICON_Y:
|
// TODO case wxSYS_ICONSPACING_X:
|
||||||
// TODO
|
// TODO case wxSYS_ICONSPACING_Y:
|
||||||
return 0;
|
// TODO case wxSYS_WINDOWMIN_X:
|
||||||
case wxSYS_ICONSPACING_X:
|
// TODO case wxSYS_WINDOWMIN_Y:
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_ICONSPACING_Y:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_WINDOWMIN_X:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_WINDOWMIN_Y:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_SCREEN_X:
|
case wxSYS_SCREEN_X:
|
||||||
wxDisplaySize(&value, NULL);
|
wxDisplaySize(&value, NULL);
|
||||||
return value;
|
return value;
|
||||||
case wxSYS_SCREEN_Y:
|
case wxSYS_SCREEN_Y:
|
||||||
wxDisplaySize(NULL, &value);
|
wxDisplaySize(NULL, &value);
|
||||||
return value;
|
return value;
|
||||||
case wxSYS_FRAMESIZE_X:
|
|
||||||
// TODO
|
// TODO case wxSYS_FRAMESIZE_X:
|
||||||
return 0;
|
// TODO case wxSYS_FRAMESIZE_Y:
|
||||||
case wxSYS_FRAMESIZE_Y:
|
// TODO case wxSYS_SMALLICON_X:
|
||||||
// TODO
|
// TODO case wxSYS_SMALLICON_Y:
|
||||||
return 0;
|
|
||||||
case wxSYS_SMALLICON_X:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_SMALLICON_Y:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_HSCROLL_Y:
|
case wxSYS_HSCROLL_Y:
|
||||||
return 16;
|
return 16;
|
||||||
case wxSYS_VSCROLL_X:
|
case wxSYS_VSCROLL_X:
|
||||||
@@ -243,24 +209,21 @@ int wxSystemSettingsNative::GetMetric(wxSystemMetric index)
|
|||||||
return 16;
|
return 16;
|
||||||
case wxSYS_VTHUMB_Y:
|
case wxSYS_VTHUMB_Y:
|
||||||
return 16;
|
return 16;
|
||||||
case wxSYS_CAPTION_Y:
|
|
||||||
// TODO
|
// TODO case wxSYS_CAPTION_Y:
|
||||||
return 0;
|
// TODO case wxSYS_MENU_Y:
|
||||||
case wxSYS_MENU_Y:
|
// TODO case wxSYS_NETWORK_PRESENT:
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_NETWORK_PRESENT:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_PENWINDOWS_PRESENT:
|
case wxSYS_PENWINDOWS_PRESENT:
|
||||||
return 0;
|
return 0;
|
||||||
case wxSYS_SHOW_SOUNDS:
|
|
||||||
// TODO
|
// TODO case wxSYS_SHOW_SOUNDS:
|
||||||
return 0;
|
|
||||||
case wxSYS_SWAP_BUTTONS:
|
case wxSYS_SWAP_BUTTONS:
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return 0;
|
return -1; // unsupported metric
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@@ -161,78 +161,44 @@ int wxSystemSettingsNative::GetMetric(wxSystemMetric index)
|
|||||||
case wxSYS_MOUSE_BUTTONS:
|
case wxSYS_MOUSE_BUTTONS:
|
||||||
// we emulate a two button mouse (ctrl + click = right button )
|
// we emulate a two button mouse (ctrl + click = right button )
|
||||||
return 2;
|
return 2;
|
||||||
case wxSYS_BORDER_X:
|
|
||||||
// TODO
|
// TODO case wxSYS_BORDER_X:
|
||||||
return 0;
|
// TODO case wxSYS_BORDER_Y:
|
||||||
case wxSYS_BORDER_Y:
|
// TODO case wxSYS_CURSOR_X:
|
||||||
// TODO
|
// TODO case wxSYS_CURSOR_Y:
|
||||||
return 0;
|
// TODO case wxSYS_DCLICK_X:
|
||||||
case wxSYS_CURSOR_X:
|
// TODO case wxSYS_DCLICK_Y:
|
||||||
// TODO
|
// TODO case wxSYS_DRAG_X:
|
||||||
return 0;
|
// TODO case wxSYS_DRAG_Y:
|
||||||
case wxSYS_CURSOR_Y:
|
// TODO case wxSYS_EDGE_X:
|
||||||
// TODO
|
// TODO case wxSYS_EDGE_Y:
|
||||||
return 0;
|
|
||||||
case wxSYS_DCLICK_X:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_DCLICK_Y:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_DRAG_X:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_DRAG_Y:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_EDGE_X:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_EDGE_Y:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_HSCROLL_ARROW_X:
|
case wxSYS_HSCROLL_ARROW_X:
|
||||||
return 16;
|
return 16;
|
||||||
case wxSYS_HSCROLL_ARROW_Y:
|
case wxSYS_HSCROLL_ARROW_Y:
|
||||||
return 16;
|
return 16;
|
||||||
case wxSYS_HTHUMB_X:
|
case wxSYS_HTHUMB_X:
|
||||||
return 16;
|
return 16;
|
||||||
case wxSYS_ICON_X:
|
|
||||||
// TODO
|
// TODO case wxSYS_ICON_X:
|
||||||
return 0;
|
// TODO case wxSYS_ICON_Y:
|
||||||
case wxSYS_ICON_Y:
|
// TODO case wxSYS_ICONSPACING_X:
|
||||||
// TODO
|
// TODO case wxSYS_ICONSPACING_Y:
|
||||||
return 0;
|
// TODO case wxSYS_WINDOWMIN_X:
|
||||||
case wxSYS_ICONSPACING_X:
|
// TODO case wxSYS_WINDOWMIN_Y:
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_ICONSPACING_Y:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_WINDOWMIN_X:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_WINDOWMIN_Y:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_SCREEN_X:
|
case wxSYS_SCREEN_X:
|
||||||
wxDisplaySize(&value, NULL);
|
wxDisplaySize(&value, NULL);
|
||||||
return value;
|
return value;
|
||||||
case wxSYS_SCREEN_Y:
|
case wxSYS_SCREEN_Y:
|
||||||
wxDisplaySize(NULL, &value);
|
wxDisplaySize(NULL, &value);
|
||||||
return value;
|
return value;
|
||||||
case wxSYS_FRAMESIZE_X:
|
|
||||||
// TODO
|
// TODO case wxSYS_FRAMESIZE_X:
|
||||||
return 0;
|
// TODO case wxSYS_FRAMESIZE_Y:
|
||||||
case wxSYS_FRAMESIZE_Y:
|
// TODO case wxSYS_SMALLICON_X:
|
||||||
// TODO
|
// TODO case wxSYS_SMALLICON_Y:
|
||||||
return 0;
|
|
||||||
case wxSYS_SMALLICON_X:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_SMALLICON_Y:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_HSCROLL_Y:
|
case wxSYS_HSCROLL_Y:
|
||||||
return 16;
|
return 16;
|
||||||
case wxSYS_VSCROLL_X:
|
case wxSYS_VSCROLL_X:
|
||||||
@@ -243,24 +209,21 @@ int wxSystemSettingsNative::GetMetric(wxSystemMetric index)
|
|||||||
return 16;
|
return 16;
|
||||||
case wxSYS_VTHUMB_Y:
|
case wxSYS_VTHUMB_Y:
|
||||||
return 16;
|
return 16;
|
||||||
case wxSYS_CAPTION_Y:
|
|
||||||
// TODO
|
// TODO case wxSYS_CAPTION_Y:
|
||||||
return 0;
|
// TODO case wxSYS_MENU_Y:
|
||||||
case wxSYS_MENU_Y:
|
// TODO case wxSYS_NETWORK_PRESENT:
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_NETWORK_PRESENT:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_PENWINDOWS_PRESENT:
|
case wxSYS_PENWINDOWS_PRESENT:
|
||||||
return 0;
|
return 0;
|
||||||
case wxSYS_SHOW_SOUNDS:
|
|
||||||
// TODO
|
// TODO case wxSYS_SHOW_SOUNDS:
|
||||||
return 0;
|
|
||||||
case wxSYS_SWAP_BUTTONS:
|
case wxSYS_SWAP_BUTTONS:
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return 0;
|
return -1; // unsupported metric
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@@ -95,8 +95,7 @@ int wxSystemSettingsNative::GetMetric(wxSystemMetric index)
|
|||||||
return 15;
|
return 15;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
wxCHECK_MSG(index, 0, wxT("wxSystemSettings::GetMetric not fully implemented"));
|
return -1; // unsupported metric
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -191,80 +191,50 @@ int wxSystemSettingsNative::GetMetric(wxSystemMetric index)
|
|||||||
case wxSYS_HSCROLL_Y:
|
case wxSYS_HSCROLL_Y:
|
||||||
case wxSYS_VSCROLL_X:
|
case wxSYS_VSCROLL_X:
|
||||||
return 15;
|
return 15;
|
||||||
case wxSYS_MOUSE_BUTTONS:
|
|
||||||
// TODO
|
|
||||||
case wxSYS_BORDER_X:
|
|
||||||
// TODO
|
|
||||||
case wxSYS_BORDER_Y:
|
|
||||||
// TODO
|
|
||||||
case wxSYS_CURSOR_X:
|
|
||||||
// TODO
|
|
||||||
case wxSYS_CURSOR_Y:
|
|
||||||
// TODO
|
|
||||||
case wxSYS_DCLICK_X:
|
|
||||||
// TODO
|
|
||||||
case wxSYS_DCLICK_Y:
|
|
||||||
// TODO
|
|
||||||
case wxSYS_DRAG_X:
|
|
||||||
// TODO
|
|
||||||
case wxSYS_DRAG_Y:
|
|
||||||
// TODO
|
|
||||||
case wxSYS_EDGE_X:
|
|
||||||
// TODO
|
|
||||||
case wxSYS_EDGE_Y:
|
|
||||||
// TODO
|
|
||||||
case wxSYS_HSCROLL_ARROW_X:
|
|
||||||
// TODO
|
|
||||||
case wxSYS_HSCROLL_ARROW_Y:
|
|
||||||
// TODO
|
|
||||||
case wxSYS_HTHUMB_X:
|
|
||||||
// TODO
|
|
||||||
case wxSYS_ICON_X:
|
|
||||||
// TODO
|
|
||||||
case wxSYS_ICON_Y:
|
|
||||||
// TODO
|
|
||||||
case wxSYS_ICONSPACING_X:
|
|
||||||
// TODO
|
|
||||||
case wxSYS_ICONSPACING_Y:
|
|
||||||
// TODO
|
|
||||||
case wxSYS_WINDOWMIN_X:
|
|
||||||
// TODO
|
|
||||||
case wxSYS_WINDOWMIN_Y:
|
|
||||||
break;
|
|
||||||
case wxSYS_SCREEN_X:
|
case wxSYS_SCREEN_X:
|
||||||
return_value = DisplayWidth( wxGlobalDisplay(), 0 );
|
return_value = DisplayWidth( wxGlobalDisplay(), 0 );
|
||||||
break;
|
break;
|
||||||
case wxSYS_SCREEN_Y:
|
case wxSYS_SCREEN_Y:
|
||||||
return_value = DisplayHeight( wxGlobalDisplay(), 0 );
|
return_value = DisplayHeight( wxGlobalDisplay(), 0 );
|
||||||
break;
|
break;
|
||||||
case wxSYS_FRAMESIZE_X:
|
|
||||||
// TODO
|
// TODO case wxSYS_MOUSE_BUTTONS:
|
||||||
case wxSYS_FRAMESIZE_Y:
|
// TODO case wxSYS_BORDER_X:
|
||||||
// TODO
|
// TODO case wxSYS_BORDER_Y:
|
||||||
case wxSYS_SMALLICON_X:
|
// TODO case wxSYS_CURSOR_X:
|
||||||
// TODO
|
// TODO case wxSYS_CURSOR_Y:
|
||||||
case wxSYS_SMALLICON_Y:
|
// TODO case wxSYS_DCLICK_X:
|
||||||
// TODO
|
// TODO case wxSYS_DCLICK_Y:
|
||||||
case wxSYS_VSCROLL_ARROW_X:
|
// TODO case wxSYS_DRAG_X:
|
||||||
// TODO
|
// TODO case wxSYS_DRAG_Y:
|
||||||
case wxSYS_VSCROLL_ARROW_Y:
|
// TODO case wxSYS_EDGE_X:
|
||||||
// TODO
|
// TODO case wxSYS_EDGE_Y:
|
||||||
case wxSYS_VTHUMB_Y:
|
// TODO case wxSYS_HSCROLL_ARROW_X:
|
||||||
// TODO
|
// TODO case wxSYS_HSCROLL_ARROW_Y:
|
||||||
case wxSYS_CAPTION_Y:
|
// TODO case wxSYS_HTHUMB_X:
|
||||||
// TODO
|
// TODO case wxSYS_ICON_X:
|
||||||
case wxSYS_MENU_Y:
|
// TODO case wxSYS_ICON_Y:
|
||||||
// TODO
|
// TODO case wxSYS_ICONSPACING_X:
|
||||||
case wxSYS_NETWORK_PRESENT:
|
// TODO case wxSYS_ICONSPACING_Y:
|
||||||
// TODO
|
// TODO case wxSYS_WINDOWMIN_X:
|
||||||
case wxSYS_PENWINDOWS_PRESENT:
|
// TODO case wxSYS_WINDOWMIN_Y:
|
||||||
// TODO
|
// TODO case wxSYS_FRAMESIZE_X:
|
||||||
case wxSYS_SHOW_SOUNDS:
|
// TODO case wxSYS_FRAMESIZE_Y:
|
||||||
// TODO
|
// TODO case wxSYS_SMALLICON_X:
|
||||||
case wxSYS_SWAP_BUTTONS:
|
// TODO case wxSYS_SMALLICON_Y:
|
||||||
// TODO
|
// TODO case wxSYS_VSCROLL_ARROW_X:
|
||||||
|
// TODO case wxSYS_VSCROLL_ARROW_Y:
|
||||||
|
// TODO case wxSYS_VTHUMB_Y:
|
||||||
|
// TODO case wxSYS_CAPTION_Y:
|
||||||
|
// TODO case wxSYS_MENU_Y:
|
||||||
|
// TODO case wxSYS_NETWORK_PRESENT:
|
||||||
|
// TODO case wxSYS_PENWINDOWS_PRESENT:
|
||||||
|
// TODO case wxSYS_SHOW_SOUNDS:
|
||||||
|
// TODO case wxSYS_SWAP_BUTTONS:
|
||||||
|
|
||||||
default:
|
default:
|
||||||
;
|
return_value = -1; // unsuported metric
|
||||||
}
|
}
|
||||||
|
|
||||||
return return_value;
|
return return_value;
|
||||||
|
@@ -390,7 +390,7 @@ int wxSystemSettingsNative::GetMetric(wxSystemMetric index)
|
|||||||
if ( indexMSW == -1 )
|
if ( indexMSW == -1 )
|
||||||
{
|
{
|
||||||
// not supported under current system
|
// not supported under current system
|
||||||
return 0;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int rc = ::GetSystemMetrics(indexMSW);
|
int rc = ::GetSystemMetrics(indexMSW);
|
||||||
|
@@ -255,117 +255,50 @@ int wxSystemSettingsNative::GetMetric(
|
|||||||
{
|
{
|
||||||
switch ( index)
|
switch ( index)
|
||||||
{
|
{
|
||||||
case wxSYS_MOUSE_BUTTONS:
|
// TODO case wxSYS_MOUSE_BUTTONS:
|
||||||
// TODO
|
// TODO case wxSYS_BORDER_X:
|
||||||
return 0;
|
// TODO case wxSYS_BORDER_Y:
|
||||||
case wxSYS_BORDER_X:
|
// TODO case wxSYS_CURSOR_X:
|
||||||
// TODO
|
// TODO case wxSYS_CURSOR_Y:
|
||||||
return 0;
|
// TODO case wxSYS_DCLICK_X:
|
||||||
case wxSYS_BORDER_Y:
|
// TODO case wxSYS_DCLICK_Y:
|
||||||
// TODO
|
// TODO case wxSYS_DRAG_X:
|
||||||
return 0;
|
// TODO case wxSYS_DRAG_Y:
|
||||||
case wxSYS_CURSOR_X:
|
// TODO case wxSYS_EDGE_X:
|
||||||
// TODO
|
// TODO case wxSYS_EDGE_Y:
|
||||||
return 0;
|
// TODO case wxSYS_HSCROLL_ARROW_X:
|
||||||
case wxSYS_CURSOR_Y:
|
// TODO case wxSYS_HSCROLL_ARROW_Y:
|
||||||
// TODO
|
// TODO case wxSYS_HTHUMB_X:
|
||||||
return 0;
|
// TODO case wxSYS_ICON_X:
|
||||||
case wxSYS_DCLICK_X:
|
// TODO case wxSYS_ICON_Y:
|
||||||
// TODO
|
// TODO case wxSYS_ICONSPACING_X:
|
||||||
return 0;
|
// TODO case wxSYS_ICONSPACING_Y:
|
||||||
case wxSYS_DCLICK_Y:
|
// TODO case wxSYS_WINDOWMIN_X:
|
||||||
// TODO
|
// TODO case wxSYS_WINDOWMIN_Y:
|
||||||
return 0;
|
|
||||||
case wxSYS_DRAG_X:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_DRAG_Y:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_EDGE_X:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_EDGE_Y:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_HSCROLL_ARROW_X:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_HSCROLL_ARROW_Y:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_HTHUMB_X:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_ICON_X:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_ICON_Y:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_ICONSPACING_X:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_ICONSPACING_Y:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_WINDOWMIN_X:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_WINDOWMIN_Y:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_SCREEN_X:
|
case wxSYS_SCREEN_X:
|
||||||
return ::WinQuerySysValue(HWND_DESKTOP,SV_CXSCREEN);
|
return ::WinQuerySysValue(HWND_DESKTOP,SV_CXSCREEN);
|
||||||
case wxSYS_SCREEN_Y:
|
case wxSYS_SCREEN_Y:
|
||||||
return ::WinQuerySysValue(HWND_DESKTOP,SV_CYSCREEN);
|
return ::WinQuerySysValue(HWND_DESKTOP,SV_CYSCREEN);
|
||||||
case wxSYS_FRAMESIZE_X:
|
|
||||||
// TODO
|
// TODO case wxSYS_FRAMESIZE_X:
|
||||||
return 0;
|
// TODO case wxSYS_FRAMESIZE_Y:
|
||||||
case wxSYS_FRAMESIZE_Y:
|
// TODO case wxSYS_SMALLICON_X:
|
||||||
// TODO
|
// TODO case wxSYS_SMALLICON_Y:
|
||||||
return 0;
|
// TODO case wxSYS_HSCROLL_Y:
|
||||||
case wxSYS_SMALLICON_X:
|
// TODO case wxSYS_VSCROLL_X:
|
||||||
// TODO
|
// TODO case wxSYS_VSCROLL_ARROW_X:
|
||||||
return 0;
|
// TODO case wxSYS_VSCROLL_ARROW_Y:
|
||||||
case wxSYS_SMALLICON_Y:
|
// TODO case wxSYS_VTHUMB_Y:
|
||||||
// TODO
|
// TODO case wxSYS_CAPTION_Y:
|
||||||
return 0;
|
// TODO case wxSYS_MENU_Y:
|
||||||
case wxSYS_HSCROLL_Y:
|
// TODO case wxSYS_NETWORK_PRESENT:
|
||||||
// TODO
|
// TODO case wxSYS_PENWINDOWS_PRESENT:
|
||||||
return 0;
|
// TODO case wxSYS_SHOW_SOUNDS:
|
||||||
case wxSYS_VSCROLL_X:
|
// TODO case wxSYS_SWAP_BUTTONS:
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_VSCROLL_ARROW_X:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_VSCROLL_ARROW_Y:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_VTHUMB_Y:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_CAPTION_Y:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_MENU_Y:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_NETWORK_PRESENT:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_PENWINDOWS_PRESENT:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_SHOW_SOUNDS:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_SWAP_BUTTONS:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
default:
|
default:
|
||||||
return 0;
|
return -1; // unsupported metric
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@@ -63,119 +63,51 @@ int wxSystemSettingsNative::GetMetric(wxSystemMetric index)
|
|||||||
{
|
{
|
||||||
switch ( index)
|
switch ( index)
|
||||||
{
|
{
|
||||||
case wxSYS_MOUSE_BUTTONS:
|
// TODO case wxSYS_MOUSE_BUTTONS:
|
||||||
// TODO
|
// TODO case wxSYS_BORDER_X:
|
||||||
return 0;
|
// TODO case wxSYS_BORDER_Y:
|
||||||
case wxSYS_BORDER_X:
|
// TODO case wxSYS_CURSOR_X:
|
||||||
// TODO
|
// TODO case wxSYS_CURSOR_Y:
|
||||||
return 0;
|
// TODO case wxSYS_DCLICK_X:
|
||||||
case wxSYS_BORDER_Y:
|
// TODO case wxSYS_DCLICK_Y:
|
||||||
// TODO
|
// TODO case wxSYS_DRAG_X:
|
||||||
return 0;
|
// TODO case wxSYS_DRAG_Y:
|
||||||
case wxSYS_CURSOR_X:
|
// TODO case wxSYS_EDGE_X:
|
||||||
// TODO
|
// TODO case wxSYS_EDGE_Y:
|
||||||
return 0;
|
// TODO case wxSYS_HSCROLL_ARROW_X:
|
||||||
case wxSYS_CURSOR_Y:
|
// TODO case wxSYS_HSCROLL_ARROW_Y:
|
||||||
// TODO
|
// TODO case wxSYS_HTHUMB_X:
|
||||||
return 0;
|
// TODO case wxSYS_ICON_X:
|
||||||
case wxSYS_DCLICK_X:
|
// TODO case wxSYS_ICON_Y:
|
||||||
// TODO
|
// TODO case wxSYS_ICONSPACING_X:
|
||||||
return 0;
|
// TODO case wxSYS_ICONSPACING_Y:
|
||||||
case wxSYS_DCLICK_Y:
|
// TODO case wxSYS_WINDOWMIN_X:
|
||||||
// TODO
|
// TODO case wxSYS_WINDOWMIN_Y:
|
||||||
return 0;
|
|
||||||
case wxSYS_DRAG_X:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_DRAG_Y:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_EDGE_X:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_EDGE_Y:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_HSCROLL_ARROW_X:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_HSCROLL_ARROW_Y:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_HTHUMB_X:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_ICON_X:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_ICON_Y:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_ICONSPACING_X:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_ICONSPACING_Y:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_WINDOWMIN_X:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_WINDOWMIN_Y:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_SCREEN_X:
|
case wxSYS_SCREEN_X:
|
||||||
return DisplayWidth( wxGlobalDisplay(), 0 );
|
return DisplayWidth( wxGlobalDisplay(), 0 );
|
||||||
|
|
||||||
case wxSYS_SCREEN_Y:
|
case wxSYS_SCREEN_Y:
|
||||||
return DisplayHeight( wxGlobalDisplay(), 0 );
|
return DisplayHeight( wxGlobalDisplay(), 0 );
|
||||||
|
|
||||||
case wxSYS_FRAMESIZE_X:
|
// TODO case wxSYS_FRAMESIZE_X:
|
||||||
// TODO
|
// TODO case wxSYS_FRAMESIZE_Y:
|
||||||
return 0;
|
// TODO case wxSYS_SMALLICON_X:
|
||||||
case wxSYS_FRAMESIZE_Y:
|
// TODO case wxSYS_SMALLICON_Y:
|
||||||
// TODO
|
// TODO case wxSYS_HSCROLL_Y:
|
||||||
return 0;
|
// TODO case wxSYS_VSCROLL_X:
|
||||||
case wxSYS_SMALLICON_X:
|
// TODO case wxSYS_VSCROLL_ARROW_X:
|
||||||
// TODO
|
// TODO case wxSYS_VSCROLL_ARROW_Y:
|
||||||
return 0;
|
// TODO case wxSYS_VTHUMB_Y:
|
||||||
case wxSYS_SMALLICON_Y:
|
// TODO case wxSYS_CAPTION_Y:
|
||||||
// TODO
|
// TODO case wxSYS_MENU_Y:
|
||||||
return 0;
|
// TODO case wxSYS_NETWORK_PRESENT:
|
||||||
case wxSYS_HSCROLL_Y:
|
// TODO case wxSYS_PENWINDOWS_PRESENT:
|
||||||
// TODO
|
// TODO case wxSYS_SHOW_SOUNDS:
|
||||||
return 0;
|
// TODO case wxSYS_SWAP_BUTTONS:
|
||||||
case wxSYS_VSCROLL_X:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_VSCROLL_ARROW_X:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_VSCROLL_ARROW_Y:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_VTHUMB_Y:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_CAPTION_Y:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_MENU_Y:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_NETWORK_PRESENT:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_PENWINDOWS_PRESENT:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_SHOW_SOUNDS:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
case wxSYS_SWAP_BUTTONS:
|
|
||||||
// TODO
|
|
||||||
return 0;
|
|
||||||
default:
|
default:
|
||||||
return 0;
|
return -1; // unsupported metric
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user