From d7db3abf3a6e6679a86ae3797024f0394342a68d Mon Sep 17 00:00:00 2001 From: Feng Jin Date: Tue, 5 Dec 2017 10:30:13 +0800 Subject: [PATCH] [NUI]Remove some unused APIs. Change-Id: Iaf369ba5416782ce26250307609aea546a48c1ca Signed-off-by: Feng Jin --- src/Tizen.NUI/src/internal/Uint16Pair.cs | 4 +- .../src/public/BaseComponents/TableView.cs | 14 -- .../src/public/BaseComponents/TextEditor.cs | 17 -- .../src/public/BaseComponents/TextField.cs | 15 -- .../src/public/BaseComponents/TextLabel.cs | 3 +- .../src/public/BaseComponents/VideoView.cs | 17 -- src/Tizen.NUI/src/public/BaseComponents/View.cs | 147 --------------- src/Tizen.NUI/src/public/KeyFrames.cs | 15 -- src/Tizen.NUI/src/public/Layer.cs | 1 + src/Tizen.NUI/src/public/PaddingType.cs | 40 ---- src/Tizen.NUI/src/public/Path.cs | 15 -- src/Tizen.NUI/src/public/Position.cs | 204 --------------------- src/Tizen.NUI/src/public/Position2D.cs | 22 --- src/Tizen.NUI/src/public/Property.cs | 55 ------ src/Tizen.NUI/src/public/Size2D.cs | 24 --- src/Tizen.NUI/src/public/Timer.cs | 15 -- src/Tizen.NUI/src/public/UIComponents/Popup.cs | 15 -- .../src/public/UIComponents/PushButton.cs | 185 ------------------- src/Tizen.NUI/src/public/UIComponents/ScrollBar.cs | 15 -- src/Tizen.NUI/src/public/VisualBase.cs | 6 - 20 files changed, 4 insertions(+), 825 deletions(-) diff --git a/src/Tizen.NUI/src/internal/Uint16Pair.cs b/src/Tizen.NUI/src/internal/Uint16Pair.cs index e85cfa3..6d3b83d 100755 --- a/src/Tizen.NUI/src/internal/Uint16Pair.cs +++ b/src/Tizen.NUI/src/internal/Uint16Pair.cs @@ -31,9 +31,7 @@ namespace Tizen.NUI /// common architectures.
/// /// 3 - [Obsolete("Please do not use! This will be deprecated!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public class Uint16Pair : global::System.IDisposable + internal class Uint16Pair : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; /// swigCMemOwn. diff --git a/src/Tizen.NUI/src/public/BaseComponents/TableView.cs b/src/Tizen.NUI/src/public/BaseComponents/TableView.cs index 75be6e6..f4801fa 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/TableView.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/TableView.cs @@ -354,20 +354,6 @@ namespace Tizen.NUI.BaseComponents { if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } - /// - /// Downcasts a handle to TabelView handle. - /// - /// 3 - /// Please do not use! this will be deprecated! - /// Instead please use as keyword. - [Obsolete("Please do not use! This will be deprecated! Please use as keyword instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public new static TableView DownCast(BaseHandle handle) - { - TableView ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as TableView; - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } /// /// Adds a child to the table.
diff --git a/src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs b/src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs index d75cdc4..1bec44e 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs @@ -335,23 +335,6 @@ namespace Tizen.NUI.BaseComponents if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } - /// - /// Downcasts a handle to textEditor handle. - /// - /// - /// - /// 3 - /// Please do not use! this will be deprecated! - /// Instead please use as keyword. - [Obsolete("Please do not use! This will be deprecated! Please use as keyword instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public new static TextEditor DownCast(BaseHandle handle) - { - TextEditor ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as TextEditor; - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - internal TextEditorSignal TextChangedSignal() { TextEditorSignal ret = new TextEditorSignal(NDalicPINVOKE.TextEditor_TextChangedSignal(swigCPtr), false); diff --git a/src/Tizen.NUI/src/public/BaseComponents/TextField.cs b/src/Tizen.NUI/src/public/BaseComponents/TextField.cs index 31674df..4cf304e 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/TextField.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/TextField.cs @@ -319,21 +319,6 @@ namespace Tizen.NUI.BaseComponents if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } - /// - /// Downcasts a handle to textField handle. - /// - /// 3 - /// Please do not use! this will be deprecated! - /// Instead please use as keyword. - [Obsolete("Please do not use! This will be deprecated! Please use as keyword instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public new static TextField DownCast(BaseHandle handle) - { - TextField ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as TextField; - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - internal TextFieldSignal TextChangedSignal() { TextFieldSignal ret = new TextFieldSignal(NDalicPINVOKE.TextField_TextChangedSignal(swigCPtr), false); diff --git a/src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs b/src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs index 21f92c3..6a34b74 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs @@ -153,11 +153,12 @@ namespace Tizen.NUI.BaseComponents [EditorBrowsable(EditorBrowsableState.Never)] public new static TextLabel DownCast(BaseHandle handle) { - TextLabel ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as TextLabel; + TextLabel ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as TextLabel; if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } + /// /// The TranslatableText property.
/// The text can set the SID value.
diff --git a/src/Tizen.NUI/src/public/BaseComponents/VideoView.cs b/src/Tizen.NUI/src/public/BaseComponents/VideoView.cs index b4c2c63..4c15f39 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/VideoView.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/VideoView.cs @@ -188,23 +188,6 @@ namespace Tizen.NUI.BaseComponents } /// - /// Downcasts a handle to videoView handle. - /// - /// - /// - /// Please do not use! this will be deprecated! - /// Instead please use as keyword. - /// 3 - [Obsolete("Please do not use! This will be deprecated! Please use as keyword instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public new static VideoView DownCast(BaseHandle handle) - { - VideoView ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as VideoView; - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - /// /// Starts the video playback. /// /// 3 diff --git a/src/Tizen.NUI/src/public/BaseComponents/View.cs b/src/Tizen.NUI/src/public/BaseComponents/View.cs index f563422..1311cbd 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/View.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/View.cs @@ -2104,20 +2104,6 @@ namespace Tizen.NUI.BaseComponents } /// - /// [Obsolete("Please do not use! this will be deprecated. Please use Visibility instead.")] - /// - /// 3 - [Obsolete("Please do not use! This will be deprecated! Please use Visibility instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool Visible - { - get - { - return IsVisible(); - } - } - - /// /// Retrieves and sets the view's opacity.
///
/// 3 @@ -4199,107 +4185,6 @@ namespace Tizen.NUI.BaseComponents } } - - - /// - /// [Obsolete("Please do not use! this will be deprecated")] - /// - /// 3 - /// Please do not use! this will be deprecated! - /// Instead please use TouchEvent. - [Obsolete("Please do not use! This will be deprecated! Please use TouchEvent instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public event EventHandlerWithReturnType Touched - { - add - { - if (_touchDataEventHandler == null) - { - _touchDataCallback = OnTouch; - this.TouchSignal().Connect(_touchDataCallback); - } - - _touchDataEventHandler += value; - } - - remove - { - _touchDataEventHandler -= value; - - if (_touchDataEventHandler == null && TouchSignal().Empty() == false) - { - this.TouchSignal().Disconnect(_touchDataCallback); - } - - } - } - - /// - /// [Obsolete("Please do not use! this will be deprecated")] - /// - /// 3 - /// Please do not use! this will be deprecated! - /// Instead please use HoverEvent. - [Obsolete("Please do not use! This will be deprecated! Please use HoverEvent instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public event EventHandlerWithReturnType Hovered - { - add - { - if (_hoverEventHandler == null) - { - _hoverEventCallback = OnHoverEvent; - this.HoveredSignal().Connect(_hoverEventCallback); - } - - _hoverEventHandler += value; - } - - remove - { - _hoverEventHandler -= value; - - if (_hoverEventHandler == null && HoveredSignal().Empty() == false) - { - this.HoveredSignal().Disconnect(_hoverEventCallback); - } - - } - } - - /// - /// Please do not use! this will be deprecated. - /// - /// 3 - /// Please do not use! this will be deprecated! - /// Instead please use WheelEvent. - [Obsolete("Please do not use! This will be deprecated! Please use WheelEvent instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public event EventHandlerWithReturnType WheelMoved - { - add - { - if (_wheelEventHandler == null) - { - _wheelEventCallback = OnWheelEvent; - this.WheelEventSignal().Connect(_wheelEventCallback); - } - - _wheelEventHandler += value; - } - - remove - { - _wheelEventHandler -= value; - - if (_wheelEventHandler == null && WheelEventSignal().Empty() == false) - { - this.WheelEventSignal().Disconnect(_wheelEventCallback); - } - - } - } - /// /// [Obsolete("Please do not use! this will be deprecated")] /// @@ -4386,38 +4271,6 @@ namespace Tizen.NUI.BaseComponents ///
/// 3 /// Please do not use! this will be deprecated! - /// Instead please use RemovedFromWindow. - [Obsolete("Please do not use! This will be deprecated! Please use RemovedFromWindow instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public event EventHandler OffWindowEvent - { - add - { - if (_offWindowEventHandler == null) - { - _offWindowEventCallback = OffWindow; - this.OffWindowSignal().Connect(_offWindowEventCallback); - } - - _offWindowEventHandler += value; - } - - remove - { - _offWindowEventHandler -= value; - - if (_offWindowEventHandler == null && OffWindowSignal().Empty() == false) - { - this.OffWindowSignal().Disconnect(_offWindowEventCallback); - } - } - } - - /// - /// [Obsolete("Please do not use! this will be deprecated")] - /// - /// 3 - /// Please do not use! this will be deprecated! /// Instead please use Relayout. [Obsolete("Please do not use! This will be deprecated! Please use Relayout instead!")] [EditorBrowsable(EditorBrowsableState.Never)] diff --git a/src/Tizen.NUI/src/public/KeyFrames.cs b/src/Tizen.NUI/src/public/KeyFrames.cs index bdc158b..de74b50 100755 --- a/src/Tizen.NUI/src/public/KeyFrames.cs +++ b/src/Tizen.NUI/src/public/KeyFrames.cs @@ -113,21 +113,6 @@ namespace Tizen.NUI } /// - /// Downcasts a handle to keyFrame handle. - /// - /// 3 - /// Please do not use! this will be deprecated! - /// Instead please use as keyword. - [Obsolete("Please do not use! This will be deprecated! Please use as keyword instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public static KeyFrames DownCast(BaseHandle handle) - { - KeyFrames ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as KeyFrames; - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - /// /// Gets the type of the key frame. /// /// The key frame property type diff --git a/src/Tizen.NUI/src/public/Layer.cs b/src/Tizen.NUI/src/public/Layer.cs index 3da5c3c..bfa0b8e 100755 --- a/src/Tizen.NUI/src/public/Layer.cs +++ b/src/Tizen.NUI/src/public/Layer.cs @@ -179,6 +179,7 @@ namespace Tizen.NUI if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } + internal void SetParentOrigin(Vector3 origin) { NDalicPINVOKE.Actor_SetParentOrigin(swigCPtr, Vector3.getCPtr(origin)); diff --git a/src/Tizen.NUI/src/public/PaddingType.cs b/src/Tizen.NUI/src/public/PaddingType.cs index 43742b0..5e21aa7 100755 --- a/src/Tizen.NUI/src/public/PaddingType.cs +++ b/src/Tizen.NUI/src/public/PaddingType.cs @@ -201,26 +201,6 @@ namespace Tizen.NUI } /// - /// The Left value. - /// - /// Please DO NOT use! This will be deprecated! - /// instead please use Start property. - /// 3 - [Obsolete("Please do not use! This will be Deprecated! Please use PaddingType.Start instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public float Left - { - set - { - left = value; - } - get - { - return left; - } - } - - /// /// The Start value. /// /// 4 @@ -237,26 +217,6 @@ namespace Tizen.NUI } /// - /// The Right value. - /// - /// Please DO NOT use! This will be deprecated! - /// instead please use Start property. - /// 3 - [Obsolete("Please do not use! This will be deprecated! Please use PaddingType.End instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public float Right - { - set - { - right = value; - } - get - { - return right; - } - } - - /// /// The End value. /// /// 4 diff --git a/src/Tizen.NUI/src/public/Path.cs b/src/Tizen.NUI/src/public/Path.cs index c020e4e..6dd06d7 100755 --- a/src/Tizen.NUI/src/public/Path.cs +++ b/src/Tizen.NUI/src/public/Path.cs @@ -94,21 +94,6 @@ namespace Tizen.NUI } /// - /// Downcasts a handle to Path handle. - /// - /// 3 - /// Please do not use! this will be deprecated! - /// Instead please use as keyword. - [Obsolete("Please do not use! This will be deprecated! Please use as keyword instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public static Path DownCast(BaseHandle handle) - { - Path ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as Path; - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - /// /// Adds an interpolation point. /// /// The new interpolation point to be added. diff --git a/src/Tizen.NUI/src/public/Position.cs b/src/Tizen.NUI/src/public/Position.cs index e51f657..e8b1dd5 100755 --- a/src/Tizen.NUI/src/public/Position.cs +++ b/src/Tizen.NUI/src/public/Position.cs @@ -932,134 +932,6 @@ namespace Tizen.NUI ///
/// 3 /// Please do not use! this will be deprecated! - /// Instead please use PivotPointTop. - [Obsolete("Please do not use! This will be deprecated! Please use PivotPoint.Top instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public static float AnchorPointTop - { - get - { - float ret = NDalicPINVOKE.AnchorPointTop_get(); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - /// - /// [Obsolete("Please do not use! this will be deprecated")] - /// - /// 3 - /// Please do not use! this will be deprecated! - /// Instead please use PivotPointBottom. - [Obsolete("Please do not use! This will be deprecated! Please use PivotPoint.Bottom instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public static float AnchorPointBottom - { - get - { - float ret = NDalicPINVOKE.AnchorPointBottom_get(); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - /// - /// [Obsolete("Please do not use! this will be deprecated")] - /// - /// 3 - /// Please do not use! this will be deprecated! - /// Instead please use PivotPointLeft. - [Obsolete("Please do not use! This will be deprecated! Please use PivotPoint.Left instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public static float AnchorPointLeft - { - get - { - float ret = NDalicPINVOKE.AnchorPointLeft_get(); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - /// - /// [Obsolete("Please do not use! this will be deprecated")] - /// - /// 3 - /// Please do not use! this will be deprecated! - /// Instead please use PivotPointRight. - [Obsolete("Please do not use! This will be deprecated! Please use PivotPoint.Right instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public static float AnchorPointRight - { - get - { - float ret = NDalicPINVOKE.AnchorPointRight_get(); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - /// - /// [Obsolete("Please do not use! this will be deprecated")] - /// - /// 3 - /// Please do not use! this will be deprecated! - /// Instead please use PivotPointMiddle. - [Obsolete("Please do not use! This will be deprecated! Please use PivotPoint.Middle instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public static float AnchorPointMiddle - { - get - { - float ret = NDalicPINVOKE.AnchorPointMiddle_get(); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - /// - /// [Obsolete("Please do not use! this will be deprecated")] - /// - /// 3 - /// Please do not use! this will be deprecated! - /// Instead please use PivotPointTopLeft. - [Obsolete("Please do not use! This will be deprecated! Please use PivotPoint.TopLeft instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public static Position AnchorPointTopLeft - { - get - { - global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopLeft_get(); - Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - /// - /// [Obsolete("Please do not use! this will be deprecated")] - /// - /// 3 - /// Please do not use! this will be deprecated! - /// Instead please use PivotPointTopCenter. - [Obsolete("Please do not use! This will be deprecated! Please use PivotPoint.TopCenter instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public static Position AnchorPointTopCenter - { - get - { - global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopCenter_get(); - Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - /// - /// [Obsolete("Please do not use! this will be deprecated")] - /// - /// 3 - /// Please do not use! this will be deprecated! /// Instead please use PivotPointTopRight. [Obsolete("Please do not use! This will be deprecated! Please use PivotPoint.TopRight instead!")] [EditorBrowsable(EditorBrowsableState.Never)] @@ -1098,82 +970,6 @@ namespace Tizen.NUI /// /// 3 /// Please do not use! this will be deprecated! - /// Instead please use PivotPointCenter. - [Obsolete("Please do not use! This will be deprecated! Please use PivotPoint.Center instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public static Position AnchorPointCenter - { - get - { - global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenter_get(); - Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - /// - /// [Obsolete("Please do not use! this will be deprecated")] - /// - /// 3 - /// Please do not use! this will be deprecated! - /// Instead please use PivotPointCenterRight. - [Obsolete("Please do not use! This will be deprecated! Please use PivotPoint.CenterRight instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public static Position AnchorPointCenterRight - { - get - { - global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenterRight_get(); - Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - /// - /// [Obsolete("Please do not use! this will be deprecated")] - /// - /// 3 - /// Please do not use! this will be deprecated! - /// Instead please use PivotPointBottomLeft. - [Obsolete("Please do not use! This will be deprecated! Please use PivotPoint.BottomLeft instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public static Position AnchorPointBottomLeft - { - get - { - global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomLeft_get(); - Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - /// - /// [Obsolete("Please do not use! this will be deprecated")] - /// - /// 3 - /// Please do not use! this will be deprecated! - /// Instead please use PivotPointBottomCenter. - [Obsolete("Please do not use! This will be deprecated! Please use PivotPoint.BottomCenter instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public static Position AnchorPointBottomCenter - { - get - { - global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomCenter_get(); - Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - /// - /// [Obsolete("Please do not use! this will be deprecated")] - /// - /// 3 - /// Please do not use! this will be deprecated! /// Instead please use PivotPointBottomRight. [Obsolete("Please do not use! This will be deprecated! Please use PivotPoint.BottomRight instead!")] [EditorBrowsable(EditorBrowsableState.Never)] diff --git a/src/Tizen.NUI/src/public/Position2D.cs b/src/Tizen.NUI/src/public/Position2D.cs index 6102a8c..2cfde0d 100755 --- a/src/Tizen.NUI/src/public/Position2D.cs +++ b/src/Tizen.NUI/src/public/Position2D.cs @@ -399,28 +399,6 @@ namespace Tizen.NUI return new Position2D((int)vec.X, (int)vec.Y); } - /// - /// Converts a Position2D instance to a Uint16Pair instance. - /// - /// An object of the Position2D type. - /// return an object of the Uint16Pair type - /// 4 - public static implicit operator Uint16Pair(Position2D position2d) - { - return new Uint16Pair((uint)position2d.X, (uint)position2d.Y); - } - - /// - /// Converts a Uint16Pair instance to a Position2D instance. - /// - /// An object of the Uint16Pair type. - /// return an object of the Position2D type - /// 4 - public static implicit operator Position2D(Uint16Pair pair) - { - return new Position2D((int)pair.GetX(), (int)pair.GetY()); - } - } } diff --git a/src/Tizen.NUI/src/public/Property.cs b/src/Tizen.NUI/src/public/Property.cs index 881c1e5..ae904d7 100755 --- a/src/Tizen.NUI/src/public/Property.cs +++ b/src/Tizen.NUI/src/public/Property.cs @@ -1022,19 +1022,6 @@ namespace Tizen.NUI } /// - /// Please do not use! this will be deprecated. - /// - /// 3 - [Obsolete("Please do not use! This will be deprecated!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public string GetKey(uint position) - { - string ret = NDalicPINVOKE.Property_Map_GetKey(swigCPtr, position); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - /// /// Retrieves the key at the specified position. /// /// The specified position. @@ -1048,20 +1035,6 @@ namespace Tizen.NUI } /// - /// Please do not use! this will be deprecated - /// - /// 3 - [Obsolete("Please do not use! This will be deprecated!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyValue Find(string key) - { - global::System.IntPtr cPtr = NDalicPINVOKE.Property_Map_Find__SWIG_0(swigCPtr, key); - PropertyValue ret = (cPtr == global::System.IntPtr.Zero) ? null : new PropertyValue(cPtr, false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - /// /// Finds the value for the specified key if it exists. /// /// The key to find. @@ -1091,34 +1064,6 @@ namespace Tizen.NUI } /// - /// Please do not use! this will be deprecated. - /// - /// 3 - [Obsolete("Please do not use! This will be deprecated!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyValue Find(string key, PropertyType type) - { - global::System.IntPtr cPtr = NDalicPINVOKE.Property_Map_Find__SWIG_4(swigCPtr, key, (int)type); - PropertyValue ret = (cPtr == global::System.IntPtr.Zero) ? null : new PropertyValue(cPtr, false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - /// - /// Please do not use! this will be deprecated - /// - /// 3 - [Obsolete("Please do not use! This will be deprecated!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyValue Find(int key, PropertyType type) - { - global::System.IntPtr cPtr = NDalicPINVOKE.Property_Map_Find__SWIG_5(swigCPtr, key, (int)type); - PropertyValue ret = (cPtr == global::System.IntPtr.Zero) ? null : new PropertyValue(cPtr, false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - /// /// Clears the map. /// /// 3 diff --git a/src/Tizen.NUI/src/public/Size2D.cs b/src/Tizen.NUI/src/public/Size2D.cs index fcbcf63..ed1d4a7 100755 --- a/src/Tizen.NUI/src/public/Size2D.cs +++ b/src/Tizen.NUI/src/public/Size2D.cs @@ -395,30 +395,6 @@ namespace Tizen.NUI { return new Size2D((int)vector2.X, (int)vector2.Y); } - - /// - /// The type cast operator, Size2D to Uint16Pair. - /// - /// An object of the Size2D type. - /// return a Uint16Pair instance - /// 4 - public static implicit operator Uint16Pair(Size2D size2d) - { - return new Uint16Pair((uint)size2d.Width, (uint)size2d.Height); - } - - /// - /// The type cast operator, Uint16Pair to Size2D type. - /// - /// An object of the Vector2 type. - /// return a Size2D instance - /// 4 - public static implicit operator Size2D(Uint16Pair pair) - { - return new Size2D((int)pair.GetWidth(), (int)pair.GetWidth()); - } - - } } diff --git a/src/Tizen.NUI/src/public/Timer.cs b/src/Tizen.NUI/src/public/Timer.cs index cfae067..4d095c1 100755 --- a/src/Tizen.NUI/src/public/Timer.cs +++ b/src/Tizen.NUI/src/public/Timer.cs @@ -164,21 +164,6 @@ namespace Tizen.NUI } /// - /// Downcasts a handle to Timer handle. - /// - /// 3 - /// Please do not use! this will be deprecated! - /// Instead please use as keyword. - [Obsolete("Please do not use! This will be deprecated! Please use as keyword instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public static Timer DownCast(BaseHandle handle) - { - Timer ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as Timer; - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - /// /// Starts the timer.
/// In case a timer is already running, its time is reset and the timer is restarted.
///
diff --git a/src/Tizen.NUI/src/public/UIComponents/Popup.cs b/src/Tizen.NUI/src/public/UIComponents/Popup.cs index 8e5002e..3da49bf 100755 --- a/src/Tizen.NUI/src/public/UIComponents/Popup.cs +++ b/src/Tizen.NUI/src/public/UIComponents/Popup.cs @@ -391,21 +391,6 @@ namespace Tizen.NUI.UIComponents } /// - /// Downcasts a handle to popup handle. - /// - /// 3 - /// Please do not use! this will be deprecated! - /// Instead please use as keyword. - [Obsolete("Please do not use! This will be deprecated! Please use as keyword instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public new static Popup DownCast(BaseHandle handle) - { - Popup ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as Popup; - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - /// /// Sets the title for this popup. /// /// The actor to set the title. diff --git a/src/Tizen.NUI/src/public/UIComponents/PushButton.cs b/src/Tizen.NUI/src/public/UIComponents/PushButton.cs index 0b88d5c..8b9a0ba 100755 --- a/src/Tizen.NUI/src/public/UIComponents/PushButton.cs +++ b/src/Tizen.NUI/src/public/UIComponents/PushButton.cs @@ -94,190 +94,5 @@ namespace Tizen.NUI.UIComponents if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } - - /// - /// Downcasts a handle to pushButton handle. - /// - /// 3 - /// Please do not use! this will be deprecated! - /// Instead please use as keyword. - [Obsolete("Please do not use! This will be deprecated! Please use as keyword instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public new static PushButton DownCast(BaseHandle handle) - { - PushButton ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as PushButton; - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - /// - /// UnselectedIcon. - /// - /// 3 - /// Please do not use! this will be deprecated! - /// Instead please use UnselectedVisual. - [Obsolete("Please do not use! This will be deprecated! Please use UnselectedVisual instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public string UnselectedIcon - { - set - { - SetProperty(PushButton.Property.UNSELECTED_ICON, new Tizen.NUI.PropertyValue(value)); - } - } - - /// - /// SelectedIcon. - /// - /// 3 - /// Please do not use! this will be deprecated! - /// Instead please use SelectedVisual. - [Obsolete("Please do not use! This will be deprecated! Please use SelectedVisual instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public string SelectedIcon - { - set - { - SetProperty(PushButton.Property.SELECTED_ICON, new Tizen.NUI.PropertyValue(value)); - } - } - - /// - /// Please do not use! this will be deprecated - /// - /// 3 - [Obsolete("Please do not use! This will be deprecated! Please use LabelRelativeAlignment instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public IconAlignmentType IconAlignment - { - get - { - string temp; - if (GetProperty(PushButton.Property.ICON_ALIGNMENT).Get(out temp) == false) - { - NUILog.Error("IconAlignment get error!"); - } - switch (temp) - { - case "LEFT": - return IconAlignmentType.Left; - case "RIGHT": - return IconAlignmentType.Right; - case "TOP": - return IconAlignmentType.Top; - case "BOTTOM": - return IconAlignmentType.Bottom; - default: - return IconAlignmentType.Default; - } - } - set - { - string valueToString = ""; - switch (value) - { - case IconAlignmentType.Left: - { - valueToString = "LEFT"; - break; - } - case IconAlignmentType.Right: - { - valueToString = "RIGHT"; - break; - } - case IconAlignmentType.Top: - { - valueToString = "TOP"; - break; - } - case IconAlignmentType.Bottom: - { - valueToString = "BOTTOM"; - break; - } - default: - { - valueToString = "DEFAULT"; - break; - } - } - SetProperty(PushButton.Property.ICON_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString)); - } - } - - /// - /// Please do not use! this will be deprecated - /// - /// 3 - /// no use - [Obsolete("Please do not use! This will be deprecated! Please use Button.LabelPadding instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public new Vector4 LabelPadding - { - get - { - Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f); - GetProperty(PushButton.Property.LABEL_PADDING).Get(temp); - return temp; - } - set - { - SetProperty(PushButton.Property.LABEL_PADDING, new Tizen.NUI.PropertyValue(value)); - } - } - - /// - /// Please do not use! this will be deprecated - /// - /// 3 - /// no use - [Obsolete("Please do not use! This will be deprecated! Please use ForegroundVisualPadding instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector4 IconPadding - { - get - { - Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f); - GetProperty(PushButton.Property.ICON_PADDING).Get(temp); - return temp; - } - set - { - SetProperty(PushButton.Property.ICON_PADDING, new Tizen.NUI.PropertyValue(value)); - } - } - - /// - /// Please do not use! this will be deprecated - /// - /// 3 - /// no use - [Obsolete("Please do not use! This will be deprecated! Please use Button.Align instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public enum IconAlignmentType - { - /// - /// The icon located to the left of text. - /// - Left, - /// - /// The icon located to the right of text. - /// - Right, - /// - /// The icon located to the top of text. - /// - Top, - /// - /// The icon located to the bottom of text. - /// - Bottom, - /// - /// The icon located to the right of text by default. - /// - Default = Right - } - } } \ No newline at end of file diff --git a/src/Tizen.NUI/src/public/UIComponents/ScrollBar.cs b/src/Tizen.NUI/src/public/UIComponents/ScrollBar.cs index 4d7fa5c..e2d752d 100755 --- a/src/Tizen.NUI/src/public/UIComponents/ScrollBar.cs +++ b/src/Tizen.NUI/src/public/UIComponents/ScrollBar.cs @@ -241,21 +241,6 @@ namespace Tizen.NUI.UIComponents if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } - /// - /// Downcasts a handle to scrollBar handle. - /// - /// 3 - /// Please do not use! this will be deprecated! - /// Instead please use as keyword. - [Obsolete("Please do not use! This will be deprecated! Please use as keyword instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public new static ScrollBar DownCast(BaseHandle handle) - { - ScrollBar ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as ScrollBar; - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - internal void SetScrollPropertySource(Animatable handle, int propertyScrollPosition, int propertyMinScrollPosition, int propertyMaxScrollPosition, int propertyScrollContentSize) { NDalicPINVOKE.ScrollBar_SetScrollPropertySource(swigCPtr, Animatable.getCPtr(handle), propertyScrollPosition, propertyMinScrollPosition, propertyMaxScrollPosition, propertyScrollContentSize); diff --git a/src/Tizen.NUI/src/public/VisualBase.cs b/src/Tizen.NUI/src/public/VisualBase.cs index 3182820..d91eb2c 100755 --- a/src/Tizen.NUI/src/public/VisualBase.cs +++ b/src/Tizen.NUI/src/public/VisualBase.cs @@ -204,14 +204,8 @@ namespace Tizen.NUI /// Creates the property map representing this visual. /// /// 3 - [Obsolete("Please be caution! This will be readonly!")] - [EditorBrowsable(EditorBrowsableState.Never)] public PropertyMap Creation { - set - { - CreatePropertyMap(value); - } get { PropertyMap map = new PropertyMap(); -- 2.7.4