--- /dev/null
+/*
+ * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * 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.
+ */
+
+#define STATE_PLAY 0
+#define STATE_PAUSE 1
+
+group {
+ name: "elm/button/base/viewer_btn_prev";
+ data.item, "focus_highlight" "on";
+ images {
+ image: IMAGE_VIEWER_PREV_NORMAL COMP;
+ image: IMAGE_VIEWER_PREV_FOCUS COMP;
+ }
+ parts {
+ part {
+ name: "color";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ }
+ description {
+ state: "selected" 0.0;
+ color: COLOR_BTN_FOCUS;
+ }
+ }
+ part {
+ name: "bg";
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: 180 143;
+ image {
+ normal: IMAGE_VIEWER_PREV_NORMAL;
+ }
+ }
+ description {
+ state: "selected" 0.0;
+ inherit: "default" 0.0;
+ image {
+ normal: IMAGE_VIEWER_PREV_FOCUS;
+ }
+ }
+ }
+ }
+ programs {
+ program {
+ name: "focused";
+ signal: "elm,action,focus";
+ source: "elm";
+ script {
+ set_state(PART:"bg", "selected", 0.0);
+ set_state(PART:"color", "selected", 0.0);
+ }
+ }
+ program {
+ name: "unfocused";
+ signal: "elm,action,unfocus";
+ source: "elm";
+ script {
+ set_state(PART:"bg", "default", 0.0);
+ set_state(PART:"color", "default", 0.0);
+ }
+ }
+ }
+}
+
+group {
+ name: "elm/button/base/viewer_btn_rew";
+ data.item, "focus_highlight" "on";
+ images {
+ image: IMAGE_VIEWER_REW_NORMAL COMP;
+ image: IMAGE_VIEWER_REW_FOCUS COMP;
+ }
+ parts {
+ part {
+ name: "color";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ }
+ description {
+ state: "selected" 0.0;
+ color: COLOR_BTN_FOCUS;
+ }
+ }
+ part {
+ name: "bg";
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: 180 143;
+ image {
+ normal: IMAGE_VIEWER_REW_NORMAL;
+ }
+ }
+ description {
+ state: "selected" 0.0;
+ inherit: "default" 0.0;
+ image {
+ normal: IMAGE_VIEWER_REW_FOCUS;
+ }
+ }
+ }
+ }
+ programs {
+ program {
+ name: "focused";
+ signal: "elm,action,focus";
+ source: "elm";
+ script {
+ set_state(PART:"bg", "selected", 0.0);
+ set_state(PART:"color", "selected", 0.0);
+ }
+ }
+ program {
+ name: "unfocused";
+ signal: "elm,action,unfocus";
+ source: "elm";
+ script {
+ set_state(PART:"bg", "default", 0.0);
+ set_state(PART:"color", "default", 0.0);
+ }
+ }
+ }
+}
+
+group {
+ name: "elm/button/base/viewer_btn_play";
+ data.item, "focus_highlight" "on";
+ images {
+ image: IMAGE_VIEWER_PLAY_NORMAL COMP;
+ image: IMAGE_VIEWER_PLAY_FOCUS COMP;
+ image: IMAGE_VIEWER_PAUSE_NORMAL COMP;
+ image: IMAGE_VIEWER_PAUSE_FOCUS COMP;
+ }
+ script {
+ public cur_state;
+ }
+ parts {
+ part {
+ name: "color";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ }
+ description {
+ state: "selected" 0.0;
+ color: COLOR_BTN_FOCUS;
+ }
+ }
+ part {
+ name: "bg";
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: 180 143;
+ image {
+ normal: IMAGE_VIEWER_PLAY_NORMAL;
+ }
+ }
+ description {
+ state: "selected" 0.0;
+ inherit: "default" 0.0;
+ image {
+ normal: IMAGE_VIEWER_PLAY_FOCUS;
+ }
+ }
+ description {
+ state: "default_pause" 0.0;
+ inherit: "default" 0.0;
+ image {
+ normal: IMAGE_VIEWER_PAUSE_NORMAL;
+ }
+ }
+ description {
+ state: "selected_pause" 0.0;
+ inherit: "default" 0.0;
+ image {
+ normal: IMAGE_VIEWER_PAUSE_FOCUS;
+ }
+ }
+ }
+ }
+ programs {
+ program {
+ name: "load";
+ signal: "load";
+ source: "";
+ script {
+ set_int(cur_state, STATE_PLAY);
+ }
+ }
+ program {
+ name: SIG_SET_PLAY;
+ signal: SIG_SET_PLAY;
+ source: "";
+ script {
+ set_int(cur_state, STATE_PLAY);
+ set_state(PART:"bg", "default", 0.0);
+ set_state(PART:"color", "default", 0.0);
+ }
+ }
+ program {
+ name: SIG_SET_PAUSE;
+ signal: SIG_SET_PAUSE;
+ source: "";
+ script {
+ set_int(cur_state, STATE_PAUSE);
+ set_state(PART:"bg", "default_pause", 0.0);
+ set_state(PART:"color", "default", 0.0);
+ }
+ }
+ program {
+ name: "focused";
+ signal: "elm,action,focus";
+ source: "elm";
+ script {
+ new state;
+ state = get_int(cur_state);
+
+ if (state == STATE_PLAY)
+ set_state(PART:"bg", "selected", 0.0);
+ else
+ set_state(PART:"bg", "selected_pause", 0.0);
+
+ set_state(PART:"color", "selected", 0.0);
+ }
+ }
+ program {
+ name: "unfocused";
+ signal: "elm,action,unfocus";
+ source: "elm";
+ script {
+ new state;
+ state = get_int(cur_state);
+
+ if (state == STATE_PLAY)
+ set_state(PART:"bg", "default", 0.0);
+ else
+ set_state(PART:"bg", "default_pause", 0.0);
+
+ set_state(PART:"color", "default", 0.0);
+ }
+ }
+ }
+}
+
+group {
+ name: "elm/button/base/viewer_btn_ff";
+ data.item, "focus_highlight" "on";
+ images {
+ image: IMAGE_VIEWER_FF_NORMAL COMP;
+ image: IMAGE_VIEWER_FF_FOCUS COMP;
+ }
+ parts {
+ part {
+ name: "color";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ }
+ description {
+ state: "selected" 0.0;
+ color: COLOR_BTN_FOCUS;
+ }
+ }
+ part {
+ name: "bg";
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: 180 143;
+ image {
+ normal: IMAGE_VIEWER_FF_NORMAL;
+ }
+ }
+ description {
+ state: "selected" 0.0;
+ inherit: "default" 0.0;
+ image {
+ normal: IMAGE_VIEWER_FF_FOCUS;
+ }
+ }
+ }
+ }
+ programs {
+ program {
+ name: "focused";
+ signal: "elm,action,focus";
+ source: "elm";
+ script {
+ set_state(PART:"bg", "selected", 0.0);
+ set_state(PART:"color", "selected", 0.0);
+ }
+ }
+ program {
+ name: "unfocused";
+ signal: "elm,action,unfocus";
+ source: "elm";
+ script {
+ set_state(PART:"bg", "default", 0.0);
+ set_state(PART:"color", "default", 0.0);
+ }
+ }
+ }
+}
+
+group {
+ name: "elm/button/base/viewer_btn_next";
+ data.item, "focus_highlight" "on";
+ images {
+ image: IMAGE_VIEWER_NEXT_NORMAL COMP;
+ image: IMAGE_VIEWER_NEXT_FOCUS COMP;
+ }
+ parts {
+ part {
+ name: "color";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ }
+ description {
+ state: "selected" 0.0;
+ color: COLOR_BTN_FOCUS;
+ }
+ }
+ part {
+ name: "bg";
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: 180 143;
+ image {
+ normal: IMAGE_VIEWER_NEXT_NORMAL;
+ }
+ }
+ description {
+ state: "selected" 0.0;
+ inherit: "default" 0.0;
+ image {
+ normal: IMAGE_VIEWER_NEXT_FOCUS;
+ }
+ }
+ }
+ }
+ programs {
+ program {
+ name: "focused";
+ signal: "elm,action,focus";
+ source: "elm";
+ script {
+ set_state(PART:"bg", "selected", 0.0);
+ set_state(PART:"color", "selected", 0.0);
+ }
+ }
+ program {
+ name: "unfocused";
+ signal: "elm,action,unfocus";
+ source: "elm";
+ script {
+ set_state(PART:"bg", "default", 0.0);
+ set_state(PART:"color", "default", 0.0);
+ }
+ }
+ }
+}