[NUI] Fix typo from synchronos to synchronous
authorSeungho Baek <sbsh.baek@samsung.com>
Fri, 10 Sep 2021 12:13:25 +0000 (21:13 +0900)
committerSeoyeon2Kim <34738918+Seoyeon2Kim@users.noreply.github.com>
Mon, 13 Sep 2021 07:33:23 +0000 (16:33 +0900)
Signed-off-by: Seungho Baek <sbsh.baek@samsung.com>
src/Tizen.NUI/src/public/BaseComponents/ImageView.cs
src/Tizen.NUI/src/public/BaseComponents/Style/ImageViewStyle.cs
src/Tizen.NUI/src/public/BaseComponents/View.cs
src/Tizen.NUI/src/public/BaseComponents/ViewBindableProperty.cs

index 15d87ab..62071e6 100755 (executable)
@@ -203,19 +203,36 @@ namespace Tizen.NUI.BaseComponents
 
         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
         [EditorBrowsable(EditorBrowsableState.Never)]
-        public static readonly BindableProperty SynchronosLoadingProperty = BindableProperty.Create(nameof(SynchronosLoading), typeof(bool), typeof(ImageView), false, propertyChanged: (bindable, oldValue, newValue) =>
+        public static readonly BindableProperty SynchronosLoadingProperty = BindableProperty.Create(nameof(SynchronousLoading), typeof(bool), typeof(ImageView), false, propertyChanged: (bindable, oldValue, newValue) =>
         {
             var imageView = (ImageView)bindable;
             if (newValue != null)
             {
-                imageView._synchronosLoading = (bool)newValue;
+                imageView._synchronousLoading = (bool)newValue;
                 imageView.UpdateImage(NpatchImageVisualProperty.SynchronousLoading, new PropertyValue((bool)newValue));
             }
         },
         defaultValueCreator: (bindable) =>
         {
             var imageView = (ImageView)bindable;
-            return imageView._synchronosLoading;
+            return imageView._synchronousLoading;
+        });
+
+        /// This will be public opened in tizen_7.0 after ACR done. Before ACR, need to be hidden as inhouse API.
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public static readonly BindableProperty SynchronousLoadingProperty = BindableProperty.Create(nameof(SynchronousLoading), typeof(bool), typeof(ImageView), false, propertyChanged: (bindable, oldValue, newValue) =>
+        {
+            var imageView = (ImageView)bindable;
+            if (newValue != null)
+            {
+                imageView._synchronousLoading = (bool)newValue;
+                imageView.UpdateImage(NpatchImageVisualProperty.SynchronousLoading, new PropertyValue((bool)newValue));
+            }
+        },
+        defaultValueCreator: (bindable) =>
+        {
+            var imageView = (ImageView)bindable;
+            return imageView._synchronousLoading;
         });
 
         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
@@ -247,7 +264,7 @@ namespace Tizen.NUI.BaseComponents
 
         private Rectangle _border;
         private string _resourceUrl = "";
-        private bool _synchronosLoading = false;
+        private bool _synchronousLoading = false;
         private string _alphaMaskUrl = null;
         private int _desired_width = -1;
         private int _desired_height = -1;
@@ -621,11 +638,28 @@ namespace Tizen.NUI.BaseComponents
         {
             get
             {
-                return (bool)GetValue(SynchronosLoadingProperty);
+                return SynchronousLoading;
+            }
+            set
+            {
+                SynchronousLoading = value;
+            }
+        }
+
+        /// <summary>
+        /// Gets or sets whether to synchronous loading the resourceurl of image.<br />
+        /// </summary>
+        /// This will be public opened in tizen_7.0 after ACR done. Before ACR, need to be hidden as inhouse API.
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public bool SynchronousLoading
+        {
+            get
+            {
+                return (bool)GetValue(SynchronousLoadingProperty);
             }
             set
             {
-                SetValue(SynchronosLoadingProperty, value);
+                SetValue(SynchronousLoadingProperty, value);
                 NotifyPropertyChanged();
             }
         }
@@ -1299,9 +1333,9 @@ namespace Tizen.NUI.BaseComponents
                 fittingMode?.Dispose();
             }
 
-            PropertyValue synchronosLoading = new PropertyValue(_synchronosLoading);
-            imageMap?.Insert(NpatchImageVisualProperty.SynchronousLoading, synchronosLoading);
-            synchronosLoading?.Dispose();
+            PropertyValue synchronousLoading = new PropertyValue(_synchronousLoading);
+            imageMap?.Insert(NpatchImageVisualProperty.SynchronousLoading, synchronousLoading);
+            synchronousLoading?.Dispose();
 
             if (backgroundExtraData != null && backgroundExtraData.CornerRadius != null)
             {
index 3e8a1ca..eb92d25 100755 (executable)
@@ -64,15 +64,27 @@ namespace Tizen.NUI.BaseComponents
         });
         /// 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 static readonly BindableProperty SynchronosLoadingProperty = BindableProperty.Create(nameof(SynchronosLoading), typeof(bool?), typeof(ImageViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
+        public static readonly BindableProperty SynchronosLoadingProperty = BindableProperty.Create(nameof(SynchronousLoading), typeof(bool?), typeof(ImageViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
         {
             var imageViewStyle = (ImageViewStyle)bindable;
-            imageViewStyle.synchronosLoading = (bool?)newValue;
+            imageViewStyle.synchronousLoading = (bool?)newValue;
         },
         defaultValueCreator: (bindable) =>
         {
             var imageViewStyle = (ImageViewStyle)bindable;
-            return imageViewStyle.synchronosLoading;
+            return imageViewStyle.synchronousLoading;
+        });
+        /// This will be public opened in tizen_7.0 after ACR done. Before ACR, need to be hidden as inhouse API.
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public static readonly BindableProperty SynchronousLoadingProperty = BindableProperty.Create(nameof(SynchronousLoading), typeof(bool?), typeof(ImageViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
+        {
+            var imageViewStyle = (ImageViewStyle)bindable;
+            imageViewStyle.synchronousLoading = (bool?)newValue;
+        },
+        defaultValueCreator: (bindable) =>
+        {
+            var imageViewStyle = (ImageViewStyle)bindable;
+            return imageViewStyle.synchronousLoading;
         });
         /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
         [EditorBrowsable(EditorBrowsableState.Never)]
@@ -88,7 +100,7 @@ namespace Tizen.NUI.BaseComponents
         });
 
         private bool? borderOnly;
-        private bool? synchronosLoading;
+        private bool? synchronousLoading;
         private bool? orientationCorrection;
         private Selector<string> resourceUrl;
         private Selector<Rectangle> border;
@@ -115,8 +127,16 @@ namespace Tizen.NUI.BaseComponents
         [EditorBrowsable(EditorBrowsableState.Never)]
         public bool? SynchronosLoading
         {
-            get => (bool?)GetValue(SynchronosLoadingProperty);
-            set => SetValue(SynchronosLoadingProperty, value);
+            get => (bool?)GetValue(SynchronousLoadingProperty);
+            set => SetValue(SynchronousLoadingProperty, value);
+        }
+
+        /// 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? SynchronousLoading
+        {
+            get => (bool?)GetValue(SynchronousLoadingProperty);
+            set => SetValue(SynchronousLoadingProperty, value);
         }
 
         /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
index 24b5240..6b31f13 100755 (executable)
@@ -42,7 +42,7 @@ namespace Tizen.NUI.BaseComponents
         private int widthPolicy = LayoutParamPolicies.WrapContent; // Layout width policy
         private int heightPolicy = LayoutParamPolicies.WrapContent; // Layout height policy
         private float weight = 0.0f; // Weighting of child View in a Layout
-        private bool backgroundImageSynchronosLoading = false;
+        private bool backgroundImageSynchronousLoading = false;
         private bool excludeLayouting = false;
         private LayoutTransition layoutTransition;
         private TransitionOptions transitionOptions = null;
@@ -2563,11 +2563,30 @@ namespace Tizen.NUI.BaseComponents
         {
             get
             {
-                return backgroundImageSynchronosLoading;
+                return BackgroundImageSynchronousLoading;
             }
             set
             {
-                backgroundImageSynchronosLoading = value;
+                BackgroundImageSynchronousLoading = value;
+            }
+        }
+
+        /// <summary>
+        ///  Whether to load the BackgroundImage synchronously.
+        ///  If not specified, the default is false, i.e. the BackgroundImage is loaded asynchronously.
+        ///  Note: For Normal Quad images only.
+        /// </summary>
+        /// This will be public opened in tizen_7.0 after ACR done. Before ACR, need to be hidden as inhouse API.
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public bool BackgroundImageSynchronousLoading
+        {
+            get
+            {
+                return backgroundImageSynchronousLoading;
+            }
+            set
+            {
+                backgroundImageSynchronousLoading = value;
 
                 string bgUrl = null;
                 var pValue = Background.Find(ImageVisualProperty.URL);
@@ -2577,7 +2596,7 @@ namespace Tizen.NUI.BaseComponents
                 if (!string.IsNullOrEmpty(bgUrl))
                 {
                     PropertyMap bgMap = this.Background;
-                    var temp = new PropertyValue(backgroundImageSynchronosLoading);
+                    var temp = new PropertyValue(backgroundImageSynchronousLoading);
                     bgMap.Add("synchronousLoading", temp);
                     temp.Dispose();
                     Background = bgMap;
index ff6ba0a..755a331 100755 (executable)
@@ -1891,7 +1891,7 @@ namespace Tizen.NUI.BaseComponents
             if (backgroundExtraData == null)
             {
                 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)SwigCPtr, View.Property.BACKGROUND, new PropertyValue(value));
-                BackgroundImageSynchronosLoading = backgroundImageSynchronosLoading;
+                BackgroundImageSynchronousLoading = backgroundImageSynchronousLoading;
 
                 return;
             }
@@ -1904,7 +1904,7 @@ namespace Tizen.NUI.BaseComponents
                .Add(Visual.Property.BorderlineWidth, new PropertyValue(backgroundExtraData.BorderlineWidth))
                .Add(Visual.Property.BorderlineColor, new PropertyValue(backgroundExtraData.BorderlineColor == null ? new PropertyValue(Color.Black) : new PropertyValue(backgroundExtraData.BorderlineColor)))
                .Add(Visual.Property.BorderlineOffset, new PropertyValue(backgroundExtraData.BorderlineOffset))
-               .Add(ImageVisualProperty.SynchronousLoading, new PropertyValue(backgroundImageSynchronosLoading));
+               .Add(ImageVisualProperty.SynchronousLoading, new PropertyValue(backgroundImageSynchronousLoading));
 
             if (backgroundExtraData.BackgroundImageBorder != null)
             {