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;
89 description { state: "show" 0.0;
90 inherit: "default" 0.0;
93 description { state: "default_small" 0.0;
94 inherit: "default" 0.0;
98 description { state: "left_side" 0.0;
99 inherit: "default" 0.0;
102 description { state: "right_side" 0.0;
103 inherit: "default" 0.0;
106 description { state: "mouse_down" 0.0;
107 inherit: "default" 0.0;
108 color: DISKSELECTOR_DF_FONT_MOUSE_DOWN_COLOR_INC;
111 description { state: "selected_mouse_down" 0.0;
112 inherit: "default" 0.0;
113 color: DISKSELECTOR_DF_FONT_MOUSE_DOWN_COLOR_INC;
124 state: "default" 0.0;
132 name: "elm,state,selected";
133 signal: "elm,state,selected";
135 action: STATE_SET "selected" 0.0;
139 name: "elm,state,default";
140 signal: "elm,state,default";
142 action: STATE_SET "default" 0.0;
147 signal: "mouse,clicked,1";
149 action: SIGNAL_EMIT "elm,action,click" "";
152 name: "item_mouse_down";
153 signal: "mouse,down,1";
158 get_state(PART:"elm.text", st, 30, vl)
159 if (!strncmp(st, "selected", 8)) {
160 set_state(PART:"elm.text", "selected_mouse_down", 0.0);
162 set_state(PART:"elm.text", "mouse_down", 0.0);
167 name: "item_mouse_up";
168 signal: "mouse,up,1";
173 get_state(PART:"elm.text", st, 30, vl)
174 if (!strncmp(st, "mouse_down", 10)) {
175 set_state(PART:"elm.text", "default", 0.0);
176 } else if (!strncmp(st, "selected_mouse_down", 19)) {
177 set_state(PART:"elm.text", "selected", 0.0);