From 62764031e258c200f93f844e813b580f4be9434a Mon Sep 17 00:00:00 2001 From: Seoyeon2Kim <34738918+Seoyeon2Kim@users.noreply.github.com> Date: Fri, 16 Apr 2021 11:05:38 +0900 Subject: [PATCH] [NUI] Make some of Progress and Slider public methods (#2872) Public open API list - Progress : IndeterminateImageUrl - ProgressStyle : IndeterminateImageUrl - Slider : ThumbImageUrl, IsValueShown, ValueIndicatorText, ValueIndicatorSize, ValueIndicatorUrl, IsDiscrete, DiscreteValue - SliderStyle : ValueIndicatorText, ValueIndicatorImage Signed-off-by: Seoyeon Kim --- src/Tizen.NUI.Components/Controls/Progress.cs | 5 +---- src/Tizen.NUI.Components/Controls/Slider.cs | 22 +++++++--------------- src/Tizen.NUI.Components/Style/ProgressStyle.cs | 2 +- src/Tizen.NUI.Components/Style/SliderStyle.cs | 14 ++++++-------- 4 files changed, 15 insertions(+), 28 deletions(-) diff --git a/src/Tizen.NUI.Components/Controls/Progress.cs b/src/Tizen.NUI.Components/Controls/Progress.cs index 985d705..d67b524 100755 --- a/src/Tizen.NUI.Components/Controls/Progress.cs +++ b/src/Tizen.NUI.Components/Controls/Progress.cs @@ -240,8 +240,7 @@ namespace Tizen.NUI.Components /// The property to get/set the indeterminate image. /// /// Thrown when setting null value. - /// This will be public opened later after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] + /// 9 public string IndeterminateImageUrl { get @@ -446,7 +445,6 @@ namespace Tizen.NUI.Components /// /// Change Image status. It can be override. /// - /// 6 /// This needs to be considered more if public-open is necessary. [EditorBrowsable(EditorBrowsableState.Never)] private void UpdateStates() @@ -457,7 +455,6 @@ namespace Tizen.NUI.Components /// /// Update progress value /// - /// 6 /// This needs to be considered more if public-open is necessary. [EditorBrowsable(EditorBrowsableState.Never)] private void UpdateValue() diff --git a/src/Tizen.NUI.Components/Controls/Slider.cs b/src/Tizen.NUI.Components/Controls/Slider.cs index 871fa92..5460e95 100755 --- a/src/Tizen.NUI.Components/Controls/Slider.cs +++ b/src/Tizen.NUI.Components/Controls/Slider.cs @@ -529,8 +529,7 @@ namespace Tizen.NUI.Components /// Gets or sets the Url of the thumb image. /// /// Thrown when setting null value. - /// This will be public opened later after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] + /// 9 public Selector ThumbImageUrl { get @@ -862,8 +861,7 @@ namespace Tizen.NUI.Components /// /// Flag to decide whether the value indicator is shown /// - /// This will be public opened later after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] + /// 9 public bool IsValueShown { get @@ -879,8 +877,7 @@ namespace Tizen.NUI.Components /// /// Gets or sets the text of value indicator. /// - /// This will be public opened later after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] + /// 9 public string ValueIndicatorText { get @@ -896,8 +893,7 @@ namespace Tizen.NUI.Components /// /// Gets or sets the size of the value indicator image object. /// - /// This will be public opened later after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] + /// 9 public Size ValueIndicatorSize { get @@ -916,8 +912,7 @@ namespace Tizen.NUI.Components /// /// Gets or sets the resource url of the value indicator image object. /// - /// This will be public opened later after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] + /// 9 public string ValueIndicatorUrl { get @@ -938,8 +933,7 @@ namespace Tizen.NUI.Components /// /// The default value is false. /// - /// This will be public opened later after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] + /// 9 public bool IsDiscrete { get; set; } = false; /// @@ -950,8 +944,7 @@ namespace Tizen.NUI.Components /// Then, the thumb can only go to 0, 20, 40, 60, 80, and 100. /// The default is 0. /// - /// This will be public opened later after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] + /// 9 public float DiscreteValue { get @@ -1304,7 +1297,6 @@ namespace Tizen.NUI.Components /// /// Update Slider by style. /// - /// 6 /// This will be public opened later after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] protected override void OnUpdate() diff --git a/src/Tizen.NUI.Components/Style/ProgressStyle.cs b/src/Tizen.NUI.Components/Style/ProgressStyle.cs index 3d53588..bb47695 100755 --- a/src/Tizen.NUI.Components/Style/ProgressStyle.cs +++ b/src/Tizen.NUI.Components/Style/ProgressStyle.cs @@ -66,7 +66,7 @@ namespace Tizen.NUI.Components /// /// Gets or sets indeterminate progress resource. /// - [EditorBrowsable(EditorBrowsableState.Never)] + /// 9 public string IndeterminateImageUrl { get; set; } /// diff --git a/src/Tizen.NUI.Components/Style/SliderStyle.cs b/src/Tizen.NUI.Components/Style/SliderStyle.cs index ac459b6..b50d359 100755 --- a/src/Tizen.NUI.Components/Style/SliderStyle.cs +++ b/src/Tizen.NUI.Components/Style/SliderStyle.cs @@ -29,7 +29,7 @@ namespace Tizen.NUI.Components { /// /// IndicatorTypeProperty - /// + /// [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty IndicatorTypeProperty = BindableProperty.Create(nameof(IndicatorType), typeof(IndicatorType?), typeof(SliderStyle), null, propertyChanged: (bindable, oldValue, newValue) => { @@ -47,7 +47,7 @@ namespace Tizen.NUI.Components /// /// SpaceBetweenTrackAndIndicatorProperty - /// + /// [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty SpaceBetweenTrackAndIndicatorProperty = BindableProperty.Create(nameof(SpaceBetweenTrackAndIndicator), typeof(uint?), typeof(SliderStyle), null, propertyChanged: (bindable, oldValue, newValue) => { @@ -65,7 +65,7 @@ namespace Tizen.NUI.Components /// /// TrackThicknessProperty - /// + /// [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty TrackThicknessProperty = BindableProperty.Create(nameof(TrackThickness), typeof(uint?), typeof(SliderStyle), null, propertyChanged: (bindable, oldValue, newValue) => { @@ -83,7 +83,7 @@ namespace Tizen.NUI.Components /// /// TrackPaddingProperty - /// + /// [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty TrackPaddingProperty = BindableProperty.Create(nameof(TrackPadding), typeof(Extents), typeof(SliderStyle), null, propertyChanged: (bindable, oldValue, newValue) => { @@ -178,15 +178,13 @@ namespace Tizen.NUI.Components /// /// Get or set the value indicator text. /// - /// This will be public opened later after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] + /// 9 public TextLabelStyle ValueIndicatorText { get; set; } = new TextLabelStyle(); /// /// Get or set the value indicator image. /// - /// This will be public opened later after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] + /// 9 public ImageViewStyle ValueIndicatorImage { get; set; } = new ImageViewStyle(); /// -- 2.7.4