From: Feng Jin Date: Mon, 18 Dec 2017 08:27:43 +0000 (+0800) Subject: [NUI]Remove some unused APIs. X-Git-Tag: 4.0.1-preview1-00044~2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c47270db697579b59e7fa79074dbd3c7bb9942b2;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI]Remove some unused APIs. Change-Id: I779c7ffa66bfd2d26f19a481a21f56a418486652 Signed-off-by: Feng Jin --- diff --git a/src/Tizen.NUI/src/internal/ActivatedSignalType.cs b/src/Tizen.NUI/src/internal/ActivatedSignalType.cs index e15df28..d7191c1 100755 --- a/src/Tizen.NUI/src/internal/ActivatedSignalType.cs +++ b/src/Tizen.NUI/src/internal/ActivatedSignalType.cs @@ -20,13 +20,7 @@ using System.ComponentModel; 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 class ActivatedSignalType : global::System.IDisposable + internal class ActivatedSignalType : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; /// diff --git a/src/Tizen.NUI/src/internal/ConnectionTrackerInterface.cs b/src/Tizen.NUI/src/internal/ConnectionTrackerInterface.cs index 9f601ae..a321300 100755 --- a/src/Tizen.NUI/src/internal/ConnectionTrackerInterface.cs +++ b/src/Tizen.NUI/src/internal/ConnectionTrackerInterface.cs @@ -20,13 +20,7 @@ using System.ComponentModel; namespace Tizen.NUI { - /// - /// Please do not use! this will be deprecated - /// - /// 4 - [Obsolete("Please do not use! This will be deprecated!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public class ConnectionTrackerInterface : SignalObserver + internal class ConnectionTrackerInterface : SignalObserver { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/ImfEventSignalType.cs b/src/Tizen.NUI/src/internal/ImfEventSignalType.cs index 8726e02..a8702e2 100755 --- a/src/Tizen.NUI/src/internal/ImfEventSignalType.cs +++ b/src/Tizen.NUI/src/internal/ImfEventSignalType.cs @@ -20,13 +20,7 @@ using System.ComponentModel; 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 class ImfEventSignalType : global::System.IDisposable + internal class ImfEventSignalType : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; /// diff --git a/src/Tizen.NUI/src/internal/ImfVoidSignalType.cs b/src/Tizen.NUI/src/internal/ImfVoidSignalType.cs deleted file mode 100755 index 97bf8c9..0000000 --- a/src/Tizen.NUI/src/internal/ImfVoidSignalType.cs +++ /dev/null @@ -1,213 +0,0 @@ -/* - * Copyright(c) 2017 Samsung Electronics Co., Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -using System; -using System.Runtime.InteropServices; -using System.ComponentModel; - -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 class ImfVoidSignalType : global::System.IDisposable - { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - /// - /// swigCMemOwn - /// - /// 3 - protected bool swigCMemOwn; - - internal ImfVoidSignalType(global::System.IntPtr cPtr, bool cMemoryOwn) - { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ImfVoidSignalType obj) - { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - //A Flag to check who called Dispose(). (By User or DisposeQueue) - private bool isDisposeQueued = false; - /// - /// A Flat to check if it is already disposed. - /// - /// 3 - protected bool disposed = false; - - /// - /// Dispose - /// - /// 3 - ~ImfVoidSignalType() - { - if (!isDisposeQueued) - { - isDisposeQueued = true; - DisposeQueue.Instance.Add(this); - } - } - - /// - /// Dispose - /// - /// 3 - public void Dispose() - { - //Throw excpetion if Dispose() is called in separate thread. - if (!Window.IsInstalled()) - { - throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread."); - } - - if (isDisposeQueued) - { - Dispose(DisposeTypes.Implicit); - } - else - { - Dispose(DisposeTypes.Explicit); - System.GC.SuppressFinalize(this); - } - } - - /// - /// Dispose - /// - /// 3 - protected virtual void Dispose(DisposeTypes type) - { - if (disposed) - { - return; - } - - if (type == DisposeTypes.Explicit) - { - //Called by User - //Release your own managed resources here. - //You should release all of your own disposable objects here. - - } - - //Release your own unmanaged resources here. - //You should not access any managed member here except static instance. - //because the execution order of Finalizes is non-deterministic. - - if (swigCPtr.Handle != global::System.IntPtr.Zero) - { - if (swigCMemOwn) - { - swigCMemOwn = false; - NDalicManualPINVOKE.delete_ImfVoidSignalType(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - disposed = true; - } - - /// - /// The contructor. - /// - /// 3 - public ImfVoidSignalType() : this(NDalicManualPINVOKE.new_ImfVoidSignalType(), true) - { - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - /// - /// Queries whether there are any connected slots. - /// - /// True if there are any slots connected to the signal - /// 3 - public bool Empty() - { - bool ret = NDalicManualPINVOKE.ImfVoidSignalType_Empty(swigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - /// - /// Queries the number of slots. - /// - /// The number of slots connected to this signal - /// 3 - public uint GetConnectionCount() - { - uint ret = NDalicManualPINVOKE.ImfVoidSignalType_GetConnectionCount(swigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - /// - /// Connects a function. - /// - /// The function to connect - /// 3 - public void Connect(System.Delegate func) - { - System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func); - { - NDalicManualPINVOKE.ImfVoidSignalType_Connect__SWIG_0(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - } - - /// - /// Disconnects a function. - /// - /// The function to disconnect - /// 3 - public void Disconnect(System.Delegate func) - { - System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func); - { - NDalicManualPINVOKE.ImfVoidSignalType_Disconnect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - } - /// - /// Connects a member function. - /// - /// An object which must implement the ConnectionTrackerInterface - /// The member function to connect - /// 4 - public void Connect(ConnectionTrackerInterface connectionTracker, SWIGTYPE_p_Dali__FunctorDelegate arg1) - { - NDalicManualPINVOKE.ImfVoidSignalType_Connect__SWIG_4(swigCPtr, ConnectionTrackerInterface.getCPtr(connectionTracker), SWIGTYPE_p_Dali__FunctorDelegate.getCPtr(arg1)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - /// - /// Emits the signal. - /// - /// 3 - public void Emit() - { - NDalicManualPINVOKE.ImfVoidSignalType_Emit(swigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - } - -} diff --git a/src/Tizen.NUI/src/internal/KeyboardResizedSignalType.cs b/src/Tizen.NUI/src/internal/KeyboardResizedSignalType.cs index 41b4c18..b43d6cc 100755 --- a/src/Tizen.NUI/src/internal/KeyboardResizedSignalType.cs +++ b/src/Tizen.NUI/src/internal/KeyboardResizedSignalType.cs @@ -20,13 +20,7 @@ using System.ComponentModel; namespace Tizen.NUI { - /// - /// Please do not use! this will be deprecated - /// - /// 4 - [Obsolete("Please do not use! This will be deprecated!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public class KeyboardResizedSignalType : global::System.IDisposable + internal class KeyboardResizedSignalType : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; /// diff --git a/src/Tizen.NUI/src/internal/LanguageChangedSignalType.cs b/src/Tizen.NUI/src/internal/LanguageChangedSignalType.cs index aca37ea..b2dc323 100755 --- a/src/Tizen.NUI/src/internal/LanguageChangedSignalType.cs +++ b/src/Tizen.NUI/src/internal/LanguageChangedSignalType.cs @@ -20,13 +20,7 @@ using System.ComponentModel; namespace Tizen.NUI { - /// - /// Please do not use! this will be deprecated - /// - /// 4 - [Obsolete("Please do not use! This will be deprecated!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public class LanguageChangedSignalType : global::System.IDisposable + internal class LanguageChangedSignalType : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; /// diff --git a/src/Tizen.NUI/src/internal/SWIGTYPE_p_CallbackBase.cs b/src/Tizen.NUI/src/internal/SWIGTYPE_p_CallbackBase.cs index 6fe4a73..ff1c2a8 100755 --- a/src/Tizen.NUI/src/internal/SWIGTYPE_p_CallbackBase.cs +++ b/src/Tizen.NUI/src/internal/SWIGTYPE_p_CallbackBase.cs @@ -13,13 +13,7 @@ using System.ComponentModel; namespace Tizen.NUI { - /// - /// This should be internal, please do not use. - /// - /// 4 - [Obsolete("Please do not use! This will be deprecated!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public class SWIGTYPE_p_CallbackBase + internal class SWIGTYPE_p_CallbackBase { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__CallbackBase.cs b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__CallbackBase.cs index 9896aa3..4909b41 100755 --- a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__CallbackBase.cs +++ b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__CallbackBase.cs @@ -13,13 +13,7 @@ using System.ComponentModel; namespace Tizen.NUI { - /// - /// This should be internal, please do not use. - /// - /// 4 - [Obsolete("Please do not use! This will be deprecated!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public class SWIGTYPE_p_Dali__CallbackBase + internal class SWIGTYPE_p_Dali__CallbackBase { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__FunctorDelegate.cs b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__FunctorDelegate.cs index 3dcd4cf..a820f4a 100755 --- a/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__FunctorDelegate.cs +++ b/src/Tizen.NUI/src/internal/SWIGTYPE_p_Dali__FunctorDelegate.cs @@ -13,13 +13,7 @@ using System.ComponentModel; namespace Tizen.NUI { - /// - /// This should be internal, please do not use. - /// - /// 4 - [Obsolete("Please do not use! This will be deprecated!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public class SWIGTYPE_p_Dali__FunctorDelegate + internal class SWIGTYPE_p_Dali__FunctorDelegate { private global::System.Runtime.InteropServices.HandleRef swigCPtr; diff --git a/src/Tizen.NUI/src/internal/SignalObserver.cs b/src/Tizen.NUI/src/internal/SignalObserver.cs index dce29d4..c8b27ce 100755 --- a/src/Tizen.NUI/src/internal/SignalObserver.cs +++ b/src/Tizen.NUI/src/internal/SignalObserver.cs @@ -21,13 +21,7 @@ using System.ComponentModel; namespace Tizen.NUI { - /// - /// Please do not use! this will be deprecated - /// - /// 4 - [Obsolete("Please do not use! This will be deprecated!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public class SignalObserver : global::System.IDisposable + internal class SignalObserver : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; /// diff --git a/src/Tizen.NUI/src/internal/SlotObserver.cs b/src/Tizen.NUI/src/internal/SlotObserver.cs index 5435c05..b765924 100755 --- a/src/Tizen.NUI/src/internal/SlotObserver.cs +++ b/src/Tizen.NUI/src/internal/SlotObserver.cs @@ -20,15 +20,7 @@ using System.ComponentModel; namespace Tizen.NUI { - //Please do not use! this will be internal - /// - /// Abstract Interface used by a slot to inform a signal it is disconnecting.
- /// This is used by the slot if wants to disconnect or is deleted.
- ///
- /// 4 - [Obsolete("Please do not use! This will be deprecated!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public class SlotObserver : global::System.IDisposable + internal class SlotObserver : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; /// swigCMemOwn. diff --git a/src/Tizen.NUI/src/internal/StatusSignalType.cs b/src/Tizen.NUI/src/internal/StatusSignalType.cs index 91302d1..90864d5 100755 --- a/src/Tizen.NUI/src/internal/StatusSignalType.cs +++ b/src/Tizen.NUI/src/internal/StatusSignalType.cs @@ -20,13 +20,7 @@ using System.ComponentModel; 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 class StatusSignalType : global::System.IDisposable + internal class StatusSignalType : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; /// diff --git a/src/Tizen.NUI/src/public/BaseComponents/ImageView.cs b/src/Tizen.NUI/src/public/BaseComponents/ImageView.cs index cf3ceba..c5f5f14 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/ImageView.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/ImageView.cs @@ -193,24 +193,6 @@ namespace Tizen.NUI.BaseComponents } /// - /// Downcasts a handle to imageView 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! " + - "Like: " + - "BaseHandle handle = new ImageView(imagePath); " + - "ImageView image = handle as ImageView")] - [EditorBrowsable(EditorBrowsableState.Never)] - public new static ImageView DownCast(BaseHandle handle) - { - ImageView ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as ImageView; - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - /// /// Sets this ImageView from the given URL.
/// If the URL is empty, ImageView will not display anything.
///
diff --git a/src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs b/src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs index 6a34b74..43d0a53 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs @@ -139,27 +139,6 @@ namespace Tizen.NUI.BaseComponents } /// - /// Downcasts a handle to textLabel 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! " + - "Like: " + - "BaseHandle handle = new TextLabel(\"Hello World!\"); " + - "TextLabel label = handle as TextLabel")] - [EditorBrowsable(EditorBrowsableState.Never)] - public new static TextLabel DownCast(BaseHandle handle) - { - 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/View.cs b/src/Tizen.NUI/src/public/BaseComponents/View.cs old mode 100644 new mode 100755 index aa4e4cd..fe56b64 --- a/src/Tizen.NUI/src/public/BaseComponents/View.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/View.cs @@ -1154,39 +1154,6 @@ namespace Tizen.NUI.BaseComponents if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } - /// - /// Downcasts a handle to view handle.
- /// If handle points to a view, the downcast produces a valid handle.
- /// If not, the returned handle is left uninitialized.
- ///
- /// A handle to an object. - /// A handle to a view or an uninitialized handle. - /// 3 - [Obsolete("Please do not use! This will be deprecated! Please use as keyword instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public static View DownCast(BaseHandle handle) - { - View ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as View; - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - /// - /// [Obsolete("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 static T DownCast(View view) where T : View - { - T ret = Registry.GetManagedBaseHandleFromNativePtr(view) as T; - if (ret != null) - { - return ret; - } - return null; - } - private View ConvertIdToView(uint id) { View view = null; @@ -4231,71 +4198,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 AddedToWindow. - [Obsolete("Please do not use! This will be deprecated! Please use AddedToWindow instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public event EventHandler OnWindowEvent - { - add - { - if (_onWindowEventHandler == null) - { - _onWindowEventCallback = OnWindow; - this.OnWindowSignal().Connect(_onWindowEventCallback); - } - - _onWindowEventHandler += value; - } - - remove - { - _onWindowEventHandler -= value; - - if (_onWindowEventHandler == null && OnWindowSignal().Empty() == false) - { - this.OnWindowSignal().Disconnect(_onWindowEventCallback); - } - } - } - - /// - /// [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)] - public event EventHandler OnRelayoutEvent - { - add - { - if (_onRelayoutEventHandler == null) - { - _onRelayoutEventCallback = OnRelayout; - this.OnRelayoutSignal().Connect(_onRelayoutEventCallback); - } - - _onRelayoutEventHandler += value; - } - - remove - { - _onRelayoutEventHandler -= value; - - if (_onRelayoutEventHandler == null && OnRelayoutSignal().Empty() == false) - { - this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback); - } - - } - } - - /// /// "Please DO NOT use! This will be deprecated! Please use 'Container GetParent() for derived class' instead!" /// /// 3 diff --git a/src/Tizen.NUI/src/public/ImfManager.cs b/src/Tizen.NUI/src/public/ImfManager.cs index 24ee3e0..3339548 100755 --- a/src/Tizen.NUI/src/public/ImfManager.cs +++ b/src/Tizen.NUI/src/public/ImfManager.cs @@ -89,31 +89,6 @@ namespace Tizen.NUI KeyboardTypeChangedSignal().Disconnect(_keyboardTypeChangedEventCallback); } - if (_imfManagerLanguageChangedEventCallback != null) - { - LanguageChangedSignal().Disconnect(_imfManagerLanguageChangedEventCallback); - } - - if (_imfManagerResizedEventCallback != null) - { - ResizedSignal().Disconnect(_imfManagerResizedEventCallback); - } - - if (_imfManagerStatusChangedEventCallback != null) - { - StatusChangedSignal().Disconnect(_imfManagerStatusChangedEventCallback); - } - - if (_imfManagerEventReceivedEventCallback != null) - { - EventReceivedSignal().Disconnect(_imfManagerEventReceivedEventCallback); - } - - if (_imfManagerActivatedEventCallback != null) - { - ActivatedSignal().Disconnect(_imfManagerActivatedEventCallback); - } - if (swigCPtr.Handle != global::System.IntPtr.Zero) { if (swigCMemOwn) @@ -263,27 +238,6 @@ namespace Tizen.NUI /// /// The pre-edit or the commit string. /// - /// /// 3 - [Obsolete("Please do not use! This will be deprecated! Please use PredictiveString instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public string predictiveString - { - set - { - NDalicManualPINVOKE.ImfManager_ImfEventData_predictiveString_set(swigCPtr, value); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - get - { - string ret = NDalicManualPINVOKE.ImfManager_ImfEventData_predictiveString_get(swigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - /// - /// The pre-edit or the commit string. - /// /// 4 public string PredictiveString { @@ -303,28 +257,6 @@ namespace Tizen.NUI /// /// The name of the event from the IMF. /// - /// Please do not use! this will be deprecated - /// 3 - [Obsolete("Please do not use! This will be deprecated! Please use EventName instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public ImfManager.ImfEvent eventName - { - set - { - NDalicManualPINVOKE.ImfManager_ImfEventData_eventName_set(swigCPtr, (int)value); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - get - { - ImfManager.ImfEvent ret = (ImfManager.ImfEvent)NDalicManualPINVOKE.ImfManager_ImfEventData_eventName_get(swigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - /// - /// The name of the event from the IMF. - /// /// 4 public ImfManager.ImfEvent EventName { @@ -344,28 +276,6 @@ namespace Tizen.NUI /// /// The start position from the current cursor position to start deleting characters. /// - /// Please do not use! this will be deprecated - /// 3 - [Obsolete("Please do not use! This will be deprecated! Please use CursorOffset instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public int cursorOffset - { - set - { - NDalicManualPINVOKE.ImfManager_ImfEventData_cursorOffset_set(swigCPtr, value); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - get - { - int ret = NDalicManualPINVOKE.ImfManager_ImfEventData_cursorOffset_get(swigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - /// - /// The start position from the current cursor position to start deleting characters. - /// /// 4 public int CursorOffset { @@ -385,28 +295,6 @@ namespace Tizen.NUI /// /// The number of characters to delete from the cursorOffset. /// - /// Please do not use! this will be deprecated - /// 3 - [Obsolete("Please do not use! This will be deprecated! Please use NumberOfChars instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public int numberOfChars - { - set - { - NDalicManualPINVOKE.ImfManager_ImfEventData_numberOfChars_set(swigCPtr, value); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - get - { - int ret = NDalicManualPINVOKE.ImfManager_ImfEventData_numberOfChars_get(swigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - /// - /// The number of characters to delete from the cursorOffset. - /// /// 4 public int NumberOfChars { @@ -567,28 +455,6 @@ namespace Tizen.NUI /// /// The current text string. /// - /// Please do not use! this will be deprecated - /// 3 - [Obsolete("Please do not use! This will be deprecated! Please use CurrentText instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public string currentText - { - set - { - NDalicManualPINVOKE.ImfManager_ImfCallbackData_currentText_set(swigCPtr, value); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - get - { - string ret = NDalicManualPINVOKE.ImfManager_ImfCallbackData_currentText_get(swigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - /// - /// The current text string. - /// /// 4 public string CurrentText { @@ -608,28 +474,6 @@ namespace Tizen.NUI /// /// The current text string. /// - /// Please do not use! this will be deprecated - /// 3 - [Obsolete("Please do not use! This will be deprecated! Please use CursorPosition instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public int cursorPosition - { - set - { - NDalicManualPINVOKE.ImfManager_ImfCallbackData_cursorPosition_set(swigCPtr, value); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - get - { - int ret = NDalicManualPINVOKE.ImfManager_ImfCallbackData_cursorPosition_get(swigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - /// - /// The current text string. - /// /// 4 public int CursorPosition { @@ -649,28 +493,6 @@ namespace Tizen.NUI /// /// If the cursor position needs to be updated. /// - /// Please do not use! this will be deprecated - /// 3 - [Obsolete("Please do not use! This will be deprecated! Please use Update instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool update - { - set - { - NDalicManualPINVOKE.ImfManager_ImfCallbackData_update_set(swigCPtr, value); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - get - { - bool ret = NDalicManualPINVOKE.ImfManager_ImfCallbackData_update_get(swigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - /// - /// If the cursor position needs to be updated. - /// /// 4 public bool Update { @@ -690,28 +512,6 @@ namespace Tizen.NUI /// /// Flags if preedit reset is required. /// - /// Please do not use! this will be deprecated - /// 3 - [Obsolete("Please do not use! This will be deprecated! Please use PreeditResetRequired instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool preeditResetRequired - { - set - { - NDalicManualPINVOKE.ImfManager_ImfCallbackData_preeditResetRequired_set(swigCPtr, value); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - get - { - bool ret = NDalicManualPINVOKE.ImfManager_ImfCallbackData_preeditResetRequired_get(swigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - /// - /// Flags if preedit reset is required. - /// /// 4 public bool PreeditResetRequired { @@ -1039,76 +839,6 @@ namespace Tizen.NUI /// /// ImfManager activated event arguments. /// - /// Please do not use! this will be deprecated - /// 3 - [Obsolete("Please do not use! This will be deprecated! Please use ActivatedEventArgs instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public class ImfManagerActivatedEventArgs : EventArgs - { - /// - /// ImfManager - /// - /// 3 - public ImfManager ImfManager - { - get; - set; - } - } - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - private delegate void ImfManagerActivatedEventCallbackType(global::System.IntPtr data); - private ImfManagerActivatedEventCallbackType _imfManagerActivatedEventCallback; - private event EventHandler _imfManagerActivatedEventHandler; - - /// - /// ImfManager activated event. - /// - ///Please do not use! this will be deprecated - /// 3 - [Obsolete("Please do not use! This will be deprecated! Please use Activated instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public event EventHandler ImfManagerActivated - { - add - { - if (_imfManagerActivatedEventHandler == null) - { - _imfManagerActivatedEventCallback = OnImfManagerActivated; - ActivatedSignal().Connect(_imfManagerActivatedEventCallback); - } - - _imfManagerActivatedEventHandler += value; - } - remove - { - _imfManagerActivatedEventHandler -= value; - - if (_imfManagerActivatedEventHandler == null && _imfManagerActivatedEventCallback != null) - { - ActivatedSignal().Disconnect(_imfManagerActivatedEventCallback); - } - } - } - - private void OnImfManagerActivated(global::System.IntPtr data) - { - ImfManagerActivatedEventArgs e = new ImfManagerActivatedEventArgs(); - - if (data != null) - { - e.ImfManager = Registry.GetManagedBaseHandleFromNativePtr(data) as ImfManager; - } - - if (_imfManagerActivatedEventHandler != null) - { - _imfManagerActivatedEventHandler(this, e); - } - } - - /// - /// ImfManager activated event arguments. - /// /// 4 public class ActivatedEventArgs : EventArgs { @@ -1170,14 +900,7 @@ namespace Tizen.NUI } } - /// - /// ImfManager activated signal. - /// - /// Please do not use! this will be internal - /// 3 - [Obsolete("Please do not use! This will be deprecated!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public ActivatedSignalType ActivatedSignal() + internal ActivatedSignalType ActivatedSignal() { ActivatedSignalType ret = new ActivatedSignalType(NDalicManualPINVOKE.ImfManager_ActivatedSignal(swigCPtr), false); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); @@ -1187,75 +910,6 @@ namespace Tizen.NUI /// /// ImfManager event received event arguments. /// - /// Please do not use! this will be deprecated - /// 3 - [Obsolete("Please do not use! This will be deprecated! Please use EventReceivedEventArgs instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public class ImfManagerEventReceivedEventArgs : EventArgs - { - /// - /// ImfManager - /// - /// 3 - public ImfManager ImfManager - { - get; - set; - } - } - - private delegate void ImfManagerEventReceivedEventCallbackType(global::System.IntPtr data); - private ImfManagerEventReceivedEventCallbackType _imfManagerEventReceivedEventCallback; - private event EventHandler _imfManagerEventReceivedEventHandler; - - /// - /// ImfManager event received. - /// - ///Please do not use! this will be deprecated - /// 3 - [Obsolete("Please do not use! This will be deprecated! Please use EventReceived instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public event EventHandler ImfManagerEventReceived - { - add - { - if (_imfManagerEventReceivedEventHandler == null) - { - _imfManagerEventReceivedEventCallback = OnImfManagerEventReceived; - EventReceivedSignal().Connect(_imfManagerEventReceivedEventCallback); - } - - _imfManagerEventReceivedEventHandler += value; - } - remove - { - _imfManagerEventReceivedEventHandler -= value; - - if (_imfManagerEventReceivedEventHandler == null && _imfManagerEventReceivedEventCallback != null) - { - EventReceivedSignal().Disconnect(_imfManagerEventReceivedEventCallback); - } - } - } - - private void OnImfManagerEventReceived(global::System.IntPtr data) - { - ImfManagerEventReceivedEventArgs e = new ImfManagerEventReceivedEventArgs(); - - if (data != null) - { - e.ImfManager = Registry.GetManagedBaseHandleFromNativePtr(data) as ImfManager; - } - - if (_imfManagerEventReceivedEventHandler != null) - { - _imfManagerEventReceivedEventHandler(this, e); - } - } - - /// - /// ImfManager event received event arguments. - /// /// 4 public class EventReceivedEventArgs : EventArgs { @@ -1340,14 +994,7 @@ namespace Tizen.NUI } } - /// - /// ImfManager event received signal. - /// - /// Please do not use! this will be internal - /// 3 - [Obsolete("Please do not use! This will be deprecated!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public ImfEventSignalType EventReceivedSignal() + internal ImfEventSignalType EventReceivedSignal() { ImfEventSignalType ret = new ImfEventSignalType(NDalicManualPINVOKE.ImfManager_EventReceivedSignal(swigCPtr), false); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); @@ -1357,75 +1004,6 @@ namespace Tizen.NUI /// /// ImfManager status changed event arguments. /// - ///Please do not use! this will be deprecated - /// 3 - [Obsolete("Please do not use! This will be deprecated! Please use StatusChangedEventArgs instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public class ImfManagerStatusChangedEventArgs : EventArgs - { - /// - /// ImfManager - /// - /// 3 - public ImfManager ImfManager - { - get; - set; - } - } - - private delegate void ImfManagerStatusChangedEventCallbackType(global::System.IntPtr data); - private ImfManagerStatusChangedEventCallbackType _imfManagerStatusChangedEventCallback; - private event EventHandler _imfManagerStatusChangedEventHandler; - - /// - /// ImfManager status changed. - /// - /// Please do not use! this will be deprecated - /// 3 - [Obsolete("Please do not use! This will be deprecated! Please use StatusChanged instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public event EventHandler ImfManagerStatusChanged - { - add - { - if (_imfManagerStatusChangedEventHandler == null) - { - _imfManagerStatusChangedEventCallback = OnImfManagerStatusChanged; - StatusChangedSignal().Connect(_imfManagerStatusChangedEventCallback); - } - - _imfManagerStatusChangedEventHandler += value; - } - remove - { - _imfManagerStatusChangedEventHandler -= value; - - if (_imfManagerStatusChangedEventHandler == null && _imfManagerStatusChangedEventCallback != null) - { - StatusChangedSignal().Disconnect(_imfManagerStatusChangedEventCallback); - } - } - } - - private void OnImfManagerStatusChanged(global::System.IntPtr data) - { - ImfManagerStatusChangedEventArgs e = new ImfManagerStatusChangedEventArgs(); - - if (data != null) - { - e.ImfManager = Registry.GetManagedBaseHandleFromNativePtr(data) as ImfManager; - } - - if (_imfManagerStatusChangedEventHandler != null) - { - _imfManagerStatusChangedEventHandler(this, e); - } - } - - /// - /// ImfManager status changed event arguments. - /// /// 4 public class StatusChangedEventArgs : EventArgs { @@ -1483,14 +1061,7 @@ namespace Tizen.NUI } } - /// - /// ImfManager status changed signal. - /// - ///Please do not use! this will be internal - /// 3 - [Obsolete("Please do not use! This will be deprecated!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public StatusSignalType StatusChangedSignal() + internal StatusSignalType StatusChangedSignal() { StatusSignalType ret = new StatusSignalType(NDalicManualPINVOKE.ImfManager_StatusChangedSignal(swigCPtr), false); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); @@ -1498,75 +1069,6 @@ namespace Tizen.NUI } /// - /// ImfManager resized event arguments. - /// - ///Please do not use! this will be deprecated - /// 3 - [Obsolete("Please do not use! This will be deprecated! Please use ResizedEventArgs instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public class ImfManagerResizedEventArgs : EventArgs - { - /// - /// ImfManager - /// - /// 3 - public ImfManager ImfManager - { - get; - set; - } - } - - private delegate void ImfManagerResizedEventCallbackType(IntPtr data); - private ImfManagerResizedEventCallbackType _imfManagerResizedEventCallback; - private event EventHandler _imfManagerResizedEventHandler; - - /// - /// ImfManager resized event. - /// - ///Please do not use! this will be deprecated - /// 3 - [Obsolete("Please do not use! This will be deprecated! Please use Resized instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public event EventHandler ImfManagerResized - { - add - { - if (_imfManagerResizedEventHandler == null) - { - _imfManagerResizedEventCallback = OnImfManagerResized; - ResizedSignal().Connect(_imfManagerResizedEventCallback); - } - - _imfManagerResizedEventHandler += value; - } - remove - { - _imfManagerResizedEventHandler -= value; - - if (_imfManagerResizedEventHandler == null && _imfManagerResizedEventCallback != null) - { - ResizedSignal().Disconnect(_imfManagerResizedEventCallback); - } - } - } - - private void OnImfManagerResized(IntPtr data) - { - ImfManagerResizedEventArgs e = new ImfManagerResizedEventArgs(); - - if (data != null) - { - e.ImfManager = Registry.GetManagedBaseHandleFromNativePtr(data) as ImfManager; - } - - if (_imfManagerResizedEventHandler != null) - { - _imfManagerResizedEventHandler(this, e); - } - } - - /// /// ImfManager resized event. /// /// 4 @@ -1625,14 +1127,7 @@ namespace Tizen.NUI } } - /// - /// ImfManager resized signal. - /// - ///Please do not use! this will be internal - /// 3 - [Obsolete("Please do not use! This will be deprecated!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public KeyboardResizedSignalType ResizedSignal() + internal KeyboardResizedSignalType ResizedSignal() { KeyboardResizedSignalType ret = new KeyboardResizedSignalType(NDalicManualPINVOKE.ImfManager_ResizedSignal(swigCPtr), false); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); @@ -1640,75 +1135,6 @@ namespace Tizen.NUI } /// - /// ImfManager language changed event arguments. - /// - ///Please do not use! this will be deprecated - /// 3 - [Obsolete("Please do not use! This will be deprecated! Please use LanguageChangedEventArgs instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public class ImfManagerLanguageChangedEventArgs : EventArgs - { - /// - /// ImfManager - /// - /// 3 - public ImfManager ImfManager - { - get; - set; - } - } - - private delegate void ImfManagerLanguageChangedEventCallbackType(IntPtr data); - private ImfManagerLanguageChangedEventCallbackType _imfManagerLanguageChangedEventCallback; - private event EventHandler _imfManagerLanguageChangedEventHandler; - - /// - /// ImfManager language changed event. - /// - ///Please do not use! this will be deprecated - /// 3 - [Obsolete("Please do not use! This will be deprecated! Please use LanguageChanged instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public event EventHandler ImfManagerLanguageChanged - { - add - { - if (_imfManagerLanguageChangedEventHandler == null) - { - _imfManagerLanguageChangedEventCallback = OnImfManagerLanguageChanged; - LanguageChangedSignal().Connect(_imfManagerLanguageChangedEventCallback); - } - - _imfManagerLanguageChangedEventHandler += value; - } - remove - { - _imfManagerLanguageChangedEventHandler -= value; - - if (_imfManagerLanguageChangedEventHandler == null && _imfManagerLanguageChangedEventCallback != null) - { - LanguageChangedSignal().Disconnect(_imfManagerLanguageChangedEventCallback); - } - } - } - - private void OnImfManagerLanguageChanged(IntPtr data) - { - ImfManagerLanguageChangedEventArgs e = new ImfManagerLanguageChangedEventArgs(); - - if (data != null) - { - e.ImfManager = Registry.GetManagedBaseHandleFromNativePtr(data) as ImfManager; - } - - if (_imfManagerLanguageChangedEventHandler != null) - { - _imfManagerLanguageChangedEventHandler(this, e); - } - } - - /// /// ImfManager language changed event args. /// /// 4 @@ -1767,14 +1193,7 @@ namespace Tizen.NUI } } - /// - /// ImfManager language changed signal. - /// - ///Please do not use! this will be internal - /// 3 - [Obsolete("Please do not use! This will be deprecated!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public LanguageChangedSignalType LanguageChangedSignal() + internal LanguageChangedSignalType LanguageChangedSignal() { LanguageChangedSignalType ret = new LanguageChangedSignalType(NDalicManualPINVOKE.ImfManager_LanguageChangedSignal(swigCPtr), false); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); diff --git a/src/Tizen.NUI/src/public/NUIApplication.cs b/src/Tizen.NUI/src/public/NUIApplication.cs index cb2c50d..97bba6c 100755 --- a/src/Tizen.NUI/src/public/NUIApplication.cs +++ b/src/Tizen.NUI/src/public/NUIApplication.cs @@ -246,19 +246,5 @@ namespace Tizen.NUI resourceManager = value; } } - - /// - /// Gets the window instance. - /// - /// 3 - [Obsolete("Please do not use! This will be deprecated!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public Window Window - { - get - { - return Window.Instance; - } - } } } diff --git a/src/Tizen.NUI/src/public/Position.cs b/src/Tizen.NUI/src/public/Position.cs index e8b1dd5..38d5382 100755 --- a/src/Tizen.NUI/src/public/Position.cs +++ b/src/Tizen.NUI/src/public/Position.cs @@ -927,62 +927,5 @@ namespace Tizen.NUI return new Position(vec.X, vec.Y, vec.Z); } - /// - /// [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)] - public static Position AnchorPointTopRight - { - get - { - global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopRight_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 PivotPointCenterLeft. - [Obsolete("Please do not use! This will be deprecated! Please use PivotPoint.CenterLeft instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public static Position AnchorPointCenterLeft - { - get - { - global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenterLeft_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)] - public static Position AnchorPointBottomRight - { - get - { - global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomRight_get(); - Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - } } \ No newline at end of file