From: dongsug.song Date: Sat, 18 Mar 2017 13:51:56 +0000 (+0900) Subject: friend assembly, nuget lib test X-Git-Tag: accepted/tizen/common/20170324.123341~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8151c92fe914d52b188f09bc59f7fe1540be5fd0;p=platform%2Fcore%2Fcsapi%2Fnui.git friend assembly, nuget lib test Signed-off-by: dongsug.song Change-Id: Ibbcae16b742d6423ba5993e6951095b003d86ef6 --- diff --git a/NUISample2/NUISample2.sln b/NUISample2/NUISample2.sln new file mode 100755 index 0000000..c0ce68d --- /dev/null +++ b/NUISample2/NUISample2.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 14 +VisualStudioVersion = 14.0.25420.1 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NUISample2.Tizen", "NUISample2\NUISample2.Tizen\NUISample2.Tizen.csproj", "{1BC32B91-AF24-45AE-99A7-ACF5E0740993}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {1BC32B91-AF24-45AE-99A7-ACF5E0740993}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1BC32B91-AF24-45AE-99A7-ACF5E0740993}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1BC32B91-AF24-45AE-99A7-ACF5E0740993}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1BC32B91-AF24-45AE-99A7-ACF5E0740993}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/NUISample2/NUISample2/NUISample2.Tizen/NUISample2.Tizen.cs b/NUISample2/NUISample2/NUISample2.Tizen/NUISample2.Tizen.cs new file mode 100755 index 0000000..e84a93a --- /dev/null +++ b/NUISample2/NUISample2/NUISample2.Tizen/NUISample2.Tizen.cs @@ -0,0 +1,500 @@ +/* + * Copyright (c) 2017 Samsung Electronics Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +using System; +using Tizen.NUI; + +namespace ControlDashboard +{ + class Example : NUIApplication + { + // This is simple structure to contain Control name and implement state at once + // name : control name + // isImplemented : the state which the control is implemented in public or not + private struct Item + { + public String name; + public bool isImplemented; + + public Item(String name, bool isImplemented) + { + this.name = name; + this.isImplemented = isImplemented; + } + } + + private TableView _contentContainer; + private Timer _timer; + private Stage _stage; + private Popup _popup; + private ProgressBar _progressBar; + private const string _resPath = "/home/owner/apps_rw/NUISample2.Tizen/res"; + + // List of items + private Item[] mViewList = { + new Item("PushButton", true), new Item("DropDown", false), new Item("Toggle", true), + new Item("InputField", false), new Item("AnimateGif", false), new Item("Loading", false), + new Item("ProgressBar", true), new Item("CheckBox", false), new Item("RadioButton", true), + new Item("Tooltip", true), new Item("Popup", true), new Item("Toast", true), + new Item("ItemView", false), new Item("CheckBox", true) + }; + + public Example() : base() + { + } + + public Example(string stylesheet) : base(stylesheet) + { + } + + public Example(string stylesheet, NUIApplication.WindowMode windowMode) : base(stylesheet, windowMode) + { + } + + protected override void OnCreate() + { + base.OnCreate(); + Initialize(); + } + + protected override void OnTerminate() + { + base.OnTerminate(); + } + + public void Initialize() + { + Console.WriteLine("Customized Application Initialize event handler"); + _stage = Stage.Instance; + _stage.BackgroundColor = Color.White; + _stage.Key += _stage_Key; + + // Top label + TextLabel topLabel = new TextLabel(); + topLabel.WidthResizePolicy = ResizePolicyType.FillToParent; + topLabel.HeightResizePolicy = ResizePolicyType.SizeRelativeToParent; + topLabel.AnchorPoint = AnchorPoint.TopCenter; + topLabel.ParentOrigin = ParentOrigin.TopCenter; + topLabel.SetSizeModeFactor(new Vector3(0.0f, 0.1f, 0.0f)); + topLabel.BackgroundColor = new Color(43.0f / 255.0f, 145.0f / 255.0f, 175.0f / 255.0f, 1.0f); + topLabel.TextColor = Color.White; + topLabel.Text = " DALi Views"; + topLabel.HorizontalAlignment = "BEGIN"; + topLabel.VerticalAlignment = "CENTER"; + topLabel.PointSize = 42.0f; + _stage.GetDefaultLayer().Add(topLabel); + //StyleManager.Get().ApplyStyle(topLabel, _resPath + "/json/control-dashboard-theme.json", "TextFieldFontSize4"); + topLabel.SetStyleName("TextFieldFontSize4"); + + // Grid container to contain items. Use tableView because FlexContainer support focus navigation just two direction ( up/down or left/right ) + _contentContainer = new TableView(6, 5); + _contentContainer.WidthResizePolicy = ResizePolicyType.FillToParent; + _contentContainer.HeightResizePolicy = ResizePolicyType.SizeRelativeToParent; + _contentContainer.SetSizeModeFactor(new Vector3(0.0f, 0.9f, 0.0f)); + _contentContainer.AnchorPoint = AnchorPoint.BottomCenter; + _contentContainer.ParentOrigin = ParentOrigin.BottomCenter; + _contentContainer.SetRelativeHeight(0, 0.07f); + _contentContainer.SetRelativeHeight(1, 0.26f); + _contentContainer.SetRelativeHeight(2, 0.07f); + _contentContainer.SetRelativeHeight(3, 0.26f); + _contentContainer.SetRelativeHeight(4, 0.07f); + _contentContainer.SetRelativeHeight(5, 0.26f); + _contentContainer.Focusable = (true); + _stage.GetDefaultLayer().Add(_contentContainer); + + CreateContent(); + + FocusManager.Instance.PreFocusChange += OnPreFocusChange; + } + + private void _stage_Key(object sender, Stage.KeyEventArgs e) + { + if (e.Key.KeyPressedName == "XF86Back") + { + OnTerminate(); + } + } + + // Callback for KeyboardFocusManager + private View OnPreFocusChange(object source, FocusManager.PreFocusChangeEventArgs e) + { + if (!e.ProposedView && !e.CurrentView) + { + e.ProposedView = View.DownCast(_contentContainer.GetChildAt(1)); + } + return e.ProposedView; + } + + private void CreateContent() + { + for (int i = 0; i < mViewList.Length; i++) + { + CreateItem(mViewList[i], i); + } + } + + private void CreateItem(Item item, int idx) + { + // Make label for item + TextLabel itemLabel = new TextLabel(" " + item.name); + itemLabel.Size = new Vector3(_stage.Size.Width * 0.2f, _stage.Size.Height * 0.05f, 0.0f); + itemLabel.HorizontalAlignment = "BEGIN"; + itemLabel.VerticalAlignment = "BOTTOM"; + //itemLabel.PointSize = 18.0f; + _contentContainer.AddChild(itemLabel, new TableView.CellPosition(((uint)idx / 5) * 2, (uint)idx % 5)); + + // If item is implemented in public, attach it on stage + if (item.isImplemented) + { + if (item.name.CompareTo("PushButton") == 0) + { + PushButton pushButton = new PushButton(); + pushButton.LabelText = "Push Button"; + pushButton.WidthResizePolicy = ResizePolicyType.FillToParent; + pushButton.HeightResizePolicy = ResizePolicyType.FillToParent; + pushButton.UnselectedColor = new Vector4(1.0f, 0.0f, 0.0f, 1.0f); + pushButton.SelectedColor = new Vector4(0.0f, 1.0f, 0.0f, 1.0f); + pushButton.Clicked += (obj, e) => + { + Button sender = obj as Button; + sender.LabelText = "Click Me"; + sender.UnselectedColor = new Vector4(0.0f, 0.0f, 1.0f, 1.0f); + return true; + }; + + _contentContainer.AddChild(pushButton, new TableView.CellPosition(((uint)idx / 5) * 2 + 1, (uint)idx % 5)); + } + if (item.name.CompareTo("DropDown") == 0) + { + + } + if (item.name.CompareTo("Toggle") == 0) + { + ToggleButton toggleButton = new ToggleButton(); + PropertyArray array = new PropertyArray(); + array.Add(new PropertyValue(_resPath + "/images/star-highlight.png")); + array.Add(new PropertyValue(_resPath + "/images/star-mod.png")); + array.Add(new PropertyValue(_resPath + "/images/star-dim.png")); + toggleButton.StateVisuals = array; + + PropertyArray tooltips = new PropertyArray(); + tooltips.Add(new PropertyValue("State A")); + tooltips.Add(new PropertyValue("State B")); + tooltips.Add(new PropertyValue("State C")); + toggleButton.Tooltips = tooltips; + + toggleButton.WidthResizePolicy = ResizePolicyType.FillToParent; + toggleButton.HeightResizePolicy = ResizePolicyType.FillToParent; + toggleButton.Clicked += (obj, e) => + { + Console.WriteLine("Toggle button state changed."); + return true; + }; + + _contentContainer.AddChild(toggleButton, new TableView.CellPosition(((uint)idx / 5) * 2 + 1, (uint)idx % 5)); + } + if (item.name.CompareTo("InputField") == 0) + { + + } + if (item.name.CompareTo("AnimateGif") == 0) + { + + } + if (item.name.CompareTo("Loading") == 0) + { + + } + if (item.name.CompareTo("ProgressBar") == 0) + { + _progressBar = new ProgressBar(); + _progressBar.WidthResizePolicy = ResizePolicyType.FillToParent; + _progressBar.HeightResizePolicy = ResizePolicyType.Fixed; + _progressBar.Size2D = new Size2D(0, 100); + + _progressBar.ValueChanged += OnProgressBarValueChanged; + + _timer = new Timer(100); + _timer.Tick += (obj, e) => + { + float progress = (float)Math.Round(_progressBar.ProgressValue, 2); + + if (progress == 1.0f) + { + _progressBar.ProgressValue = 0.0f; + _progressBar.SecondaryProgressValue = 0.01f; + } + else + { + _progressBar.ProgressValue = progress + 0.01f; + _progressBar.SecondaryProgressValue = progress + 0.21f; + } + return true; + }; + _timer.Start(); + + _contentContainer.AddChild(_progressBar, new TableView.CellPosition(((uint)idx / 5) * 2 + 1, (uint)idx % 5)); + } + if (item.name.CompareTo("ScrollBar") == 0) + { + + } + if (item.name.CompareTo("CheckBox") == 0) + { + CheckBoxButton checkBoxButton = new CheckBoxButton(); + checkBoxButton.LabelText = "Yes"; + + _contentContainer.AddChild(checkBoxButton, new TableView.CellPosition(((uint)idx / 5) * 2 + 1, (uint)idx % 5)); + } + if (item.name.CompareTo("RadioButton") == 0) + { + TableView tableView = new TableView(2, 1); + tableView.WidthResizePolicy = ResizePolicyType.FillToParent; + tableView.HeightResizePolicy = ResizePolicyType.FillToParent; + + RadioButton rButton = new RadioButton(); + rButton.LabelText = "Yes"; + rButton.Selected = true; + tableView.AddChild(rButton, new TableView.CellPosition(0, 0)); + + rButton = new RadioButton(); + rButton.LabelText = "No"; + + tableView.AddChild(rButton, new TableView.CellPosition(1, 0)); + + _contentContainer.AddChild(tableView, new TableView.CellPosition(((uint)idx / 5) * 2 + 1, (uint)idx % 5)); + } + if (item.name.CompareTo("Tooltip") == 0) + { + TableView tableView = new TableView(2, 1); + tableView.WidthResizePolicy = ResizePolicyType.FillToParent; + tableView.HeightResizePolicy = ResizePolicyType.FillToParent; + + // Create two push buttons and add them to a table view + PushButton buttonWithSimpleTooltip = new PushButton(); + buttonWithSimpleTooltip.LabelText = "Tooltip with text only"; + buttonWithSimpleTooltip.UnselectedColor = new Vector4(0.5f, 0.5f, 0.7f, 1.0f); + buttonWithSimpleTooltip.SelectedColor = new Vector4(0.7f, 0.5f, 0.7f, 1.0f); + buttonWithSimpleTooltip.WidthResizePolicy = ResizePolicyType.FillToParent; + tableView.AddChild(buttonWithSimpleTooltip, new TableView.CellPosition(0, 0)); + + PushButton buttonWithIconTooltip = new PushButton(); + buttonWithIconTooltip.LabelText = "Tooltip with Text and Icon"; + buttonWithIconTooltip.WidthResizePolicy = ResizePolicyType.FillToParent; + buttonWithIconTooltip.UnselectedColor = new Vector4(0.5f, 0.5f, 0.7f, 1.0f); + buttonWithIconTooltip.SelectedColor = new Vector4(0.7f, 0.5f, 0.7f, 1.0f); + tableView.AddChild(buttonWithIconTooltip, new TableView.CellPosition(1, 0)); + + // Add a simple text only tooltip to the first push button + buttonWithSimpleTooltip.TooltipText = "Simple Tooltip"; + + // Create a property map for a tooltip with one icon and one text + PropertyArray iconTooltipContent = new PropertyArray(); + + PropertyMap iconVisual = new PropertyMap(); + iconVisual.Add(Tizen.NUI.Constants.Visual.Property.Type, new PropertyValue((int)Tizen.NUI.Constants.Visual.Type.Image)) + .Add(Tizen.NUI.Constants.ImageVisualProperty.URL, new PropertyValue(_resPath + "/images/star-highlight.png")); + iconTooltipContent.Add(new PropertyValue(iconVisual)); + + PropertyMap textVisual = new PropertyMap(); + textVisual.Add(Tizen.NUI.Constants.Visual.Property.Type, new PropertyValue((int)Tizen.NUI.Constants.Visual.Type.Text)) + .Add(Tizen.NUI.Constants.TextVisualProperty.Text, new PropertyValue("Tooltip with Icon")); + iconTooltipContent.Add(new PropertyValue(textVisual)); + + PropertyMap iconTooltip = new PropertyMap(); + iconTooltip.Add(Tizen.NUI.Constants.Tooltip.Property.Content, new PropertyValue(iconTooltipContent)) + .Add(Tizen.NUI.Constants.Tooltip.Property.Tail, new PropertyValue(true)); + + // Add the tooltip with icon and text to the second push button + buttonWithIconTooltip.Tooltip = iconTooltip; + + _contentContainer.AddChild(tableView, new TableView.CellPosition(((uint)idx / 5) * 2 + 1, (uint)idx % 5)); + } + if (item.name.CompareTo("Popup") == 0) + { + PushButton button = new PushButton(); + button.LabelText = "Popup"; + button.ParentOrigin = ParentOrigin.Center; + button.AnchorPoint = AnchorPoint.Center; + button.MaximumSize = new Size2D(150, 100); + _popup = CreatePopup(); + _popup.SetTitle(CreateTitle("Popup")); + + TextLabel text = new TextLabel("This will erase the file permanently. Are you sure?"); + text.BackgroundColor = Color.White; + text.MultiLine = true; + text.WidthResizePolicy = ResizePolicyType.FillToParent; + text.HeightResizePolicy = ResizePolicyType.DimensionDependency; + text.SetPadding(new PaddingType(10.0f, 10.0f, 20.0f, 0.0f)); + _popup.SetContent(text); + _popup.Focusable = (true); + _popup.SetDisplayState(Popup.DisplayStateType.Hidden); + + button.Clicked += (obj, ee) => + { + _stage.GetDefaultLayer().Add(_popup); + _popup.SetDisplayState(Popup.DisplayStateType.Shown); + FocusManager.Instance.SetCurrentFocusView(View.DownCast((_popup.FindChildByName("Footer")).FindChildByName("OKButton"))); + return true; + }; + _contentContainer.AddChild(button, new TableView.CellPosition(((uint)idx / 5) * 2 + 1, (uint)idx % 5)); + } + if (item.name.CompareTo("Toast") == 0) + { + PushButton button = new PushButton(); + button.LabelText = "Toast"; + button.ParentOrigin = ParentOrigin.Center; + button.AnchorPoint = AnchorPoint.Center; + button.Clicked += (obj, ee) => + { + TypeInfo typeInfo = new TypeInfo(TypeRegistry.Get().GetTypeInfo("PopupToast")); + if (typeInfo) + { + BaseHandle baseHandle = typeInfo.CreateInstance(); + if (baseHandle) + { + Popup toast = Popup.DownCast(baseHandle); + TextLabel text = new TextLabel("This is a Toast.\nIt will auto-hide itself"); + text.TextColor = Color.White; + text.MultiLine = true; + text.HorizontalAlignment = "center"; + toast.SetTitle(text); + _stage.GetDefaultLayer().Add(toast); + toast.SetDisplayState(Popup.DisplayStateType.Shown); + } + } + return true; + }; + _contentContainer.AddChild(button, new TableView.CellPosition(((uint)idx / 5) * 2 + 1, (uint)idx % 5)); + } + if (item.name.CompareTo("ItemView") == 0) + { + + } + } + else + { + ImageView notSupportView = new ImageView(_resPath + "/images/not_yet_sign.png"); + notSupportView.Size = new Vector3(_stage.Size.Width * 0.2f, _stage.Size.Height * 0.25f, 0.0f); + notSupportView.Focusable = (true); + _contentContainer.AddChild(notSupportView, new TableView.CellPosition(((uint)idx / 5) * 2 + 1, (uint)idx % 5)); + } + } + Popup CreatePopup() + { + Popup confirmationPopup = new Popup(); + + Actor footer = new Actor(); + footer.Name = ("Footer"); + footer.WidthResizePolicy = ResizePolicyType.FillToParent; + footer.HeightResizePolicy = ResizePolicyType.Fixed; + footer.Size = new Size(0.0f, 80.0f, 0.0f); + footer.ParentOrigin = ParentOrigin.Center; + footer.AnchorPoint = AnchorPoint.Center; + + PushButton okButton = CreateOKButton(); + okButton.ParentOrigin = ParentOrigin.Center; + okButton.AnchorPoint = AnchorPoint.Center; + okButton.WidthResizePolicy = ResizePolicyType.SizeFixedOffsetFromParent; + okButton.HeightResizePolicy = ResizePolicyType.SizeFixedOffsetFromParent; + okButton.SetSizeModeFactor(new Vector3(-20.0f, -20.0f, 0.0f)); + + PushButton cancelButton = CreateCancelButton(); + cancelButton.ParentOrigin = ParentOrigin.Center; + cancelButton.AnchorPoint = AnchorPoint.Center; + cancelButton.WidthResizePolicy = ResizePolicyType.SizeFixedOffsetFromParent; + cancelButton.HeightResizePolicy = ResizePolicyType.SizeFixedOffsetFromParent; + cancelButton.SetSizeModeFactor(new Vector3(-20.0f, -20.0f, 0.0f)); + + TableView controlLayout = new TableView(1, 2); + controlLayout.ParentOrigin = ParentOrigin.Center; + controlLayout.AnchorPoint = AnchorPoint.Center; + controlLayout.WidthResizePolicy = ResizePolicyType.FillToParent; + controlLayout.HeightResizePolicy = ResizePolicyType.FillToParent; + controlLayout.SetCellPadding(new Size2D(10, 10)); + controlLayout.SetRelativeWidth(0, 0.5f); + controlLayout.SetRelativeWidth(1, 0.5f); + controlLayout.SetCellAlignment(new TableView.CellPosition(0, 0), HorizontalAlignmentType.Center, VerticalAlignmentType.Center); + controlLayout.SetCellAlignment(new TableView.CellPosition(0, 1), HorizontalAlignmentType.Center, VerticalAlignmentType.Center); + controlLayout.AddChild(okButton, new TableView.CellPosition(0, 0)); + controlLayout.AddChild(cancelButton, new TableView.CellPosition(0, 1)); + + footer.Add(controlLayout); + + confirmationPopup.SetFooter(footer); + return confirmationPopup; + } + Actor CreateTitle(string title) + { + TextLabel titleActor = new TextLabel(title); + titleActor.TextColor = Color.White; + titleActor.MultiLine = true; + titleActor.HorizontalAlignment = "center"; + return titleActor; + } + + PushButton CreateOKButton() + { + PushButton okayButton = new PushButton(); + okayButton.Name = ("OKButton"); + okayButton.LabelText = "OK"; + okayButton.Focusable = (true); + okayButton.Clicked += (obj, ee) => + { + _popup.SetDisplayState(Popup.DisplayStateType.Hidden); + return true; + }; + return okayButton; + } + PushButton CreateCancelButton() + { + PushButton cancelButton = new PushButton(); + cancelButton.LabelText = "Cancel"; + cancelButton.Focusable = (true); + cancelButton.Clicked += (obj, ee) => + { + _popup.SetDisplayState(Popup.DisplayStateType.Hidden); + return true; + }; + return cancelButton; + } + + void OnProgressBarValueChanged(object source, ProgressBar.ValueChangedEventArgs e) + { + PropertyMap labelVisual = new PropertyMap(); + labelVisual.Add(Tizen.NUI.Constants.Visual.Property.Type, new PropertyValue((int)Tizen.NUI.Constants.Visual.Type.Text)) + .Add(Tizen.NUI.Constants.TextVisualProperty.Text, new PropertyValue(Math.Round(e.ProgressBar.ProgressValue, 2) + " / " + Math.Round(e.ProgressBar.SecondaryProgressValue, 2))) + .Add(Tizen.NUI.Constants.TextVisualProperty.PointSize, new PropertyValue(10.0f)); + e.ProgressBar.LabelVisual = labelVisual; + return; + } + + + /// + /// The main entry point for the application. + /// + + [STAThread] + static void Main(string[] args) + { + Tizen.Log.Debug("NUI", "control-dashboard app Main()"); + + Example example = new Example("/home/owner/apps_rw/NUISample2.Tizen/res/json/control-dashboard-theme.json"); + example.Run(args); + } + } +} diff --git a/NUISample2/NUISample2/NUISample2.Tizen/NUISample2.Tizen.csproj b/NUISample2/NUISample2/NUISample2.Tizen/NUISample2.Tizen.csproj new file mode 100755 index 0000000..bb5dc8e --- /dev/null +++ b/NUISample2/NUISample2/NUISample2.Tizen/NUISample2.Tizen.csproj @@ -0,0 +1,88 @@ + + + + 14.0 + Debug + AnyCPU + 8.0.30703 + 2.0 + {2F98DAC9-6F16-457B-AED7-D43CAC379341};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + {1BC32B91-AF24-45AE-99A7-ACF5E0740993} + Exe + Properties + NUISample2.Tizen + NUISample2.Tizen + 512 + en-US + + + DNXCore + v5.0 + false + .NETCoreApp,Version=v1.0 + true + $(NoWarn);1701 + false + + + true + portable + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + true + portable + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + <_TargetFrameworkDirectories>$(MSBuildThisFileDirectory) + <_FullFrameworkReferenceAssemblyPaths>$(MSBuildThisFileDirectory) + true + + + + + + + + + + + + \ No newline at end of file diff --git a/NUISample2/NUISample2/NUISample2.Tizen/NUISample2.Tizen.project.json b/NUISample2/NUISample2/NUISample2.Tizen/NUISample2.Tizen.project.json new file mode 100755 index 0000000..96aa2d1 --- /dev/null +++ b/NUISample2/NUISample2/NUISample2.Tizen/NUISample2.Tizen.project.json @@ -0,0 +1,27 @@ +{ + "buildOptions": { + "emitEntryPoint": true, + "debugType": "portable", + "platform": "AnyCPU", + "preserveCompilationContext": true + }, + "dependencies": { + "Microsoft.NETCore.App": { + "version": "1.0.0" + }, + "Tizen.Library": "1.0.0-pre2", + "Tizen.NUI": "0.2.31" + }, + "runtimes": { + "win": {}, + "linux": {} + }, + "frameworks": { + "netcoreapp1.0": { + "imports": [ + "portable-net45+wp80+win81+wpa81", + "netstandard1.6" + ] + } + } +} \ No newline at end of file diff --git a/NUISample2/NUISample2/NUISample2.Tizen/Properties/AssemblyInfo.cs b/NUISample2/NUISample2/NUISample2.Tizen/Properties/AssemblyInfo.cs new file mode 100755 index 0000000..08a476a --- /dev/null +++ b/NUISample2/NUISample2/NUISample2.Tizen/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("NUISample2.Tizen")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Microsoft")] +[assembly: AssemblyProduct("NUISample2.Tizen")] +[assembly: AssemblyCopyright("Copyright © Microsoft 2017")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("1bc32b91-af24-45ae-99a7-acf5e0740993")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/NUISample2/NUISample2/NUISample2.Tizen/res/images/application-icon-0.png b/NUISample2/NUISample2/NUISample2.Tizen/res/images/application-icon-0.png new file mode 100755 index 0000000..339b19c Binary files /dev/null and b/NUISample2/NUISample2/NUISample2.Tizen/res/images/application-icon-0.png differ diff --git a/NUISample2/NUISample2/NUISample2.Tizen/res/images/arrow.png b/NUISample2/NUISample2/NUISample2.Tizen/res/images/arrow.png new file mode 100755 index 0000000..87abefd Binary files /dev/null and b/NUISample2/NUISample2/NUISample2.Tizen/res/images/arrow.png differ diff --git a/NUISample2/NUISample2/NUISample2.Tizen/res/images/background-blocks.jpg b/NUISample2/NUISample2/NUISample2.Tizen/res/images/background-blocks.jpg new file mode 100755 index 0000000..d8fed65 Binary files /dev/null and b/NUISample2/NUISample2/NUISample2.Tizen/res/images/background-blocks.jpg differ diff --git a/NUISample2/NUISample2/NUISample2.Tizen/res/images/gallery-0.jpg b/NUISample2/NUISample2/NUISample2.Tizen/res/images/gallery-0.jpg new file mode 100755 index 0000000..e42dba7 Binary files /dev/null and b/NUISample2/NUISample2/NUISample2.Tizen/res/images/gallery-0.jpg differ diff --git a/NUISample2/NUISample2/NUISample2.Tizen/res/images/gallery-1.jpg b/NUISample2/NUISample2/NUISample2.Tizen/res/images/gallery-1.jpg new file mode 100755 index 0000000..6a427ad Binary files /dev/null and b/NUISample2/NUISample2/NUISample2.Tizen/res/images/gallery-1.jpg differ diff --git a/NUISample2/NUISample2/NUISample2.Tizen/res/images/gallery-2.jpg b/NUISample2/NUISample2/NUISample2.Tizen/res/images/gallery-2.jpg new file mode 100755 index 0000000..30b1a51 Binary files /dev/null and b/NUISample2/NUISample2/NUISample2.Tizen/res/images/gallery-2.jpg differ diff --git a/NUISample2/NUISample2/NUISample2.Tizen/res/images/gallery-3.jpg b/NUISample2/NUISample2/NUISample2.Tizen/res/images/gallery-3.jpg new file mode 100755 index 0000000..2da2ceb Binary files /dev/null and b/NUISample2/NUISample2/NUISample2.Tizen/res/images/gallery-3.jpg differ diff --git a/NUISample2/NUISample2/NUISample2.Tizen/res/images/gallery-4.jpg b/NUISample2/NUISample2/NUISample2.Tizen/res/images/gallery-4.jpg new file mode 100755 index 0000000..902b711 Binary files /dev/null and b/NUISample2/NUISample2/NUISample2.Tizen/res/images/gallery-4.jpg differ diff --git a/NUISample2/NUISample2/NUISample2.Tizen/res/images/gallery-5.jpg b/NUISample2/NUISample2/NUISample2.Tizen/res/images/gallery-5.jpg new file mode 100755 index 0000000..490fb56 Binary files /dev/null and b/NUISample2/NUISample2/NUISample2.Tizen/res/images/gallery-5.jpg differ diff --git a/NUISample2/NUISample2/NUISample2.Tizen/res/images/image-1.jpg b/NUISample2/NUISample2/NUISample2.Tizen/res/images/image-1.jpg new file mode 100755 index 0000000..155ab30 Binary files /dev/null and b/NUISample2/NUISample2/NUISample2.Tizen/res/images/image-1.jpg differ diff --git a/NUISample2/NUISample2/NUISample2.Tizen/res/images/image-2.jpg b/NUISample2/NUISample2/NUISample2.Tizen/res/images/image-2.jpg new file mode 100755 index 0000000..e855ecf Binary files /dev/null and b/NUISample2/NUISample2/NUISample2.Tizen/res/images/image-2.jpg differ diff --git a/NUISample2/NUISample2/NUISample2.Tizen/res/images/image-3.jpg b/NUISample2/NUISample2/NUISample2.Tizen/res/images/image-3.jpg new file mode 100755 index 0000000..8dee462 Binary files /dev/null and b/NUISample2/NUISample2/NUISample2.Tizen/res/images/image-3.jpg differ diff --git a/NUISample2/NUISample2/NUISample2.Tizen/res/images/not_yet_sign.png b/NUISample2/NUISample2/NUISample2.Tizen/res/images/not_yet_sign.png new file mode 100755 index 0000000..12b48c1 Binary files /dev/null and b/NUISample2/NUISample2/NUISample2.Tizen/res/images/not_yet_sign.png differ diff --git a/NUISample2/NUISample2/NUISample2.Tizen/res/images/star-dim.png b/NUISample2/NUISample2/NUISample2.Tizen/res/images/star-dim.png new file mode 100755 index 0000000..38cc674 Binary files /dev/null and b/NUISample2/NUISample2/NUISample2.Tizen/res/images/star-dim.png differ diff --git a/NUISample2/NUISample2/NUISample2.Tizen/res/images/star-highlight.png b/NUISample2/NUISample2/NUISample2.Tizen/res/images/star-highlight.png new file mode 100755 index 0000000..f99ee25 Binary files /dev/null and b/NUISample2/NUISample2/NUISample2.Tizen/res/images/star-highlight.png differ diff --git a/NUISample2/NUISample2/NUISample2.Tizen/res/images/star-mod.png b/NUISample2/NUISample2/NUISample2.Tizen/res/images/star-mod.png new file mode 100755 index 0000000..2e3212e Binary files /dev/null and b/NUISample2/NUISample2/NUISample2.Tizen/res/images/star-mod.png differ diff --git a/NUISample2/NUISample2/NUISample2.Tizen/res/json/control-dashboard-theme.json b/NUISample2/NUISample2/NUISample2.Tizen/res/json/control-dashboard-theme.json new file mode 100755 index 0000000..82d27ee --- /dev/null +++ b/NUISample2/NUISample2/NUISample2.Tizen/res/json/control-dashboard-theme.json @@ -0,0 +1,157 @@ +/* + * Copyright (c) 2017 Samsung Electronics Co., Ltd. + * + * This file is part of Dali Toolkit + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +//****************************************************************************** +// +// Default Reference style theme for a 1920x1080 resolution, The values determined by UX design specification. +// This file can be copied to a new folder within the styles/ directory and amended with new default values. +// Can be overriden if StyleManager applies another style sheet. +// +//****************************************************************************** + +{ + "styles": + { + "TextLabel": + { + "pointSize":8, + "enableAutoScroll":false, + "autoScrollLoopCount":2, + "autoScrollGap":50, + "autoScrollSpeed":80 + }, + + "TextLabelFontSize0": + { + "pointSize":8 + }, + "TextLabelFontSize1": + { + "pointSize":9 + }, + "TextLabelFontSize2": + { + "pointSize":10 + }, + "TextLabelFontSize3": + { + "pointSize":11 + }, + "TextLabelFontSize4": + { + "pointSize":12 + }, + + "TextField": + { + "pointSize":8, + "primaryCursorColor":[0.0,0.72,0.9,1.0], + "secondaryCursorColor":[0.0,0.72,0.9,1.0], + "cursorWidth":6, + "selectionHighlightColor":[0.75,0.96,1.0,1.0], + "grabHandleImage" : "{DALI_STYLE_IMAGE_DIR}cursor_handler_drop_center.png", + "selectionHandleImageLeft" : {"filename":"{DALI_STYLE_IMAGE_DIR}selection_handle_drop_left.png" }, + "selectionHandleImageRight": {"filename":"{DALI_STYLE_IMAGE_DIR}selection_handle_drop_right.png" } + }, + + "TextFieldFontSize0": + { + "pointSize":8 + }, + "TextFieldFontSize1": + { + "pointSize":9 + }, + "TextFieldFontSize2": + { + "pointSize":10 + }, + "TextFieldFontSize3": + { + "pointSize":11 + }, + "TextFieldFontSize4": + { + "pointSize":20 + }, + "ScrollView": + { + "overshootEffectColor":"B018", + "overshootAnimationSpeed":960.0, + "overshootSize":[1920.0,130.0] + }, + "ItemView": + { + "overshootEffectColor":"B018", + "overshootAnimationSpeed":960.0, + "overshootSize":[1920.0,130.0] + }, + "TextEditor": + { + "pointSize":8, + "primaryCursorColor":[0.0,0.72,0.9,1.0], + "secondaryCursorColor":[0.0,0.72,0.9,1.0], + "cursorWidth":6, + "selectionHighlightColor":[0.75,0.96,1.0,1.0] + }, + "Button": + { + "styles":["Tooltip"], + "initialAutoRepeatingDelay":2.0, + "nextAutoRepeatingDelay":0.9 + // Note: Visuals added to Button will be used in all derived buttons unless overridden. + }, + "PushButton": + { + "styles":["Button"], + "autoRepeating":false, + "togglable":false, + "labelPadding":[ 12.0, 12.0, 12.0, 12.0 ], + "label": + { + "visualType": "TEXT", + "horizontalAlignment": "CENTER", + "pointSize" : 6.0, // Point size must always be provided to Text Visual + "verticalAlignment": "CENTER" + } + }, + "CheckBoxButton": + { + "styles":["Button"], + "labelPadding":[ 12.0, 12.0, 0.0, 0.0 ], + "label": + { + "visualType": "TEXT", + "pointSize" : 8.0, // Point size must always be provided to Text Visual + "verticalAlignment": "CENTER" + } + }, + "RadioButton": + { + "styles":["Button"], + "labelPadding":[ 12.0, 12.0, 0.0, 0.0 ], + "label": + { + "visualType": "TEXT", + "pointSize" : 8.0, // Point size must always be provided to Text Visual + "verticalAlignment": "CENTER" + } + } + } +} diff --git a/NUISample2/NUISample2/NUISample2.Tizen/res/json/control-dashboard.json b/NUISample2/NUISample2/NUISample2.Tizen/res/json/control-dashboard.json new file mode 100755 index 0000000..c2609c4 --- /dev/null +++ b/NUISample2/NUISample2/NUISample2.Tizen/res/json/control-dashboard.json @@ -0,0 +1,26 @@ +/* + * Copyright (c) 2017 Samsung Electronics Co., Ltd. + * + * This file is part of Dali Toolkit + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +{ + "styles": + { + "ProgressBar": + { + } + } +} diff --git a/NUISample2/NUISample2/NUISample2.Tizen/res/json/date-picker-template.json b/NUISample2/NUISample2/NUISample2.Tizen/res/json/date-picker-template.json new file mode 100755 index 0000000..dd01d8f --- /dev/null +++ b/NUISample2/NUISample2/NUISample2.Tizen/res/json/date-picker-template.json @@ -0,0 +1,84 @@ +/* + * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +{ + // Data picker loaded directly on to the stage + // + "templates": { + "date-picker": + { + "type":"FlexContainer", + "name":"exampleDatePicker", + "parentOrigin": "CENTER", + "anchorPoint": "CENTER", + "flexDirection":"ROW", + "size":[480.0, 150, 0 ], + "actors": [ + { + + "type": "Spin", + "name": "Year", + "parentOrigin": "CENTER", + "anchorPoint": "CENTER", + "Value":2017, + "MinValue":1900, + "MaxValue":2100, + "Step":1, + "TextColor":[0.0,0.0,1.0,1.0], + "properties": { // properties registered dynamically + "flex":0.3, + "flexMargin": [5.0,0.0,5.0,0.0] + } + }, + { + + "type": "Spin", + "name": "Month", + "parentOrigin": "CENTER", + "anchorPoint": "CENTER", + "parentOrigin": "CENTER", + "Value":10, + "Step":1, + "MinValue":1, + "MaxValue":12, + "TextColor":[1.0,1.0,1.0,1.0], + "properties": { // properties registered dynamically + "flex":0.3, + "flexMargin": [5.0,0.0,5.0,0.0] + } + + }, + { + + "type": "Spin", + "name": "Day", + "parentOrigin": "CENTER", + "anchorPoint": "CENTER", + "Value":1, + "MinValue":1, + "MaxValue":31, + "TextColor":[1.0,0.0,0.0,1.0], + "properties": { // properties registered dynamically + "flex":0.3, + "flexMargin": [5.0,0.0,5.0,0.0] + } + }] + + } +} + +} + diff --git a/NUISample2/NUISample2/NUISample2.Tizen/res/json/date-picker-theme.json b/NUISample2/NUISample2/NUISample2.Tizen/res/json/date-picker-theme.json new file mode 100755 index 0000000..6424a38 --- /dev/null +++ b/NUISample2/NUISample2/NUISample2.Tizen/res/json/date-picker-theme.json @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2017 Samsung Electronics Co., Ltd. + * + * This file is part of Dali Toolkit + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +{ + "styles": { + "Spin": { + "MinValue": 0, + "MaxValue": 100, + "Value": 50, + "Step": 1, + "TextColor": [ 1.0, 0.0, 0.0, 1.0 ] + } + } +} diff --git a/NUISample2/NUISample2/NUISample2.Tizen/res/json/date-picker.json b/NUISample2/NUISample2/NUISample2.Tizen/res/json/date-picker.json new file mode 100755 index 0000000..3126aa3 --- /dev/null +++ b/NUISample2/NUISample2/NUISample2.Tizen/res/json/date-picker.json @@ -0,0 +1,82 @@ +/* + * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +{ + // Data picker loaded directly on to the stage + // + "stage": [{ + + "type":"FlexContainer", + "name":"exampleDatePicker", + "parentOrigin": "CENTER", + "anchorPoint": "CENTER", + "flexDirection":"ROW", + "size":[480.0, 150, 0 ], + "actors": [ + { + + "type": "Spin", + "name": "Year", + "parentOrigin": "CENTER", + "anchorPoint": "CENTER", + "MinValue":1900, + "MaxValue":2100, + "Value":2017, + "Step":1, + "TextColor":[0.0,0.0,1.0,1.0], + "properties": { // properties registered dynamically + "flex":0.3, + "flexMargin": [5.0,0.0,5.0,0.0] + } + }, + { + + "type": "Spin", + "name": "Month", + "parentOrigin": "CENTER", + "anchorPoint": "CENTER", + "parentOrigin": "CENTER", + "Step":1, + "MinValue":1, + "MaxValue":12, + "Value":10, + "TextColor":[1.0,1.0,1.0,1.0], + "properties": { // properties registered dynamically + "flex":0.3, + "flexMargin": [5.0,0.0,5.0,0.0] + } + + }, + { + + "type": "Spin", + "name": "Day", + "parentOrigin": "CENTER", + "anchorPoint": "CENTER", + "MinValue":1, + "MaxValue":31, + "Value":1, + "TextColor":[1.0,0.0,0.0,1.0], + "properties": { // properties registered dynamically + "flex":0.3, + "flexMargin": [5.0,0.0,5.0,0.0] + } + }] + +}] + +} + diff --git a/NUISample2/NUISample2/NUISample2.Tizen/res/json/spin.json b/NUISample2/NUISample2/NUISample2.Tizen/res/json/spin.json new file mode 100755 index 0000000..df9b10c --- /dev/null +++ b/NUISample2/NUISample2/NUISample2.Tizen/res/json/spin.json @@ -0,0 +1,30 @@ +/* + * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +{ + // a tree of actors + "stage": [ + // You can add an array of Actors / Views here + // Lets add a spin to the stage + { + "type":"Spin", + "parentOrigin":"CENTER", + "size":[120,120,0] + // now lets use the C# app json-loader.exe to load it + } + + ] +} diff --git a/NUISample2/NUISample2/NUISample2.Tizen/res/json/style-example-theme-one.json b/NUISample2/NUISample2/NUISample2.Tizen/res/json/style-example-theme-one.json new file mode 100755 index 0000000..ee7d425 --- /dev/null +++ b/NUISample2/NUISample2/NUISample2.Tizen/res/json/style-example-theme-one.json @@ -0,0 +1,407 @@ +{ + "constants": { + "STYLE_DIR": "{APPLICATION_RESOURCE_PATH}/style" + }, + "styles": { + "Title": { + "textColor": "#0000ff", + "background": { + "visualType": "COLOR", + "mixColor": [ 1.0, 1.0, 1.0, 1.0 ] + } + }, + "TableView": { + "background": { + "visualType": "COLOR", + "mixColor": [ 1.0, 1.0, 1.0, 0.03 ] + } + }, + "FlexContainer": { + "background": { + "visualType": "COLOR", + "mixColor": [ 1.0, 1.0, 1.0, 0.1 ] + } + }, + "RadioButton": { + "label": { + "textColor": [ 1, 1, 1, 1 ] + } + }, + "CheckBoxButton": { + "label": { + "textColor": [ 1, 1, 1, 1 ] + } + }, + "ColorLabel1": { + "textColor": [ 1, 0, 0, 1 ] + }, + "ColorLabel2": { + "textColor": [ 0, 1, 0, 1 ] + }, + "ColorLabel3": { + "textColor": [ 0.3, 0.3, 1, 1 ] + }, + "ThemeLabel": { + "textColor": [ 0, 1, 1, 1 ] + }, + "PopupTitle": { + "textColor": [ 1, 1, 1, 1 ] + }, + "PopupBody": { + "textColor": [ 1, 1, 0, 1 ] + }, + "TextLabel": { + "textColor": [ 0, 0, 0, 1 ] + }, + "ColorSlider1": { + "styles": [ "Slider" ] + }, + "ColorSlider2": { + "styles": [ "slider" ] + }, + "ColorSlider3": { + "styles": [ "slider" ] + }, + "ImageChannelControl": { + "enableVisibilityTransition": [ + { + "target": "imageVisual", + "property": "opacity", + "initialValue": 0, + "targetValue": 1, + "animator": { + "alphaFunction": "EASE_IN_OUT", + "timePeriod": { + "duration": 0.25, + "delay": 0 + } + } + }, + { + "target": "imageVisual", + "property": "size", + "targetValue": [ 1, 1 ] + } + ], + "disableVisibilityTransition": [ + { + "target": "imageVisual", + "property": "opacity", + "targetValue": 0, + "animator": { + "alphaFunction": "EASE_IN_OUT", + "timePeriod": { + "duration": 0.25, + "delay": 0 + } + } + }, + { + "target": "imageVisual", + "property": "size", + "targetValue": [ 1, 1, 1 ] + } + ] + }, + "ShadowButton": { + "backgroundVisual": { + "visualType": "IMAGE", + "url": "{STYLE_DIR}/images/shadowButtonBg.9.png", + "mixColor": [ 1, 1, 1, 0 ] + }, + "checkboxBgVisual": { + "visualType": "IMAGE", + "url": "{STYLE_DIR}/images/CheckBg.png", + "transform": { + "size": [ 0.09, 0.28 ], + "offset": [ 30, 0 ], + "offsetSizeMode": [ 1, 1, 0, 0 ], + "origin": "CENTER_BEGIN", + "anchorPoint": "CENTER_BEGIN" + } + }, + "checkboxFgVisual": { + "visualType": "IMAGE", + "url": "{STYLE_DIR}/images/Tick.png", + "transform": { + "size": [ 0.09, 0.28 ], + "offset": [ 30, 0 ], + "offsetSizeMode": [ 1, 1, 0, 0 ], + "origin": "CENTER_BEGIN", + "anchorPoint": "CENTER_BEGIN" + } + }, + "labelVisual": { + "visualType": "TEXT", + "text": "Don't show again", + "pointSize": 20, + "horizontalAlignment": "END", + "verticalAlignment": "CENTER", + "textColor": [ 1, 1, 1, 1 ], + "mixColor": [ 0.3, 0.3, 0.3, 1 ], + "transform": { + "size": [ 0.9, 0.9 ], + "offset": [ -30, 0 ], + "offsetSizeMode": [ 1, 1, 0, 0 ], + "origin": "CENTER_END", + "anchorPoint": "CENTER_END" + } + }, + "activeTransition": [ + { + "target": "checkboxBgVisual", + "property": "size", + "initialValue": [ 0.09, 0.28 ], + "targetValue": [ 0.12, 0.37 ], + "animator": { + "alphaFunction": "EASE_OUT_BACK", + "timePeriod": { + "duration": 0.8, + "delay": 0 + } + } + }, + { + "target": "backgroundVisual", + "property": "mixColor", + "initialValue": [ 1, 1, 1, 0 ], + "targetValue": [ 1, 1, 1, 1 ], + "animator": { + "alphaFunction": "EASE_OUT_BACK", + "timePeriod": { + "duration": 0.8, + "delay": 0 + } + } + }, + { + "target": "backgroundVisual", + "property": "size", + "initialValue": [ 0.9, 0.9 ], + "targetValue": [ 1, 1 ], + "animator": { + "alphaFunction": "EASE_OUT_BACK", + "timePeriod": { + "duration": 0.8, + "delay": 0 + } + } + }, + { + "target": "checkboxFgVisual", + "property": "size", + "initialValue": [ 0.09, 0.28 ], + "targetValue": [ 0.12, 0.37 ], + "animator": { + "alphaFunction": "EASE_OUT_BACK", + "timePeriod": { + "duration": 0.8, + "delay": 0 + } + } + }, + { + "target": "labelVisual", + "property": "mixColor", + "initialValue": [ 0.2, 0.2, 0.2, 1.0 ], + "targetValue": [ 0, 0, 0, 1 ], + "animator": { + "alphaFunction": "EASE_OUT_BACK", + "timePeriod": { + "duration": 0.8, + "delay": 0 + } + } + } + ], + "inactiveTransition": [ + { + "target": "checkboxBgVisual", + "property": "size", + "initialValue": [ 0.12, 0.37 ], + "targetValue": [ 0.09, 0.28 ], + "animator": { + "alphaFunction": "EASE_OUT_BACK", + "timePeriod": { + "duration": 0.8, + "delay": 0 + } + } + }, + { + "target": "backgroundVisual", + "property": "mixColor", + "targetValue": [ 1, 1, 1, 0 ], + "animator": { + "alphaFunction": "EASE_OUT_BACK", + "timePeriod": { + "duration": 0.8, + "delay": 0 + } + } + }, + { + "target": "checkboxFgVisual", + "property": "size", + "initialValue": [ 0.12, 0.37 ], + "targetValue": [ 0.09, 0.28 ], + "animator": { + "alphaFunction": "EASE_OUT_BACK", + "timePeriod": { + "duration": 0.8, + "delay": 0 + } + } + }, + { + "target": "labelVisual", + "property": "mixColor", + "targetValue": [ 0.4, 0.4, 0.4, 1.0 ], + "animator": { + "alphaFunction": "EASE_OUT_BACK", + "timePeriod": { + "duration": 0.8, + "delay": 0 + } + } + }, + { + "target": "backgroundVisual", + "property": "size", + "targetValue": [ 0.9, 0.9 ], + "animator": { + "alphaFunction": "EASE_OUT_BACK", + "timePeriod": { + "duration": 0.8, + "delay": 0 + } + } + } + ], + "checkTransition": [ + { + "target": "checkboxFgVisual", + "property": "pixelArea", + "initialValue": [ 0.0, 0.0, 0.0, 1.0 ], + "targetValue": [ 0.0, 0.0, 1.0, 1.0 ], + "animator": { + "alphaFunction": "EASE_IN", + "timePeriod": { + "duration": 0.4, + "delay": 0 + } + } + }, + { + "target": "checkboxFgVisual", + "property": "size", + "initialValue": [ 0.0, 0.37 ], + "targetValue": [ 0.12, 0.37 ], + "animator": { + "alphaFunction": "EASE_IN", + "timePeriod": { + "duration": 0.4, + "delay": 0 + } + } + } + ], + "uncheckTransition": [ + { + "target": "checkboxFgVisual", + "property": "pixelArea", + "initialValue": [ 0.0, 0.0, 1.0, 1.0 ], + "targetValue": [ 0.0, 0.0, 0.0, 1.0 ], + "animator": { + "alphaFunction": "EASE_OUT", + "timePeriod": { + "duration": 0.4, + "delay": 0 + } + } + }, + { + "target": "checkboxFgVisual", + "property": "size", + "targetValue": [ 0.0, 0.37 ], + "animator": { + "alphaFunction": "EASE_OUT", + "timePeriod": { + "duration": 0.4, + "delay": 0 + } + } + } + ] + }, + "BeatControl": { + "beatVisual": { + "visualType": "IMAGE", + "url": "{APPLICATION_RESOURCE_PATH}/images/Logo-for-demo.png" + }, + + "bounceTransition": [ + { + "target": "beatVisual", + "property": "size", + "initialValue": [ 0.5, 0.5 ], + "targetValue": [ 0.75, 0.75 ], + "animator": { + "alphaFunction": "BOUNCE", + "timePeriod": { + "duration": 0.5, + "delay": 0 + } + } + } + ], + + "leftTransition": [ + { + "target": "beatVisual", + "property": "offset", + "initialValue": [ 0, 0 ], + "targetValue": [ 0.25, 0 ], + "animator": { + "alphaFunction": "BOUNCE", + "timePeriod": { + "duration": 0.5, + "delay": 0 + } + } + } + ], + + "upTransition": [ + { + "target": "beatVisual", + "property": "offset", + "initialValue": [ 0, 0 ], + "targetValue": [ 0, 0.25 ], + "animator": { + "alphaFunction": "BOUNCE", + "timePeriod": { + "duration": 0.5, + "delay": 0 + } + } + } + ], + + "fadeTransition": [ + { + "target": "beatVisual", + "property": "opacity", + "targetValue": 0, + "animator": { + "alphaFunction": "BOUNCE", + "timePeriod": { + "duration": 0.8, + "delay": 0 + } + } + } + ] + } + } +} \ No newline at end of file diff --git a/NUISample2/NUISample2/NUISample2.Tizen/shared/res/NUISample2.Tizen.png b/NUISample2/NUISample2/NUISample2.Tizen/shared/res/NUISample2.Tizen.png new file mode 100755 index 0000000..9765b1b Binary files /dev/null and b/NUISample2/NUISample2/NUISample2.Tizen/shared/res/NUISample2.Tizen.png differ diff --git a/NUISample2/NUISample2/NUISample2.Tizen/tizen-manifest.xml b/NUISample2/NUISample2/NUISample2.Tizen/tizen-manifest.xml new file mode 100755 index 0000000..a02bdb7 --- /dev/null +++ b/NUISample2/NUISample2/NUISample2.Tizen/tizen-manifest.xml @@ -0,0 +1,14 @@ + + + + + + NUISample2.Tizen.png + + diff --git a/NUISamples/NUISamples.TizenTV/NUISamples.TizenTV.csproj b/NUISamples/NUISamples.TizenTV/NUISamples.TizenTV.csproj index 4e100de..c338a76 100755 --- a/NUISamples/NUISamples.TizenTV/NUISamples.TizenTV.csproj +++ b/NUISamples/NUISamples.TizenTV/NUISamples.TizenTV.csproj @@ -92,6 +92,10 @@ + + False + ..\..\Tizen.NUI.ExtTEST\Tizen.NUI.ExtTEST\bin\Debug\Tizen.NUI.ExtTEST.dll + + \ No newline at end of file diff --git a/Tizen.NUI.ExtTEST/Tizen.NUI.ExtTEST/bin/Debug/Tizen.NUI.ExtTEST.dll b/Tizen.NUI.ExtTEST/Tizen.NUI.ExtTEST/bin/Debug/Tizen.NUI.ExtTEST.dll new file mode 100755 index 0000000..a9f789d Binary files /dev/null and b/Tizen.NUI.ExtTEST/Tizen.NUI.ExtTEST/bin/Debug/Tizen.NUI.ExtTEST.dll differ diff --git a/Tizen.NUI.ExtTEST/Tizen.NUI.ExtTEST/packages.config b/Tizen.NUI.ExtTEST/Tizen.NUI.ExtTEST/packages.config new file mode 100755 index 0000000..6a5768e --- /dev/null +++ b/Tizen.NUI.ExtTEST/Tizen.NUI.ExtTEST/packages.config @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Tizen.NUI.ExtTEST/Tizen.NUI.ExtTEST/test_make_key.snk b/Tizen.NUI.ExtTEST/Tizen.NUI.ExtTEST/test_make_key.snk new file mode 100755 index 0000000..4758533 Binary files /dev/null and b/Tizen.NUI.ExtTEST/Tizen.NUI.ExtTEST/test_make_key.snk differ diff --git a/Tizen.NUI/Tizen.NUI.csproj b/Tizen.NUI/Tizen.NUI.csproj index 6e87c01..3d96a68 100755 --- a/Tizen.NUI/Tizen.NUI.csproj +++ b/Tizen.NUI/Tizen.NUI.csproj @@ -49,6 +49,7 @@ + diff --git a/Tizen.NUI/src/internal/FriendAssembly.cs b/Tizen.NUI/src/internal/FriendAssembly.cs new file mode 100755 index 0000000..015fcf8 --- /dev/null +++ b/Tizen.NUI/src/internal/FriendAssembly.cs @@ -0,0 +1,26 @@ +// Copyright (c) 2017 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts +// Some have been manually changed + +// friend assembly setting +// compile with: /target:Tizen.NUI.ExtTEST /keyfile:FriendAssemblies.snk + +using System.Runtime.CompilerServices; +[assembly: InternalsVisibleTo("Tizen.NUI.ExtTEST, PublicKey=00240000048000009400000006020000002400005253413100040000010001004d7c7c03a196ecb8e7cc5056750e1f40ee2bbe99f0e53a07f2538f2b0f450bd731b9dca3706503a0378baca74a09cf3af6261b330c031f44817ab6ed64189460765a402279d3e0c1fa7295ae1dccb2e3ff329705fd85b58d66ae7cb7e95ba06e0d847c3e3ba918798f579e5caeb1c6149955e6baf24236eec46227a623e494b1")] +namespace Tizen.NUI +{ +} \ No newline at end of file