Skip to content

Commit

Permalink
[ACR-564] deprecate unused API
Browse files Browse the repository at this point in the history
  • Loading branch information
dongsug-song committed Jan 19, 2024
1 parent 47538a7 commit 58283d6
Show file tree
Hide file tree
Showing 130 changed files with 2,076 additions and 103 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ namespace ElmSharp.Wearable
/// Inherits <see cref="DateTimeSelector"/>.
/// </summary>
/// <since_tizen> preview </since_tizen>
[Obsolete("This has been deprecated in API12")]
public class CircleDateTimeSelector : DateTimeSelector, IRotaryActionWidget
{
IntPtr _circleHandle;
Expand All @@ -36,6 +37,7 @@ public class CircleDateTimeSelector : DateTimeSelector, IRotaryActionWidget
/// <param name="parent">The parent of the new Circle DateTime instance.</param>
/// <param name="surface">The surface for drawing circle features for this widget.</param>
/// <since_tizen> preview </since_tizen>
[Obsolete("This has been deprecated in API12")]
public CircleDateTimeSelector(EvasObject parent, CircleSurface surface) : base()
{
Debug.Assert(parent == null || surface == null || parent.IsRealized);
Expand All @@ -59,12 +61,14 @@ public CircleDateTimeSelector(EvasObject parent) : this(parent, CircleSurface.Cr
/// Gets the handle for the Circle widget.
/// </summary>
/// <since_tizen> preview </since_tizen>
[Obsolete("This has been deprecated in API12")]
public virtual IntPtr CircleHandle => _circleHandle;

/// <summary>
/// Gets the handle for the circle surface used in this widget.
/// </summary>
/// <since_tizen> preview </since_tizen>
[Obsolete("This has been deprecated in API12")]
public virtual CircleSurface CircleSurface => _surface;

/// <summary>
Expand All @@ -83,6 +87,7 @@ public bool Disabled
/// Sets or gets the state of the widget, which might be enabled or disabled.
/// </summary>
/// <since_tizen> preview </since_tizen>
[Obsolete("This has been deprecated in API12")]
public override bool IsEnabled
{
get
Expand Down Expand Up @@ -163,11 +168,12 @@ public double MarkerRadius
/// <param name="parent">Parent EvasObject.</param>
/// <returns>Handle IntPtr.</returns>
/// <since_tizen> preview </since_tizen>
[Obsolete("This has been deprecated in API12")]
protected override IntPtr CreateHandle(EvasObject parent)
{
var handle = base.CreateHandle(parent);

_circleHandle = Interop.Eext.eext_circle_object_datetime_add(RealHandle == IntPtr.Zero ? handle : RealHandle , CircleSurface.Handle);
_circleHandle = Interop.Eext.eext_circle_object_datetime_add(RealHandle == IntPtr.Zero ? handle : RealHandle, CircleSurface.Handle);

return handle;
}
Expand Down
13 changes: 13 additions & 0 deletions src/ElmSharp.Wearable/ElmSharp.Wearable/CircleGenList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ namespace ElmSharp.Wearable
/// Inherits <see cref="GenList"/>.
/// </summary>
/// <since_tizen> preview </since_tizen>
[Obsolete("This has been deprecated in API12")]
public class CircleGenList : GenList, IRotaryActionWidget
{
IntPtr _circleHandle;
Expand All @@ -36,6 +37,7 @@ public class CircleGenList : GenList, IRotaryActionWidget
/// <param name="parent">The parent of the new Circle GenList instance.</param>
/// <param name="surface">The surface for drawing the circle features for this widget.</param>
/// <since_tizen> preview </since_tizen>
[Obsolete("This has been deprecated in API12")]
public CircleGenList(EvasObject parent, CircleSurface surface) : base()
{
Debug.Assert(parent == null || surface == null || parent.IsRealized);
Expand All @@ -59,12 +61,14 @@ public CircleGenList(EvasObject parent) : this(parent, CircleSurface.CreateCircl
/// Gets the handle for the Circle widget.
/// </summary>
/// <since_tizen> preview </since_tizen>
[Obsolete("This has been deprecated in API12")]
public virtual IntPtr CircleHandle => _circleHandle;

/// <summary>
/// Gets the handle for the circle surface used in this widget.
/// </summary>
/// <since_tizen> preview </since_tizen>
[Obsolete("This has been deprecated in API12")]
public virtual CircleSurface CircleSurface => _surface;

/// <summary>
Expand All @@ -83,6 +87,7 @@ public bool Disabled
/// Sets or gets the state of the widget, which might be enabled or disabled.
/// </summary>
/// <since_tizen> preview </since_tizen>
[Obsolete("This has been deprecated in API12")]
public override bool IsEnabled
{
get
Expand All @@ -99,6 +104,7 @@ public override bool IsEnabled
/// Sets or gets the color of the scroll background.
/// </summary>
/// <since_tizen> preview </since_tizen>
[Obsolete("This has been deprecated in API12")]
public Color VerticalScrollBackgroundColor
{
get
Expand All @@ -117,6 +123,7 @@ public Color VerticalScrollBackgroundColor
/// Sets or gets the line width of the scroll background.
/// </summary>
/// <since_tizen> preview </since_tizen>
[Obsolete("This has been deprecated in API12")]
public int VerticalScrollBackgroundLineWidth
{
get
Expand All @@ -133,6 +140,7 @@ public int VerticalScrollBackgroundLineWidth
/// Sets or gets the radius of the scroll background.
/// </summary>
/// <since_tizen> preview </since_tizen>
[Obsolete("This has been deprecated in API12")]
public double VerticalScrollBackgroundRadius
{
get
Expand All @@ -149,6 +157,7 @@ public double VerticalScrollBackgroundRadius
/// Sets or gets the color of the scrollbar.
/// </summary>
/// <since_tizen> preview </since_tizen>
[Obsolete("This has been deprecated in API12")]
public Color VerticalScrollBarColor
{
get
Expand All @@ -167,6 +176,7 @@ public Color VerticalScrollBarColor
/// Sets or gets the line width of the scrollbar.
/// </summary>
/// <since_tizen> preview </since_tizen>
[Obsolete("This has been deprecated in API12")]
public int VerticalScrollBarLineWidth
{
get
Expand All @@ -183,6 +193,7 @@ public int VerticalScrollBarLineWidth
/// Sets or gets the radius of the scrollbar.
/// </summary>
/// <since_tizen> preview </since_tizen>
[Obsolete("This has been deprecated in API12")]
public double VerticalScrollBarRadius
{
get
Expand All @@ -203,6 +214,7 @@ public double VerticalScrollBarRadius
/// ScrollBarVisiblePolicy.Visible turns it on all the time, and ScrollBarVisiblePolicy.Invisible always keeps it off.
/// </remarks>
/// <since_tizen> preview </since_tizen>
[Obsolete("This has been deprecated in API12")]
public new ScrollBarVisiblePolicy VerticalScrollBarVisiblePolicy
{
get
Expand All @@ -225,6 +237,7 @@ public double VerticalScrollBarRadius
/// <param name="parent">Parent EvasObject.</param>
/// <returns>Handle IntPtr.</returns>
/// <since_tizen> preview </since_tizen>
[Obsolete("This has been deprecated in API12")]
protected override IntPtr CreateHandle(EvasObject parent)
{
var handle = base.CreateHandle(parent);
Expand Down
21 changes: 21 additions & 0 deletions src/ElmSharp.Wearable/ElmSharp.Wearable/CircleProgressBar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ namespace ElmSharp.Wearable
/// The Circle ProgressBar is a widget for visually representing the progress status of a given job or task with the circular design.
/// </summary>
/// <since_tizen> preview </since_tizen>
[Obsolete("This has been deprecated in API12")]
public class CircleProgressBar : Widget, ICircleWidget
{
CircleSurface _surface;
Expand All @@ -35,6 +36,7 @@ public class CircleProgressBar : Widget, ICircleWidget
/// <param name="parent">The parent of the new Circle Progressbar instance.</param>
/// <param name="surface">The surface for drawing circle features for this widget.</param>
/// <since_tizen> preview </since_tizen>
[Obsolete("This has been deprecated in API12")]
public CircleProgressBar(EvasObject parent, CircleSurface surface) : base()
{
Debug.Assert(parent == null || surface == null || parent.IsRealized);
Expand All @@ -57,12 +59,14 @@ public CircleProgressBar(EvasObject parent) : this(parent, CircleSurface.CreateC
/// Gets the handle for the Circle widget.
/// </summary>
/// <since_tizen> preview </since_tizen>
[Obsolete("This has been deprecated in API12")]
public virtual IntPtr CircleHandle => Handle;

/// <summary>
/// Gets the handle for the circle surface used in this widget.
/// </summary>
/// <since_tizen> preview </since_tizen>
[Obsolete("This has been deprecated in API12")]
public virtual CircleSurface CircleSurface => _surface;

/// <summary>
Expand All @@ -81,6 +85,7 @@ public bool Disabled
/// Sets or gets the state of the widget, which might be enabled or disabled.
/// </summary>
/// <since_tizen> preview </since_tizen>
[Obsolete("This has been deprecated in API12")]
public override bool IsEnabled
{
get
Expand All @@ -97,6 +102,7 @@ public override bool IsEnabled
/// Sets or gets the value of the ProgressBar.
/// </summary>
/// <since_tizen> preview </since_tizen>
[Obsolete("This has been deprecated in API12")]
public double Value
{
get
Expand All @@ -113,6 +119,7 @@ public double Value
/// Sets or gets the maximum value of the ProgressBar.
/// </summary>
/// <since_tizen> preview </since_tizen>
[Obsolete("This has been deprecated in API12")]
public double Maximum
{
get
Expand All @@ -133,6 +140,7 @@ public double Maximum
/// Sets or gets the minimum value of the ProgressBar.
/// </summary>
/// <since_tizen> preview </since_tizen>
[Obsolete("This has been deprecated in API12")]
public double Minimum
{
get
Expand All @@ -153,6 +161,7 @@ public double Minimum
/// Sets or gets the angle value of the ProgressBar.
/// </summary>
/// <since_tizen> preview </since_tizen>
[Obsolete("This has been deprecated in API12")]
public double BarAngle
{
get
Expand All @@ -169,6 +178,7 @@ public double BarAngle
/// Sets or gets the angle value of the Background ProgressBar.
/// </summary>
/// <since_tizen> preview </since_tizen>
[Obsolete("This has been deprecated in API12")]
public double BackgroundAngle
{
get
Expand All @@ -185,6 +195,7 @@ public double BackgroundAngle
/// Sets or gets the angle offset value of the ProgressBar.
/// </summary>
/// <since_tizen> preview </since_tizen>
[Obsolete("This has been deprecated in API12")]
public double BarAngleOffset
{
get
Expand All @@ -201,6 +212,7 @@ public double BarAngleOffset
/// Sets or gets the angle offset value of the Background ProgressBar.
/// </summary>
/// <since_tizen> preview </since_tizen>
[Obsolete("This has been deprecated in API12")]
public double BackgroundAngleOffset
{
get
Expand All @@ -217,6 +229,7 @@ public double BackgroundAngleOffset
/// Sets or gets the maximum angle value of the ProgressBar.
/// </summary>
/// <since_tizen> preview </since_tizen>
[Obsolete("This has been deprecated in API12")]
public double BarAngleMaximum
{
get
Expand All @@ -237,6 +250,7 @@ public double BarAngleMaximum
/// Sets or gets the minimum angle value of the ProgressBar.
/// </summary>
/// <since_tizen> preview </since_tizen>
[Obsolete("This has been deprecated in API12")]
public double BarAngleMinimum
{
get
Expand All @@ -257,6 +271,7 @@ public double BarAngleMinimum
/// Sets or gets the color of the ProgressBar.
/// </summary>
/// <since_tizen> preview </since_tizen>
[Obsolete("This has been deprecated in API12")]
public Color BarColor
{
get
Expand All @@ -278,6 +293,7 @@ public Color BarColor
/// Sets or gets the color of the Background ProgressBar.
/// </summary>
/// <since_tizen> preview </since_tizen>
[Obsolete("This has been deprecated in API12")]
public override Color BackgroundColor
{
get
Expand All @@ -299,6 +315,7 @@ public override Color BackgroundColor
/// Sets or gets the line width of the ProgressBar.
/// </summary>
/// <since_tizen> preview </since_tizen>
[Obsolete("This has been deprecated in API12")]
public int BarLineWidth
{
get
Expand All @@ -315,6 +332,7 @@ public int BarLineWidth
/// Sets or gets the line width of the Background ProgressBar.
/// </summary>
/// <since_tizen> preview </since_tizen>
[Obsolete("This has been deprecated in API12")]
public int BackgroundLineWidth
{
get
Expand All @@ -331,6 +349,7 @@ public int BackgroundLineWidth
/// Sets or gets the radius of the ProgressBar.
/// </summary>
/// <since_tizen> preview </since_tizen>
[Obsolete("This has been deprecated in API12")]
public double BarRadius
{
get
Expand All @@ -347,6 +366,7 @@ public double BarRadius
/// Sets or gets the radius of the Background ProgressBar.
/// </summary>
/// <since_tizen> preview </since_tizen>
[Obsolete("This has been deprecated in API12")]
public double BackgroundRadius
{
get
Expand All @@ -365,6 +385,7 @@ public double BackgroundRadius
/// <param name="parent">Parent EvasObject.</param>
/// <returns>Handle IntPtr.</returns>
/// <since_tizen> preview </since_tizen>
[Obsolete("This has been deprecated in API12")]
protected override IntPtr CreateHandle(EvasObject parent)
{
return Interop.Eext.eext_circle_object_progressbar_add(parent, CircleSurface.Handle);
Expand Down
Loading

0 comments on commit 58283d6

Please sign in to comment.