diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2018-09-12 16:16:46 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2018-09-12 14:19:10 +0000 |
commit | 1b367a8d0c62dc0d212795523c22d769a170f685 (patch) | |
tree | 15418b7ff284aa6bf1ce865d4bac8efe5251d109 /tests | |
parent | fe1c72687bc52072b3f1695859bcebce2392fdb6 (diff) |
Add test scene for nested subpresentations
Change-Id: I47eb82ac17017c969c8e34eb1f7a5d33a4a09fc9
Reviewed-by: Christian Stromme <christian.stromme@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/scenes/subpres_nested/fonts/TitilliumWeb-Regular.ttf | bin | 0 -> 63752 bytes | |||
-rw-r--r-- | tests/scenes/subpres_nested/multisub.uia | 17 | ||||
-rw-r--r-- | tests/scenes/subpres_nested/multisub.uip | 39 | ||||
-rw-r--r-- | tests/scenes/subpres_nested/subpres1.uip | 39 | ||||
-rw-r--r-- | tests/scenes/subpres_nested/subpres11.uip | 32 |
5 files changed, 127 insertions, 0 deletions
diff --git a/tests/scenes/subpres_nested/fonts/TitilliumWeb-Regular.ttf b/tests/scenes/subpres_nested/fonts/TitilliumWeb-Regular.ttf Binary files differnew file mode 100644 index 0000000..6da8219 --- /dev/null +++ b/tests/scenes/subpres_nested/fonts/TitilliumWeb-Regular.ttf diff --git a/tests/scenes/subpres_nested/multisub.uia b/tests/scenes/subpres_nested/multisub.uia new file mode 100644 index 0000000..b32cc11 --- /dev/null +++ b/tests/scenes/subpres_nested/multisub.uia @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<application> + <assets initial="multisub"> + <presentation id="multisub" src="multisub.uip"/> + <presentation id="subpres1" src="subpres1.uip"/> + <presentation id="subpres11" src="subpres11.uip"/> + </assets> + <statemachine ref="#logic"> + <visual-states> + <state ref="Initial"> + <enter> + <goto-slide element="main:Scene" rel="next"/> + </enter> + </state> + </visual-states> + </statemachine> +</application> diff --git a/tests/scenes/subpres_nested/multisub.uip b/tests/scenes/subpres_nested/multisub.uip new file mode 100644 index 0000000..beccb01 --- /dev/null +++ b/tests/scenes/subpres_nested/multisub.uip @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<UIP version="4" > + <Project > + <ProjectSettings author="" company="" presentationWidth="1280" presentationHeight="720" maintainAspect="False" > + <CustomColors count="16" >#7391ff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff</CustomColors> + </ProjectSettings> + <Graph > + <Scene id="Scene" > + <Layer id="Layer2" > + <Camera id="Camera_001" /> + <Light id="Light_001" /> + </Layer> + <Layer id="Layer" > + <Camera id="Camera" /> + <Light id="Light" /> + <Model id="Cube" > + <Material id="Default" name="Default" /> + </Model> + <Text id="Text" /> + </Layer> + </Scene> + </Graph> + <Logic > + <State name="Master Slide" component="#Scene" > + <Add ref="#Layer" /> + <Add ref="#Camera" /> + <Add ref="#Light" /> + <State id="Scene-Slide1" name="Slide1" > + <Add ref="#Layer2" name="Layer2" sourcepath="subpres1" /> + <Add ref="#Camera_001" /> + <Add ref="#Light_001" /> + <Add ref="#Cube" name="Cube" position="-184.749 264.992 97.2463" rotation="5.6886 20.4975 -33.0697" sourcepath="#Cube" /> + <Add ref="#Default" /> + <Add ref="#Text" name="Text" font="TitilliumWeb-Regular" position="108.734 236.714 0" textstring="main presentation" /> + </State> + </State> + </Logic> + </Project> +</UIP> diff --git a/tests/scenes/subpres_nested/subpres1.uip b/tests/scenes/subpres_nested/subpres1.uip new file mode 100644 index 0000000..180eb12 --- /dev/null +++ b/tests/scenes/subpres_nested/subpres1.uip @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<UIP version="4" > + <Project > + <ProjectSettings author="" company="" presentationWidth="1280" presentationHeight="720" maintainAspect="False" > + <CustomColors count="16" >#7391ff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff</CustomColors> + </ProjectSettings> + <Graph > + <Scene id="Scene" bgcolorenable="False" > + <Layer id="Layer2" > + <Camera id="Camera_001" /> + <Light id="Light_001" /> + </Layer> + <Layer id="Layer" > + <Camera id="Camera" /> + <Light id="Light" /> + <Model id="Cone" > + <Material id="Default" name="Default" /> + </Model> + <Text id="Text" /> + </Layer> + </Scene> + </Graph> + <Logic > + <State name="Master Slide" component="#Scene" > + <Add ref="#Layer" /> + <Add ref="#Camera" /> + <Add ref="#Light" /> + <State id="Scene-Slide1" name="Slide1" > + <Add ref="#Layer2" name="Layer2" sourcepath="subpres11" /> + <Add ref="#Camera_001" /> + <Add ref="#Light_001" /> + <Add ref="#Cone" name="Cone" sourcepath="#Cone" /> + <Add ref="#Default" /> + <Add ref="#Text" name="Text" font="TitilliumWeb-Regular" position="-212.978 21.811 0" textstring="Subpresentation #1" /> + </State> + </State> + </Logic> + </Project> +</UIP> diff --git a/tests/scenes/subpres_nested/subpres11.uip b/tests/scenes/subpres_nested/subpres11.uip new file mode 100644 index 0000000..d33e118 --- /dev/null +++ b/tests/scenes/subpres_nested/subpres11.uip @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<UIP version="4" > + <Project > + <ProjectSettings author="" company="" presentationWidth="800" presentationHeight="600" maintainAspect="False" > + <CustomColors count="16" >#7391ff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff</CustomColors> + </ProjectSettings> + <Graph > + <Scene id="Scene" bgcolorenable="False" > + <Layer id="Layer" > + <Camera id="Camera" /> + <Light id="Light" /> + <Text id="Text" /> + <Model id="Cylinder" > + <Material id="Default" name="Default" /> + </Model> + </Layer> + </Scene> + </Graph> + <Logic > + <State name="Master Slide" component="#Scene" > + <Add ref="#Layer" /> + <Add ref="#Camera" /> + <Add ref="#Light" /> + <State id="Scene-Slide1" name="Slide1" > + <Add ref="#Text" name="Text" font="TitilliumWeb-Regular" textstring="Nested subpresentation" /> + <Add ref="#Cylinder" name="Cylinder" position="6.92821 -115.47 0" sourcepath="#Cylinder" /> + <Add ref="#Default" /> + </State> + </State> + </Logic> + </Project> +</UIP> |