[NUI] TextField/TextEditor: Add enableEditing properties (#2071)
authorAli-Alzyoud <ali198724@gmail.com>
Fri, 30 Oct 2020 01:26:54 +0000 (03:26 +0200)
committerGitHub <noreply@github.com>
Fri, 30 Oct 2020 01:26:54 +0000 (10:26 +0900)
src/Tizen.NUI/src/internal/Interop/Interop.TextEditor.cs
src/Tizen.NUI/src/internal/Interop/Interop.TextField.cs
src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs
src/Tizen.NUI/src/public/BaseComponents/TextField.cs

index 3bce2106c6b5b065fc5cde757c0cc34711bb4475..c29f652c9a837057d08af71cb6ea24e1560357b4 100755 (executable)
@@ -245,6 +245,10 @@ namespace Tizen.NUI
 
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TextEditor_Property_SELECTED_TEXT_END_get")]
             public static extern int TextEditor_Property_SELECTED_TEXT_END_get();
+
+            [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TextEditor_Property_ENABLE_EDITING_get")]
+            public static extern int TextEditor_Property_ENABLE_EDITING_get();
+
         }
     }
 }
\ No newline at end of file
index bbc62a55abaaeee57635f218fec37c00d39209dc..d66ca7013c7306a71c4cd0e103c0bc0b9ce49627 100755 (executable)
@@ -245,6 +245,9 @@ namespace Tizen.NUI
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TextField_Property_SELECTED_TEXT_END_get")]
             public static extern int TextField_Property_SELECTED_TEXT_END_get();
 
+            [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TextField_Property_ENABLE_EDITING_get")]
+            public static extern int TextField_Property_ENABLE_EDITING_get();
+
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TextField_SelectNone")]
             public static extern int TextField_SelectNone(global::System.Runtime.InteropServices.HandleRef jarg1);
         }
index 2ebf97951e57a4fca853733ff70c5957867885a1..c664e09389ec25040b1bfb9e083bfb31e4761aed 100755 (executable)
@@ -1025,6 +1025,26 @@ namespace Tizen.NUI.BaseComponents
             }
         }
 
+        /// Enable editing in text control.
+        /// </summary>
+        /// <since_tizen> 8 </since_tizen>
+        /// This will be public opened in tizen_6.0 after ACR done, Before ACR, need to be hidden as inhouse API.
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public bool EnableEditing
+        {
+            get
+            {
+                bool temp;
+                GetProperty(TextEditor.Property.ENABLE_EDITING).Get(out temp);
+                return temp;
+            }
+            set
+            {
+                SetProperty(TextEditor.Property.ENABLE_EDITING, new PropertyValue(value));
+                NotifyPropertyChanged();
+            }
+        }
+
         /// <summary>
         /// The Placeholder property.
         /// Gets or sets the placeholder: text, color, font family, font style, point size, and pixel size.
@@ -1315,6 +1335,7 @@ namespace Tizen.NUI.BaseComponents
             internal static readonly int MAX_LENGTH = Interop.TextEditor.TextEditor_Property_MAX_LENGTH_get();
             internal static readonly int SELECTED_TEXT_START = Interop.TextEditor.TextEditor_Property_SELECTED_TEXT_START_get();
             internal static readonly int SELECTED_TEXT_END = Interop.TextEditor.TextEditor_Property_SELECTED_TEXT_END_get();
+            internal static readonly int ENABLE_EDITING = Interop.TextEditor.TextEditor_Property_ENABLE_EDITING_get();
         }
 
         internal class InputStyle
index 872b8a6d84365914ad2b07a41f57252dd4893ef1..d74b284dc0872545fe245b6200ef1d26d7ee8945 100755 (executable)
@@ -1168,6 +1168,26 @@ namespace Tizen.NUI.BaseComponents
             }
         }
 
+        /// Enable editing in text control.
+        /// </summary>
+        /// <since_tizen> 8 </since_tizen>
+        /// This will be public opened in tizen_6.0 after ACR done, Before ACR, need to be hidden as inhouse API.
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public bool EnableEditing
+        {
+            get
+            {
+                bool temp;
+                GetProperty(TextField.Property.ENABLE_EDITING).Get(out temp);
+                return temp;
+            }
+            set
+            {
+                SetProperty(TextField.Property.ENABLE_EDITING, new PropertyValue(value));
+                NotifyPropertyChanged();
+            }
+        }
+
         /// <summary>
         /// The Placeholder property.
         /// Gets or sets the placeholder: text, color, font family, font style, point size, and pixel size.
@@ -1485,6 +1505,7 @@ namespace Tizen.NUI.BaseComponents
             internal static readonly int SELECTED_TEXT = Interop.TextField.TextField_Property_SELECTED_TEXT_get();
             internal static readonly int SELECTED_TEXT_START = Interop.TextField.TextField_Property_SELECTED_TEXT_START_get();
             internal static readonly int SELECTED_TEXT_END = Interop.TextField.TextField_Property_SELECTED_TEXT_END_get();
+            internal static readonly int ENABLE_EDITING = Interop.TextField.TextField_Property_ENABLE_EDITING_get();
         }
 
         internal class InputStyle