diff --git a/Core/Object Arts/Dolphin/Base/Deprecated/OSVERSIONINFO.cls b/Core/Object Arts/Dolphin/Base/Deprecated/OSVERSIONINFO.cls index 3175197867..caac1cf5d3 100644 --- a/Core/Object Arts/Dolphin/Base/Deprecated/OSVERSIONINFO.cls +++ b/Core/Object Arts/Dolphin/Base/Deprecated/OSVERSIONINFO.cls @@ -21,16 +21,18 @@ calculateOsName major := self dwMajorVersion. minor := self dwMinorVersion. type := self wProductType. - major > 5 + major <= 5 ifTrue: - ["Vista or later" - minor > 0 - ifTrue: - [^type == VER_NT_WORKSTATION ifTrue: [#win7] ifFalse: [#win2k8r2]. - ^type == VER_NT_WORKSTATION ifTrue: [#winVista] ifFalse: [#win2k8]]]. - minor > 1 ifTrue: [^#win2k3]. - minor > 0 ifTrue: [#winXP]. - ^#win2k! + [minor = 0 ifTrue: [^#win2k]. + minor = 1 ifTrue: [^#winXP]. + ^#win2k3]. + major = 6 + ifTrue: + [minor = 0 ifTrue: [^type == VER_NT_WORKSTATION ifTrue: [#winVista] ifFalse: [#win2k8]]. + minor = 1 ifTrue: [^type == VER_NT_WORKSTATION ifTrue: [#win7] ifFalse: [#win2k8r2]]. + minor = 2 ifTrue: [^#win8]. + ^#win81]. + ^#win10! dwBuildNumber "Answer the receiver's dwBuildNumber field as a Smalltalk object." @@ -73,7 +75,6 @@ isNT4 " "NT4 is no longer supported" - #deprecated. ^false! isWin2K @@ -129,7 +130,6 @@ isWinMe ^false! isWinV5 - #deprecated. "Use isWinV5OrLater, or test for specific versions" ^#(#win2k #winXP #win98 #winMe) identityIncludes: self osName! isWinV5OrLater diff --git a/Core/Object Arts/Dolphin/MVP/Base/SystemMetrics.cls b/Core/Object Arts/Dolphin/MVP/Base/SystemMetrics.cls index 10ecfe19f0..c0949742d8 100644 --- a/Core/Object Arts/Dolphin/MVP/Base/SystemMetrics.cls +++ b/Core/Object Arts/Dolphin/MVP/Base/SystemMetrics.cls @@ -16,15 +16,15 @@ Instance Variables: scrollThumbExtent . Size of a scrollbar thumb (dependent on scrollbar width/height). sizingFrameExtent . Width/height of the overlapped window resizing edge. dialogFrameExtent . Width/height of the dialog window edge. - borderExtent . Width/height of the a window border (normally 1x1). - nonClientMetrics . Various non-client measurements. + borderExtent . Width/height of the a window border (normally 1x1). + nonClientMetrics . Various non-client measurements. menuFont . The font used to paint menus. - edgeExtent . Width/height of a 3d window edge (normally 2x2). + edgeExtent . Width/height of a 3d window edge (normally 2x2). hasFlatMenus . Whether or not the system menus are flat (XP-look) or have 3d appearance (classic Windows) iconTitleFont . The font used to paint icon titles on the desktop - the nearest thing to a default desktop font. Class Variables: - Current . Singleton instance. + Current . Singleton instance. '! !SystemMetrics categoriesForClass!Unclassified! ! diff --git a/Core/Object Arts/Dolphin/MVP/Base/View.cls b/Core/Object Arts/Dolphin/MVP/Base/View.cls index e68630fa8b..2f91af0489 100644 --- a/Core/Object Arts/Dolphin/MVP/Base/View.cls +++ b/Core/Object Arts/Dolphin/MVP/Base/View.cls @@ -3448,6 +3448,8 @@ textLength ^UserLibrary default getWindowTextLength: self asParameter! themeSubAppName + "Answer the theme class name to use for the view, or nil to use the default." + ^nil! toolTipWindow