From 525a881eca526fa338373c0cfe32c5a22d532ec8 Mon Sep 17 00:00:00 2001 From: Jiyun Yang Date: Mon, 29 Jun 2020 16:55:49 +0900 Subject: [PATCH] [NUI] Hide legacy ScrollBar and corresponding style class (#1754) Signed-off-by: Jiyun Yang --- .../Controls/ImageScrollBar.cs | 42 +++++++++++++++++++--- .../Style/ImageScrollBarStyle.cs | 16 ++++----- 2 files changed, 45 insertions(+), 13 deletions(-) diff --git a/src/Tizen.NUI.Components/Controls/ImageScrollBar.cs b/src/Tizen.NUI.Components/Controls/ImageScrollBar.cs index 4d465b0..8a43ce3 100755 --- a/src/Tizen.NUI.Components/Controls/ImageScrollBar.cs +++ b/src/Tizen.NUI.Components/Controls/ImageScrollBar.cs @@ -28,6 +28,8 @@ namespace Tizen.NUI.Components /// Please note that this class will be replaced with Scrollbar class in the near future. /// /// 6 + /// This will be deprecated + [Obsolete("Deprecated in API8; Will be removed in API10")] public class ScrollBar : Control { /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. @@ -138,6 +140,8 @@ namespace Tizen.NUI.Components /// The constructor of ScrollBar. /// /// 6 + /// This will be deprecated + [Obsolete("Deprecated in API8; Will be removed in API10")] public ScrollBar() : base() { Initialize(); @@ -147,7 +151,7 @@ namespace Tizen.NUI.Components /// The constructor of ScrollBar with specific style. /// /// style name - /// 8 + [EditorBrowsable(EditorBrowsableState.Never)] public ScrollBar(string style) : base(style) { Initialize(); @@ -157,7 +161,7 @@ namespace Tizen.NUI.Components /// The constructor of ScrollBar with specific style. /// /// The style object to initialize the ScrollBar. - /// 8 + [EditorBrowsable(EditorBrowsableState.Never)] public ScrollBar(ScrollBarStyle scrollBarStyle) : base(scrollBarStyle) { Initialize(); @@ -167,18 +171,24 @@ namespace Tizen.NUI.Components /// The direction type of the Scroll. /// /// 6 + /// This will be deprecated + [Obsolete("Deprecated in API8; Will be removed in API10")] public enum DirectionType { /// /// The Horizontal type. /// /// 6 + /// This will be deprecated + [Obsolete("Deprecated in API8; Will be removed in API10")] Horizontal, /// /// The Vertical type. /// /// 6 + /// This will be deprecated + [Obsolete("Deprecated in API8; Will be removed in API10")] Vertical } @@ -186,13 +196,15 @@ namespace Tizen.NUI.Components /// /// Get style of scrollbar. /// - /// 8 + [EditorBrowsable(EditorBrowsableState.Never)] public new ScrollBarStyle Style => ViewStyle as ScrollBarStyle; /// /// The property to get/set the direction of the ScrollBar. /// /// 6 + /// This will be deprecated + [Obsolete("Deprecated in API8; Will be removed in API10")] public DirectionType Direction { get @@ -223,6 +235,8 @@ namespace Tizen.NUI.Components /// /// /// 6 + /// This will be deprecated + [Obsolete("Deprecated in API8; Will be removed in API10")] public Size ThumbSize { get @@ -243,6 +257,8 @@ namespace Tizen.NUI.Components /// The property to get/set the image URL of the track object. /// /// 6 + /// This will be deprecated + [Obsolete("Deprecated in API8; Will be removed in API10")] public string TrackImageURL { get @@ -263,6 +279,8 @@ namespace Tizen.NUI.Components /// The property to get/set the color of the track object. /// /// 6 + /// This will be deprecated + [Obsolete("Deprecated in API8; Will be removed in API10")] public Color TrackColor { get @@ -283,6 +301,8 @@ namespace Tizen.NUI.Components /// The property to get/set the color of the thumb object. /// /// 6 + /// This will be deprecated + [Obsolete("Deprecated in API8; Will be removed in API10")] public Color ThumbColor { get @@ -303,6 +323,8 @@ namespace Tizen.NUI.Components /// The property to get/set the max value of the ScrollBar. /// /// 6 + /// This will be deprecated + [Obsolete("Deprecated in API8; Will be removed in API10")] public int MaxValue { get @@ -319,6 +341,8 @@ namespace Tizen.NUI.Components /// The property to get/set the min value of the ScrollBar. /// /// 6 + /// This will be deprecated + [Obsolete("Deprecated in API8; Will be removed in API10")] public int MinValue { get @@ -351,6 +375,8 @@ namespace Tizen.NUI.Components /// /// /// 6 + /// This will be deprecated + [Obsolete("Deprecated in API8; Will be removed in API10")] public int CurrentValue { get @@ -367,6 +393,8 @@ namespace Tizen.NUI.Components /// Property to set/get animation duration. /// /// 6 + /// This will be deprecated + [Obsolete("Deprecated in API8; Will be removed in API10")] public uint Duration { get @@ -402,6 +430,8 @@ namespace Tizen.NUI.Components /// /// /// 6 + /// This will be deprecated + [Obsolete("Deprecated in API8; Will be removed in API10")] public void SetCurrentValue(int currentValue, bool enableAnimation = true) { if (currentValue < minValue || currentValue > maxValue) @@ -421,6 +451,8 @@ namespace Tizen.NUI.Components /// /// The DisposeTypes value. /// 6 + /// This will be deprecated + [Obsolete("Deprecated in API8; Will be removed in API10")] protected override void Dispose(DisposeTypes type) { if (disposed) @@ -459,7 +491,7 @@ namespace Tizen.NUI.Components /// Get Scrollbar style. /// /// The default scrollbar style. - /// 8 + [EditorBrowsable(EditorBrowsableState.Never)] protected override ViewStyle CreateViewStyle() { return new ScrollBarStyle(); @@ -470,7 +502,7 @@ namespace Tizen.NUI.Components /// /// The sender /// The event data - /// 8 + [EditorBrowsable(EditorBrowsableState.Never)] protected override void OnThemeChangedEvent(object sender, StyleManager.ThemeChangeEventArgs e) { ScrollBarStyle tempStyle = StyleManager.Instance.GetViewStyle(StyleName) as ScrollBarStyle; diff --git a/src/Tizen.NUI.Components/Style/ImageScrollBarStyle.cs b/src/Tizen.NUI.Components/Style/ImageScrollBarStyle.cs index 234ce25..0833c32 100755 --- a/src/Tizen.NUI.Components/Style/ImageScrollBarStyle.cs +++ b/src/Tizen.NUI.Components/Style/ImageScrollBarStyle.cs @@ -26,7 +26,7 @@ namespace Tizen.NUI.Components /// /// Please note that this class will be replaced with ScrollbarStyle class in the near future. /// - /// 8 + [EditorBrowsable(EditorBrowsableState.Never)] public class ScrollBarStyle : ControlStyle { static ScrollBarStyle() { } @@ -34,7 +34,7 @@ namespace Tizen.NUI.Components /// /// Creates a new instance of a ScrollBarStyle. /// - /// 8 + [EditorBrowsable(EditorBrowsableState.Never)] public ScrollBarStyle() : base() { InitSubStyle(); @@ -45,7 +45,7 @@ namespace Tizen.NUI.Components /// Creates a new instance of a ScrollBarStyle with style. /// /// Create ScrollBarStyle by style customized by user. - /// 8 + [EditorBrowsable(EditorBrowsableState.Never)] public ScrollBarStyle(ScrollBarStyle style) : base(style) { if (null == style) return; @@ -58,32 +58,32 @@ namespace Tizen.NUI.Components /// /// Get or set track image style. /// - /// 8 + [EditorBrowsable(EditorBrowsableState.Never)] public ImageViewStyle Track { get; set; } /// /// Get or set thumb image style. /// - /// 8 + [EditorBrowsable(EditorBrowsableState.Never)] public ImageViewStyle Thumb { get; set; } /// /// Get or set direction type. /// - /// 8 + [EditorBrowsable(EditorBrowsableState.Never)] public ScrollBar.DirectionType? Direction { get; set; } /// /// Get or set duration. /// - /// 8 + [EditorBrowsable(EditorBrowsableState.Never)] public uint Duration { get; set; } /// /// Style's clone function. /// /// The style that need to copy. - /// 8 + [EditorBrowsable(EditorBrowsableState.Never)] public override void CopyFrom(BindableObject bindableObject) { base.CopyFrom(bindableObject); -- 2.7.4