3 * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 * Licensed under the Apache License, Version 2.0 (the License);
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an AS IS BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
20 ///////////////////////////////////////////////////////////////////////////////////////
24 ///////////////////////////////////////////////////////////////////////////////////////
25 group { name: "elm/diskselector/base/default";
26 alias: "elm/diskselector/base/datetime/default";
27 alias: "elm/diskselector/base/timepicker";
33 description { state: "default" 0.0;
37 part { name: "elm.swallow.content";
39 description { state: "default" 0.0;
47 group { name: "elm/diskselector/item/default";
48 alias: "elm/diskselector/item/datetime/default";
49 alias: "elm/diskselector/item/timepicker";
52 item: "len_threshold" "14";
53 item: "min_height" DISKSELECTOR_DF_DATA_MIN_HEIGHT_INC;
64 min: DISKSELECTOR_DF_ITEM_MIN_SIZE_INC;
67 color: DISKSELECTOR_DF_FONT_COLOR_INC;
70 font: "Tizen:style=Medium";
71 size: DISKSELECTOR_DF_FONT_SIZE_INC;
77 state: "selected" 0.0;
78 min: DISKSELECTOR_DF_ITEM_MIN_SIZE_INC;
81 color: 255 255 255 255;
84 font: "Tizen:style=Medium";
85 size: DISKSELECTOR_DF_FONT_SIZE_INC;
90 description { state: "show" 0.0;
91 inherit: "default" 0.0;
94 description { state: "default_small" 0.0;
95 inherit: "default" 0.0;
99 description { state: "left_side" 0.0;
100 inherit: "default" 0.0;
103 description { state: "right_side" 0.0;
104 inherit: "default" 0.0;
107 description { state: "mouse_down" 0.0;
108 inherit: "default" 0.0;
109 color: DISKSELECTOR_DF_FONT_MOUSE_DOWN_COLOR_INC;
112 description { state: "selected_mouse_down" 0.0;
113 inherit: "default" 0.0;
114 color: DISKSELECTOR_DF_FONT_MOUSE_DOWN_COLOR_INC;
125 state: "default" 0.0;
133 name: "elm,state,selected";
134 signal: "elm,state,selected";
136 action: STATE_SET "selected" 0.0;
140 name: "elm,state,default";
141 signal: "elm,state,default";
143 action: STATE_SET "default" 0.0;
148 signal: "mouse,clicked,1";
150 action: SIGNAL_EMIT "elm,action,click" "";
153 name: "item_mouse_down";
154 signal: "mouse,down,1";
159 get_state(PART:"elm.text", st, 30, vl)
160 if (!strncmp(st, "selected", 8)) {
161 set_state(PART:"elm.text", "selected_mouse_down", 0.0);
163 set_state(PART:"elm.text", "mouse_down", 0.0);
168 name: "item_mouse_up";
169 signal: "mouse,up,1";
174 get_state(PART:"elm.text", st, 30, vl)
175 if (!strncmp(st, "mouse_down", 10)) {
176 set_state(PART:"elm.text", "default", 0.0);
177 } else if (!strncmp(st, "selected_mouse_down", 19)) {
178 set_state(PART:"elm.text", "selected", 0.0);