From eb9176f67b3a820bc495686b4931c24007258c4c Mon Sep 17 00:00:00 2001 From: "dongsug.song" Date: Thu, 13 Apr 2017 10:38:48 +0900 Subject: [PATCH] replace Console.WriteLine() with Tizen.Log.Debug() Change-Id: Ic7ebec76c01000ca4eddc463b92f5880ff88bcd0 Signed-off-by: dongsug.song --- src/Tizen.NUI/src/internal/Application.cs | 4 +-- src/Tizen.NUI/src/internal/PropertyRangeManager.cs | 2 +- src/Tizen.NUI/src/internal/ViewRegistry.cs | 16 +++++----- src/Tizen.NUI/src/public/CustomView/Spin.cs | 4 +-- src/Tizen.NUI/src/public/NUIApplication.cs | 2 +- src/Tizen.NUI/src/public/Property.cs | 34 +++++++++++----------- 6 files changed, 31 insertions(+), 31 deletions(-) diff --git a/src/Tizen.NUI/src/internal/Application.cs b/src/Tizen.NUI/src/internal/Application.cs index 5952e6a..259cbdd 100755 --- a/src/Tizen.NUI/src/internal/Application.cs +++ b/src/Tizen.NUI/src/internal/Application.cs @@ -1052,10 +1052,10 @@ namespace Tizen.NUI internal void SetupDelegates() { InitDelegateInternal initializeCallback = new InitDelegateInternal(Initialize); - System.Console.WriteLine("InitSignal connection count"); + Tizen.Log.Debug("NUI", "InitSignal connection count"); this.InitSignal().Connect(initializeCallback); - //Console.WriteLine( "InitSignal connection count = " + app.InitSignal().GetConnectionCount() ); + //Tizen.Log.Debug("NUI", "InitSignal connection count = " + app.InitSignal().GetConnectionCount() ); } public static Application NewApplication() diff --git a/src/Tizen.NUI/src/internal/PropertyRangeManager.cs b/src/Tizen.NUI/src/internal/PropertyRangeManager.cs index e4fcf4a..c342605 100755 --- a/src/Tizen.NUI/src/internal/PropertyRangeManager.cs +++ b/src/Tizen.NUI/src/internal/PropertyRangeManager.cs @@ -103,7 +103,7 @@ namespace Tizen.NUI startEventPropertyIndex += (int)Tizen.NUI.PropertyRanges.DEFAULT_PROPERTY_MAX_COUNT_PER_DERIVATION; // DALi uses 10,000 startAnimatablePropertyIndex += maxCountPerDerivation; - //Console.WriteLine ("getStartPropertyIndex = " + viewType.Name +"current index " + startEventPropertyIndex); + //Tizen.Log.Debug("NUI", "getStartPropertyIndex = " + viewType.Name +"current index " + startEventPropertyIndex); #if (DOT_NET_CORE) viewType = viewType.GetTypeInfo().BaseType; #else diff --git a/src/Tizen.NUI/src/internal/ViewRegistry.cs b/src/Tizen.NUI/src/internal/ViewRegistry.cs index a1bf0cd..94a6c43 100755 --- a/src/Tizen.NUI/src/internal/ViewRegistry.cs +++ b/src/Tizen.NUI/src/internal/ViewRegistry.cs @@ -194,12 +194,12 @@ namespace Tizen.NUI Tizen.NUI.PropertyType daliType; if (_daliPropertyTypeLookup.TryGetValue(cSharpTypeName, out daliType)) { - //Console.WriteLine("mapped "+ cSharpTypeName + " to dAli type " +daliType ); + //Tizen.Log.Debug("NUI", "mapped "+ cSharpTypeName + " to dAli type " +daliType ); return daliType; } else { - // Console.WriteLine("Failed to find a mapping between C# property" + cSharpTypeName +" and DALi type"); + // Tizen.Log.Debug("NUI", "Failed to find a mapping between C# property" + cSharpTypeName +" and DALi type"); return PropertyType.None; } } @@ -212,7 +212,7 @@ namespace Tizen.NUI private static IntPtr CreateControl(IntPtr cPtrControlName) { string controlName = System.Runtime.InteropServices.Marshal.PtrToStringAnsi(cPtrControlName); - // Console.WriteLine ("Create controlled called from C++ create a " + controlName); + // Tizen.Log.Debug("NUI", "Create controlled called from C++ create a " + controlName); Func controlConstructor; @@ -240,7 +240,7 @@ namespace Tizen.NUI RefObject refObj = view.GetObjectPtr(); IntPtr refCptr = (IntPtr)RefObject.getCPtr(refObj); - //Console.WriteLine ("________Storing ref object cptr in control map Hex: {0:X}", refCptr); + //Tizen.Log.Debug("NUI", "________Storing ref object cptr in control map Hex: {0:X}", refCptr); if (!Instance._controlMap.ContainsKey(refCptr)) { Instance._controlMap.Add(refCptr, new WeakReference(view, false)); @@ -275,7 +275,7 @@ namespace Tizen.NUI private static void SetProperty(IntPtr controlPtr, IntPtr propertyName, IntPtr propertyValue) { string name = System.Runtime.InteropServices.Marshal.PtrToStringAnsi(propertyName); - //Console.WriteLine ( SetControlProperty called for:" + name ); + //Tizen.Log.Debug("NUI", SetControlProperty called for:" + name ); Instance.SetPropertyValue(controlPtr, name, propertyValue); } @@ -355,7 +355,7 @@ namespace Tizen.NUI // If the Scriptable attribute exists, then register it with the type registry. if (attr is ScriptableProperty) { - //Console.WriteLine ("Got a DALi JSON scriptable property = " + propertyInfo.Name +", of type " + propertyInfo.PropertyType.Name); + //Tizen.Log.Debug("NUI", "Got a DALi JSON scriptable property = " + propertyInfo.Name +", of type " + propertyInfo.PropertyType.Name); // first get the attribute type, ( default, or animatable) ScriptableProperty scriptableProp = attr as ScriptableProperty; @@ -371,7 +371,7 @@ namespace Tizen.NUI TypeRegistration.RegisterProperty(viewType.Name, propertyInfo.Name, propertyIndex, propertyType, _setPropertyCallback, _getPropertyCallback); } } - // Console.WriteLine ("property name = " + propertyInfo.Name); + // Tizen.Log.Debug("NUI", "property name = " + propertyInfo.Name); } } } @@ -415,7 +415,7 @@ namespace Tizen.NUI { // Get the C# control that maps to the C++ control - //Console.WriteLine ("SetPropertyValue refObjectPtr = {0:X}", controlPtr); + //Tizen.Log.Debug("NUI", "SetPropertyValue refObjectPtr = {0:X}", controlPtr); PropertyValue propValue = new PropertyValue(propertyValuePtr, false); diff --git a/src/Tizen.NUI/src/public/CustomView/Spin.cs b/src/Tizen.NUI/src/public/CustomView/Spin.cs index 4fe2bcd..df4a483 100755 --- a/src/Tizen.NUI/src/public/CustomView/Spin.cs +++ b/src/Tizen.NUI/src/public/CustomView/Spin.cs @@ -203,7 +203,7 @@ namespace Tizen.NUI set { - Console.WriteLine("Value set to " + value); + Tizen.Log.Debug("NUI", "Value set to " + value); _currentValue = value; // Make sure no invalid value is accepted @@ -320,7 +320,7 @@ namespace Tizen.NUI } set { - Console.WriteLine("TextColor set to " + value.R + "," + value.G + "," + value.B); + Tizen.Log.Debug("NUI", "TextColor set to " + value.R + "," + value.G + "," + value.B); _textColor = value; _textField.TextColor = _textColor; diff --git a/src/Tizen.NUI/src/public/NUIApplication.cs b/src/Tizen.NUI/src/public/NUIApplication.cs index e2e80a8..58ec099 100755 --- a/src/Tizen.NUI/src/public/NUIApplication.cs +++ b/src/Tizen.NUI/src/public/NUIApplication.cs @@ -30,7 +30,7 @@ namespace Tizen.NUI private void LOG(string _str) { //Tizen.Log.Debug("NUI", _str); - //Console.WriteLine("[NUI]" + _str); + //Tizen.Log.Debug("NUI", "[NUI]" + _str); } /// diff --git a/src/Tizen.NUI/src/public/Property.cs b/src/Tizen.NUI/src/public/Property.cs index 55b0689..af5873c 100755 --- a/src/Tizen.NUI/src/public/Property.cs +++ b/src/Tizen.NUI/src/public/Property.cs @@ -963,88 +963,88 @@ namespace Tizen.NUI if (type.Equals(typeof(int))) { - System.Console.WriteLine(" got an int property value "); + Tizen.Log.Debug("NUI", " got an int property value "); value = new PropertyValue((int)obj); } if (type.Equals(typeof(System.Int32))) { - System.Console.WriteLine(" got an int property value "); + Tizen.Log.Debug("NUI", " got an int property value "); value = new PropertyValue((int)obj); } else if (type.Equals(typeof(bool))) { - System.Console.WriteLine(" got an bool property value "); + Tizen.Log.Debug("NUI", " got an bool property value "); value = new PropertyValue((bool)obj); } else if (type.Equals(typeof(float))) { - System.Console.WriteLine(" got an float property value "); + Tizen.Log.Debug("NUI", " got an float property value "); value = new PropertyValue((float)obj); } else if (type.Equals(typeof(string))) { - System.Console.WriteLine(" got a string property value "); + Tizen.Log.Debug("NUI", " got a string property value "); value = new PropertyValue((string)obj); } else if (type.Equals(typeof(Vector2))) { - System.Console.WriteLine(" got an Vector2 property value "); + Tizen.Log.Debug("NUI", " got an Vector2 property value "); value = new PropertyValue((Vector2)obj); } else if (type.Equals(typeof(Vector3))) { - System.Console.WriteLine(" got an Vector3 property value "); + Tizen.Log.Debug("NUI", " got an Vector3 property value "); value = new PropertyValue((Vector3)obj); } else if (type.Equals(typeof(Vector4))) { - System.Console.WriteLine(" got an Vector4 property value "); + Tizen.Log.Debug("NUI", " got an Vector4 property value "); value = new PropertyValue((Vector4)obj); } else if (type.Equals(typeof(Position))) { - System.Console.WriteLine(" got an Position property value "); + Tizen.Log.Debug("NUI", " got an Position property value "); value = new PropertyValue((Position)obj); } else if (type.Equals(typeof(Position2D))) { - System.Console.WriteLine(" got an Position2D property value "); + Tizen.Log.Debug("NUI", " got an Position2D property value "); value = new PropertyValue((Position2D)obj); } else if (type.Equals(typeof(Size))) { - System.Console.WriteLine(" got an Size property value "); + Tizen.Log.Debug("NUI", " got an Size property value "); value = new PropertyValue((Size)obj); } else if (type.Equals(typeof(Size2D))) { - System.Console.WriteLine(" got an Size2D property value "); + Tizen.Log.Debug("NUI", " got an Size2D property value "); value = new PropertyValue((Size2D)obj); } else if (type.Equals(typeof(Color))) { - System.Console.WriteLine(" got an Color property value "); + Tizen.Log.Debug("NUI", " got an Color property value "); value = new PropertyValue((Color)obj); } else if (type.Equals(typeof(Rotation))) { - System.Console.WriteLine(" got an Rotation property value "); + Tizen.Log.Debug("NUI", " got an Rotation property value "); value = new PropertyValue((Rotation)obj); } else if (type.Equals(typeof(RelativeVector2))) { - System.Console.WriteLine(" got an RelativeVector2 property value "); + Tizen.Log.Debug("NUI", " got an RelativeVector2 property value "); value = new PropertyValue((RelativeVector2)obj); } else if (type.Equals(typeof(RelativeVector3))) { - System.Console.WriteLine(" got an RelativeVector3 property value "); + Tizen.Log.Debug("NUI", " got an RelativeVector3 property value "); value = new PropertyValue((RelativeVector3)obj); } else if (type.Equals(typeof(RelativeVector4))) { - System.Console.WriteLine(" got an RelativeVector4 property value "); + Tizen.Log.Debug("NUI", " got an RelativeVector4 property value "); value = new PropertyValue((RelativeVector4)obj); } else -- 2.7.4