\r
Microsoft Visual Studio Solution File, Format Version 12.00\r
-# Visual Studio 14\r
-VisualStudioVersion = 14.0.25420.1\r
+# Visual Studio 15\r
+VisualStudioVersion = 15.0.26430.14\r
MinimumVisualStudioVersion = 10.0.40219.1\r
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NUISamples-dummy", "NUISamples\NUISamples\NUISamples-dummy.csproj", "{56CA3B27-C662-4AC8-93CA-7ACEF926B2AA}"\r
-EndProject\r
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NUISamples.TizenTV", "NUISamples\NUISamples.TizenTV\NUISamples.TizenTV.csproj", "{7731BE98-0A68-49A9-877C-A30A0D30D9F6}"\r
- ProjectSection(ProjectDependencies) = postProject\r
- {56CA3B27-C662-4AC8-93CA-7ACEF926B2AA} = {56CA3B27-C662-4AC8-93CA-7ACEF926B2AA}\r
- EndProjectSection\r
-EndProject\r
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tizen.NUI", "..\Tizen.NUI\Tizen.NUI.csproj", "{F03A3B48-9D9B-4BF3-92CE-BD63CADC3CD3}"\r
EndProject\r
Global\r
GlobalSection(SolutionConfigurationPlatforms) = preSolution\r
Release|Any CPU = Release|Any CPU\r
EndGlobalSection\r
GlobalSection(ProjectConfigurationPlatforms) = postSolution\r
- {56CA3B27-C662-4AC8-93CA-7ACEF926B2AA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\r
- {56CA3B27-C662-4AC8-93CA-7ACEF926B2AA}.Debug|Any CPU.Build.0 = Debug|Any CPU\r
- {56CA3B27-C662-4AC8-93CA-7ACEF926B2AA}.Release|Any CPU.ActiveCfg = Release|Any CPU\r
- {56CA3B27-C662-4AC8-93CA-7ACEF926B2AA}.Release|Any CPU.Build.0 = Release|Any CPU\r
{7731BE98-0A68-49A9-877C-A30A0D30D9F6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\r
{7731BE98-0A68-49A9-877C-A30A0D30D9F6}.Debug|Any CPU.Build.0 = Debug|Any CPU\r
{7731BE98-0A68-49A9-877C-A30A0D30D9F6}.Release|Any CPU.ActiveCfg = Release|Any CPU\r
{7731BE98-0A68-49A9-877C-A30A0D30D9F6}.Release|Any CPU.Build.0 = Release|Any CPU\r
- {F03A3B48-9D9B-4BF3-92CE-BD63CADC3CD3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\r
- {F03A3B48-9D9B-4BF3-92CE-BD63CADC3CD3}.Debug|Any CPU.Build.0 = Debug|Any CPU\r
- {F03A3B48-9D9B-4BF3-92CE-BD63CADC3CD3}.Release|Any CPU.ActiveCfg = Release|Any CPU\r
- {F03A3B48-9D9B-4BF3-92CE-BD63CADC3CD3}.Release|Any CPU.Build.0 = Release|Any CPU\r
EndGlobalSection\r
GlobalSection(SolutionProperties) = preSolution\r
HideSolutionNode = FALSE\r
<Compile Include="examples\relative-vector.cs" />\r
<Compile Include="examples\scroll-view.cs" />\r
<Compile Include="examples\sibling-order-test.cs" />\r
+ <Compile Include="examples\widget-view-test.cs" />\r
<Compile Include="examples\test1.cs" />\r
<Compile Include="examples\text-test.cs" />\r
<Compile Include="examples\ttsplayer-test.cs" />\r
<Compile Include="examples\visual-view-test2.cs" />\r
<Compile Include="examples\visual-view-test.cs" />\r
<Compile Include="examples\visual-view-test3.cs" />\r
+ <Compile Include="examples\visuals-example.cs" />\r
<Compile Include="examples\visuals-using-custom-view\ContactData.cs" />\r
<Compile Include="examples\visuals-using-custom-view\ContactView.cs" />\r
<Compile Include="examples\visuals-using-custom-view\visuals-using-custom-view.cs" />\r
<Folder Include="lib\" />\r
</ItemGroup>\r
<ItemGroup>\r
- <ProjectReference Include="..\..\..\Tizen.NUI\Tizen.NUI.csproj">\r
- <Project>{f03a3b48-9d9b-4bf3-92ce-bd63cadc3cd3}</Project>\r
- <Name>Tizen.NUI</Name>\r
- </ProjectReference>\r
- <ProjectReference Include="..\NUISamples\NUISamples-dummy.csproj">\r
- <Project>{56ca3b27-c662-4ac8-93ca-7acef926b2aa}</Project>\r
- <Name>NUISamples-dummy</Name>\r
- </ProjectReference>\r
- </ItemGroup>\r
- <ItemGroup>\r
+ <Content Include="res\images\anim-gif\0.gif" />\r
+ <Content Include="res\images\anim-gif\1.gif" />\r
+ <Content Include="res\images\anim-gif\10.gif" />\r
+ <Content Include="res\images\anim-gif\11.gif" />\r
+ <Content Include="res\images\anim-gif\12.gif" />\r
+ <Content Include="res\images\anim-gif\13.gif" />\r
+ <Content Include="res\images\anim-gif\14.gif" />\r
+ <Content Include="res\images\anim-gif\2.gif" />\r
+ <Content Include="res\images\anim-gif\3.gif" />\r
+ <Content Include="res\images\anim-gif\4.gif" />\r
+ <Content Include="res\images\anim-gif\5.gif" />\r
+ <Content Include="res\images\anim-gif\6.gif" />\r
+ <Content Include="res\images\anim-gif\7.gif" />\r
+ <Content Include="res\images\anim-gif\8.gif" />\r
+ <Content Include="res\images\anim-gif\9.gif" />\r
<Content Include="res\images\application-icon-0.png" />\r
<Content Include="res\images\background-blocks.jpg" />\r
<Content Include="res\images\dali-logo-anim.gif" />\r
<Content Include="res\images\image-3.jpg" />\r
<Content Include="res\images\Kid1.svg" />\r
<Content Include="res\images\Mail.svg" />\r
+ <Content Include="res\images\mask.png" />\r
<Content Include="res\images\menu\0.png" />\r
<Content Include="res\images\menu\1.png" />\r
<Content Include="res\images\menu\2.png" />\r
<Content Include="res\images\focuseffect\white-pixel.png" />\r
<Content Include="res\images\World.svg" />\r
</ItemGroup>\r
+ <ItemGroup>\r
+ <Reference Include="Tizen.NUI">\r
+ <HintPath>..\..\..\..\..\..\..\..\..\GBS-BUILD\unified-arm\local\repos\unified.arm\armv7l\RPMS\Tizen.NUI.dll</HintPath>\r
+ </Reference>\r
+ </ItemGroup>\r
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />\r
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.\r
Other similar extension points exist, see Microsoft.Common.targets.\r
<ProjectExtensions>\r
<VisualStudio>\r
<FlavorProperties GUID="{2F98DAC9-6F16-457B-AED7-D43CAC379341}" Configuration="Debug|Any CPU">\r
- <ProjectCorporateFlavorCfg />\r
+ <ProjectCommonFlavorCfg />\r
</FlavorProperties>\r
<FlavorProperties GUID="{2F98DAC9-6F16-457B-AED7-D43CAC379341}" Configuration="Release|Any CPU">\r
- <ProjectCorporateFlavorCfg />\r
+ <ProjectCommonFlavorCfg />\r
</FlavorProperties>\r
</VisualStudio>\r
</ProjectExtensions>\r
-</Project>\r
+</Project>
\ No newline at end of file
//new VisualsUsingCustomView.VisualsExample().Run(args);
//new FirstScreen.FirstScreenApp().Run(args);
//new VisualsExampleTest.Example().Run(args);
- new AsIsTest.Example().Run(args);
+ //new AsIsTest.Example().Run(args);
+ new WidgetViewTest.Example().Run(args);
}
}
}
private void ObjectDumpTrigger()
{
- for (int i = 0; i < Window.GetLayerCount(); i++)
+ for (int i = 0; i < Window.LayerCount; i++)
{
BFS(Window.GetLayer((uint)i), 1);
}
Tizen.Log.Fatal("NUI-APP", string.Format("it is not TextLaebl"));
}
- for (int i = 0; i < myView.GetChildCount(); i++)
+ for (int i = 0; i < myView.ChildCount; i++)
{
BFS(myView.GetChildAt((uint)i), depth + 1);
}
layer.Add(vi2);
layer.Add(tb3);
- Window.Instance.Add(layer);
+ Window.Instance.AddLayer(layer);
}
void ObjectDumpTrigger2()
{
- uint layerCnt = Window.GetLayerCount();
+ uint layerCnt = Window.LayerCount;
Tizen.Log.Fatal("NUI-APP", "layerCnt=" + layerCnt);
for (uint i = 0; i < layerCnt; i++)
{
if (view)
{
- uint childCnt = view.GetChildCount();
+ uint childCnt = view.ChildCount;
if (childCnt > 0)
{
depth = depth + 1;
private Spin _spinYear; // spin control for year
private Spin _spinMonth; // spin control for month
private Spin _spinDay; // spin control for day
- private Builder _builder; // DALi Builder
+ //private Builder _builder; // DALi Builder
//private const string _resPath = "/home/owner/apps_rw/NUISamples.TizenTV/res";
private const string _resPath = "./res"; //for ubuntu
//This is required for the Application which uses JSON theme and style of Dali builder
ViewRegistryHelper.Initialize();
-
+ /*
// load date JSON template...
_builder = new Builder ();
FocusManager keyboardFocusManager = FocusManager.Instance;
keyboardFocusManager.PreFocusChange += OnKeyboardPreFocusChange;
- keyboardFocusManager.FocusedViewActivated += OnFocusedViewActivated;
+ //keyboardFocusManager.FocusedViewActivated += OnFocusedViewActivated;
StyleManager.Get().ApplyTheme(_resPath + "/json/date-picker-theme.json");
+ */
}
private View OnKeyboardPreFocusChange(object source, FocusManager.PreFocusChangeEventArgs e)
return nextFocusView;
}
-
+ /*
private void OnFocusedViewActivated(object source, FocusManager.FocusedViewActivatedEventArgs e)
{
// Make the text field in the current focused spin to take the key input
}
}
}
-
+ */
/// <summary>
/// The main entry point for the application.
//This function is called when the app exit normally.
base.OnTerminate();
}
-
+ /*
protected override void OnLowMemory(LowMemoryEventArgs e)
{
//This function is called when the system is low on memory.
base.OnLowMemory(e);
}
-
protected override void OnLocaleChanged(LocaleChangedEventArgs e)
{
//This function is called when the language is changed.
base.OnLocaleChanged(e);
}
-
+ */
private static void _Main(string[] args)
{
//Create an Application
ttsPlayer.StateChanged += (s, e) =>
{
- Tizen.Log.Debug("TTS state changed!!!");
+ Tizen.Log.Debug("NUI", "TTS state changed!!!");
};
ttsPlayer.Pause();
ttsPlayer.Resume();
ttsPlayer.Stop();
- Tizen.Log.Debug("TTS state: " + ttsPlayer.GetState());
+ Tizen.Log.Debug("NUI", "TTS state: " + ttsPlayer.GetState());
}
[STAThread]
private TextLabel _title;
private PushButton _shadowButton;
private bool _active = false;
- //private const string _resPath = "/home/owner/apps_rw/NUISamples.TizenTV/res";
- private const string _resPath = "./res"; //for ubuntu
+ private const string _resPath = "/home/owner/apps_rw/NUISamples.TizenTV/res"; //for tizen
+ //private const string _resPath = "./res"; //for ubuntu
private Animation _animation1;
private bool _transitionInProgress = false;
private AnimatedImageVisual gifVisual;
private ImageVisual _icon;
- public Example() : base()
- {
- }
-
- public Example(string stylesheet) : base(stylesheet)
- {
- }
-
- public Example(string stylesheet, WindowMode windowMode) : base(stylesheet, windowMode)
- {
- }
-
protected override void OnCreate()
{
base.OnCreate();
{
Tizen.Log.Debug("NUI", "gif button clicked!");
cnt2++;
- if (cnt2 % 2 == 0)
- {
- gifVisual.URL = _resPath + "/images/dali-logo-anim.gif";
- }
- else
- {
- gifVisual.URL = _resPath + "/images/echo.gif";
- }
+ int gifNum = cnt2 % 15;
+ gifVisual.URL = _resPath + "/images/anim-gif/" + gifNum + ".gif";
+ gifButton.LabelText = "file:" + gifNum + ".gif";
return true;
};
contentLayout.AddChild(gifButton, new TableView.CellPosition(2, 1));
--- /dev/null
+using System;\r
+using Tizen.NUI;\r
+using Tizen.NUI.UIComponents;\r
+using Tizen.NUI.BaseComponents;\r
+\r
+namespace WidgetViewTest\r
+{\r
+ class Example : NUIApplication\r
+ {\r
+ private PushButton _widgetButton;\r
+ private PushButton _deletedButton;\r
+ private WidgetView _widgetView;\r
+ private WidgetViewManager _widgetViewManager;\r
+ private View _container;\r
+ private string _instanceID;\r
+\r
+ protected override void OnCreate()\r
+ {\r
+ base.OnCreate();\r
+ Initialize();\r
+ }\r
+\r
+ protected override void OnTerminate()\r
+ {\r
+ //This function is called when the app exit normally.\r
+ base.OnTerminate();\r
+ }\r
+\r
+ public void Initialize()\r
+ {\r
+ Window window = Window.Instance;\r
+ window.BackgroundColor = Color.White;\r
+\r
+ Tizen.Log.Debug("NUI", "### DP1");\r
+ Layer layer = new Layer();\r
+ layer.Behavior = Layer.LayerBehavior.Layer3D;\r
+ window.AddLayer(layer);\r
+ Tizen.Log.Debug("NUI", "### DP2");\r
+ _container = new View();\r
+ _container.ParentOrigin = ParentOrigin.Center;\r
+ _container.PivotPoint = PivotPoint.Center;\r
+ _container.Size2D = new Size2D(400, 400);\r
+ Tizen.Log.Debug("NUI", "### DP3");\r
+ _widgetButton = new PushButton();\r
+ _widgetButton.LabelText = "Widget";\r
+ _widgetButton.ParentOrigin = ParentOrigin.BottomLeft;\r
+ _widgetButton.PivotPoint = PivotPoint.BottomLeft;\r
+ _widgetButton.PositionUsesAnchorPoint = true;\r
+ _widgetButton.Size2D = new Size2D(200, 100);\r
+ window.Add(_widgetButton);\r
+ _widgetButton.Clicked += (obj, e) =>\r
+ {\r
+ _widgetView = _widgetViewManager.AddWidget("widget-efl.example", "", 450, 700, -1);\r
+ //_widgetView.PositionUsesPivotPoint = true;\r
+ //_widgetView.ParentOrigin = ParentOrigin.Center;\r
+ _widgetView.PivotPoint = PivotPoint.TopLeft;\r
+ _widgetView.PositionUsesAnchorPoint = true;\r
+ _widgetView.BackgroundColor = Color.Yellow;\r
+ _widgetView.WidgetAdded += (sender, eargs) =>\r
+ {\r
+ _widgetButton.LabelText = "Quit";\r
+ window.Add(_widgetView);\r
+ };\r
+ _widgetView.WidgetDeleted += (sender, eargs) =>\r
+ {\r
+ window.Remove(_widgetView);\r
+ _widgetButton.LabelText = "Button";\r
+ };\r
+ _instanceID = _widgetView.InstanceID;\r
+ return false;\r
+ };\r
+\r
+ _deletedButton = new PushButton();\r
+ _deletedButton.LabelText = "Buton";\r
+ _deletedButton.ParentOrigin = ParentOrigin.BottomRight;\r
+ _deletedButton.PivotPoint = PivotPoint.BottomRight;\r
+ _deletedButton.PositionUsesAnchorPoint = true;\r
+ _deletedButton.Size2D = new Size2D(200, 100);\r
+ window.Add(_deletedButton);\r
+ _deletedButton.Clicked += (obj, e) =>\r
+ {\r
+ OnTerminate();\r
+ return true;\r
+ };\r
+\r
+ layer.Add(_container);\r
+ Tizen.Log.Debug("NUI", "### widget view manager create start");\r
+ _widgetViewManager = new WidgetViewManager(this, "org.tizen.example.NUISamples.TizenTV");\r
+ if (!_widgetViewManager)\r
+ {\r
+ Tizen.Log.Fatal("NUI", "### Widget is not enabled!");\r
+ }\r
+\r
+ Tizen.Log.Debug("NUI", "### widget view manager create sucess");\r
+ }\r
+\r
+ [STAThread]\r
+ static void _Main(string[] args)\r
+ {\r
+ Example example = new Example();\r
+ example.Run(args);\r
+ }\r
+ }\r
+}\r
+\r
<?xml version="1.0" encoding="utf-8"?>\r
-<manifest xmlns="http://tizen.org/ns/packages" api-version="3.0" package="NUISamples.TizenTV" version="1.0.0">\r
- <profile name="common" />\r
- <ui-application appid="org.tizen.example.NUISamples.TizenTV"\r
- exec="NUISamples.TizenTV.exe"\r
- type="dotnet"\r
- multiple="false"\r
- taskmanage="true"\r
- nodisplay="false"\r
- launch_mode="single">\r
- <label>NUISamples.TizenTV</label>\r
- <icon>NUISamples.TizenTV.png</icon>\r
- </ui-application>\r
+<manifest package="NUISamples.TizenTV" version="1.0.0" api-version="3.0" xmlns="http://tizen.org/ns/packages">\r
+ <profile name="common" />\r
+ <ui-application appid="org.tizen.example.NUISamples.TizenTV" exec="NUISamples.TizenTV.exe" multiple="false" nodisplay="false" taskmanage="true" splash-screen-display="true" type="dotnet" launch_mode="single">\r
+ <label>NUISamples.TizenTV</label>\r
+ <icon>NUISamples.TizenTV.png</icon>\r
+ </ui-application>\r
+ <shortcut-list />\r
+ <privileges>\r
+ <privilege>http://tizen.org/privilege/appmanager.launch</privilege>\r
+ <privilege>http://tizen.org/privilege/widget.viewer</privilege>\r
+ </privileges>\r
</manifest>\r