Modify property name of Property class
authorhuiyu <huiyu.eun@samsung.com>
Wed, 19 Apr 2023 07:18:06 +0000 (16:18 +0900)
committerJoogabYun <40262755+JoogabYun@users.noreply.github.com>
Wed, 26 Apr 2023 07:07:45 +0000 (16:07 +0900)
Signed-off-by: huiyu <huiyu.eun@samsung.com>
src/Tizen.NUI/src/internal/Common/PropertyHelper.cs
src/Tizen.NUI/src/public/Animation/Animatable.cs
src/Tizen.NUI/src/public/Common/Property.cs

index 636326c..a63aa7d 100755 (executable)
@@ -60,7 +60,7 @@ namespace Tizen.NUI
         internal static Property GetPropertyFromString(Animatable handle, string stringProperty)
         {
             Property property = new Property(handle, LowerFirstLetter(stringProperty));
-            if (property.propertyIndex == Property.InvalidIndex)
+            if (property.PropertyIndex == Property.InvalidIndex)
             {
                 throw new System.ArgumentException("string property is invalid");
             }
@@ -87,14 +87,14 @@ namespace Tizen.NUI
         {
             Property property = new Property(animatable, lowercasePropertyString);
 
-            if (property.propertyIndex == Property.InvalidIndex)
+            if (property.PropertyIndex == Property.InvalidIndex)
             {
                 property.Dispose();
                 return null;
             }
 
             OOConverter converter = null;
-            if (animatable.GetPropertyType(property.propertyIndex).Equals(PropertyType.Float))
+            if (animatable.GetPropertyType(property.PropertyIndex).Equals(PropertyType.Float))
             {
                 converter = ObjectIntToFloat;
             }
@@ -118,7 +118,7 @@ namespace Tizen.NUI
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
 
             var property = new Property(propertyIntPtr, true);
-            if (property.propertyIndex == Property.InvalidIndex)
+            if (property.PropertyIndex == Property.InvalidIndex)
             {
                 property.Dispose();
                 return data.RelatedData == null ? null : GenerateVisualPropertySearchResult(view, data.RelatedData);
index 4d83bbc..e77f667 100755 (executable)
@@ -147,13 +147,13 @@ namespace Tizen.NUI
         {
             var propertyName = LowerFirstLetter(name);
             Property property = new Property(this, propertyName);
-            if (property.propertyIndex == Property.InvalidIndex)
+            if (property.PropertyIndex == Property.InvalidIndex)
             {
                 Tizen.Log.Error("NUI", "Invalid property name\n");
             }
             else
             {
-                Tizen.NUI.Object.SetProperty(SwigCPtr, property.propertyIndex, propertyValue);
+                Tizen.NUI.Object.SetProperty(SwigCPtr, property.PropertyIndex, propertyValue);
             }
             property.Dispose();
         }
@@ -209,7 +209,7 @@ namespace Tizen.NUI
         public PropertyNotification AddPropertyNotification(string property, PropertyCondition condition)
         {
             Property properties = PropertyHelper.GetPropertyFromString(this, property);
-            PropertyNotification ret = new PropertyNotification(Interop.Handle.AddPropertyNotification(SwigCPtr, properties.propertyIndex, PropertyCondition.getCPtr(condition)), true);
+            PropertyNotification ret = new PropertyNotification(Interop.Handle.AddPropertyNotification(SwigCPtr, properties.PropertyIndex, PropertyCondition.getCPtr(condition)), true);
             properties.Dispose();
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
             return ret;
index 591cb70..50a210a 100755 (executable)
@@ -22,9 +22,9 @@ namespace Tizen.NUI
         /// <summary>
         /// This constructor creates a property instance.
         /// </summary>
-        /// <param name="arg0">A valid handle to the target object.</param>
+        /// <param name="animatable">A valid handle to the target object.</param>
         /// <param name="propertyIndex">The index of a property.</param>
-        public Property(Animatable arg0, int propertyIndex) : this(Interop.Property.NewProperty(Animatable.getCPtr(arg0), propertyIndex), true)
+        public Property(Animatable animatable, int propertyIndex) : this(Interop.Property.NewProperty(Animatable.getCPtr(animatable), propertyIndex), true)
         {
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
         }
@@ -32,10 +32,10 @@ namespace Tizen.NUI
         /// <summary>
         /// This constructor creates a property instance.
         /// </summary>
-        /// <param name="arg0">A valid handle to the target object.</param>
+        /// <param name="animatable">A valid handle to the target object.</param>
         /// <param name="propertyIndex">The index of a property.</param>
         /// <param name="componentIndex">Index to a sub component of a property, for use with Vector2, Vector3 and Vector4. -1 for the main property (default is -1).</param>
-        public Property(Animatable arg0, int propertyIndex, int componentIndex) : this(Interop.Property.NewProperty(Animatable.getCPtr(arg0), propertyIndex, componentIndex), true)
+        public Property(Animatable animatable, int propertyIndex, int componentIndex) : this(Interop.Property.NewProperty(Animatable.getCPtr(animatable), propertyIndex, componentIndex), true)
         {
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
         }
@@ -44,9 +44,9 @@ namespace Tizen.NUI
         /// This constructor creates a property instance.<br />
         /// This performs a property index query and is therefore slower than constructing a property directly with the index.<br />
         /// </summary>
-        /// <param name="arg0">A valid handle to the target object.</param>
+        /// <param name="animatable">A valid handle to the target object.</param>
         /// <param name="propertyName">The property name.</param>
-        public Property(Animatable arg0, string propertyName) : this(Interop.Property.NewProperty(Animatable.getCPtr(arg0), propertyName), true)
+        public Property(Animatable animatable, string propertyName) : this(Interop.Property.NewProperty(Animatable.getCPtr(animatable), propertyName), true)
         {
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
         }
@@ -55,10 +55,10 @@ namespace Tizen.NUI
         /// This constructor creates a property instance.<br />
         /// This performs a property index query and is therefore slower than constructing a property directly with the index.<br />
         /// </summary>
-        /// <param name="arg0">A valid handle to the target object.</param>
+        /// <param name="animatable">A valid handle to the target object.</param>
         /// <param name="propertyName">The property name.</param>
         /// <param name="componentIndex">Index to a sub component of a property, for use with Vector2, Vector3 and Vector4. -1 for main property (default is -1).</param>
-        public Property(Animatable arg0, string propertyName, int componentIndex) : this(Interop.Property.NewProperty(Animatable.getCPtr(arg0), propertyName, componentIndex), true)
+        public Property(Animatable animatable, string propertyName, int componentIndex) : this(Interop.Property.NewProperty(Animatable.getCPtr(animatable), propertyName, componentIndex), true)
         {
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
         }
@@ -70,7 +70,7 @@ namespace Tizen.NUI
         /// <summary>
         /// Gets or sets the index of the property.
         /// </summary>
-        public int propertyIndex
+        public int PropertyIndex
         {
             set
             {
@@ -88,7 +88,7 @@ namespace Tizen.NUI
         /// <summary>
         /// Gets or sets the component index of the property.
         /// </summary>
-        public int componentIndex
+        public int ComponentIndex
         {
             set
             {