2 * Copyright 2012 Samsung Electronics Co., Ltd
4 * Licensed under the Flora License, Version 1.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.tizenopensource.org/license
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 #include "image_res.edc"
19 #include "vp_font.edc"
22 #define CONTROL_BUTTON_PROG(_item_name_) \
24 name: _item_name_".pressed"; \
25 source: _item_name_; \
26 signal: "mouse,down,1"; \
27 action: STATE_SET "pressed" 0.0; \
28 target: _item_name_; \
29 after: "send."_item_name_".down.signal"; \
32 name: _item_name_".clicked"; \
33 source: _item_name_; \
34 signal: "mouse,up,1"; \
35 action: STATE_SET "default" 0.0; \
36 target: _item_name_; \
37 after: "send."_item_name_".up.signal"; \
40 name: "send."_item_name_".down.signal"; \
41 action: SIGNAL_EMIT "signal."_item_name_".down" _item_name_; \
44 name: "send."_item_name_".up.signal"; \
45 action: SIGNAL_EMIT "signal."_item_name_".up" _item_name_; \
46 } /* CONTROL_BUTTON_PROG */
53 public val_quality_select = 1; /* 0: normal, 1: high */
54 public set_quality_check() {
55 if(get_int(val_quality_select ) == 0) {
56 run_program(PROGRAM:"set.streaming.quality.normal");
58 if(get_int(val_quality_select ) == 1) {
59 run_program(PROGRAM:"set.streaming.quality.high");
61 if(get_int(val_quality_select ) == 2) {
62 run_program(PROGRAM:"set.streaming.quality.hide");
69 name: "hidden.button.panel.soundpath";
79 rel1 { relative: 0.0 0.0;}
80 rel2 { relative: 0.0 0.0;}
81 color: 255 255 255 255;
82 image { normal: "T01_icon_soundPath.png"; }
86 inherit: "default" 0.0;
87 image { normal: "T01_icon_soundPath_press.png"; }
91 inherit: "default" 0.0;
97 name: "control.streaming.hq.button.bg";
102 state: "default" 0.0;
107 rel1 { relative: 1.0 0.0; }
108 rel2 { relative: 1.0 0.0; }
109 image { normal: "T01_controller_btn_press.png"; border: 4 4 0 0;}
110 color: 255 255 255 255;
118 rel1 { relative: 1.0 0.0; }
119 rel2 { relative: 1.0 0.0; }
120 image { normal: "T01_controller_btn.png"; border: 4 4 0 0;}
121 color: 255 255 255 255;
125 inherit: "default" 0.0;
132 name: "control.streaming.hq.txt";
138 state: "default" 0.0;
139 color: 255 255 255 255;
144 rel1 { relative: 1.0 0.0; }
145 rel2 { relative: 1.0 0.0; }
155 inherit: "default" 0.0;
160 inherit: "default" 0.0;
166 name: "control.streaming.hq.button";
171 state: "default" 0.0;
176 rel1 { relative: 1.0 0.0;}
177 rel2 { relative: 1.0 0.0;}
178 color: 255 255 255 0;
182 inherit: "default" 0.0;
187 inherit: "default" 0.0;
195 name: "hidden.button.panel.soundpath.pressed";
196 source: "hidden.button.panel.soundpath";
197 signal: "mouse,down,1";
198 action: STATE_SET "pressed" 0.0;
199 target: "hidden.button.panel.soundpath";
200 after: "send.hidden.button.panel.soundpath.down.signal";
204 name: "send.hidden.button.panel.soundpath.down.signal";
205 action: SIGNAL_EMIT "signal.hidden.button.panel.soundpath.down" "hidden.button.panel.soundpath";
209 name: "hidden.button.panel.soundpath.clicked";
210 source: "hidden.button.panel.soundpath";
211 signal: "mouse,up,1";
212 action: STATE_SET "default" 0.0;
213 target: "hidden.button.panel.soundpath";
214 after: "send.hidden.button.panel.soundpath.up.signal";
218 name: "send.hidden.button.panel.soundpath.up.signal";
219 action: SIGNAL_EMIT "signal.hidden.button.panel.soundpath.up" "hidden.button.panel.soundpath";
223 signal: "signal.hidden.button.panel.soundpath.show";
225 action: STATE_SET "default" 0.0;
226 target: "hidden.button.panel.soundpath";
230 signal: "signal.hidden.button.panel.soundpath.hide";
232 action: STATE_SET "hide" 0.0;
233 target: "hidden.button.panel.soundpath";
237 signal: "signal.control.streaming.quality.high";
240 set_int(val_quality_select, 1);
246 signal: "signal.control.streaming.quality.normal";
249 set_int(val_quality_select, 0);
255 signal: "signal.control.streaming.quality.hide";
258 set_int(val_quality_select, 2);
264 name: "set.streaming.quality.high";
265 action: STATE_SET "default" 0.0;
266 target: "control.streaming.hq.button.bg";
267 target: "control.streaming.hq.txt";
268 target: "control.streaming.hq.button";
272 name: "set.streaming.quality.normal";
273 action: STATE_SET "normal" 0.0;
274 target: "control.streaming.hq.button.bg";
275 target: "control.streaming.hq.txt";
276 target: "control.streaming.hq.button";
280 name: "set.streaming.quality.hide";
281 action: STATE_SET "hide" 0.0;
282 target: "control.streaming.hq.button.bg";
283 target: "control.streaming.hq.txt";
284 target: "control.streaming.hq.button";
287 CONTROL_BUTTON_PROG("control.streaming.hq.button");