Name: csapi-nui
Summary: dali-NUI
-Version: 0.2.32
-Release: 1
+Version: 0.2.33
+Release: pre1
Group: Development/Libraries
License: Apache-2.0
URL: https://www.tizen.org
%build
for ASM in %{Assemblies}; do
%dotnet_build $ASM
-%dotnet_pack $ASM/$ASM.nuspec %{version}
+%dotnet_pack $ASM/$ASM.nuspec %{version}-pre1
done
%install
<Compile Include="src\internal\doublep.cs" />\r
<Compile Include="src\internal\DragAndDropDetector.cs" />\r
<Compile Include="src\internal\EncodedBufferImage.cs" />\r
+ <Compile Include="src\internal\EventThreadCallback.cs" />\r
<Compile Include="src\internal\FaceCullingModeType.cs" />\r
<Compile Include="src\internal\FilterModeType.cs" />\r
<Compile Include="src\internal\FittingModeType.cs" />\r
public const int ver1 = 1;
public const int ver2 = 2;
public const int ver3 = 32;
+ public const int nuiVer1 = 0;
+ public const int nuiVer2 = 2;
+ public const int nuiVer3 = 33;
+ public const string nuiRelease = "-pre1";
}
/**
if (ver1 != Version.ver1 || ver2 != Version.ver2 || ver3 != Version.ver3)
{
//throw new System.InvalidOperationException("Dali native version mismatch error! nui=" + Version.ver1 + "." + Version.ver2 + "." + Version.ver3 + " but dali=" + ver1 + "." + ver2 + "." + ver3);
- Tizen.Log.Fatal("NUI", "Dali native version mismatch error! nui=" + Version.ver1 + "." + Version.ver2 + "." + Version.ver3 + " but dali=" + ver1 + "." + ver2 + "." + ver3);
+ Tizen.Log.Fatal("NUI", "Dali native version mismatch error! nui=" + Version.nuiVer1 "." + Version.nuiVer2 + "." + Version.nuiVer3 + Version.nuiRelease + " but native dali=" + ver1 + "." + ver2 + "." + ver3);
}
}
else
{
//throw new System.InvalidOperationException("Dali native version mismatch error! nui=" + Version.ver1 + "." + Version.ver2 + "." + Version.ver3 + " but dali=" + ver1 + "." + ver2 + "." + ver3);
- Tizen.Log.Fatal("NUI", "Dali native version mismatch error! nui=" + Version.ver1 + "." + Version.ver2 + "." + Version.ver3 + " but dali=" + ver1 + "." + ver2 + "." + ver3);
+ Tizen.Log.Fatal("NUI", "Dali native version mismatch error! nui=" + Version.nuiVer1 + "." + Version.nuiVer2 + "." + Version.nuiVer3 + Version.nuiRelease + " but native dali=" + ver1 + "." + ver2 + "." + ver3);
}
}
catch (Exception e)
{
//throw new System.InvalidOperationException("Dali native version is very old! nui=" + Version.ver1 + "." + Version.ver2 + "." + Version.ver3);
- Tizen.Log.Fatal("NUI", "Dali native version is very old! nui=" + Version.ver1 + "." + Version.ver2 + "." + Version.ver3);
+ Tizen.Log.Fatal("NUI", "Dali native version is very old! nui=" + Version.nuiVer1 + "." + Version.nuiVer2 + "." + Version.nuiVer3 + Version.nuiRelease);
}
}
public void Register(Func<CustomView> createFunction, System.Type viewType)
{
// add the mapping between the view name and it's create function
- _constructorMap.Add(viewType.ToString(), createFunction);
+ _constructorMap.Add(viewType.Name, createFunction);
// Call into DALi C++ to register the control with the type registry
- TypeRegistration.RegisterControl(viewType.ToString(), _createCallback);
+ TypeRegistration.RegisterControl(viewType.Name, _createCallback);
// Cycle through each property in the class
foreach (System.Reflection.PropertyInfo propertyInfo in viewType.GetProperties())
ScriptableProperty scriptableProp = attr as ScriptableProperty;
// we get the start property index, based on the type and it's heirachy, e.g. DateView (70,000)-> Spin (60,000) -> View (50,000)
- int propertyIndex = _propertyRangeManager.GetPropertyIndex(viewType.ToString(), viewType, scriptableProp.type);
+ int propertyIndex = _propertyRangeManager.GetPropertyIndex(viewType.Name, viewType, scriptableProp.type);
// get the enum for the property type... E.g. registering a string property returns Tizen.NUI.PropertyType.String
Tizen.NUI.PropertyType propertyType = GetDaliPropertyType(propertyInfo.PropertyType.Name);
// Example RegisterProperty("spin","maxValue", 50001, FLOAT, set, get );
// Native call to register the property
- TypeRegistration.RegisterProperty(viewType.ToString(), propertyInfo.Name, propertyIndex, propertyType, _setPropertyCallback, _getPropertyCallback);
+ TypeRegistration.RegisterProperty(viewType.Name, propertyInfo.Name, propertyIndex, propertyType, _setPropertyCallback, _getPropertyCallback);
}
}
// Console.WriteLine ("property name = " + propertyInfo.Name);
// static constructor registers the control type (only runs once)
static Spin()
{
+ InternalSetting.DefaultParentOriginAsTopLeft = false;
+
// ViewRegistry registers control type with DALi type registery
// also uses introspection to find any properties that need to be registered with type registry
ViewRegistry.Instance.Register(CreateInstance, typeof(Spin));
public Spin() : base(typeof(Spin).Name, CustomViewBehaviour.RequiresKeyboardNavigationSupport)
{
-
}
/// <summary>