From: dongsug.song Date: Wed, 5 Jul 2017 04:52:10 +0000 (+0900) Subject: Revert "[Tizen] some APIs are changed for preview#4" X-Git-Tag: submit/trunk/20170823.075128~91^2~115 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ee33e5fa491d377f38d13c0456e41603dbd129ce;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git Revert "[Tizen] some APIs are changed for preview#4" This reverts commit 98fd4c86cb5d84e165c6b067be20bf4267f085a8. Change-Id: Ie05bce7492496c35498e558a89fa83975dfdf8f7 --- diff --git a/src/Tizen.NUI/src/public/BaseComponents/View.cs b/src/Tizen.NUI/src/public/BaseComponents/View.cs index 02e2352..9113d68 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/View.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/View.cs @@ -1875,7 +1875,7 @@ namespace Tizen.NUI.BaseComponents /// /// Readonly. /// - public Vector3 NaturalSize + internal Vector3 NaturalSize { get { diff --git a/src/Tizen.NUI/src/public/UIComponents/ProgressBar.cs b/src/Tizen.NUI/src/public/ProgressBar.cs similarity index 100% rename from src/Tizen.NUI/src/public/UIComponents/ProgressBar.cs rename to src/Tizen.NUI/src/public/ProgressBar.cs diff --git a/src/Tizen.NUI/src/public/Property.cs b/src/Tizen.NUI/src/public/Property.cs index 9abbc3e..7f61663 100755 --- a/src/Tizen.NUI/src/public/Property.cs +++ b/src/Tizen.NUI/src/public/Property.cs @@ -904,18 +904,6 @@ namespace Tizen.NUI } /// - /// Retrieves the key at the specified position. - /// - /// The specified position - /// A reference to the key at the specified position - public string GetKey(uint position) - { - string ret = NDalicPINVOKE.Property_Map_GetKey(swigCPtr, position); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - /// /// Retrieve the key at the specified position. /// /// The specified position @@ -932,20 +920,7 @@ namespace Tizen.NUI /// /// The key to find /// The value if it exists, an empty object otherwise - 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 - /// The value if it exists, an empty object otherwise - public PropertyValue Find(int key) + internal PropertyValue Find(int key) { global::System.IntPtr cPtr = NDalicPINVOKE.Property_Map_Find__SWIG_2(swigCPtr, key); PropertyValue ret = (cPtr == global::System.IntPtr.Zero) ? null : new PropertyValue(cPtr, false); @@ -968,34 +943,6 @@ namespace Tizen.NUI } /// - /// Finds the value for the specified key if it exists and its type is type. - /// - /// The key to find - /// The type to check - /// The value if it exists, an empty value otherwise - 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; - } - - /// - /// Finds the value for the specified key if it exists and its type is type. - /// - /// The key to find - /// The type to check - /// The value if it exists, an empty value otherwise - 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. /// public void Clear() diff --git a/src/Tizen.NUI/src/public/UIComponents/PushButton.cs b/src/Tizen.NUI/src/public/UIComponents/PushButton.cs index db79869..c6ec224 100755 --- a/src/Tizen.NUI/src/public/UIComponents/PushButton.cs +++ b/src/Tizen.NUI/src/public/UIComponents/PushButton.cs @@ -56,7 +56,7 @@ namespace Tizen.NUI.UIComponents return; } - if (type == DisposeTypes.Explicit) + if(type == DisposeTypes.Explicit) { //Called by User //Release your own managed resources here. @@ -99,234 +99,18 @@ namespace Tizen.NUI.UIComponents } - internal PushButton(PushButton pushButton) : this(NDalicPINVOKE.new_PushButton__SWIG_1(PushButton.getCPtr(pushButton)), true) - { - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - internal PushButton Assign(PushButton pushButton) - { - PushButton ret = new PushButton(NDalicPINVOKE.PushButton_Assign(swigCPtr, PushButton.getCPtr(pushButton)), false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - /// - /// Downcasts a handle to PushButton handle.
- /// If handle points to a PushButton, the downcast produces valid handle.
- /// If not the returned handle is left uninitialized.
- ///
- /// Handle to an object - /// handle to a PushButton or an uninitialized handle - internal new static PushButton DownCast(BaseHandle handle) - { - PushButton ret = new PushButton(NDalicPINVOKE.PushButton_DownCast(BaseHandle.getCPtr(handle)), true); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - internal new void SetButtonImage(Image image) - { - NDalicPINVOKE.PushButton_SetButtonImage__SWIG_0_0(swigCPtr, Image.getCPtr(image)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - internal void SetButtonImage(View image) - { - NDalicPINVOKE.PushButton_SetButtonImage__SWIG_1(swigCPtr, View.getCPtr(image)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - internal void SetBackgroundImage(View image) - { - NDalicPINVOKE.PushButton_SetBackgroundImage(swigCPtr, View.getCPtr(image)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - internal new void SetSelectedImage(Image image) - { - NDalicPINVOKE.PushButton_SetSelectedImage__SWIG_0_0(swigCPtr, Image.getCPtr(image)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - internal void SetSelectedImage(View image) - { - NDalicPINVOKE.PushButton_SetSelectedImage__SWIG_1(swigCPtr, View.getCPtr(image)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - internal void SetSelectedBackgroundImage(View image) - { - NDalicPINVOKE.PushButton_SetSelectedBackgroundImage(swigCPtr, View.getCPtr(image)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - internal void SetDisabledBackgroundImage(View image) - { - NDalicPINVOKE.PushButton_SetDisabledBackgroundImage(swigCPtr, View.getCPtr(image)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - internal void SetDisabledImage(View image) - { - NDalicPINVOKE.PushButton_SetDisabledImage(swigCPtr, View.getCPtr(image)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - internal void SetDisabledSelectedImage(View image) - { - NDalicPINVOKE.PushButton_SetDisabledSelectedImage(swigCPtr, View.getCPtr(image)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - internal enum PropertyRange - { - PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX, - PROPERTY_END_INDEX = View.PropertyRange.PROPERTY_START_INDEX + 1000 - } - - /// - /// Sets the unselected button image. - /// - public string UnselectedIcon - { - set - { - SetProperty(PushButton.Property.UNSELECTED_ICON, new Tizen.NUI.PropertyValue(value)); - } - } - /// - /// Sets the selected button image. - /// - public string SelectedIcon - { - set - { - SetProperty(PushButton.Property.SELECTED_ICON, new Tizen.NUI.PropertyValue(value)); - } - } - /// - /// Sets the icon alignment. - /// - public IconAlignmentType IconAlignment - { - get - { - string temp; - if (GetProperty(PushButton.Property.ICON_ALIGNMENT).Get(out temp) == false) - { -#if DEBUG_ON - Tizen.Log.Error("NUI", "IconAlignment get error!"); -#endif - } - 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)); - } - } - /// - /// Sets the label padding value. - /// - public 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)); - } - } - - /// - /// Sets the icon padding value. - /// - 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)); - } - } - - /// - /// Enumeration for the alignment modes of the icon. - /// - public enum IconAlignmentType - { - /// - /// Icon located to the left of text. - /// - Left, - /// - /// Icon located to the right of text. - /// - Right, - /// - /// Icon located to the top of text. - /// - Top, - /// - /// Icon located to the bottom of text. - /// - Bottom, - /// - /// Icon located to the right of text by default. - /// - Default = Right - } - - } + /// + /// Downcasts a handle to PushButton handle.
+ /// If handle points to a PushButton, the downcast produces valid handle.
+ /// If not the returned handle is left uninitialized.
+ ///
+ /// Handle to an object + /// handle to a PushButton or an uninitialized handle + internal new static PushButton DownCast(BaseHandle handle) + { + PushButton ret = new PushButton(NDalicPINVOKE.PushButton_DownCast(BaseHandle.getCPtr(handle)), true); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } } diff --git a/src/Tizen.NUI/src/public/Window.cs b/src/Tizen.NUI/src/public/Window.cs index 0c6163f..dcf69ad 100755 --- a/src/Tizen.NUI/src/public/Window.cs +++ b/src/Tizen.NUI/src/public/Window.cs @@ -103,18 +103,18 @@ namespace Tizen.NUI return ret; } - /*********************************************************************************/ - /*** will be removed/deprecated ***/ - /*********************************************************************************/ + /*********************************************************************************/ + /*** will be removed/deprecated ***/ + /*********************************************************************************/ public void SetAcceptFocus(bool accept) { NDalicPINVOKE.SetAcceptFocus(swigCPtr, accept); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } - /*********************************************************************************/ - /*** will be removed/deprecated ***/ - /*********************************************************************************/ + /*********************************************************************************/ + /*** will be removed/deprecated ***/ + /*********************************************************************************/ public bool IsFocusAcceptable() { return NDalicPINVOKE.IsFocusAcceptable(swigCPtr);