[CallerFilePath] string file = null
)
{
- Tizen.Log.Fatal("NUI", $"{msg} (at {DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fffffff")} line {lineNum} of {caller} in {file})" );
+ Tizen.Log.Fatal("NUI", $"{msg} (at line {lineNum} of {caller} in {file})" );
}
public static void Error(string msg,
[CallerFilePath] string file = null
)
{
- Tizen.Log.Fatal("NUI", $"[ERROR] {msg} (at {DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fffffff")} line {lineNum} of {caller} in {file})" );
+ Tizen.Log.Fatal("NUI", $"[ERROR] {msg} (at line {lineNum} of {caller} in {file})" );
}
}
Tizen.NUI.PropertyType daliType;
if (_daliPropertyTypeLookup.TryGetValue(cSharpTypeName, out daliType))
{
-#if DEBUG_ON
- Tizen.Log.Debug("NUI", "mapped " + cSharpTypeName + " to dAli type " + daliType);
-#endif
+ NUILog.Debug("mapped " + cSharpTypeName + " to dAli type " + daliType);
+
return daliType;
}
else
{
-#if DEBUG_ON
- Tizen.Log.Debug("NUI", "Failed to find a mapping between C# property" + cSharpTypeName + " and DALi type");
-#endif
+ NUILog.Debug("Failed to find a mapping between C# property" + cSharpTypeName + " and DALi type");
+
return PropertyType.None;
}
}
private static IntPtr CreateControl(IntPtr cPtrControlName)
{
string controlName = System.Runtime.InteropServices.Marshal.PtrToStringAnsi(cPtrControlName);
-#if DEBUG_ON
- Tizen.Log.Debug("NUI", "Create controlled called from C++ create a " + controlName);
-#endif
+
+ NUILog.Debug("Create controlled called from C++ create a " + controlName);
+
Func<CustomView> controlConstructor;
// find the control constructor
private static void SetProperty(IntPtr controlPtr, IntPtr propertyName, IntPtr propertyValue)
{
string name = System.Runtime.InteropServices.Marshal.PtrToStringAnsi(propertyName);
-#if DEBUG_ON
- Tizen.Log.Debug("NUI", "SetControlProperty called for:" + name);
-#endif
- Instance.SetPropertyValue(controlPtr, name, propertyValue);
+ NUILog.Debug("SetControlProperty called for:" + name);
+
+ Instance.SetPropertyValue(controlPtr, name, propertyValue);
}
/// <since_tizen> 3 </since_tizen>
// If the Scriptable attribute exists, then register it with the type registry.
if (attr is ScriptableProperty)
{
-#if DEBUG_ON
- Tizen.Log.Debug("NUI", "Got a DALi JSON scriptable property = " + propertyInfo.Name + ", of type " + propertyInfo.PropertyType.Name);
-#endif
+ NUILog.Debug("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;
TypeRegistration.RegisterProperty(viewType.ToString(), propertyInfo.Name, propertyIndex, propertyType, _setPropertyCallback, _getPropertyCallback);
}
}
-#if DEBUG_ON
- Tizen.Log.Debug("NUI", "property name = " + propertyInfo.Name);
-#endif
+ NUILog.Debug("property name = " + propertyInfo.Name);
}
}
}
private void SetPropertyValue(IntPtr refObjectPtr, string propertyName, IntPtr propertyValuePtr)
{
// Get the C# control that maps to the C++ control
-#if DEBUG_ON
- Tizen.Log.Debug("NUI", "SetPropertyValue refObjectPtr = {0:X}" + refObjectPtr);
-#endif
+ NUILog.Debug("SetPropertyValue refObjectPtr = {0:X}" + refObjectPtr);
+
PropertyValue propValue = new PropertyValue(propertyValuePtr, false);
// Get the C# control that maps to the C++ control
{
if (_preFocusChangeEventHandler == null)
{
-#if DEBUG_ON
- Tizen.Log.Debug("NUI", "con1) PreFocusChangeSignal().Empty = " + PreFocusChangeSignal().Empty());
- Tizen.Log.Debug("NUI", "con2) PreFocusChangeSignal().GetConnectionCount = " + PreFocusChangeSignal().GetConnectionCount());
-#endif
_preFocusChangeCallback = OnPreFocusChange;
PreFocusChangeSignal().Connect(_preFocusChangeCallback);
-#if DEBUG_ON
- Tizen.Log.Debug("NUI", "con3) PreFocusChangeSignal().Empty = " + PreFocusChangeSignal().Empty());
- Tizen.Log.Debug("NUI", "con4) PreFocusChangeSignal().GetConnectionCount = " + PreFocusChangeSignal().GetConnectionCount());
-#endif
}
_preFocusChangeEventHandler += value;
}
_preFocusChangeEventHandler -= value;
if (_preFocusChangeEventHandler == null && PreFocusChangeSignal().Empty() == false)
{
-#if DEBUG_ON
- Tizen.Log.Debug("NUI", "discon1) PreFocusChangeSignal().Empty = " + PreFocusChangeSignal().Empty());
- Tizen.Log.Debug("NUI", "discon2) PreFocusChangeSignal().GetConnectionCount = " + PreFocusChangeSignal().GetConnectionCount());
-#endif
PreFocusChangeSignal().Disconnect(_preFocusChangeCallback);
-#if DEBUG_ON
- Tizen.Log.Debug("NUI", "discon3) PreFocusChangeSignal().Empty = " + PreFocusChangeSignal().Empty());
- Tizen.Log.Debug("NUI", "discon4) PreFocusChangeSignal().GetConnectionCount = " + PreFocusChangeSignal().GetConnectionCount());
-#endif
}
}
}