/* * 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. * */ { "stage": [{ "type": "NavigationControl", "name": "navigation", "parent-origin": "CENTER", "signals": [{ "name": "on-stage", "actor": "navigation", "action": "push", "parameters": ["page1"] }], "actors": [{ "type": "Page", "name": "page1", "title": "title", "sub-title": "sub title", "actors": [{ "type": "TextView", // styles can be additive "parent-origin": [0.5, 0.5, 0], "anchor-point": [0.5, 0.5, 0], "size": [200, 200, 1], "text": "Touch to push new item!", "signals": [{ "name": "touched", "actor": "navigation", "action": "push", "parameters": ["page2"] }] }] }, { "type": "Page", "name": "page2", "actors": [{ "type": "TextView", // styles can be additive "parent-origin": [0.5, 0.5, 0.5], "anchor-point": [0.5, 0.5, 0.5], "size": [200, 200, 1], "text": "Hello World!" }, { "type": "TextView", // styles can be additive "parent-origin": [0.0, 0.0, 0.5], "anchor-point": [0.0, 0.0, 0.5], "size": [200, 200, 1], "text": "Back", "signals": [{ "name": "touched", "actor": "navigation", "action": "pop" }] }, { "type": "TextView", // styles can be additive "parent-origin": [1.0, 1.0, 0.5], "anchor-point": [1.0, 1.0, 0.5], "size": [200, 200, 1], "text": "Quit", "signals": [{ "name": "touched", "action": "quit" }] }] }] }] }