merge with master
[platform/core/uifw/efl-theme-tizen.git] / themes / widgets / ctxpopup.edc
1 /*
2  * efl-theme-tizen
3  * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
4  *
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
8  *
9  *     http://www.apache.org/licenses/LICENSE-2.0
10  *
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.
16  */
17
18
19
20 ///////////////////////////////////////////////////////////////////////////////////////
21 //
22 // ctxpopup
23 //
24 ///////////////////////////////////////////////////////////////////////////////////////
25
26 #define CTXPOPUP_SHADOW_PADDING 10
27 #define CTXPOPUP_FRAME_CORNER_SIZE 4 4
28 #define CTXPOPUP_FONT_COLOR 0 0 0 255
29 #define CTXPOPUP_CLICKED_FONT_COLOR 255 255 255 255
30 #define CTXPOPUP_LIST_PADDING 10
31 #define CTXPOPUP_LIST_SHADOW_PADDING 3
32
33 ///////////////////////////////////////////////////////////////////////////////
34         group {
35                 name: "elm/ctxpopup/layout/default";
36                 max: CTXPOPUP_WIDTH_MAX_INC 802;
37                 parts {
38                         part {
39                                 name:"top_padding";
40                                 type: RECT;
41                                 scale: 1;
42                                 description {
43                                         state: "default" 0.0;
44                                         min: 0 60;
45                                         visible: 0;
46                                         fixed: 0 1;
47                                         align: 0.5 0.0;
48                                         rel1.relative: 0.0 0.0;
49                                         rel2.relative: 1.0 0.0;
50                                 }
51                                 description {
52                                         state: "show_up" 0.0;
53                                         inherit: "default" 0.0;
54                                 }
55                                 description {
56                                         state: "visible" 0.0;
57                                         inherit: "default" 0.0;
58                                         min: 0 0;
59                                 }
60                         }
61                         part {
62                                 name:"bottom_padding";
63                                 type: RECT;
64                                 scale: 0;
65                                 description {
66                                         state: "default" 0.0;
67                                         min: 0 60;
68                                         visible: 0;
69                                         fixed: 0 1;
70                                         align: 0.5 1.0;
71                                         rel1.relative: 0.0 1.0;
72                                         rel2.relative: 1.0 1.0;
73                                 }
74                                 description {
75                                         state: "show_down" 0.0;
76                                         inherit: "default" 0.0;
77                                 }
78                                 description {
79                                         state: "visible" 0.0;
80                                         inherit: "default" 0.0;
81                                         min: 0 0;
82                                 }
83                         }
84                         part {
85                                 name:"left_padding";
86                                 type: RECT;
87                                 scale: 1;
88                                 description {
89                                         state: "default" 0.0;
90                                         min: 60 0;
91                                         visible: 0;
92                                         fixed: 1 0;
93                                         align: 0.0 0.5;
94                                         rel1.relative: 0.0 0.0;
95                                         rel2.relative: 0.0 1.0;
96                                 }
97                                 description {
98                                         state: "show_left" 0.0;
99                                         inherit: "default" 0.0;
100                                 }
101                                 description {
102                                         state: "visible" 0.0;
103                                         inherit: "default" 0.0;
104                                         min: 0 0;
105                                 }
106                         }
107                         part {
108                                 name:"right_padding";
109                                 type: RECT;
110                                 scale: 1;
111                                 description {
112                                         state: "default" 0.0;
113                                         min: 60 0;
114                                         visible: 0;
115                                         fixed: 1 0;
116                                         align: 1 0.5;
117                                         rel1.relative: 1.0 0.0;
118                                         rel2.relative: 1.0 1.0;
119                                 }
120                                 description {
121                                         state: "show_right" 0.0;
122                                         inherit: "default" 0.0;
123                                 }
124                                 description {
125                                         state: "visible" 0.0;
126                                         inherit: "default" 0.0;
127                                         min: 0 0;
128                                 }
129                         }
130                         part {
131                                 name: "swallow";
132                                 type: SWALLOW;
133                                 clip_to: "layout_clip";
134                                 description {
135                                         state: "default" 0.0;
136                                         visible: 0;
137                                 }
138                                 description {
139                                         state: "show_up" 0.0;
140                                         rel1 {to_x:"left_padding"; to_y:"top_padding"; relative: 1.0 1.0;}
141                                         rel2 {to_x:"right_padding"; to_y:"top_padding"; relative: 0.0 1.0;}
142                                         align: 0.5 0.0;
143                                 }
144                                 description {
145                                         state: "show_down" 0.0;
146                                         rel1 {to_x:"left_padding"; to_y:"bottom_padding"; relative: 1.0 0.0;}
147                                         rel2 {to_x:"right_padding"; to_y:"bottom_padding"; relative: 0.0 0.0;}
148                                         align: 0.5 1.0;
149                                 }
150                                 description {
151                                         state: "show_left" 0.0;
152                                         rel1 {to_x:"left_padding"; to_y:"top_padding"; relative: 1.0 1.0;}
153                                         rel2 {to_x:"left_padding"; to_y:"bottom_padding"; relative: 1.0 0.0;}
154                                         align: 0.0 0.5;
155                                 }
156                                 description {
157                                         state: "show_right" 0.0;
158                                         rel1 {to_x:"right_padding"; to_y:"top_padding"; relative: 0.0 1.0;}
159                                         rel2 {to_x:"right_padding"; to_y:"bottom_padding"; relative: 0.0 0.0;}
160                                         align: 1.0 0.5;
161                                 }
162                         }
163                         part {
164                                 name: "layout_clip";
165                                 type: RECT;
166                                 description {
167                                         state: "default" 0.0;
168                                         color: 255 255 255 127;
169                                         rel1 {to: "swallow"; relative: -0.2 -0.2; }
170                                         rel2 {to: "swallow"; relative: 1.2 1.2;}
171                                 }
172                                 description {
173                                         state: "show_up" 0.0;
174                                         inherit: "default" 0.0;
175                                 }
176                                 description {
177                                         state: "show_down" 0.0;
178                                         inherit: "default" 0.0;
179                                 }
180                                 description {
181                                         state: "show_left" 0.0;
182                                         inherit: "default" 0.0;
183                                 }
184                                 description {
185                                         state: "show_right" 0.0;
186                                         inherit: "default" 0.0;
187                                 }
188                                 description {
189                                         state: "visible" 0.0;
190                                         inherit: "default" 0.0;
191                                         color: 255 255 255 255;
192                                 }
193                         }
194                 }
195                 programs {
196                         program {
197                                 name:   "showup";
198                                 signal: "elm,state,show,up";
199                                 source: "elm";
200                                 action: STATE_SET "show_up" 0.0;
201                                 target: "swallow";
202                                 target: "top_padding";
203                                 target: "layout_clip";
204                                 after: "showupend";
205                         }
206                         program {
207                                 name:   "showdown";
208                                 signal: "elm,state,show,down";
209                                 source: "elm";
210                                 action: STATE_SET "show_down" 0.0;
211                                 target: "swallow";
212                                 target: "bottom_padding";
213                                 target: "layout_clip";
214                                 after: "showdownend";
215                         }
216                         program {
217                                 name:   "showleft";
218                                 signal: "elm,state,show,left";
219                                 source: "elm";
220                                 action: STATE_SET "show_left" 0.0;
221                                 target: "swallow";
222                                 target: "left_padding";
223                                 target: "layout_clip";
224                                 after: "showleftend";
225                         }
226                         program {
227                                 name:   "showright";
228                                 signal: "elm,state,show,right";
229                                 source: "elm";
230                                 action: STATE_SET "show_right" 0.0;
231                                 target: "swallow";
232                                 target: "right_padding";
233                                 target: "layout_clip";
234                                 after: "showrightend";
235                         }
236                         program {
237                                 name:   "showupend";
238                                 action: STATE_SET "visible" 0.0;
239                                 transition:SIN_FAC 0.33 0.6;
240                                 target: "top_padding";
241                                 target: "layout_clip";
242                         }
243                         program {
244                                 name:   "showdownend";
245                                 action: STATE_SET "visible" 0.0;
246                                 transition:SIN_FAC 0.33 0.6;
247                                 target: "bottom_padding";
248                                 target: "layout_clip";
249                         }
250                         program {
251                                 name:   "showleftend";
252                                 action: STATE_SET "visible" 0.0;
253                                 transition:SIN_FAC 0.33 0.6;
254                                 target: "left_padding";
255                                 target: "layout_clip";
256                         }
257                         program {
258                                 name:   "showrightend";
259                                 action: STATE_SET "visible" 0.0;
260                                 transition:SIN_FAC 0.33 0.6;
261                                 target: "right_padding";
262                                 target: "layout_clip";
263                         }
264                         program {
265                                 name:   "hideup";
266                                 signal: "elm,state,hide,up";
267                                 source: "elm";
268                                 action: STATE_SET "show_up" 0.0;
269                                 target: "swallow";
270                                 target: "top_padding";
271                                 transition: SIN_FAC 0.33 0.6;
272                                 after: "hidefinished";
273                         }
274                         program {
275                                 name:   "hidedown";
276                                 signal: "elm,state,hide,down";
277                                 source: "elm";
278                                 action: STATE_SET "show_down" 0.0;
279                                 target: "swallow";
280                                 target: "bottom_padding";
281                                 transition: SIN_FAC 0.33 0.6;
282                                 after: "hidefinished";
283                         }
284                         program {
285                                 name:   "hideleft";
286                                 signal: "elm,state,hide,left";
287                                 source: "elm";
288                                 action: STATE_SET "show_left" 0.0;
289                                 target: "swallow";
290                                 target: "left_padding";
291                                 transition: SIN_FAC 0.33 0.6;
292                                 after: "hidefinished";
293                         }
294                         program {
295                                 name:   "hideright";
296                                 signal: "elm,state,hide,right";
297                                 source: "elm";
298                                 action: STATE_SET "show_right" 0.0;
299                                 target: "swallow";
300                                 target: "right_padding";
301                                 transition: SIN_FAC 0.33 0.6;
302                                 after: "hidefinished";
303                         }
304                         program {
305                                 name:   "hideup_clip";
306                                 signal: "elm,state,hide,up";
307                                 source: "elm";
308                                 action: STATE_SET "default" 0.0;
309                                 target: "layout_clip";
310                                 transition: SIN_FAC 0.33 0.6;
311                                 after: "hidefinished";
312                         }
313                         program {
314                                 name:   "hidedown_clip";
315                                 signal: "elm,state,hide,down";
316                                 source: "elm";
317                                 action: STATE_SET "default" 0.0;
318                                 target: "layout_clip";
319                                 transition: SIN_FAC 0.33 0.6;
320                                 after: "hidefinished";
321                         }
322                         program {
323                                 name:   "hideleft_clip";
324                                 signal: "elm,state,hide,left";
325                                 source: "elm";
326                                 action: STATE_SET "default" 0.0;
327                                 target: "layout_clip";
328                                 transition: SIN_FAC 0.33 0.6;
329                                 after: "hidefinished";
330                         }
331                         program {
332                                 name:   "hideright_clip";
333                                 signal: "elm,state,hide,right";
334                                 source: "elm";
335                                 action: STATE_SET "default" 0.0;
336                                 target: "layout_clip";
337                                 transition: SIN_FAC 0.33 0.6;
338                                 after: "hidefinished";
339                         }
340                         program {
341                                 name: "hidefinished";
342                                 action: SIGNAL_EMIT "elm,action,hide,finished" "";
343                         }
344                 }
345         }
346 ///////////////////////////////////////////////////////////////////////////////
347         group {
348                 name: "elm/ctxpopup/layout/datetime/default";
349                 alias: "elm/ctxpopup/layout/timepicker";
350                 parts {
351                         part {
352                                 name:"top_padding";
353                                 type: RECT;
354                                 scale: 1;
355                                 description {
356                                         state: "default" 0.0;
357                                         min: 0 20;
358                                         visible: 0;
359                                         fixed: 0 1;
360                                         align: 0.5 0.0;
361                                         rel1.relative: 0.0 0.0;
362                                         rel2.relative: 1.0 0.0;
363                                 }
364                                 description {
365                                         state: "show_up" 0.0;
366                                         inherit: "default" 0.0;
367                                 }
368                                 description {
369                                         state: "visible" 0.0;
370                                         inherit: "default" 0.0;
371                                         min: 0 0;
372                                 }
373                         }
374                         part {
375                                 name:"bottom_padding";
376                                 type: RECT;
377                                 scale: 0;
378                                 description {
379                                         state: "default" 0.0;
380                                         min: 0 20;
381                                         visible: 0;
382                                         fixed: 0 1;
383                                         align: 0.5 1.0;
384                                         rel1.relative: 0.0 1.0;
385                                         rel2.relative: 1.0 1.0;
386                                 }
387                                 description {
388                                         state: "show_down" 0.0;
389                                         inherit: "default" 0.0;
390                                 }
391                                 description {
392                                         state: "visible" 0.0;
393                                         inherit: "default" 0.0;
394                                         min: 0 0;
395                                 }
396                         }
397                         part {
398                                 name:"left_padding";
399                                 type: RECT;
400                                 scale: 1;
401                                 description {
402                                         state: "default" 0.0;
403                                         min: 20 0;
404                                         visible: 0;
405                                         fixed: 1 0;
406                                         align: 0.0 0.5;
407                                         rel1.relative: 0.0 0.0;
408                                         rel2.relative: 0.0 1.0;
409                                 }
410                                 description {
411                                         state: "show_left" 0.0;
412                                         inherit: "default" 0.0;
413                                 }
414                                 description {
415                                         state: "visible" 0.0;
416                                         inherit: "default" 0.0;
417                                         min: 0 0;
418                                 }
419                         }
420                         part {
421                                 name:"right_padding";
422                                 type: RECT;
423                                 scale: 1;
424                                 description {
425                                         state: "default" 0.0;
426                                         min: 20 0;
427                                         visible: 0;
428                                         fixed: 1 0;
429                                         align: 1 0.5;
430                                         rel1.relative: 1.0 0.0;
431                                         rel2.relative: 1.0 1.0;
432                                 }
433                                 description {
434                                         state: "show_right" 0.0;
435                                         inherit: "default" 0.0;
436                                 }
437                                 description {
438                                         state: "visible" 0.0;
439                                         inherit: "default" 0.0;
440                                         min: 0 0;
441                                 }
442                         }
443                         part {
444                                 name: "swallow";
445                                 type: SWALLOW;
446                                 clip_to: "layout_clip";
447                                 description {
448                                         state: "default" 0.0;
449                                         visible: 0;
450                                 }
451                                 description {
452                                         state: "show_up" 0.0;
453                                         rel1 {to_x:"left_padding"; to_y:"top_padding"; relative: 1.0 1.0;}
454                                         rel2 {to_x:"right_padding"; to_y:"top_padding"; relative: 0.0 1.0;}
455                                         align: 0.5 0.0;
456                                 }
457                                 description {
458                                         state: "show_down" 0.0;
459                                         rel1 {to_x:"left_padding"; to_y:"bottom_padding"; relative: 1.0 0.0;}
460                                         rel2 {to_x:"right_padding"; to_y:"bottom_padding"; relative: 0.0 0.0;}
461                                         align: 0.5 1.0;
462                                 }
463                                 description {
464                                         state: "show_left" 0.0;
465                                         rel1 {to_x:"left_padding"; to_y:"top_padding"; relative: 1.0 1.0;}
466                                         rel2 {to_x:"left_padding"; to_y:"bottom_padding"; relative: 1.0 0.0;}
467                                         align: 0.0 0.5;
468                                 }
469                                 description {
470                                         state: "show_right" 0.0;
471                                         rel1 {to_x:"right_padding"; to_y:"top_padding"; relative: 0.0 1.0;}
472                                         rel2 {to_x:"right_padding"; to_y:"bottom_padding"; relative: 0.0 0.0;}
473                                         align: 1.0 0.5;
474                                 }
475                         }
476                         part {
477                                 name: "layout_clip";
478                                 type: RECT;
479                                 description {
480                                         state: "default" 0.0;
481                                         color: 255 255 255 0;
482                                         rel1 {to: "swallow"; relative: -0.2 -0.2; }
483                                         rel2 {to: "swallow"; relative: 1.2 1.2;}
484                                 }
485                                 description {
486                                         state: "show_up" 0.0;
487                                         inherit: "default" 0.0;
488                                 }
489                                 description {
490                                         state: "show_down" 0.0;
491                                         inherit: "default" 0.0;
492                                 }
493                                 description {
494                                         state: "show_left" 0.0;
495                                         inherit: "default" 0.0;
496                                 }
497                                 description {
498                                         state: "show_right" 0.0;
499                                         inherit: "default" 0.0;
500                                 }
501                                 description {
502                                         state: "visible" 0.0;
503                                         inherit: "default" 0.0;
504                                         color: 255 255 255 255;
505                                 }
506                         }
507                 }
508                 programs {
509                         program {
510                                 name:   "showup";
511                                 signal: "elm,state,show,up";
512                                 source: "elm";
513                                 action: STATE_SET "show_up" 0.0;
514                                 target: "swallow";
515                                 target: "top_padding";
516                                 target: "layout_clip";
517                                 after: "showupend";
518                         }
519                         program {
520                                 name:   "showdown";
521                                 signal: "elm,state,show,down";
522                                 source: "elm";
523                                 action: STATE_SET "show_down" 0.0;
524                                 target: "swallow";
525                                 target: "bottom_padding";
526                                 target: "layout_clip";
527                                 after: "showdownend";
528                         }
529                         program {
530                                 name:   "showleft";
531                                 signal: "elm,state,show,left";
532                                 source: "elm";
533                                 action: STATE_SET "show_left" 0.0;
534                                 target: "swallow";
535                                 target: "left_padding";
536                                 target: "layout_clip";
537                                 after: "showleftend";
538                         }
539                         program {
540                                 name:   "showright";
541                                 signal: "elm,state,show,right";
542                                 source: "elm";
543                                 action: STATE_SET "show_right" 0.0;
544                                 target: "swallow";
545                                 target: "right_padding";
546                                 target: "layout_clip";
547                                 after: "showrightend";
548                         }
549                         program {
550                                 name:   "showupend";
551                                 action: STATE_SET "visible" 0.0;
552                                 transition:LINEAR 0.25;
553                                 target: "top_padding";
554                                 target: "layout_clip";
555                         }
556                         program {
557                                 name:   "showdownend";
558                                 action: STATE_SET "visible" 0.0;
559                                 transition:LINEAR 0.25;
560                                 target: "bottom_padding";
561                                 target: "layout_clip";
562                         }
563                         program {
564                                 name:   "showleftend";
565                                 action: STATE_SET "visible" 0.0;
566                                 transition:LINEAR 0.25;
567                                 target: "left_padding";
568                                 target: "layout_clip";
569                         }
570                         program {
571                                 name:   "showrightend";
572                                 action: STATE_SET "visible" 0.0;
573                                 transition:LINEAR 0.25;
574                                 target: "right_padding";
575                                 target: "layout_clip";
576                         }
577                         program {
578                                 name:   "hideup";
579                                 signal: "elm,state,hide,up";
580                                 source: "elm";
581                                 action: STATE_SET "show_up" 0.0;
582                                 target: "swallow";
583                                 target: "top_padding";
584                                 transition: LINEAR 0.25;
585                                 after: "hidefinished";
586                         }
587                         program {
588                                 name:   "hidedown";
589                                 signal: "elm,state,hide,down";
590                                 source: "elm";
591                                 action: STATE_SET "show_down" 0.0;
592                                 target: "swallow";
593                                 target: "bottom_padding";
594                                 transition: LINEAR 0.25;
595                                 after: "hidefinished";
596                         }
597                         program {
598                                 name:   "hideleft";
599                                 signal: "elm,state,hide,left";
600                                 source: "elm";
601                                 action: STATE_SET "show_left" 0.0;
602                                 target: "swallow";
603                                 target: "left_padding";
604                                 transition: LINEAR 0.25;
605                                 after: "hidefinished";
606                         }
607                         program {
608                                 name:   "hideright";
609                                 signal: "elm,state,hide,right";
610                                 source: "elm";
611                                 action: STATE_SET "show_right" 0.0;
612                                 target: "swallow";
613                                 target: "right_padding";
614                                 transition: LINEAR 0.25;
615                                 after: "hidefinished";
616                         }
617                         program {
618                                 name:   "hideup_clip";
619                                 signal: "elm,state,hide,up";
620                                 source: "elm";
621                                 action: STATE_SET "default" 0.0;
622                                 target: "layout_clip";
623                                 transition: LINEAR 0.25;
624                                 after: "hidefinished";
625                         }
626                         program {
627                                 name:   "hidedown_clip";
628                                 signal: "elm,state,hide,down";
629                                 source: "elm";
630                                 action: STATE_SET "default" 0.0;
631                                 target: "layout_clip";
632                                 transition: LINEAR 0.25;
633                                 after: "hidefinished";
634                         }
635                         program {
636                                 name:   "hideleft_clip";
637                                 signal: "elm,state,hide,left";
638                                 source: "elm";
639                                 action: STATE_SET "default" 0.0;
640                                 target: "layout_clip";
641                                 transition: LINEAR 0.25;
642                                 after: "hidefinished";
643                         }
644                         program {
645                                 name:   "hideright_clip";
646                                 signal: "elm,state,hide,right";
647                                 source: "elm";
648                                 action: STATE_SET "default" 0.0;
649                                 target: "layout_clip";
650                                 transition: LINEAR 0.25;
651                                 after: "hidefinished";
652                         }
653                         program {
654                                 name: "hidefinished";
655                                 action: SIGNAL_EMIT "elm,action,hide,finished" "";
656                         }
657                 }
658         }
659 ///////////////////////////////////////////////////////////////////////////////
660         group {
661                 name: "elm/ctxpopup/layout/more/default";
662                 max: CTXPOPUP_MORE_WIDTH_INC 802;
663                 parts {
664                         part {
665                                 name:"top_padding";
666                                 type: RECT;
667                                 scale: 1;
668                                 description {
669                                         state: "default" 0.0;
670                                         min: 0 CTXPOPUP_MORE_MOVE_INC;
671                                         visible: 0;
672                                         fixed: 0 1;
673                                         align: 0.5 0.0;
674                                         rel1.relative: 0.0 0.0;
675                                         rel2.relative: 1.0 0.0;
676                                 }
677                                 description {
678                                         state: "show_up" 0.0;
679                                         inherit: "default" 0.0;
680                                 }
681                                 description {
682                                         state: "visible" 0.0;
683                                         inherit: "default" 0.0;
684                                         min: 0 0;
685                                 }
686                         }
687                         part {
688                                 name:"bottom_padding";
689                                 type: RECT;
690                                 scale: 0;
691                                 description {
692                                         state: "default" 0.0;
693                                         min: 0 CTXPOPUP_MORE_MOVE_INC;
694                                         visible: 0;
695                                         fixed: 0 1;
696                                         align: 0.5 1.0;
697                                         rel1.relative: 0.0 1.0;
698                                         rel2.relative: 1.0 1.0;
699                                 }
700                                 description {
701                                         state: "show_down" 0.0;
702                                         inherit: "default" 0.0;
703                                 }
704                                 description {
705                                         state: "visible" 0.0;
706                                         inherit: "default" 0.0;
707                                         min: 0 0;
708                                 }
709                         }
710                         part {
711                                 name:"left_padding";
712                                 type: RECT;
713                                 scale: 1;
714                                 description {
715                                         state: "default" 0.0;
716                                         min: CTXPOPUP_MORE_MOVE_INC 0;
717                                         visible: 0;
718                                         fixed: 1 0;
719                                         align: 0.0 0.5;
720                                         rel1.relative: 0.0 0.0;
721                                         rel2.relative: 0.0 1.0;
722                                 }
723                                 description {
724                                         state: "show_left" 0.0;
725                                         inherit: "default" 0.0;
726                                 }
727                                 description {
728                                         state: "visible" 0.0;
729                                         inherit: "default" 0.0;
730                                         min: 0 0;
731                                 }
732                         }
733                         part {
734                                 name:"right_padding";
735                                 type: RECT;
736                                 scale: 1;
737                                 description {
738                                         state: "default" 0.0;
739                                         min: CTXPOPUP_MORE_MOVE_INC 0;
740                                         visible: 0;
741                                         fixed: 1 0;
742                                         align: 1 0.5;
743                                         rel1.relative: 1.0 0.0;
744                                         rel2.relative: 1.0 1.0;
745                                 }
746                                 description {
747                                         state: "show_right" 0.0;
748                                         inherit: "default" 0.0;
749                                 }
750                                 description {
751                                         state: "visible" 0.0;
752                                         inherit: "default" 0.0;
753                                         min: 0 0;
754                                 }
755                         }
756                         part {
757                                 name: "swallow";
758                                 type: SWALLOW;
759                                 clip_to: "layout_clip";
760                                 description {
761                                         state: "default" 0.0;
762                                         max: CTXPOPUP_MORE_WIDTH_INC 806;
763                                         visible: 0;
764                                 }
765                                 description {
766                                         state: "show_up" 0.0;
767                                         max: CTXPOPUP_MORE_WIDTH_INC 806;
768                                         rel1 {to_x:"left_padding"; to_y:"top_padding"; relative: 1.0 1.0;}
769                                         rel2 {to_x:"right_padding"; to_y:"top_padding"; relative: 0.0 1.0;}
770                                         align: 0.5 0.0;
771                                 }
772                                 description {
773                                         state: "show_down" 0.0;
774                                         max: CTXPOPUP_MORE_WIDTH_INC 806;
775                                         rel1 {to_x:"left_padding"; to_y:"bottom_padding"; relative: 1.0 0.0;}
776                                         rel2 {to_x:"right_padding"; to_y:"bottom_padding"; relative: 0.0 0.0;}
777                                         align: 0.5 1.0;
778                                 }
779                                 description {
780                                         state: "show_left" 0.0;
781                                         max: CTXPOPUP_MORE_WIDTH_INC 806;
782                                         rel1 {to_x:"left_padding"; to_y:"top_padding"; relative: 1.0 1.0;}
783                                         rel2 {to_x:"left_padding"; to_y:"bottom_padding"; relative: 1.0 0.0;}
784                                         align: 0.0 0.5;
785                                 }
786                                 description {
787                                         state: "show_right" 0.0;
788                                         max: CTXPOPUP_MORE_WIDTH_INC 806;
789                                         rel1 {to_x:"right_padding"; to_y:"top_padding"; relative: 0.0 1.0;}
790                                         rel2 {to_x:"right_padding"; to_y:"bottom_padding"; relative: 0.0 0.0;}
791                                         align: 1.0 0.5;
792                                 }
793                         }
794                         part {
795                                 name: "layout_clip";
796                                 type: RECT;
797                                 description {
798                                         state: "default" 0.0;
799                                         color: 255 255 255 0;
800                                         rel1 {to: "swallow"; relative: -0.2 -0.2; }
801                                         rel2 {to: "swallow"; relative: 1.2 1.2;}
802                                 }
803                                 description {
804                                         state: "show_up" 0.0;
805                                         inherit: "default" 0.0;
806                                 }
807                                 description {
808                                         state: "show_down" 0.0;
809                                         inherit: "default" 0.0;
810                                 }
811                                 description {
812                                         state: "show_left" 0.0;
813                                         inherit: "default" 0.0;
814                                 }
815                                 description {
816                                         state: "show_right" 0.0;
817                                         inherit: "default" 0.0;
818                                 }
819                                 description {
820                                         state: "visible" 0.0;
821                                         inherit: "default" 0.0;
822                                         color: 255 255 255 255;
823                                 }
824                         }
825                 }
826                 programs {
827                         program {
828                                 name:   "showup";
829                                 signal: "elm,state,show,up";
830                                 source: "elm";
831                                 action: STATE_SET "show_up" 0.0;
832                                 target: "swallow";
833                                 target: "top_padding";
834                                 target: "layout_clip";
835                                 after: "showupend";
836                         }
837                         program {
838                                 name:   "showdown";
839                                 signal: "elm,state,show,down";
840                                 source: "elm";
841                                 action: STATE_SET "show_down" 0.0;
842                                 target: "swallow";
843                                 target: "bottom_padding";
844                                 target: "layout_clip";
845                                 after: "showdownend";
846                         }
847                         program {
848                                 name:   "showleft";
849                                 signal: "elm,state,show,left";
850                                 source: "elm";
851                                 action: STATE_SET "show_left" 0.0;
852                                 target: "swallow";
853                                 target: "left_padding";
854                                 target: "layout_clip";
855                                 after: "showleftend";
856                         }
857                         program {
858                                 name:   "showright";
859                                 signal: "elm,state,show,right";
860                                 source: "elm";
861                                 action: STATE_SET "show_right" 0.0;
862                                 target: "swallow";
863                                 target: "right_padding";
864                                 target: "layout_clip";
865                                 after: "showrightend";
866                         }
867                         program {
868                                 name:   "showupend";
869                                 action: STATE_SET "visible" 0.0;
870                                 transition:SIN_FAC 0.33 1.1;
871                                 target: "top_padding";
872                                 target: "layout_clip";
873                         }
874                         program {
875                                 name:   "showdownend";
876                                 action: STATE_SET "visible" 0.0;
877                                 transition:SIN_FAC 0.33 1.1;
878                                 target: "bottom_padding";
879                                 target: "layout_clip";
880                         }
881                         program {
882                                 name:   "showleftend";
883                                 action: STATE_SET "visible" 0.0;
884                                 transition:SIN_FAC 0.33 1.1;
885                                 target: "left_padding";
886                                 target: "layout_clip";
887                         }
888                         program {
889                                 name:   "showrightend";
890                                 action: STATE_SET "visible" 0.0;
891                                 transition:SIN_FAC 0.33 1.1;
892                                 target: "right_padding";
893                                 target: "layout_clip";
894                         }
895                         program {
896                                 name:   "hideup";
897                                 signal: "elm,state,hide,up";
898                                 source: "elm";
899                                 action: STATE_SET "show_up" 0.0;
900                                 target: "swallow";
901                                 target: "top_padding";
902                                 transition: SIN_FAC 0.33 1.1;
903                                 after: "hidefinished";
904                         }
905                         program {
906                                 name:   "hidedown";
907                                 signal: "elm,state,hide,down";
908                                 source: "elm";
909                                 action: STATE_SET "show_down" 0.0;
910                                 target: "swallow";
911                                 target: "bottom_padding";
912                                 transition: SIN_FAC 0.33 1.1;
913                                 after: "hidefinished";
914                         }
915                         program {
916                                 name:   "hideleft";
917                                 signal: "elm,state,hide,left";
918                                 source: "elm";
919                                 action: STATE_SET "show_left" 0.0;
920                                 target: "swallow";
921                                 target: "left_padding";
922                                 transition: SIN_FAC 0.33 1.1;
923                                 after: "hidefinished";
924                         }
925                         program {
926                                 name:   "hideright";
927                                 signal: "elm,state,hide,right";
928                                 source: "elm";
929                                 action: STATE_SET "show_right" 0.0;
930                                 target: "swallow";
931                                 target: "right_padding";
932                                 transition: SIN_FAC 0.33 1.1;
933                                 after: "hidefinished";
934                         }
935                         program {
936                                 name:   "hideup_clip";
937                                 signal: "elm,state,hide,up";
938                                 source: "elm";
939                                 action: STATE_SET "default" 0.0;
940                                 target: "layout_clip";
941                                 transition: SIN_FAC 0.33 1.1;
942                                 after: "hidefinished";
943                         }
944                         program {
945                                 name:   "hidedown_clip";
946                                 signal: "elm,state,hide,down";
947                                 source: "elm";
948                                 action: STATE_SET "default" 0.0;
949                                 target: "layout_clip";
950                                 transition: SIN_FAC 0.33 1.1;
951                                 after: "hidefinished";
952                         }
953                         program {
954                                 name:   "hideleft_clip";
955                                 signal: "elm,state,hide,left";
956                                 source: "elm";
957                                 action: STATE_SET "default" 0.0;
958                                 target: "layout_clip";
959                                 transition: SIN_FAC 0.33 1.1;
960                                 after: "hidefinished";
961                         }
962                         program {
963                                 name:   "hideright_clip";
964                                 signal: "elm,state,hide,right";
965                                 source: "elm";
966                                 action: STATE_SET "default" 0.0;
967                                 target: "layout_clip";
968                                 transition: SIN_FAC 0.33 1.1;
969                                 after: "hidefinished";
970                         }
971                         program {
972                                 name: "hidefinished";
973                                 action: SIGNAL_EMIT "elm,action,hide,finished" "";
974                         }
975                 }
976         }
977 ///////////////////////////////////////////////////////////////////////////////
978         group {
979                 name: "elm/scroller/base/ctxpopup";
980                 script {
981                         public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer;
982                         public timer0(val) {
983                                 new v;
984                         v = get_int(sbvis_v);
985                         if (v) {
986                                 v = get_int(sbalways_v);
987                                 if(!v) {
988                                         emit("do-hide-vbar", "");
989                                         set_int(sbvis_v, 0);
990                                 }
991                         }
992                         v = get_int(sbvis_h);
993                         if (v) {
994                                 v = get_int(sbalways_h);
995                                 if(!v) {
996                                         emit("do-hide-hbar", "");
997                                         set_int(sbvis_h, 0);
998                                 }
999                         }
1000                         set_int(sbvis_timer, 0);
1001                         return 0;
1002                         }
1003                 }
1004                 images {
1005                         image: "00_popup_scroll.png" COMP;
1006                         image: "01_scroller.png" COMP;
1007                 }
1008                 parts {
1009                         part {
1010                                 name: "clipper";
1011                                 type: RECT;
1012                                 mouse_events: 0;
1013                                 scale: 1;
1014                                 description {
1015                                         state: "default" 0.0;
1016                                 }
1017                         }
1018                         part {
1019                                 name: "elm.swallow.content";
1020                                 clip_to: "clipper";
1021                                 type: SWALLOW;
1022                                 scale: 1;
1023                                 description {
1024                                         state: "default" 0.0;
1025                                         align: 0.5 0.5;
1026                                 }
1027                         }
1028                         part {
1029                                 name: "sb_vbar_clip_master";
1030                                 type: RECT;
1031                                 mouse_events: 0;
1032                                 description {
1033                                         state: "default" 0.0;
1034                                 }
1035                                 description {
1036                                         state: "hidden" 0.0;
1037                                         visible: 0;
1038                                         color: 255 255 255 0;
1039                                 }
1040                         }
1041                         part {
1042                                 name: "sb_vbar_clip";
1043                                 clip_to:"sb_vbar_clip_master";
1044                                 type: RECT;
1045                                 mouse_events: 0;
1046                                 scale: 1;
1047                                 description {
1048                                         state: "default" 0.0;
1049                                         align: 0.0 0.0;
1050                                         rel2{ to:"clipper"; relative: 1.0 1.0;}
1051                                 }
1052                                 description {
1053                                         state: "hidden" 0.0;
1054                                         visible: 0;
1055                                         color: 255 255 255 0;
1056                                 }
1057                         }
1058                         part {
1059                                 name: "sb_vbar_padding";
1060                                 type: RECT;
1061                                 mouse_events: 0;
1062                                 scale: 1;
1063                                 description {
1064                                         state: "default" 0.0;
1065                                         fixed: 1 1;
1066                                         min: (CTXPOPUP_SCROLLER_PADDING-CTXPOPUP_CONTENT_PADDING) 0;
1067                                         max: (CTXPOPUP_SCROLLER_PADDING-CTXPOPUP_CONTENT_PADDING) 0;
1068                                         visible: 0;
1069                                         align: 1.0 0.0;
1070                                         rel1 { to:"clipper"; relative: 1.0 0.0; }
1071                                         rel2 { to:"clipper"; relative: 1.0 1.0; }
1072                                 }
1073                         }
1074                         part {
1075                                 name: "sb_vbar";
1076                                 type: RECT;
1077                                 mouse_events: 0;
1078                                 scale: 1;
1079                                 description {
1080                                         state: "default" 0.0;
1081                                         fixed: 1 1;
1082                                         visible: 0;
1083                                         align: 1.0 0.0;
1084                                         rel1 { to_x:"sb_vbar_padding"; to_y:"clipper"; relative: 0.0 0.0; }
1085                                         rel2 { to_x:"sb_vbar_padding"; to_y:"clipper"; relative: 0.0 1.0; }
1086                                 }
1087                         }
1088                         part {
1089                                 name: "elm.dragable.vbar";
1090                                 clip_to: "sb_vbar_clip";
1091                                 mouse_events: 0;
1092                                 scale: 1;
1093                                 dragable {
1094                                         x: 0 0 0;
1095                                         y: 1 1 0;
1096                                         confine: "sb_vbar";
1097                                 }
1098                                 description {
1099                                         state: "default" 0.0;
1100                                         fixed: 1 1;
1101                                         min: CTXPOPUP_SCROLLER_MIN_SIZE_INC;
1102                                         rel1 {
1103                                                 relative: 0.5  0.5;
1104                                                 to: "sb_vbar";
1105                                         }
1106                                         rel2 {
1107                                                 relative: 0.5  0.5;
1108                                                 to: "sb_vbar";
1109                                         }
1110                                         image {
1111                                                 normal: "00_popup_scroll.png";
1112                                                 border: 0 0 5 5;
1113                                                 border_scale: 1;
1114                                         }
1115                                 }
1116                         }
1117                         part {
1118                                 name: "sb_hbar_clip_master";
1119                                 type: RECT;
1120                                 mouse_events: 0;
1121                                 description {
1122                                         state: "default" 0.0;
1123                                 }
1124                                 description {
1125                                         state: "hidden" 0.0;
1126                                         visible: 0;
1127                                         color: 255 255 255 0;
1128                                 }
1129                         }
1130                         part {
1131                                 name: "sb_hbar_clip";
1132                                 clip_to: "sb_hbar_clip_master";
1133                                 type: RECT;
1134                                 mouse_events: 0;
1135                                 scale: 1;
1136                                 description {
1137                                         state: "default" 0.0;
1138                                         align: 0.0 0.0;
1139                                         rel2{ to:"clipper"; relative: 1.0 1.0;}
1140                                 }
1141                                 description {
1142                                         state: "hidden" 0.0;
1143                                         visible: 0;
1144                                         color: 255 255 255 0;
1145                                 }
1146                         }
1147                         part {
1148                                 name: "sb_hbar";
1149                                 type: RECT;
1150                                 mouse_events: 0;
1151                                 scale: 1;
1152                                 description {
1153                                         state: "default" 0.0;
1154                                         fixed: 1 1;
1155                                         visible: 0;
1156                                         align: 0.0 1.0;
1157                                         rel1 {to:"clipper"; relative: 0.0 1.0;}
1158                                         rel2 {to:"clipper"; relative: 1.0 1.0;}
1159                                 }
1160                         }
1161                         part {
1162                                 name: "elm.dragable.hbar";
1163                                 clip_to: "sb_hbar_clip";
1164                                 mouse_events: 0;
1165                                 scale: 1;
1166                                 dragable {
1167                                         x: 1 1 0;
1168                                         y: 0 0 0;
1169                                         confine: "sb_hbar";
1170                                 }
1171                                 description {
1172                                         state: "default" 0.0;
1173                                         fixed: 1 1;
1174                                         min: 32 12;
1175                                         rel1 {relative: 0.5  0.5; to: "sb_hbar";}
1176                                         rel2 {relative: 0.5  0.5; to: "sb_hbar";}
1177                                         image {
1178                                                 normal: "01_scroller.png";
1179                                                 border: 6 6 0 0;
1180                                                 border_scale: 1;
1181                                         }
1182                                 }
1183                         }
1184                 }
1185                 programs {
1186                         program {
1187                                 name: "load";
1188                                 signal: "load";
1189                                 source: "";
1190                                 script {
1191                                         set_state(PART:"sb_vbar_clip", "hidden", 0.0);
1192                                         set_state(PART:"sb_hbar_clip", "hidden", 0.0);
1193                                         set_int(sbvis_v, 0);
1194                                         set_int(sbvis_h, 0);
1195                                         set_int(sbalways_v, 0);
1196                                         set_int(sbalways_h, 0);
1197                                         set_int(sbvis_timer, 0);
1198                                 }
1199                         }
1200                         program {
1201                                 name: "vbar_show";
1202                                 signal: "elm,action,show,vbar";
1203                                 source: "elm";
1204                                 action: STATE_SET "default" 0.0;
1205                                 target: "sb_vbar_clip_master";
1206                         }
1207                         program {
1208                                 name: "vbar_hide";
1209                                 signal: "elm,action,hide,vbar";
1210                                 source: "elm";
1211                                 action:  STATE_SET "hidden" 0.0;
1212                                 target: "sb_vbar_clip_master";
1213                         }
1214                         program {
1215                                 name: "vbar_show_always";
1216                                 signal: "elm,action,show_always,vbar";
1217                                 source: "elm";
1218                                 script {
1219                                         new v;
1220                                         v = get_int(sbvis_v);
1221                                         v |= get_int(sbalways_v);
1222                                         if (!v) {
1223                                                 set_int(sbalways_v, 1);
1224                                                 emit("do-show-vbar", "");
1225                                                 set_int(sbvis_v, 1);
1226                                         }
1227                                 }
1228                         }
1229                         program {
1230                                 name: "vbar_show_notalways";
1231                                 signal: "elm,action,show_notalways,vbar";
1232                                 source: "elm";
1233                                 script {
1234                                         new v;
1235                                         v = get_int(sbalways_v);
1236                                         if (v) {
1237                                                 set_int(sbalways_v, 0);
1238                                                 v = get_int(sbvis_v);
1239                                                 if (!v) {
1240                                                         emit("do-hide-vbar", "");
1241                                                 set_int(sbvis_v, 0);
1242                                                 }
1243                                         }
1244                                 }
1245                         }
1246                         program {
1247                                 name: "sb_vbar_show";
1248                                 signal: "do-show-vbar";
1249                                 source: "";
1250                                 action:  STATE_SET "default" 0.0;
1251                                 transition: LINEAR 1.0;
1252                                 target: "sb_vbar_clip";
1253                         }
1254                         program {
1255                                 name: "sb_vbar_hide";
1256                                 signal: "do-hide-vbar";
1257                                 source: "";
1258                                 action:  STATE_SET "hidden" 0.0;
1259                                 transition: LINEAR 1.0;
1260                                 target: "sb_vbar_clip";
1261                         }
1262                         program {
1263                                 name: "hbar_show";
1264                                 signal: "elm,action,show,hbar";
1265                                 source: "elm";
1266                                 action:  STATE_SET "default" 0.0;
1267                                 target: "sb_hbar_clip_master";
1268                         }
1269                         program {
1270                                 name: "hbar_hide";
1271                                 signal: "elm,action,hide,hbar";
1272                                 source: "elm";
1273                                 action:  STATE_SET "hidden" 0.0;
1274                                 target: "sb_hbar_clip_master";
1275                         }
1276                         program {
1277                                 name: "hbar_show_always";
1278                                 signal: "elm,action,show_always,hbar";
1279                                 source: "elm";
1280                                 script {
1281                                         new v;
1282                                         v = get_int(sbvis_h);
1283                                         v |= get_int(sbalways_h);
1284                                         if (!v) {
1285                                                 set_int(sbalways_h, 1);
1286                                                 emit("do-show-hbar", "");
1287                                                 set_int(sbvis_h, 1);
1288                                         }
1289                                 }
1290                         }
1291                         program {
1292                                 name: "hbar_show_notalways";
1293                                 signal: "elm,action,show_notalways,hbar";
1294                                 source: "elm";
1295                                 script {
1296                                         new v;
1297                                         v = get_int(sbalways_h);
1298                                         if (v) {
1299                                                 set_int(sbalways_h, 0);
1300                                                 v = get_int(sbvis_h);
1301                                                 if (!v) {
1302                                                         emit("do-hide-hbar", "");
1303                                                         set_int(sbvis_h, 0);
1304                                                 }
1305                                         }
1306                                 }
1307                         }
1308                         program {
1309                                 name: "sb_hbar_show";
1310                                 signal: "do-show-hbar";
1311                                 source: "";
1312                                 action:  STATE_SET "default" 0.0;
1313                                 transition: LINEAR 1.0;
1314                                 target: "sb_hbar_clip";
1315                         }
1316                         program {
1317                                 name: "sb_hbar_hide";
1318                                 signal: "do-hide-hbar";
1319                                 source: "";
1320                                 action:  STATE_SET "hidden" 0.0;
1321                                 transition: LINEAR 1.0;
1322                                 target: "sb_hbar_clip";
1323                         }
1324                         program {
1325                                 name: "scroll";
1326                                 signal: "elm,action,scroll";
1327                                 source: "elm";
1328                                 action:  STATE_SET "default" 0.0;
1329                                 script {
1330                                         new v;
1331                                         v = get_int(sbvis_v);
1332                                         v |= get_int(sbalways_v);
1333                                         if (!v) {
1334                                                 emit("do-show-vbar", "");
1335                                                 set_int(sbvis_v, 1);
1336                                         }
1337                                         v = get_int(sbvis_h);
1338                                         v |= get_int(sbalways_h);
1339                                         if(!v) {
1340                                                 emit("do-show-hbar", "");
1341                                                 set_int(sbvis_h, 1);
1342                                         }
1343                                         v = get_int(sbvis_timer);
1344                                         if (v > 0) cancel_timer(v);
1345                                         v = timer(2.0, "timer0", 0);
1346                                         set_int(sbvis_timer, v);
1347                                 }
1348                         }
1349                 }
1350         }
1351 ///////////////////////////////////////////////////////////////////////////////
1352         group {
1353                 name: "elm/ctxpopup/bg/pass_event";
1354                 alias: "elm/ctxpopup/bg/extended/entry/pass_event";
1355                 alias: "elm/ctxpopup/bg/extended/entry";
1356                 alias: "elm/ctxpopup/bg/timepicker";
1357                 alias: "elm/ctxpopup/bg/datetime/default";
1358                 parts {
1359                         part {
1360                                 name: "bg";
1361                                 type: RECT;
1362                                 repeat_events: 1;
1363                                 description {
1364                                         state: "default" 0.0;
1365                                         visible: 0;
1366                                 }
1367                                 description {
1368                                         state: "visible" 0.0;
1369                                         color: 0 0 0 0;
1370                                         visible: 1;
1371                                 }
1372                         }
1373                 }
1374                 programs {
1375                         program {
1376                                 name:   "clicked_event";
1377                                 signal: "mouse,clicked,1";
1378                                 source: "bg";
1379                                 action: SIGNAL_EMIT "elm,action,click" "";
1380                         }
1381                         program {
1382                                 name: "show";
1383                                 signal: "elm,state,show";
1384                                 source: "elm";
1385                                 action: STATE_SET "visible" 0.0;
1386                                 target: "bg";
1387                         }
1388                         program {
1389                                 name: "hide";
1390                                 signal: "elm,state,hide";
1391                                 source: "elm";
1392                                 action: STATE_SET "default" 0.0;
1393                                 target: "bg";
1394                         }
1395                 }
1396         }
1397 ///////////////////////////////////////////////////////////////////////////////
1398         group {
1399                 name: "elm/ctxpopup/bg/default";
1400                 parts {
1401                         part {
1402                                 name: "bg";
1403                                 type: RECT;
1404                                 mouse_events: 1;
1405                                 description {
1406                                         state: "default" 0.0;
1407                                         visible: 0;
1408                                 }
1409                                 description {
1410                                         state: "visible" 0.0;
1411                                         color: 0 0 0 0;
1412                                         visible: 1;
1413                                 }
1414                         }
1415                 }
1416                 programs {
1417                         program {
1418                                 name:   "clicked_event";
1419                                 signal: "mouse,clicked,1";
1420                                 source: "bg";
1421                                 action: SIGNAL_EMIT "elm,action,click" "";
1422                         }
1423                         program {
1424                                 name: "show";
1425                                 signal: "elm,state,show";
1426                                 source: "elm";
1427                                 action: STATE_SET "visible" 0.0;
1428                                 target: "bg";
1429                         }
1430                         program {
1431                                 name: "hide";
1432                                 signal: "elm,state,hide";
1433                                 source: "elm";
1434                                 action: STATE_SET "default" 0.0;
1435                                 target: "bg";
1436                         }
1437                 }
1438         }
1439 ///////////////////////////////////////////////////////////////////////////////
1440         group {
1441                 name: "elm/ctxpopup/base/no_bg_content";
1442                 images {
1443                         image: "ctxpopup_bg.png" COMP;
1444                         image: "ctxpopup_shadow.png" COMP;
1445                 }
1446                 parts {
1447                         part {
1448                                 name:"frame_shadow_left_top_padding";
1449                                 type:RECT;
1450                                 scale: 1;
1451                                 mouse_events: 0;
1452                                 description {
1453                                         min: CTXPOPUP_SHADOW_PADDING CTXPOPUP_SHADOW_PADDING;
1454                                         max: CTXPOPUP_SHADOW_PADDING CTXPOPUP_SHADOW_PADDING;
1455                                         align: 0 0;
1456                                         fixed: 1 1;
1457                                         visible: 0;
1458                                 }
1459                         }
1460                         part {
1461                                 name:"frame_shadow_right_bottom_padding";
1462                                 type:RECT;
1463                                 scale: 1;
1464                                 mouse_events: 0;
1465                                 description {
1466                                         min: CTXPOPUP_SHADOW_PADDING CTXPOPUP_SHADOW_PADDING;
1467                                         max: CTXPOPUP_SHADOW_PADDING CTXPOPUP_SHADOW_PADDING;
1468                                         rel1{relative: 1 1;}
1469                                         align: 0 0;
1470                                         fixed: 1 1;
1471                                         visible: 0;
1472                                 }
1473                         }
1474                         part {
1475                                 name: "frame_shadow";
1476                                 type: IMAGE;
1477                                 scale: 1;
1478                                 mouse_events: 0;
1479                                 description {
1480                                         state: "default" 0.0;
1481                                         rel1 {to:"frame_shadow_left_top_padding"; relative: 1 1;}
1482                                         rel2 {to:"frame_shadow_right_bottom_padding";}
1483                                         image {
1484                                                 normal: "ctxpopup_shadow.png";
1485                                                 border: 10 10 10 10;
1486                                                 border_scale: 1;
1487                                         }
1488                                         color: 255 255 255 255;
1489                                 }
1490                         }
1491                         part {
1492                                 name: "ctxpopup_frame";
1493                                 type: IMAGE;
1494                                 scale: 1;
1495                                 description {
1496                                         image {
1497                                                 normal: "ctxpopup_bg.png";
1498                                                 border: 10 10 10 10;
1499                                                 border_scale: 1;
1500                                         }
1501                                         rel1 {to:"content_left_top_padding"; relative: 1 1;}
1502                                         rel2 {to:"content_right_bottom_padding"; relative: 0 0;}
1503                                 }
1504                         }
1505                         part {
1506                                 name:"list_shadow_right_bottom_padding";
1507                                 type:RECT;
1508                                 scale: 1;
1509                                 mouse_events: 0;
1510                                 description {
1511                                         min: CTXPOPUP_LIST_SHADOW_PADDING CTXPOPUP_LIST_SHADOW_PADDING;
1512                                         max: CTXPOPUP_LIST_SHADOW_PADDING CTXPOPUP_LIST_SHADOW_PADDING;
1513                                         align: 0 0;
1514                                         fixed: 1 1;
1515                                         visible: 0;
1516                                         rel1 {to:"elm.swallow.content";  relative: 1 1;}
1517                                 }
1518                         }
1519                         part {
1520                                 name:"content_left_top_padding";
1521                                 type:RECT;
1522                                 scale: 1;
1523                                 mouse_events: 0;
1524                                 description {
1525                                         state: "default" 0.0;
1526                                         min: CTXPOPUP_LIST_PADDING CTXPOPUP_LIST_PADDING;
1527                                         max: CTXPOPUP_LIST_PADDING CTXPOPUP_LIST_PADDING;
1528                                         align: 0 0;
1529                                         fixed: 1 1;
1530                                         visible: 0;
1531                                 }
1532                         }
1533                         part {
1534                                 name:"content_right_bottom_padding";
1535                                 type:RECT;
1536                                 scale: 1;
1537                                 mouse_events: 0;
1538                                 description {
1539                                         min: CTXPOPUP_LIST_PADDING CTXPOPUP_LIST_PADDING;
1540                                         max: CTXPOPUP_LIST_PADDING CTXPOPUP_LIST_PADDING;
1541                                         rel1 { relative: 1 1;}
1542                                         rel2 { relative: 1 1;}
1543                                         align: 1 1;
1544                                         fixed: 1 1;
1545                                         visible: 0;
1546                                 }
1547                         }
1548                         part {
1549                                 name: "elm.swallow.content";
1550                                 type: SWALLOW;
1551                                 description {
1552                                         state: "default" 0.0;
1553                                         rel1 {to:"content_left_top_padding"; relative: 1 1;}
1554                                         rel2 {to:"content_right_bottom_padding"; relative: 0 0;}
1555                                 }
1556                         }
1557                 }
1558         }
1559 ///////////////////////////////////////////////////////////////////////////////
1560         group {
1561                 name: "elm/ctxpopup/base/default";
1562                 images {
1563                         image: "00_popup_bubble_bg.png" COMP;
1564                         image: "00_popup_bubble_mask.png" COMP;
1565                 }
1566                 parts {
1567                         part {
1568                                 name:"frame_shadow_left_top_padding";
1569                                 type:RECT;
1570                                 scale: 1;
1571                                 mouse_events: 0;
1572                                 description {
1573                                         state: "default" 0.0;
1574                                         min: CTXPOPUP_SHADOW_LEFT_PADDING CTXPOPUP_SHADOW_TOP_PADDING;
1575                                         max: CTXPOPUP_SHADOW_LEFT_PADDING CTXPOPUP_SHADOW_TOP_PADDING;
1576                                         rel2 { relative: 0 0; }
1577                                         align: 0 0;
1578                                         fixed: 1 1;
1579                                         visible: 0;
1580                                 }
1581                         }
1582                         part {
1583                                 name:"frame_shadow_right_bottom_padding";
1584                                 type:RECT;
1585                                 scale: 1;
1586                                 mouse_events: 0;
1587                                 description {
1588                                         state: "default" 0.0;
1589                                         min: CTXPOPUP_SHADOW_RIGHT_PADDING CTXPOPUP_SHADOW_BOTTOM_PADDING;
1590                                         max: CTXPOPUP_SHADOW_RIGHT_PADDING CTXPOPUP_SHADOW_BOTTOM_PADDING;
1591                                         rel1{relative: 1 1;}
1592                                         align: 1 1;
1593                                         fixed: 1 1;
1594                                         visible: 0;
1595                                 }
1596                         }
1597                         part {
1598                                 name: "frame_bg";
1599                                 type: IMAGE;
1600                                 scale: 1;
1601                                 mouse_events: 0;
1602                                 description {
1603                                         state: "default" 0.0;
1604                                         rel1 {to:"frame_shadow_left_top_padding";}
1605                                         rel2 {to:"frame_shadow_right_bottom_padding";}
1606                                         min: (CTXPOPUP_ICON_ITEM_HORIZONTAL_WIDTH_INC + CTXPOPUP_SHADOW_LEFT_PADDING + CTXPOPUP_SHADOW_RIGHT_PADDING) 0;
1607                                         image {
1608                                                 normal: "00_popup_bubble_bg.png";
1609                                                 border: CTXPOPUP_BUBBLE_BG_IMAGE_BORDER;
1610                                                 border_scale: 1;
1611                                         }
1612                                 }
1613                         }
1614                         part { name: "arrow_area_left";
1615                                 type: RECT;
1616                                 mouse_events: 0;
1617                                 scale: 1;
1618                                 description { state: "default" 0.0;
1619                                         visible: 0;
1620                                         min: CTXPOPUP_ARROW_SIZE_INC;
1621                                         fixed: 1 1;
1622                                         align: 1 0.5;
1623                                         rel1 {
1624                                                 relative: 1 1;
1625                                                 to_x:"content_left_top_padding";
1626                                                 to_y: "ctxpopup_frame_left_top";
1627                                         }
1628                                         rel2 {
1629                                                 relative: 1 0;
1630                                                 to_x:"content_left_top_padding";
1631                                                 to_y:"ctxpopup_frame_right_bottom";
1632                                         }
1633                                 }
1634                         }
1635                         part { name: "arrow_area_right";
1636                                 type: RECT;
1637                                 mouse_events: 0;
1638                                 scale: 1;
1639                                 description { state: "default" 0.0;
1640                                         visible: 0;
1641                                         min: CTXPOPUP_ARROW_SIZE_INC;
1642                                         fixed: 1 1;
1643                                         align: 0 0.5;
1644                                         rel1 {
1645                                                 relative: 0 1;
1646                                                 to_x:"content_right_bottom_padding";
1647                                                 to_y:"ctxpopup_frame_left_top";
1648                                         }
1649                                         rel2 {
1650                                                 relative: 0 0;
1651                                                 to_x:"content_right_bottom_padding";
1652                                                 to_y: "ctxpopup_frame_right_bottom";
1653                                         }
1654                                 }
1655                         }
1656                         part { name: "arrow_area_up";
1657                                 type: RECT;
1658                                 mouse_events: 0;
1659                                 scale: 1;
1660                                 description { state: "default" 0.0;
1661                                         visible: 0;
1662                                         min: CTXPOPUP_ARROW_SIZE_INC;
1663                                         fixed: 1 1;
1664                                         align: 0.5 1;
1665                                         rel1 {
1666                                                 relative: 1 1;
1667                                                 to_x: "ctxpopup_frame_left_top";
1668                                                 to_y: "content_left_top_padding";
1669                                         }
1670                                         rel2 {
1671                                                 relative: 0 1;
1672                                                 to_x:"ctxpopup_frame_right_bottom";
1673                                                 to_y: "content_left_top_padding";
1674                                         }
1675                                 }
1676                         }
1677                         part { name: "arrow_area_down";
1678                                 type: RECT;
1679                                 mouse_events: 0;
1680                                 scale: 1;
1681                                 description { state: "default" 0.0;
1682                                         visible: 0;
1683                                         min: CTXPOPUP_ARROW_SIZE_INC;
1684                                         fixed: 1 1;
1685                                         align: 0.5 0;
1686                                         rel1 {
1687                                                 relative: 1 0;
1688                                                 to_x:"ctxpopup_frame_left_top";
1689                                                 to_y:"content_right_bottom_padding";
1690                                         }
1691                                         rel2 {
1692                                                 relative: 0 0;
1693                                                 to_x: "ctxpopup_frame_right_bottom";
1694                                                 to_y:"content_right_bottom_padding";
1695                                         }
1696                                 }
1697                         }
1698                         part { name: "elm.swallow.arrow_up";
1699                                 type: SWALLOW;
1700                                 mouse_events: 0;
1701                                 scale: 1;
1702                                 dragable {
1703                                         x: 1 1 0;
1704                                         y: 1 1 0;
1705                                         confine: "arrow_area_up";
1706                                 }
1707                                 description {
1708                                         state: "default" 0.0;
1709                                         min: CTXPOPUP_ARROW_SIZE_INC;
1710                                         fixed: 1 1;
1711                                         visible: 1;
1712                                 }
1713                         }
1714                         part { name: "elm.swallow.arrow_down";
1715                                 type: SWALLOW;
1716                                 mouse_events: 0;
1717                                 scale: 1;
1718                                 dragable {
1719                                         x: 1 1 0;
1720                                         y: 1 1 0;
1721                                         confine: "arrow_area_down";
1722                                 }
1723                                 description {
1724                                         state: "default" 0.0;
1725                                         min: CTXPOPUP_ARROW_SIZE_INC;
1726                                         fixed: 1 1;
1727                                         visible: 1;
1728                                 }
1729                         }
1730                         part { name: "elm.swallow.arrow_left";
1731                                 type: SWALLOW;
1732                                 mouse_events: 0;
1733                                 scale: 1;
1734                                 dragable {
1735                                         x: 1 1 0;
1736                                         y: 1 1 0;
1737                                         confine: "arrow_area_left";
1738                                 }
1739                                 description {
1740                                         state: "default" 0.0;
1741                                         min: CTXPOPUP_ARROW_SIZE_INC;
1742                                         fixed: 1 1;
1743                                         visible: 1;
1744                                 }
1745                         }
1746                         part { name: "elm.swallow.arrow_right";
1747                                 type: SWALLOW;
1748                                 mouse_events: 0;
1749                                 scale: 1;
1750                                 dragable {
1751                                         x: 1 1 0;
1752                                         y: 1 1 0;
1753                                         confine: "arrow_area_right";
1754                                 }
1755                                 description {
1756                                         state: "default" 0.0;
1757                                         min: CTXPOPUP_ARROW_SIZE_INC;
1758                                         fixed: 1 1;
1759                                         visible: 1;
1760                                 }
1761                         }
1762                         part {
1763                                 name: "ctxpopup_frame_left_top";
1764                                 type: RECT;
1765                                 scale: 1;
1766                                 description {
1767                                         state: "default" 0.0;
1768                                         visible: 0;
1769                                         align: 0 0;
1770                                         fixed: 1 1;
1771                                         min: CTXPOPUP_FRAME_CORNER_ARROW_PADDING CTXPOPUP_FRAME_CORNER_ARROW_PADDING;
1772                                         max: CTXPOPUP_FRAME_CORNER_ARROW_PADDING CTXPOPUP_FRAME_CORNER_ARROW_PADDING;
1773                                         rel1 {relative: 0 0; to: "content_left_top_padding";}
1774                                 }
1775                         }
1776                         part {
1777                                 name: "ctxpopup_frame_right_bottom";
1778                                 type: RECT;
1779                                 scale: 1;
1780                                 description {
1781                                         state: "default" 0.0;
1782                                         visible: 0;
1783                                         align: 1 1;
1784                                         fixed: 1 1;
1785                                         min: CTXPOPUP_FRAME_CORNER_ARROW_PADDING CTXPOPUP_FRAME_CORNER_ARROW_PADDING;
1786                                         max: CTXPOPUP_FRAME_CORNER_ARROW_PADDING CTXPOPUP_FRAME_CORNER_ARROW_PADDING;
1787                                         rel2 {relative: 1 1; to: "content_right_bottom_padding";}
1788                                 }
1789                         }
1790                         part {
1791                                 name:"content_left_top_padding";
1792                                 type:RECT;
1793                                 scale: 1;
1794                                 mouse_events: 0;
1795                                 description {
1796                                         state: "default" 0.0;
1797                                         min: CTXPOPUP_CONTENT_PADDING CTXPOPUP_CONTENT_PADDING;
1798                                         max: CTXPOPUP_CONTENT_PADDING CTXPOPUP_CONTENT_PADDING;
1799                                         rel1 {to:"frame_shadow_left_top_padding";  relative: 1.0 1.0;}
1800                                         align: 0 0;
1801                                         fixed: 1 1;
1802                                         visible: 0;
1803                                 }
1804                         }
1805                         part {
1806                                 name:"content_right_bottom_padding";
1807                                 type:RECT;
1808                                 scale: 1;
1809                                 mouse_events: 0;
1810                                 description {
1811                                         state: "default" 0.0;
1812                                         min: CTXPOPUP_CONTENT_PADDING CTXPOPUP_CONTENT_PADDING;
1813                                         max: CTXPOPUP_CONTENT_PADDING CTXPOPUP_CONTENT_PADDING;
1814                                         rel2 {to:"frame_shadow_right_bottom_padding";  relative: 0.0 0.0;}
1815                                         align: 1 1;
1816                                         fixed: 1 1;
1817                                         visible: 0;
1818                                 }
1819                         }
1820                         part {
1821                                 name: "elm.swallow.content";
1822                                 type: SWALLOW;
1823                                 description {
1824                                         state: "default" 0.0;
1825                                         align: 0 0;
1826                                         rel1 {to:"content_left_top_padding";  relative: 1.0 1.0;}
1827                                         rel2 {to:"content_right_bottom_padding";  relative: 0.0 0.0;}
1828                                 }
1829                         }
1830                         part {
1831                                 name: "mask";
1832                                 type: IMAGE;
1833                                 scale: 1;
1834                                 description {
1835                                         state: "default" 0.0;
1836                                         visible: 0;
1837                                         rel1 {to:"elm.swallow.content";}
1838                                         rel2 {to:"elm.swallow.content";}
1839                                         image {
1840                                                 normal: "00_popup_bubble_mask.png";
1841                                                 border: CTXPOPUP_BUBBLE_MASK_IMAGE_BORDER;
1842                                                 border_scale: 1;
1843                                         }
1844                                 }
1845                                 description {
1846                                         state: "visible" 0.0;
1847                                         inherit: "default" 0.0;
1848                                         visible: 1;
1849                                         rel1 {to:"elm.swallow.content";}
1850                                         rel2 {to:"elm.swallow.content";}
1851                                 }
1852                         }
1853                 }
1854                 programs {
1855                         program {
1856                                 name: "show";
1857                                 signal: "mouse,down,1";
1858                                 source: "elm.swallow.content";
1859                                 action: STATE_SET "visible" 0.0;
1860                                 target: "mask";
1861                         }
1862                         program {
1863                                 name: "hide";
1864                                 signal: "mouse,up,1";
1865                                 source: "elm.swallow.content";
1866                                 action: STATE_SET "default" 0.0;
1867                                 target: "mask";
1868                         }
1869                 }
1870         }
1871
1872 ///////////////////////////////////////////////////////////////////////////////
1873         group { name: "elm/ctxpopup/arrow/default";
1874                 images {
1875                         image: "00_popup_bubble_tail_left.png" COMP;
1876                         image: "00_popup_bubble_tail_right.png" COMP;
1877                         image: "00_popup_bubble_tail_top.png" COMP;
1878                         image: "00_popup_bubble_tail_bottom.png" COMP;
1879                 }
1880                 parts {
1881                         part {
1882                                 name: "ctxpopup_arrow";
1883                                 type: IMAGE;
1884                                 scale: 1;
1885                                 description {
1886                                         state: "default" 0.0;
1887                                         min: CTXPOPUP_ARROW_SIZE_INC;
1888                                         max: CTXPOPUP_ARROW_SIZE_INC;
1889                                         fixed: 1 1;
1890                                         visible: 0;
1891                                         align: 0.5 0.5;
1892                                 }
1893                                 description {
1894                                         state: "left" 0.0;
1895                                         min: CTXPOPUP_ARROW_SIZE_INC;
1896                                         max: CTXPOPUP_ARROW_SIZE_INC;
1897                                         fixed: 1 1;
1898                                         align: 1.0 0.5;
1899                                         image {
1900                                                 normal: "00_popup_bubble_tail_left.png";
1901                                         }
1902                                 }
1903                                 description {
1904                                         state: "right" 0.0;
1905                                         min: CTXPOPUP_ARROW_SIZE_INC;
1906                                         max: CTXPOPUP_ARROW_SIZE_INC;
1907                                         fixed: 1 1;
1908                                         align: 0.0 0.5;
1909                                         image {
1910                                                 normal: "00_popup_bubble_tail_right.png";
1911                                         }
1912                                 }
1913                                 description {
1914                                         state: "top" 0.0;
1915                                         min: CTXPOPUP_ARROW_SIZE_INC;
1916                                         max: CTXPOPUP_ARROW_SIZE_INC;
1917                                         fixed: 1 1;
1918                                         align: 0.5 1.0;
1919                                         image {
1920                                                 normal: "00_popup_bubble_tail_top.png";
1921                                         }
1922                                 }
1923                                 description {
1924                                         state: "bottom" 0.0;
1925                                         min: CTXPOPUP_ARROW_SIZE_INC;
1926                                         max: CTXPOPUP_ARROW_SIZE_INC;
1927                                         fixed: 1 1;
1928                                         align: 0.5 0.0;
1929                                         image {
1930                                                 normal: "00_popup_bubble_tail_bottom.png";
1931                                         }
1932                                 }
1933                         }
1934                 }
1935                 programs {
1936                         program {
1937                                 name: "enable_left_arrow";
1938                                 signal: "elm,state,left";
1939                                 source: "elm";
1940                                 action: STATE_SET "left" 0.0;
1941                                 target: "ctxpopup_arrow";
1942                         }
1943                         program {
1944                                 name: "enable_right_arrow";
1945                                 signal: "elm,state,right";
1946                                 source: "elm";
1947                                 action: STATE_SET "right" 0.0;
1948                                 target: "ctxpopup_arrow";
1949                         }
1950                         program {
1951                                 name: "enable_top_arrow";
1952                                 signal: "elm,state,top";
1953                                 source: "elm";
1954                                 action: STATE_SET "top" 0.0;
1955                                 target: "ctxpopup_arrow";
1956                         }
1957                         program {
1958                                 name: "enable_bottom_arrow";
1959                                 signal: "elm,state,bottom";
1960                                 source: "elm";
1961                                 action: STATE_SET "bottom" 0.0;
1962                                 target: "ctxpopup_arrow";
1963                         }
1964                 }
1965         }
1966 ///////////////////////////////////////////////////////////////////////////////
1967         group {
1968                 name: "elm/ctxpopup/text_style_item/default";
1969                 parts {
1970                         part {
1971                                 name: "event_blocker";
1972                                 type: RECT;
1973                                 mouse_events: 1;
1974                                 description {
1975                                         state: "default" 0.0;
1976                                         color: 0 0 0 0;
1977                                 }
1978                         }
1979                         part {
1980                                 name: "bg";
1981                                 mouse_events: 0;
1982                                 type: RECT;
1983                                 scale: 1;
1984                                 description {
1985                                         state: "default" 0.0;
1986                                         color: CTXPOPUP_BG_COLOR_INC;
1987                                         visible: 1;
1988                                         min: (CTXPOPUP_WIDTH_MIN_INC-CTXPOPUP_CONTENT_PADDING*2) 1;
1989                                         max: (CTXPOPUP_WIDTH_MAX_INC-CTXPOPUP_CONTENT_PADDING*2) CTXPOPUP_ITEM_HEIGHT_MAX_INC;
1990                                 }
1991                                 description {
1992                                         state: "clicked" 0.0;
1993                                         color: CTXPOPUP_BG_PRESS_COLOR_INC;
1994                                         visible: 1;
1995                                 }
1996                                 description {
1997                                         state: "clicked_separator" 0.0;
1998                                         rel1 { relative: 0.0 1.0; to_y: "separator2"; }
1999                                         color: CTXPOPUP_BG_PRESS_COLOR_INC;
2000                                         visible: 1;
2001                                 }
2002                         }
2003                         part {
2004                                 name: "separator1";
2005                                 mouse_events: 0;
2006                                 type: RECT;
2007                                 scale: 1;
2008                                 description {
2009                                         state: "default" 0.0;
2010                                         color: CTXPOPUP_SEPARATOR_COLOR_INC;
2011                                         rel1 { relative: 1.0 0.0; to_x: "left_padding";}
2012                                         rel2 { relative: 0.0 1.0; to_x: "right_padding"; offset: 0 0; }
2013                                         align: 0.5 0;
2014                                         min: 0 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
2015                                         max: 999999 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
2016                                         visible: 0;
2017                                 }
2018                                 description {
2019                                         state: "visible" 0.0;
2020                                         inherit: "default" 0.0;
2021                                         visible: 1;
2022                                 }
2023                         }
2024                         part {
2025                                 name: "separator2";
2026                                 mouse_events: 0;
2027                                 type: RECT;
2028                                 scale: 1;
2029                                 description {
2030                                         state: "default" 0.0;
2031                                         color: CTXPOPUP_SEPARATOR2_COLOR_INC;
2032                                         rel1 { relative: 0.0 1.0; to: "separator1";}
2033                                         rel2 { relative: 1.0 1.0; to: "separator1"; offset: 0 0; }
2034                                         align: 0.5 0;
2035                                         fixed: 0 1;
2036                                         min: 0 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
2037                                         max: 999999 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
2038                                         visible: 0;
2039                                 }
2040                                 description {
2041                                         state: "visible" 0.0;
2042                                         inherit: "default" 0.0;
2043                                         visible: 1;
2044                                 }
2045                         }
2046                         part {
2047                                 name: "left_padding";
2048                                 type: RECT;
2049                                 scale: 1;
2050                                 mouse_events: 0;
2051                                 description {
2052                                         state: "default" 0.0;
2053                                         min: (CTXPOPUP_ITEM_TEXT_PADDING_INC-CTXPOPUP_CONTENT_PADDING) CTXPOPUP_ITEM_HEIGHT_MIN_INC;
2054                                         max: (CTXPOPUP_ITEM_TEXT_PADDING_INC-CTXPOPUP_CONTENT_PADDING) CTXPOPUP_ITEM_HEIGHT_MAX_INC;
2055                                         align: 0 0;
2056                                         fixed: 1 1;
2057                                         visible: 0;
2058                                 }
2059                         }
2060                         part {
2061                                 name: "elm.text";
2062                                 type: TEXT;
2063                                 mouse_events: 0;
2064                                 scale: 1;
2065                                 description {
2066                                         state: "default" 0.0;
2067                                         min: 1 CTXPOPUP_ITEM_HEIGHT_MIN_INC;
2068                                         align: 0.5 0.5;
2069                                         rel1 {relative: 1.0 0.0; to_x: "left_padding"; to_y: "bg";}
2070                                         rel2 {relative: 0.0 1.0; to_x: "right_padding"; to_y: "bg";}
2071                                         color: CTXPOPUP_LIST_MAIN_TEXT_COLOR_INC;
2072                                         text {
2073                                                 font: "Tizen:style=Roman";
2074                                                 size: CTXPOPUP_LIST_MAIN_TEXT_SIZE_INC;
2075                                                 align: 0 0.5;
2076                                                 min: 1 1;
2077                                                 text_class: "list_item";
2078                                         }
2079                                 }
2080                                 description {
2081                                         state: "compress" 0.0;
2082                                         inherit: "default" 0.0;
2083                                         max: -1 -1;
2084                                         text {
2085                                                 min: 0 1;
2086                                         }
2087                                 }
2088                                 description {
2089                                         state: "clicked" 0.0;
2090                                         inherit: "default" 0.0;
2091                                         color: CTXPOPUP_LIST_MAIN_TEXT_PRESS_COLOR_INC;
2092                                 }
2093                                 description {
2094                                         state: "disabled" 0.0;
2095                                         inherit: "default" 0.0;
2096                                         color: CTXPOPUP_LIST_MAIN_TEXT_DIM_COLOR_INC;
2097                                 }
2098                                 description {
2099                                         state: "compress_disabled" 0.0;
2100                                         inherit: "compress" 0.0;
2101                                         color: CTXPOPUP_LIST_MAIN_TEXT_DIM_COLOR_INC;
2102                                 }
2103                         }
2104                         part {
2105                                 name: "right_padding";
2106                                 type: RECT;
2107                                 scale: 1;
2108                                 mouse_events: 0;
2109                                 description {
2110                                         state: "default" 0.0;
2111                                         visible: 0;
2112                                         min: (CTXPOPUP_ITEM_TEXT_PADDING_INC-CTXPOPUP_CONTENT_PADDING) CTXPOPUP_ITEM_HEIGHT_MIN_INC;
2113                                         max: (CTXPOPUP_ITEM_TEXT_PADDING_INC-CTXPOPUP_CONTENT_PADDING) CTXPOPUP_ITEM_HEIGHT_MAX_INC;
2114                                         fixed: 1 1;
2115                                         align: 1.0 1.0;
2116                                 }
2117                         }
2118                         part {
2119                                 name: "over1";
2120                                 type: RECT;
2121                                 mouse_events: 1;
2122                                 repeat_events: 1;
2123                                 description {
2124                                         state: "default" 0.0;
2125                                         color: 0 0 0 0;
2126                                 }
2127                         }
2128                         part {
2129                                 name: "over2";
2130                                 type: RECT;
2131                                 mouse_events: 1;
2132                                 repeat_events: 1;
2133                                 dragable {
2134                                         x: 0 0 0;
2135                                         y: 1 1 0;
2136                                 }
2137                                 description {
2138                                         state: "default" 0.0;
2139                                         rel1.to:"bg";
2140                                         rel2.to:"bg";
2141                                         color: 0 0 0 0;
2142                                 }
2143                         }
2144                         part {
2145                                 name: "disclip";
2146                                 type: RECT;
2147                                 description {
2148                                         state: "default" 0.0;
2149                                         visible: 0;
2150                                 }
2151                                 description {
2152                                         state: "disabled" 0.0;
2153                                         visible: 1;
2154                                         color: CTXPOPUP_ITEM_DISABLED_COLOR;
2155                                 }
2156                         }
2157                 }
2158                 programs {
2159                         program {
2160                                 name: "item_unclick";
2161                                 signal: "mouse,clicked,1";
2162                                 source: "over1";
2163                                 action: SIGNAL_EMIT "elm,action,click" "";
2164                         }
2165                         program {
2166                                 name: "disable";
2167                                 signal: "elm,state,disabled";
2168                                 source: "elm";
2169                                 script {
2170                                         new st[31];
2171                                         new Float:vl;
2172                                         get_state(PART:"elm.text", st, 30, vl);
2173                                         if ((!strcmp(st, "compress")) || (!strcmp(st, "compress_disabled")))
2174                                                 set_state(PART:"elm.text", "compress_disabled", 0.0);
2175                                         else
2176                                                 set_state(PART:"elm.text", "disabled", 0.0);
2177
2178                                         set_state(PART:"disclip", "disabled", 0.0);
2179                                 }
2180                         }
2181                         program {
2182                                 name: "enable";
2183                                 signal: "elm,state,enabled";
2184                                 source: "elm";
2185                                 script {
2186                                         new st[31];
2187                                         new Float:vl;
2188                                         get_state(PART:"elm.text", st, 30, vl);
2189                                         if ((!strcmp(st, "compress")) || (!strcmp(st, "compress_disabled")))
2190                                                 set_state(PART:"elm.text", "compress", 0.0);
2191                                         else
2192                                                 set_state(PART:"elm.text", "default", 0.0);
2193
2194                                         set_state(PART:"disclip", "default", 0.0);
2195                                 }
2196                         }
2197                         program {
2198                                 name: "default";
2199                                 signal: "elm,state,default";
2200                                 source: "elm";
2201                                 script {
2202                                         set_state(PART:"separator1", "default", 0.0);
2203                                         set_state(PART:"separator2", "default", 0.0);
2204                                 }
2205                         }
2206                         program {
2207                                 name: "compress";
2208                                 signal: "elm,state,compress";
2209                                 source: "elm";
2210                                 script {
2211                                         new st[31];
2212                                         new Float:vl;
2213                                         get_state(PART:"disclip", st, 30, vl);
2214                                         if (!strcmp(st, "disabled"))
2215                                                 set_state(PART:"elm.text", "compress_disabled", 0.0);
2216                                         else
2217                                                 set_state(PART:"elm.text", "compress", 0.0);
2218                                 }
2219                         }
2220                         program {
2221                                 name: "separator";
2222                                 signal: "elm,state,separator";
2223                                 source: "elm";
2224                                 script {
2225                                         set_state(PART:"separator1", "visible", 0.0);
2226                                         set_state(PART:"separator2", "visible", 0.0);
2227                                 }
2228                         }
2229                         program {
2230                                 name: "item_click2";
2231                                 signal: "mouse,down,1";
2232                                 source: "over2";
2233                                 script {
2234                                         set_state(PART:"elm.text", "clicked", 0.0);
2235
2236                                         new st[31];
2237                                         new Float:vl;
2238                                         get_state(PART:"separator2", st, 30, vl);
2239                                         if (!strcmp(st, "default"))
2240                                                 set_state(PART:"bg", "clicked", 0.0);
2241                                         else
2242                                                 set_state(PART:"bg", "clicked_separator", 0.0);
2243                                 }
2244                         }
2245                         program {
2246                                 name: "drag";
2247                                 signal: "drag";
2248                                 source: "over2";
2249                                 script {
2250                                         new Float:dx, Float:dy;
2251                                         get_drag(PART:"over2", dx, dy);
2252                                         if (abs(dy) > 20)
2253                                                 {
2254                                                         set_drag(PART:"over2", 0.0, 0.0);
2255                                                         set_state(PART:"elm.text", "compress", 0.0);
2256                                                         set_state(PART:"bg", "default", 0.0);
2257                                                 }
2258                                         set_drag(PART:"over2", 0.0, 0.0);
2259                                 }
2260                         }
2261                         program {
2262                                 name: "item_unclick2";
2263                                 signal: "mouse,up,1";
2264                                 source: "over2";
2265                                 script {
2266                                         set_drag(PART:"over2", 0.0, 0.0);
2267                                         set_state(PART:"elm.text", "compress", 0.0);
2268                                         set_state(PART:"bg", "default", 0.0);
2269                                 }
2270                         }
2271                 }
2272         }
2273 ///////////////////////////////////////////////////////////////////////////////
2274         group {
2275                 name: "elm/ctxpopup/text_style_item_horizontal/default";
2276                 parts {
2277                         part {
2278                                 name: "event_blocker";
2279                                 type: RECT;
2280                                 mouse_events: 1;
2281                                 description {
2282                                         state: "default" 0.0;
2283                                         color: 0 0 0 0;
2284                                 }
2285                         }
2286                         part {
2287                                 name: "bg";
2288                                 mouse_events: 0;
2289                                 type: RECT;
2290                                 scale: 1;
2291                                 description {
2292                                         state: "default" 0.0;
2293                                         color: CTXPOPUP_BG_COLOR_INC;
2294                                         visible: 1;
2295                                         min: CTXPOPUP_ICON_ITEM_HORIZONTAL_WIDTH_INC (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-CTXPOPUP_CONTENT_PADDING*2);
2296                                 }
2297                                 description {
2298                                         state: "clicked" 0.0;
2299                                         color: CTXPOPUP_BG_PRESS_COLOR_INC;
2300                                         visible: 1;
2301                                 }
2302                                 description {
2303                                         state: "clicked_separator" 0.0;
2304                                         rel1 { relative: 1.0 0.0; to_x: "separator2"; }
2305                                         color: CTXPOPUP_BG_PRESS_COLOR_INC;
2306                                         visible: 1;
2307                                 }
2308                         }
2309                         part {
2310                                 name: "separator1";
2311                                 mouse_events: 0;
2312                                 type: RECT;
2313                                 scale: 1;
2314                                 description {
2315                                         state: "default" 0.0;
2316                                         color: CTXPOPUP_HORIZONTAL_SEPARATOR_1_COLOR_INC;
2317                                         align: 0 0.5;
2318                                         min: CTXPOPUP_HORIZONTAL_SEPARATOR_MIN_SIZE_INC;
2319                                         max: CTXPOPUP_HORIZONTAL_SEPARATOR_MAX_SIZE_INC;
2320                                         visible: 0;
2321                                 }
2322                                 description {
2323                                         state: "visible" 0.0;
2324                                         inherit: "default" 0.0;
2325                                         visible: 1;
2326                                 }
2327                         }
2328                         part {
2329                                 name: "separator2";
2330                                 mouse_events: 0;
2331                                 type: RECT;
2332                                 scale: 1;
2333                                 description {
2334                                         state: "default" 0.0;
2335                                         color: CTXPOPUP_HORIZONTAL_SEPARATOR_2_COLOR_INC;
2336                                         rel1 { relative: 1.0 0.0; to: "separator1"; to_y: "bg";}
2337                                         align: 0 0.5;
2338                                         min: CTXPOPUP_HORIZONTAL_SEPARATOR_MIN_SIZE_INC;
2339                                         max: CTXPOPUP_HORIZONTAL_SEPARATOR_MAX_SIZE_INC;
2340                                         visible: 0;
2341                                 }
2342                                 description {
2343                                         state: "visible" 0.0;
2344                                         inherit: "default" 0.0;
2345                                         visible: 1;
2346                                 }
2347                         }
2348                         part {
2349                                 name: "left_padding";
2350                                 type: RECT;
2351                                 scale: 1;
2352                                 mouse_events: 0;
2353                                 description {
2354                                         state: "default" 0.0;
2355                                         min: CTXPOPUP_ITEM_ICON_PADDING_INC (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-CTXPOPUP_CONTENT_PADDING*2);
2356                                         max: CTXPOPUP_ITEM_ICON_PADDING_INC (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-CTXPOPUP_CONTENT_PADDING*2);
2357                                         align: 0 0;
2358                                         color: 255 0 0 255;
2359                                         fixed: 1 1;
2360                                         visible: 0;
2361                                 }
2362                         }
2363                         part {
2364                                 name: "elm.text";
2365                                 type: TEXT;
2366                                 mouse_events: 0;
2367                                 scale: 1;
2368                                 description {
2369                                         state: "default" 0.0;
2370                                         min: (CTXPOPUP_TEXT_ITEM_HORIZONTAL_WIDTH_INC-CTXPOPUP_ITEM_ICON_PADDING_INC*2) (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-CTXPOPUP_CONTENT_PADDING*2);
2371                                         align: 0.5 0.5;
2372                                         rel1 {relative: 1.0 0.0; to: "left_padding"; }
2373                                         rel2 {relative: 0.0 1.0; to: "right_padding"; }
2374                                         color: CTXPOPUP_MAIN_TEXT_COLOR_INC;
2375                                         text {
2376                                                 font: "Tizen:style=Roman";
2377                                                 size: CTXPOPUP_MAIN_TEXT_SIZE_INC;
2378                                                 align: 0.5 0.5;
2379                                                 min: 1 1;
2380                                                 text_class: "list_item";
2381                                         }
2382                                 }
2383                                 description {
2384                                         state: "compress" 0.0;
2385                                         inherit: "default" 0.0;
2386                                         max: -1 -1;
2387                                         text {
2388                                                 min: 0 1;
2389                                         }
2390                                 }
2391                                 description {
2392                                         state: "clicked" 0.0;
2393                                         inherit: "default" 0.0;
2394                                         color: CTXPOPUP_MAIN_TEXT_PRESS_COLOR_INC;
2395                                 }
2396                                 description {
2397                                         state: "disabled" 0.0;
2398                                         inherit: "default" 0.0;
2399                                         color: CTXPOPUP_MAIN_TEXT_DIM_COLOR_INC;
2400                                 }
2401                                 description {
2402                                         state: "compress_disabled" 0.0;
2403                                         inherit: "compress" 0.0;
2404                                         color: CTXPOPUP_MAIN_TEXT_DIM_COLOR_INC;
2405                                 }
2406                         }
2407                         part {
2408                                 name: "right_padding";
2409                                 type: RECT;
2410                                 scale: 1;
2411                                 mouse_events: 0;
2412                                 description {
2413                                         state: "default" 0.0;
2414                                         min: CTXPOPUP_ITEM_ICON_PADDING_INC (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-CTXPOPUP_CONTENT_PADDING*2);
2415                                         max: CTXPOPUP_ITEM_ICON_PADDING_INC (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-CTXPOPUP_CONTENT_PADDING*2);
2416                                         fixed: 1 1;
2417                                         align: 1 1;
2418                                         color: 0 255 0 255;
2419                                         visible: 0;
2420                                 }
2421                         }
2422                         part {
2423                                 name: "over1";
2424                                 type: RECT;
2425                                 mouse_events: 1;
2426                                 repeat_events: 1;
2427                                 description {
2428                                         state: "default" 0.0;
2429                                         color: 0 0 0 0;
2430                                 }
2431                         }
2432                         part {
2433                                 name: "over2";
2434                                 type: RECT;
2435                                 mouse_events: 1;
2436                                 repeat_events: 1;
2437                                 dragable {
2438                                         x: 1 1 0;
2439                                         y: 0 0 0;
2440                                 }
2441                                 description {
2442                                         state: "default" 0.0;
2443                                         rel1.to:"bg";
2444                                         rel2.to:"bg";
2445                                         color: 0 0 0 0;
2446                                 }
2447                         }
2448                         part {
2449                                 name: "disclip";
2450                                 type: RECT;
2451                                 description {
2452                                         state: "default" 0.0;
2453                                         visible: 0;
2454                                 }
2455                                 description {
2456                                         state: "disabled" 0.0;
2457                                         visible: 1;
2458                                         color: CTXPOPUP_ITEM_DISABLED_COLOR;
2459                                 }
2460                         }
2461                 }
2462                 programs {
2463                         program {
2464                                 name: "item_unclick";
2465                                 signal: "mouse,clicked,1";
2466                                 source: "over1";
2467                                 action: SIGNAL_EMIT "elm,action,click" "";
2468                         }
2469                         program {
2470                                 name: "disable";
2471                                 signal: "elm,state,disabled";
2472                                 source: "elm";
2473                                 script {
2474                                         new st[31];
2475                                         new Float:vl;
2476                                         get_state(PART:"elm.text", st, 30, vl);
2477                                         if ((!strcmp(st, "compress")) || (!strcmp(st, "compress_disabled")))
2478                                                 set_state(PART:"elm.text", "compress_disabled", 0.0);
2479                                         else
2480                                                 set_state(PART:"elm.text", "disabled", 0.0);
2481
2482                                         set_state(PART:"disclip", "disabled", 0.0);
2483                                 }
2484                         }
2485                         program {
2486                                 name: "enable";
2487                                 signal: "elm,state,enabled";
2488                                 source: "elm";
2489                                 script {
2490                                         new st[31];
2491                                         new Float:vl;
2492                                         get_state(PART:"elm.text", st, 30, vl);
2493                                         if ((!strcmp(st, "compress")) || (!strcmp(st, "compress_disabled")))
2494                                                 set_state(PART:"elm.text", "compress", 0.0);
2495                                         else
2496                                                 set_state(PART:"elm.text", "default", 0.0);
2497
2498                                         set_state(PART:"disclip", "default", 0.0);
2499                                 }
2500                         }
2501                         program {
2502                                 name: "default";
2503                                 signal: "elm,state,default";
2504                                 source: "elm";
2505                                 script {
2506                                         set_state(PART:"separator1", "default", 0.0);
2507                                         set_state(PART:"separator2", "default", 0.0);
2508                                 }
2509                         }
2510                         program {
2511                                 name: "compress";
2512                                 signal: "elm,state,compress";
2513                                 source: "elm";
2514                                 script {
2515                                         new st[31];
2516                                         new Float:vl;
2517                                         get_state(PART:"disclip", st, 30, vl);
2518                                         if (!strcmp(st, "disabled"))
2519                                                 set_state(PART:"elm.text", "compress_disabled", 0.0);
2520                                         else
2521                                                 set_state(PART:"elm.text", "compress", 0.0);
2522                                 }
2523                         }
2524                         program {
2525                                 name: "separator";
2526                                 signal: "elm,state,separator";
2527                                 source: "elm";
2528                                 script {
2529                                         set_state(PART:"separator1", "visible", 0.0);
2530                                         set_state(PART:"separator2", "visible", 0.0);
2531                                 }
2532                         }
2533                         program {
2534                                 name: "item_click2";
2535                                 signal: "mouse,down,1";
2536                                 source: "over2";
2537                                 script {
2538                                         set_state(PART:"elm.text", "clicked", 0.0);
2539
2540                                         new st[31];
2541                                         new Float:vl;
2542                                         get_state(PART:"separator2", st, 30, vl);
2543                                         if (!strcmp(st, "default"))
2544                                                 set_state(PART:"bg", "clicked", 0.0);
2545                                         else
2546                                                 set_state(PART:"bg", "clicked_separator", 0.0);
2547                                 }
2548                         }
2549                         program {
2550                                 name: "drag";
2551                                 signal: "drag";
2552                                 source: "over2";
2553                                 script {
2554                                         new Float:dx, Float:dy;
2555                                         get_drag(PART:"over2", dx, dy);
2556                                         if (abs(dx) > 20)
2557                                                 {
2558                                                         set_drag(PART:"over2", 0.0, 0.0);
2559                                                         set_state(PART:"elm.text", "compress", 0.0);
2560                                                         set_state(PART:"bg", "default", 0.0);
2561                                                 }
2562                                         set_drag(PART:"over2", 0.0, 0.0);
2563                                 }
2564                         }
2565                         program {
2566                                 name: "item_unclick2";
2567                                 signal: "mouse,up,1";
2568                                 source: "over2";
2569                                 script {
2570                                         set_drag(PART:"over2", 0.0, 0.0);
2571                                         set_state(PART:"elm.text", "compress", 0.0);
2572                                         set_state(PART:"bg", "default", 0.0);
2573                                 }
2574                         }
2575                 }
2576         }
2577 ///////////////////////////////////////////////////////////////////////////////
2578         group {
2579                 name: "elm/ctxpopup/icon_style_item/default";
2580                 parts {
2581                         part {
2582                                 name: "event_blocker";
2583                                 type: RECT;
2584                                 mouse_events: 1;
2585                                 description {
2586                                         state: "default" 0.0;
2587                                         color: 0 0 0 0;
2588                                 }
2589                         }
2590                         part {
2591                                 name: "bg";
2592                                 scale: 1;
2593                                 mouse_events: 0;
2594                                 type: RECT;
2595                                 description {
2596                                         state: "default" 0.0;
2597                                         color: CTXPOPUP_BG_COLOR_INC;
2598                                         visible: 1;
2599                                         min: CTXPOPUP_ICON_ITEM_HORIZONTAL_WIDTH_INC (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-CTXPOPUP_CONTENT_PADDING*2);
2600                                         max: CTXPOPUP_ICON_ITEM_HORIZONTAL_WIDTH_INC (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-CTXPOPUP_CONTENT_PADDING*2);
2601                                 }
2602                                 description {
2603                                         state: "clicked" 0.0;
2604                                         color: CTXPOPUP_BG_PRESS_COLOR_INC;
2605                                         visible: 1;
2606                                 }
2607                                 description {
2608                                         state: "clicked_separator" 0.0;
2609                                         rel1 { relative: 1.0 0.0; to_x: "separator2"; }
2610                                         color: CTXPOPUP_BG_PRESS_COLOR_INC;
2611                                         visible: 1;
2612                                 }
2613                         }
2614                         part {
2615                                 name: "left_padding";
2616                                 scale: 1;
2617                                 description {
2618                                         min: ((CTXPOPUP_ICON_ITEM_HORIZONTAL_WIDTH_INC-CTXPOPUP_ICON_HORIZONTAL_WIDTH_INC)/2) (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-CTXPOPUP_CONTENT_PADDING*2);
2619                                         max: ((CTXPOPUP_ICON_ITEM_HORIZONTAL_WIDTH_INC-CTXPOPUP_ICON_HORIZONTAL_WIDTH_INC)/2) (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-CTXPOPUP_CONTENT_PADDING*2);
2620                                         visible: 0;
2621                                         align: 0 0;
2622                                         fixed: 1 1;
2623                                 }
2624                         }
2625                         part {
2626                                 name: "separator1";
2627                                 mouse_events: 0;
2628                                 type: RECT;
2629                                 scale: 1;
2630                                 description {
2631                                         state: "default" 0.0;
2632                                         color: CTXPOPUP_SEPARATOR_COLOR_INC;
2633                                         align: 0 0.5;
2634                                         min: CTXPOPUP_HORIZONTAL_SEPARATOR_MIN_SIZE_INC;
2635                                         max: CTXPOPUP_HORIZONTAL_SEPARATOR_MAX_SIZE_INC;
2636                                         visible: 0;
2637                                 }
2638                                 description {
2639                                         state: "visible" 0.0;
2640                                         inherit: "default" 0.0;
2641                                         visible: 1;
2642                                 }
2643                         }
2644                         part {
2645                                 name: "separator2";
2646                                 mouse_events: 0;
2647                                 type: RECT;
2648                                 scale: 1;
2649                                 description {
2650                                         state: "default" 0.0;
2651                                         color: CTXPOPUP_SEPARATOR2_COLOR_INC;
2652                                         rel1 { relative: 1.0 0.0; to_x: "separator1"; }
2653                                         align: 0 0.5;
2654                                         min: CTXPOPUP_HORIZONTAL_SEPARATOR_MIN_SIZE_INC;
2655                                         max: CTXPOPUP_HORIZONTAL_SEPARATOR_MAX_SIZE_INC;
2656                                         visible: 0;
2657                                 }
2658                                 description {
2659                                         state: "visible" 0.0;
2660                                         inherit: "default" 0.0;
2661                                         visible: 1;
2662                                 }
2663                         }
2664                         part {
2665                                 name: "elm.swallow.icon";
2666                                 type: SWALLOW;
2667                                 scale: 1;
2668                                 description {
2669                                         state: "default" 0.0;
2670                                         min: CTXPOPUP_ICON_HORIZONTAL_WIDTH_INC CTXPOPUP_ICON_HORIZONTAL_HEIGHT_INC;
2671                                         max: CTXPOPUP_ICON_HORIZONTAL_WIDTH_INC CTXPOPUP_ICON_HORIZONTAL_HEIGHT_INC;
2672                                         align: 0.5 0.5;
2673                                         aspect: 1.0 1.0;
2674                                         rel1 { relative: 1 0; to_x: "left_padding"; }
2675                                         rel2 { relative: 0 1; to_x: "right_padding"; }
2676                                 }
2677                         }
2678                         part {
2679                                 name: "right_padding";
2680                                 scale: 1;
2681                                 description {
2682                                         min: ((CTXPOPUP_ICON_ITEM_HORIZONTAL_WIDTH_INC-CTXPOPUP_ICON_HORIZONTAL_WIDTH_INC)/2) (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-CTXPOPUP_CONTENT_PADDING*2);
2683                                         max: ((CTXPOPUP_ICON_ITEM_HORIZONTAL_WIDTH_INC-CTXPOPUP_ICON_HORIZONTAL_WIDTH_INC)/2) (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-CTXPOPUP_CONTENT_PADDING*2);
2684                                         visible: 0;
2685                                         align: 1 1;
2686                                         fixed: 1 1;
2687                                 }
2688                         }
2689                         part {
2690                                 name: "over1";
2691                                 type: RECT;
2692                                 mouse_events: 1;
2693                                 repeat_events: 1;
2694                                 description {
2695                                         state: "default" 0.0;
2696                                         color: 0 0 0 0;
2697                                 }
2698                         }
2699                         part {
2700                                 name: "over2";
2701                                 type: RECT;
2702                                 mouse_events: 1;
2703                                 repeat_events: 1;
2704                                 dragable {
2705                                         x: 1 1 0;
2706                                         y: 0 0 0;
2707                                 }
2708                                 description {
2709                                         state: "default" 0.0;
2710                                         rel1.to:"bg";
2711                                         rel2.to:"bg";
2712                                         color: 0 0 0 0;
2713                                 }
2714                         }
2715                         part {
2716                                 name: "disclip";
2717                                 type: RECT;
2718                                 description {
2719                                         state: "default" 0.0;
2720                                         visible: 0;
2721                                 }
2722                                 description {
2723                                         state: "disabled" 0.0;
2724                                         visible: 1;
2725                                         color: CTXPOPUP_ITEM_DISABLED_COLOR;
2726                                 }
2727                         }
2728                 }
2729                 programs {
2730                         program {
2731                                 name: "default";
2732                                 signal: "elm,state,default";
2733                                 source: "elm";
2734                                 script {
2735                                         set_state(PART:"separator1", "default", 0.0);
2736                                         set_state(PART:"separator2", "default", 0.0);
2737                                 }
2738                         }
2739                         program {
2740                                 name: "separator";
2741                                 signal: "elm,state,separator";
2742                                 source: "elm";
2743                                 script {
2744                                         set_state(PART:"separator1", "visible", 0.0);
2745                                         set_state(PART:"separator2", "visible", 0.0);
2746                                 }
2747                         }
2748                         program {
2749                                 name: "item_unclick";
2750                                 signal: "mouse,clicked,1";
2751                                 source: "over1";
2752                                 action: SIGNAL_EMIT "elm,action,click" "";
2753                         }
2754                         program {
2755                                 name: "disable";
2756                                 signal: "elm,state,disabled";
2757                                 source: "elm";
2758                                 action: STATE_SET "disabled" 0.0;
2759                                 target: "disclip";
2760                         }
2761                         program {
2762                                 name: "enable";
2763                                 signal: "elm,state,enabled";
2764                                 source: "elm";
2765                                 action: STATE_SET "default" 0.0;
2766                                 target: "disclip";
2767                         }
2768                         program {
2769                                 name: "item_click2";
2770                                 signal: "mouse,down,1";
2771                                 source: "over2";
2772                                 script {
2773                                         new st[31];
2774                                         new Float:vl;
2775                                         get_state(PART:"separator2", st, 30, vl);
2776                                         if (!strcmp(st, "default"))
2777                                                 set_state(PART:"bg", "clicked", 0.0);
2778                                         else
2779                                                 set_state(PART:"bg", "clicked_separator", 0.0);
2780                                 }
2781                         }
2782                         program {
2783                                 name: "drag";
2784                                 signal: "drag";
2785                                 source: "over2";
2786                                 script {
2787                                         new Float:dx, Float:dy;
2788                                         get_drag(PART:"over2", dx, dy);
2789                                         if (abs(dx) > 20)
2790                                                 {
2791                                                         set_drag(PART:"over2", 0.0, 0.0);
2792                                                         set_state(PART:"bg", "default", 0.0);
2793                                                 }
2794                                         set_drag(PART:"over2", 0.0, 0.0);
2795                                 }
2796                         }
2797                         program {
2798                                 name: "item_unclick2";
2799                                 signal: "mouse,up,1";
2800                                 source: "over2";
2801                                 script {
2802                                         set_drag(PART:"over2", 0.0, 0.0);
2803                                         set_state(PART:"bg", "default", 0.0);
2804                                 }
2805                         }
2806                 }
2807         }
2808 ///////////////////////////////////////////////////////////////////////////////
2809         group {
2810                 name: "elm/ctxpopup/icon_text_style_item/default";
2811                 parts {
2812                         part {
2813                                 name: "event_blocker";
2814                                 type: RECT;
2815                                 mouse_events: 1;
2816                                 description {
2817                                         state: "default" 0.0;
2818                                         color: 0 0 0 0;
2819                                 }
2820                         }
2821                         part {
2822                                 name: "bg";
2823                                 mouse_events: 0;
2824                                 type: RECT;
2825                                 description {
2826                                         state: "default" 0.0;
2827                                         color: CTXPOPUP_BG_COLOR_INC;
2828                                         visible: 1;
2829                                 }
2830                                 description {
2831                                         state: "clicked" 0.0;
2832                                         color: CTXPOPUP_BG_PRESS_COLOR_INC;
2833                                         visible: 1;
2834                                 }
2835                                 description {
2836                                         state: "clicked_separator" 0.0;
2837                                         rel1 { relative: 0.0 1.0; to_y: "separator2"; }
2838                                         color: CTXPOPUP_BG_PRESS_COLOR_INC;
2839                                         visible: 1;
2840                                 }
2841                         }
2842                         part {
2843                                 name:"separator_left_padding";
2844                                 type:RECT;
2845                                 scale: 1;
2846                                 mouse_events: 0;
2847                                 description {
2848                                         min: (CTXPOPUP_SEPARATOR_PADDING_INC-CTXPOPUP_CONTENT_PADDING) 0;
2849                                         max: (CTXPOPUP_SEPARATOR_PADDING_INC-CTXPOPUP_CONTENT_PADDING) 0;
2850                                         align: 0 0;
2851                                         fixed: 1 1;
2852                                         visible: 0;
2853                                 }
2854                         }
2855                         part {
2856                                 name:"separator_right_padding";
2857                                 type:RECT;
2858                                 scale: 1;
2859                                 mouse_events: 0;
2860                                 description {
2861                                         min: (CTXPOPUP_SEPARATOR_PADDING_INC-CTXPOPUP_CONTENT_PADDING) 0;
2862                                         max: (CTXPOPUP_SEPARATOR_PADDING_INC-CTXPOPUP_CONTENT_PADDING) 0;
2863                                         align: 1 1;
2864                                         fixed: 1 1;
2865                                         visible: 0;
2866                                 }
2867                         }
2868                         part {
2869                                 name: "icon_left_padding";
2870                                 scale: 1;
2871                                 mouse_events: 0;
2872                                 description {
2873                                         state: "default" 0.0;
2874                                         min: (CTXPOPUP_ITEM_ICON_PADDING_INC-CTXPOPUP_CONTENT_PADDING) CTXPOPUP_ITEM_HEIGHT_MIN_INC;
2875                                         max: (CTXPOPUP_ITEM_ICON_PADDING_INC-CTXPOPUP_CONTENT_PADDING) CTXPOPUP_ITEM_HEIGHT_MAX_INC;
2876                                         align: 0 0;
2877                                         fixed: 1 1;
2878                                         visible: 0;
2879                                 }
2880                         }
2881                         part {
2882                                 name: "separator1";
2883                                 mouse_events: 0;
2884                                 type: RECT;
2885                                 scale: 1;
2886                                 description {
2887                                         state: "default" 0.0;
2888                                         color: CTXPOPUP_SEPARATOR_COLOR_INC;
2889                                         rel1 { relative: 1.0 0.0; to_x: "separator_left_padding";}
2890                                         rel2 { relative: 0.0 1.0; to_x: "separator_right_padding"; offset: 0 0; }
2891                                         align: 0.5 0;
2892                                         min: 0 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
2893                                         max: 999999 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
2894                                         visible: 0;
2895                                 }
2896                                 description {
2897                                         state: "visible" 0.0;
2898                                         inherit: "default" 0.0;
2899                                         visible: 1;
2900                                 }
2901                         }
2902                         part {
2903                                 name: "separator2";
2904                                 mouse_events: 0;
2905                                 type: RECT;
2906                                 scale: 1;
2907                                 description {
2908                                         state: "default" 0.0;
2909                                         color: CTXPOPUP_SEPARATOR2_COLOR_INC;
2910                                         rel1 { relative: 0.0 1.0; to: "separator1";}
2911                                         rel2 { relative: 1.0 1.0; to: "separator1"; offset: 0 0; }
2912                                         align: 0.5 0;
2913                                         fixed: 0 1;
2914                                         min: 0 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
2915                                         max: 999999 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
2916                                         visible: 0;
2917                                 }
2918                                 description {
2919                                         state: "visible" 0.0;
2920                                         inherit: "default" 0.0;
2921                                         visible: 1;
2922                                 }
2923                         }
2924                         part {
2925                                 name: "elm.swallow.icon";
2926                                 type: SWALLOW;
2927                                 scale: 1;
2928                                 description {
2929                                         state: "default" 0.0;
2930                                         min: CTXPOPUP_ICON_WIDTH_INC CTXPOPUP_ICON_HEIGHT_INC;
2931                                         max: CTXPOPUP_ICON_WIDTH_INC CTXPOPUP_ICON_HEIGHT_INC;
2932                                         align: 0 0.5;
2933                                         aspect: 1.0 1.0;
2934                                         rel1 { to:"icon_left_padding"; relative: 1 0; }
2935                                 }
2936                         }
2937                         part {
2938                                 name: "icon_right_padding";
2939                                 scale: 1;
2940                                 mouse_events: 0;
2941                                 description {
2942                                         state: "default" 0.0;
2943                                         min: CTXPOPUP_ITEM_ICON_PADDING_INC CTXPOPUP_ITEM_HEIGHT_MIN_INC;
2944                                         max: CTXPOPUP_ITEM_ICON_PADDING_INC CTXPOPUP_ITEM_HEIGHT_MAX_INC;
2945                                         align: 0 0.5;
2946                                         fixed: 1 1;
2947                                         visible: 0;
2948                                         rel1 { to:"elm.swallow.icon"; relative: 1 1; }
2949                                 }
2950                         }
2951                         part {
2952                                 name: "elm.text";
2953                                 type:  TEXT;
2954                                 mouse_events:  0;
2955                                 scale: 1;
2956                                 description {
2957                                         state: "default" 0.0;
2958                                         min: 1 CTXPOPUP_ITEM_HEIGHT_MIN_INC;
2959                                         align: 0.5 0.5;
2960                                         rel1 {relative: 1.0 0.0; to_x: "icon_right_padding"; to_y: "bg";}
2961                                         rel2 {relative: 0.0 1.0; to_x: "text_right_padding"; to_y: "bg";}
2962                                         color: CTXPOPUP_LIST_MAIN_TEXT_COLOR_INC;
2963                                         text {
2964                                                 font: "Tizen:style=Roman";
2965                                                 size: CTXPOPUP_LIST_MAIN_TEXT_SIZE_INC;
2966                                                 align: 0.0 0.5;
2967                                                 min: 1 1;
2968                                                 text_class: "list_item";
2969                                         }
2970                                 }
2971                                 description {
2972                                         state: "compress" 0.0;
2973                                         inherit: "default" 0.0;
2974                                         max: -1 -1;
2975                                         text {
2976                                                 min: 0 1;
2977                                         }
2978                                 }
2979                                 description {
2980                                         state: "clicked" 0.0;
2981                                         inherit: "default" 0.0;
2982                                         color: CTXPOPUP_LIST_MAIN_TEXT_PRESS_COLOR_INC;
2983                                 }
2984                                 description {
2985                                         state: "disabled" 0.0;
2986                                         inherit: "default" 0.0;
2987                                         color: CTXPOPUP_LIST_MAIN_TEXT_DIM_COLOR_INC;
2988                                 }
2989                                 description {
2990                                         state: "compress_disabled" 0.0;
2991                                         inherit: "compress" 0.0;
2992                                         color: CTXPOPUP_LIST_MAIN_TEXT_DIM_COLOR_INC;
2993                                 }
2994                         }
2995                         part {
2996                                 name: "text_right_padding";
2997                                 type: RECT;
2998                                 scale: 1;
2999                                 mouse_events: 0;
3000                                 description {
3001                                         state: "default" 0.0;
3002                                         visible: 0;
3003                                         min: (CTXPOPUP_ITEM_TEXT_PADDING_INC-CTXPOPUP_CONTENT_PADDING) CTXPOPUP_ITEM_HEIGHT_MIN_INC;
3004                                         max: (CTXPOPUP_ITEM_TEXT_PADDING_INC-CTXPOPUP_CONTENT_PADDING) CTXPOPUP_ITEM_HEIGHT_MAX_INC;
3005                                         fixed: 1 0;
3006                                         align: 1.0 0.5;
3007                                 }
3008                         }
3009                         part {
3010                                 name: "over1";
3011                                 type: RECT;
3012                                 mouse_events: 1;
3013                                 repeat_events: 1;
3014                                 description {
3015                                         state: "default" 0.0;
3016                                         color: 0 0 0 0;
3017                                 }
3018                         }
3019                         part {
3020                                 name: "over2";
3021                                 type: RECT;
3022                                 mouse_events: 1;
3023                                 repeat_events: 1;
3024                                 dragable {
3025                                         x: 0 0 0;
3026                                         y: 1 1 0;
3027                                 }
3028                                 description {
3029                                         state: "default" 0.0;
3030                                         rel1.to:"bg";
3031                                         rel2.to:"bg";
3032                                         color: 0 0 0 0;
3033                                 }
3034                         }
3035                         part {
3036                                 name: "disclip";
3037                                 type: RECT;
3038                                 description {
3039                                         state: "default" 0.0;
3040                                         visible: 0;
3041                                 }
3042                                 description {
3043                                         state: "disabled" 0.0;
3044                                         visible: 1;
3045                                         color: CTXPOPUP_ITEM_DISABLED_COLOR;
3046                                 }
3047                         }
3048                 }
3049                 programs {
3050                         program {
3051                                 name: "item_unclick";
3052                                 signal: "mouse,clicked,1";
3053                                 source: "over1";
3054                                 action: SIGNAL_EMIT "elm,action,click" "";
3055                         }
3056                         program {
3057                                 name: "disable";
3058                                 signal: "elm,state,disabled";
3059                                 source: "elm";
3060                                 script {
3061                                         new st[31];
3062                                         new Float:vl;
3063                                         get_state(PART:"elm.text", st, 30, vl);
3064                                         if ((!strcmp(st, "compress")) || (!strcmp(st, "compress_disabled")))
3065                                                 set_state(PART:"elm.text", "compress_disabled", 0.0);
3066                                         else
3067                                                 set_state(PART:"elm.text", "disabled", 0.0);
3068
3069                                         set_state(PART:"disclip", "disabled", 0.0);
3070                                 }
3071                         }
3072                         program {
3073                                 name: "enable";
3074                                 signal: "elm,state,enabled";
3075                                 source: "elm";
3076                                 script {
3077                                         new st[31];
3078                                         new Float:vl;
3079                                         get_state(PART:"elm.text", st, 30, vl);
3080                                         if ((!strcmp(st, "compress")) || (!strcmp(st, "compress_disabled")))
3081                                                 set_state(PART:"elm.text", "compress", 0.0);
3082                                         else
3083                                                 set_state(PART:"elm.text", "default", 0.0);
3084
3085                                         set_state(PART:"disclip", "default", 0.0);
3086                                 }
3087                         }
3088                         program {
3089                                 name: "default";
3090                                 signal: "elm,state,default";
3091                                 source: "elm";
3092                                 script {
3093                                         set_state(PART:"separator1", "default", 0.0);
3094                                         set_state(PART:"separator2", "default", 0.0);
3095                                 }
3096                         }
3097                         program {
3098                                 name: "compress";
3099                                 signal: "elm,state,compress";
3100                                 source: "elm";
3101                                 script {
3102                                         new st[31];
3103                                         new Float:vl;
3104                                         get_state(PART:"disclip", st, 30, vl);
3105                                         if (!strcmp(st, "disabled"))
3106                                                 set_state(PART:"elm.text", "compress_disabled", 0.0);
3107                                         else
3108                                                 set_state(PART:"elm.text", "compress", 0.0);
3109                                 }
3110                         }
3111                         program {
3112                                 name: "separator";
3113                                 signal: "elm,state,separator";
3114                                 source: "elm";
3115                                 script {
3116                                         set_state(PART:"separator1", "visible", 0.0);
3117                                         set_state(PART:"separator2", "visible", 0.0);
3118                                 }
3119                         }
3120                         program {
3121                                 name: "item_click2";
3122                                 signal: "mouse,down,1";
3123                                 source: "over2";
3124                                 script {
3125                                         set_state(PART:"elm.text", "clicked", 0.0);
3126
3127                                         new st[31];
3128                                         new Float:vl;
3129                                         get_state(PART:"separator2", st, 30, vl);
3130                                         if (!strcmp(st, "default"))
3131                                                 set_state(PART:"bg", "clicked", 0.0);
3132                                         else
3133                                                 set_state(PART:"bg", "clicked_separator", 0.0);
3134                                 }
3135                         }
3136                         program {
3137                                 name: "drag";
3138                                 signal: "drag";
3139                                 source: "over2";
3140                                 script {
3141                                         new Float:dx, Float:dy;
3142                                         get_drag(PART:"over2", dx, dy);
3143                                         if (abs(dy) > 20)
3144                                                 {
3145                                                         set_drag(PART:"over2", 0.0, 0.0);
3146                                                         set_state(PART:"elm.text", "compress", 0.0);
3147                                                         set_state(PART:"bg", "default", 0.0);
3148                                                 }
3149                                         set_drag(PART:"over2", 0.0, 0.0);
3150                                 }
3151                         }
3152                         program {
3153                                 name: "item_unclick2";
3154                                 signal: "mouse,up,1";
3155                                 source: "over2";
3156                                 script {
3157                                         set_drag(PART:"over2", 0.0, 0.0);
3158                                         set_state(PART:"elm.text", "compress", 0.0);
3159                                         set_state(PART:"bg", "default", 0.0);
3160                                 }
3161                         }
3162                 }
3163         }
3164
3165 ///////////////////////////////////////////////////////////////////////////////
3166         group {
3167                 name: "elm/ctxpopup/base/more/default";
3168                 images {
3169                         image: "00_popup_bubble_bg.png" COMP;
3170                         image: "00_popup_bubble_mask.png" COMP;
3171                 }
3172                 parts {
3173                         part {
3174                                 name:"frame_shadow_left_top_padding";
3175                                 type:RECT;
3176                                 scale: 1;
3177                                 mouse_events: 0;
3178                                 description {
3179                                         state: "default" 0.0;
3180                                         min: CTXPOPUP_SHADOW_LEFT_PADDING CTXPOPUP_SHADOW_TOP_PADDING;
3181                                         max: CTXPOPUP_SHADOW_LEFT_PADDING CTXPOPUP_SHADOW_TOP_PADDING;
3182                                         rel2 { relative: 0 0; }
3183                                         align: 0 0;
3184                                         fixed: 1 1;
3185                                         visible: 0;
3186                                 }
3187                         }
3188                         part {
3189                                 name:"frame_shadow_right_bottom_padding";
3190                                 type:RECT;
3191                                 scale: 1;
3192                                 mouse_events: 0;
3193                                 description {
3194                                         state: "default" 0.0;
3195                                         min: CTXPOPUP_SHADOW_RIGHT_PADDING CTXPOPUP_SHADOW_BOTTOM_PADDING;
3196                                         max: CTXPOPUP_SHADOW_RIGHT_PADDING CTXPOPUP_SHADOW_BOTTOM_PADDING;
3197                                         rel1{relative: 1 1;}
3198                                         align: 1 1;
3199                                         fixed: 1 1;
3200                                         visible: 0;
3201                                 }
3202                         }
3203                         part {
3204                                 name: "frame_bg";
3205                                 type: IMAGE;
3206                                 scale: 1;
3207                                 mouse_events: 0;
3208                                 description {
3209                                         state: "default" 0.0;
3210                                         rel1 {to:"frame_shadow_left_top_padding";}
3211                                         rel2 {to:"frame_shadow_right_bottom_padding";}
3212                                         min: CTXPOPUP_MORE_WIDTH_INC 0;
3213                                         //max: CTXPOPUP_MORE_WIDTH_INC 806;
3214                                         image {
3215                                                 normal: "00_popup_bubble_bg.png";
3216                                                 border: CTXPOPUP_BUBBLE_BG_IMAGE_BORDER;
3217                                                 border_scale: 1;
3218                                         }
3219                                 }
3220                         }
3221                         part {
3222                                 name: "ctxpopup_frame_left_top";
3223                                 type: RECT;
3224                                 scale: 1;
3225                                 description {
3226                                         state: "default" 0.0;
3227                                         visible: 0;
3228                                         align: 0 0;
3229                                         fixed: 1 1;
3230                                         min: CTXPOPUP_FRAME_CORNER_ARROW_PADDING CTXPOPUP_FRAME_CORNER_ARROW_PADDING;
3231                                         max: CTXPOPUP_FRAME_CORNER_ARROW_PADDING CTXPOPUP_FRAME_CORNER_ARROW_PADDING;
3232                                         rel1 {relative: 0 0; to: "content_left_top_padding";}
3233                                 }
3234                         }
3235                         part {
3236                                 name: "ctxpopup_frame_right_bottom";
3237                                 type: RECT;
3238                                 scale: 1;
3239                                 description {
3240                                         state: "default" 0.0;
3241                                         visible: 0;
3242                                         align: 1 1;
3243                                         fixed: 1 1;
3244                                         min: CTXPOPUP_FRAME_CORNER_ARROW_PADDING CTXPOPUP_FRAME_CORNER_ARROW_PADDING;
3245                                         max: CTXPOPUP_FRAME_CORNER_ARROW_PADDING CTXPOPUP_FRAME_CORNER_ARROW_PADDING;
3246                                         rel2 {relative: 1 1; to: "content_right_bottom_padding";}
3247                                 }
3248                         }
3249                         part {
3250                                 name:"content_left_top_padding";
3251                                 type:RECT;
3252                                 scale: 1;
3253                                 mouse_events: 0;
3254                                 description {
3255                                         state: "default" 0.0;
3256                                         min: CTXPOPUP_CONTENT_PADDING CTXPOPUP_CONTENT_PADDING;
3257                                         max: CTXPOPUP_CONTENT_PADDING CTXPOPUP_CONTENT_PADDING;
3258                                         rel1 {to:"frame_shadow_left_top_padding";  relative: 1.0 1.0;}
3259                                         align: 0 0;
3260                                         fixed: 1 1;
3261                                         visible: 0;
3262                                 }
3263                         }
3264                         part {
3265                                 name:"content_right_bottom_padding";
3266                                 type:RECT;
3267                                 scale: 1;
3268                                 mouse_events: 0;
3269                                 description {
3270                                         state: "default" 0.0;
3271                                         min: CTXPOPUP_CONTENT_PADDING CTXPOPUP_CONTENT_PADDING;
3272                                         max: CTXPOPUP_CONTENT_PADDING CTXPOPUP_CONTENT_PADDING;
3273                                         rel2 {to:"frame_shadow_right_bottom_padding";  relative: 0.0 0.0;}
3274                                         align: 1 1;
3275                                         fixed: 1 1;
3276                                         visible: 0;
3277                                 }
3278                         }
3279                         part {
3280                                 name: "elm.swallow.content";
3281                                 type: SWALLOW;
3282                                 description {
3283                                         state: "default" 0.0;
3284                                         align: 0 0;
3285                                         rel1 {to:"content_left_top_padding";  relative: 1.0 1.0;}
3286                                         rel2 {to:"content_right_bottom_padding";  relative: 0.0 0.0;}
3287                                 }
3288                         }
3289                         part {
3290                                 name: "mask";
3291                                 type: IMAGE;
3292                                 scale: 1;
3293                                 description {
3294                                         state: "default" 0.0;
3295                                         visible: 0;
3296                                         rel1 {to:"elm.swallow.content";}
3297                                         rel2 {to:"elm.swallow.content";}
3298                                         image {
3299                                                 normal: "00_popup_bubble_mask.png";
3300                                                 border: CTXPOPUP_BUBBLE_MASK_IMAGE_BORDER;
3301                                                 border_scale: 1;
3302                                         }
3303                                 }
3304                                 description {
3305                                         state: "visible" 0.0;
3306                                         inherit: "default" 0.0;
3307                                         visible: 1;
3308                                         rel1 {to:"elm.swallow.content";}
3309                                         rel2 {to:"elm.swallow.content";}
3310                                 }
3311                         }
3312                 }
3313                 programs {
3314                         program {
3315                                 name: "show";
3316                                 signal: "mouse,down,1";
3317                                 source: "elm.swallow.content";
3318                                 action: STATE_SET "visible" 0.0;
3319                                 target: "mask";
3320                         }
3321                         program {
3322                                 name: "hide";
3323                                 signal: "mouse,up,1";
3324                                 source: "elm.swallow.content";
3325                                 action: STATE_SET "default" 0.0;
3326                                 target: "mask";
3327                         }
3328                 }
3329         }
3330 ///////////////////////////////////////////////////////////////////////////////
3331         group {
3332                 name: "elm/ctxpopup/icon_text_style_item/more/default";
3333                 parts {
3334                         part {
3335                                 name: "event_blocker";
3336                                 type: RECT;
3337                                 mouse_events: 1;
3338                                 description {
3339                                         state: "default" 0.0;
3340                                         color: 0 0 0 0;
3341                                 }
3342                         }
3343                         part {
3344                                 name: "bg";
3345                                 mouse_events: 0;
3346                                 type: RECT;
3347                                 scale: 1;
3348                                 description {
3349                                         state: "default" 0.0;
3350                                         color: CTXPOPUP_BG_COLOR_INC;
3351                                         visible: 1;
3352                                         min: (CTXPOPUP_MORE_WIDTH_INC-CTXPOPUP_SHADOW_LEFT_PADDING-CTXPOPUP_SHADOW_RIGHT_PADDING-CTXPOPUP_CONTENT_PADDING*2) 1;
3353                                         max: (CTXPOPUP_MORE_WIDTH_INC-CTXPOPUP_SHADOW_LEFT_PADDING-CTXPOPUP_SHADOW_RIGHT_PADDING-CTXPOPUP_CONTENT_PADDING*2) CTXPOPUP_MORE_ITEM_HEIGHT_MAX_INC;
3354                                 }
3355                                 description {
3356                                         state: "clicked" 0.0;
3357                                         color: CTXPOPUP_BG_PRESS_COLOR_INC;
3358                                         visible: 1;
3359                                 }
3360                                 description {
3361                                         state: "clicked_separator" 0.0;
3362                                         rel1 { relative: 0.0 1.0; to_y: "separator2"; }
3363                                         color: CTXPOPUP_BG_PRESS_COLOR_INC;
3364                                         visible: 1;
3365                                 }
3366                         }
3367                         part {
3368                                 name:"separator_left_padding";
3369                                 type:RECT;
3370                                 scale: 1;
3371                                 mouse_events: 0;
3372                                 description {
3373                                         min: (CTXPOPUP_MORE_SEPARATOR_PADDING_INC-CTXPOPUP_CONTENT_PADDING) 0;
3374                                         max: (CTXPOPUP_MORE_SEPARATOR_PADDING_INC-CTXPOPUP_CONTENT_PADDING) 0;
3375                                         align: 0 0;
3376                                         fixed: 1 1;
3377                                         visible: 0;
3378                                 }
3379                         }
3380                         part {
3381                                 name:"separator_right_padding";
3382                                 type:RECT;
3383                                 scale: 1;
3384                                 mouse_events: 0;
3385                                 description {
3386                                         min: (CTXPOPUP_MORE_SEPARATOR_PADDING_INC-CTXPOPUP_CONTENT_PADDING) 0;
3387                                         max: (CTXPOPUP_MORE_SEPARATOR_PADDING_INC-CTXPOPUP_CONTENT_PADDING) 0;
3388                                         align: 1 1;
3389                                         fixed: 1 1;
3390                                         visible: 0;
3391                                 }
3392                         }
3393                         part {
3394                                 name: "icon_left_padding";
3395                                 scale: 1;
3396                                 mouse_events: 0;
3397                                 description {
3398                                         state: "default" 0.0;
3399                                         min: (CTXPOPUP_MORE_ITEM_PADDING_INC-CTXPOPUP_CONTENT_PADDING) CTXPOPUP_MORE_ITEM_HEIGHT_MIN_INC;
3400                                         max: (CTXPOPUP_MORE_ITEM_PADDING_INC-CTXPOPUP_CONTENT_PADDING) CTXPOPUP_MORE_ITEM_HEIGHT_MAX_INC;
3401                                         align: 0 0;
3402                                         fixed: 1 1;
3403                                         visible: 0;
3404                                 }
3405                         }
3406                         part {
3407                                 name: "separator1";
3408                                 mouse_events: 0;
3409                                 type: RECT;
3410                                 scale: 1;
3411                                 description {
3412                                         state: "default" 0.0;
3413                                         color: CTXPOPUP_SEPARATOR_COLOR_INC;
3414                                         rel1 { relative: 1.0 0.0; to_x: "separator_left_padding";}
3415                                         rel2 { relative: 0.0 1.0; to_x: "separator_right_padding"; offset: 0 0; }
3416                                         align: 0.5 0;
3417                                         fixed: 0 1;
3418                                         min: 0 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
3419                                         max: 999999 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
3420                                         visible: 0;
3421                                 }
3422                                 description {
3423                                         state: "visible" 0.0;
3424                                         inherit: "default" 0.0;
3425                                         visible: 1;
3426                                 }
3427                         }
3428                         part {
3429                                 name: "separator2";
3430                                 mouse_events: 0;
3431                                 type: RECT;
3432                                 scale: 1;
3433                                 description {
3434                                         state: "default" 0.0;
3435                                         color: CTXPOPUP_SEPARATOR2_COLOR_INC;
3436                                         rel1 { relative: 0.0 1.0; to: "separator1"; }
3437                                         rel2.to: "separator1";
3438                                         rel2.offset: 0 0;
3439                                         align: 0.5 0;
3440                                         fixed: 0 1;
3441                                         min: 0 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
3442                                         max: 999999 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
3443                                         visible: 0;
3444                                 }
3445                                 description {
3446                                         state: "visible" 0.0;
3447                                         inherit: "default" 0.0;
3448                                         visible: 1;
3449                                 }
3450                         }
3451                         part {
3452                                 name: "elm.swallow.icon";
3453                                 type: SWALLOW;
3454                                 scale: 1;
3455                                 description {
3456                                         state: "default" 0.0;
3457                                         min: CTXPOPUP_MORE_ICON_WIDTH_INC CTXPOPUP_MORE_ICON_HEIGHT_INC;
3458                                         max: CTXPOPUP_MORE_ICON_WIDTH_INC CTXPOPUP_MORE_ICON_HEIGHT_INC;
3459                                         align: 0 0.5;
3460                                         aspect: 1.0 1.0;
3461                                         rel1 { to:"icon_left_padding"; relative: 1 0; }
3462                                 }
3463                         }
3464                         part {
3465                                 name: "icon_right_padding";
3466                                 scale: 1;
3467                                 mouse_events: 0;
3468                                 description {
3469                                         state: "default" 0.0;
3470                                         min: CTXPOPUP_MORE_ITEM_PADDING_INC CTXPOPUP_MORE_ITEM_HEIGHT_MIN_INC;
3471                                         max: CTXPOPUP_MORE_ITEM_PADDING_INC CTXPOPUP_MORE_ITEM_HEIGHT_MAX_INC;
3472                                         align: 0 0.5;
3473                                         fixed: 1 1;
3474                                         visible: 0;
3475                                         rel1 { to:"elm.swallow.icon"; relative: 1 1; }
3476                                 }
3477                         }
3478                         part {
3479                                 name: "elm.text";
3480                                 type:  TEXT;
3481                                 mouse_events:  0;
3482                                 scale: 1;
3483                                 description {
3484                                         state: "default" 0.0;
3485                                         min: 1 CTXPOPUP_MORE_ITEM_HEIGHT_MIN_INC;
3486                                         align: 0.5 0.5;
3487                                         rel1 {relative: 1.0 0.0; to_x: "icon_right_padding"; to_y: "bg";}
3488                                         rel2 {relative: 0.0 1.0; to_x: "text_right_padding"; to_y: "bg";}
3489                                         color: CTXPOPUP_LIST_MAIN_TEXT_COLOR_INC;
3490                                         text {
3491                                                 font: "Tizen:style=Roman";
3492                                                 size: CTXPOPUP_MORE_ITEM_TEXT_SIZE_INC;
3493                                                 align: 0.0 0.5;
3494                                                 min: 1 1;
3495                                                 text_class: "list_item";
3496                                         }
3497                                 }
3498                                 description {
3499                                         state: "compress" 0.0;
3500                                         inherit: "default" 0.0;
3501                                         max: -1 -1;
3502                                         text {
3503                                                 min: 0 1;
3504                                         }
3505                                 }
3506                                 description {
3507                                         state: "clicked" 0.0;
3508                                         inherit: "default" 0.0;
3509                                         color: CTXPOPUP_LIST_MAIN_TEXT_PRESS_COLOR_INC;
3510                                 }
3511                                 description {
3512                                         state: "disabled" 0.0;
3513                                         inherit: "default" 0.0;
3514                                         color: CTXPOPUP_LIST_MAIN_TEXT_DIM_COLOR_INC;
3515                                 }
3516                                 description {
3517                                         state: "compress_disabled" 0.0;
3518                                         inherit: "compress" 0.0;
3519                                         color: CTXPOPUP_LIST_MAIN_TEXT_DIM_COLOR_INC;
3520                                 }
3521                         }
3522                         part {
3523                                 name: "text_right_padding";
3524                                 type: RECT;
3525                                 scale: 1;
3526                                 mouse_events: 0;
3527                                 description {
3528                                         state: "default" 0.0;
3529                                         visible: 0;
3530                                         min: (CTXPOPUP_MORE_SEPARATOR_PADDING_INC-CTXPOPUP_CONTENT_PADDING) CTXPOPUP_MORE_ITEM_HEIGHT_MIN_INC;
3531                                         max: (CTXPOPUP_MORE_SEPARATOR_PADDING_INC-CTXPOPUP_CONTENT_PADDING) CTXPOPUP_MORE_ITEM_HEIGHT_MAX_INC;
3532                                         fixed: 1 0;
3533                                         align: 1.0 0.5;
3534                                 }
3535                         }
3536                         part {
3537                                 name: "over1";
3538                                 type: RECT;
3539                                 mouse_events: 1;
3540                                 repeat_events: 1;
3541                                 description {
3542                                         state: "default" 0.0;
3543                                         color: 0 0 0 0;
3544                                 }
3545                         }
3546                         part {
3547                                 name: "over2";
3548                                 type: RECT;
3549                                 mouse_events: 1;
3550                                 repeat_events: 1;
3551                                 dragable {
3552                                         x: 0 0 0;
3553                                         y: 1 1 0;
3554                                 }
3555                                 description {
3556                                         state: "default" 0.0;
3557                                         rel1.to:"bg";
3558                                         rel2.to:"bg";
3559                                         color: 0 0 0 0;
3560                                 }
3561                         }
3562                         part {
3563                                 name: "disclip";
3564                                 type: RECT;
3565                                 description {
3566                                         state: "default" 0.0;
3567                                         visible: 0;
3568                                 }
3569                                 description {
3570                                         state: "disabled" 0.0;
3571                                         visible: 1;
3572                                         color: CTXPOPUP_ITEM_DISABLED_COLOR;
3573                                 }
3574                         }
3575                 }
3576                 programs {
3577                         program {
3578                                 name: "item_unclick";
3579                                 signal: "mouse,clicked,1";
3580                                 source: "over1";
3581                                 action: SIGNAL_EMIT "elm,action,click" "";
3582                         }
3583                         program {
3584                                 name: "disable";
3585                                 signal: "elm,state,disabled";
3586                                 source: "elm";
3587                                 script {
3588                                         new st[31];
3589                                         new Float:vl;
3590                                         get_state(PART:"elm.text", st, 30, vl);
3591                                         if ((!strcmp(st, "compress")) || (!strcmp(st, "compress_disabled")))
3592                                                 set_state(PART:"elm.text", "compress_disabled", 0.0);
3593                                         else
3594                                                 set_state(PART:"elm.text", "disabled", 0.0);
3595
3596                                         set_state(PART:"disclip", "disabled", 0.0);
3597                                 }
3598                         }
3599                         program {
3600                                 name: "enable";
3601                                 signal: "elm,state,enabled";
3602                                 source: "elm";
3603                                 script {
3604                                         new st[31];
3605                                         new Float:vl;
3606                                         get_state(PART:"elm.text", st, 30, vl);
3607                                         if ((!strcmp(st, "compress")) || (!strcmp(st, "compress_disabled")))
3608                                                 set_state(PART:"elm.text", "compress", 0.0);
3609                                         else
3610                                                 set_state(PART:"elm.text", "default", 0.0);
3611
3612                                         set_state(PART:"disclip", "default", 0.0);
3613                                 }
3614                         }
3615                         program {
3616                                 name: "default";
3617                                 signal: "elm,state,default";
3618                                 source: "elm";
3619                                 script {
3620                                         set_state(PART:"separator1", "default", 0.0);
3621                                         set_state(PART:"separator2", "default", 0.0);
3622                                 }
3623                         }
3624                         program {
3625                                 name: "compress";
3626                                 signal: "elm,state,compress";
3627                                 source: "elm";
3628                                 script {
3629                                         new st[31];
3630                                         new Float:vl;
3631                                         get_state(PART:"disclip", st, 30, vl);
3632                                         if (!strcmp(st, "disabled"))
3633                                                 set_state(PART:"elm.text", "compress_disabled", 0.0);
3634                                         else
3635                                                 set_state(PART:"elm.text", "compress", 0.0);
3636                                 }
3637                         }
3638                         program {
3639                                 name: "separator";
3640                                 signal: "elm,state,separator";
3641                                 source: "elm";
3642                                 script {
3643                                         set_state(PART:"separator1", "visible", 0.0);
3644                                         set_state(PART:"separator2", "visible", 0.0);
3645                                 }
3646                         }
3647                         program {
3648                                 name: "item_click2";
3649                                 signal: "mouse,down,1";
3650                                 source: "over2";
3651                                 script {
3652                                         set_state(PART:"elm.text", "clicked", 0.0);
3653
3654                                         new st[31];
3655                                         new Float:vl;
3656                                         get_state(PART:"separator2", st, 30, vl);
3657                                         if (!strcmp(st, "default"))
3658                                                 set_state(PART:"bg", "clicked", 0.0);
3659                                         else
3660                                                 set_state(PART:"bg", "clicked_separator", 0.0);
3661                                 }
3662                         }
3663                         program {
3664                                 name: "drag";
3665                                 signal: "drag";
3666                                 source: "over2";
3667                                 script {
3668                                         new Float:dx, Float:dy;
3669                                         get_drag(PART:"over2", dx, dy);
3670                                         if (abs(dy) > 20)
3671                                                 {
3672                                                         set_drag(PART:"over2", 0.0, 0.0);
3673                                                         set_state(PART:"elm.text", "compress", 0.0);
3674                                                         set_state(PART:"bg", "default", 0.0);
3675                                                 }
3676                                         set_drag(PART:"over2", 0.0, 0.0);
3677                                 }
3678                         }
3679                         program {
3680                                 name: "item_unclick2";
3681                                 signal: "mouse,up,1";
3682                                 source: "over2";
3683                                 script {
3684                                         set_drag(PART:"over2", 0.0, 0.0);
3685                                         set_state(PART:"elm.text", "compress", 0.0);
3686                                         set_state(PART:"bg", "default", 0.0);
3687                                 }
3688                         }
3689                 }
3690         }
3691
3692 ///////////////////////////////////////////////////////////////////////////////////////
3693 #define CTXPOPUP_ENTRY_LIST_PADDING_LEFT 3
3694 #define CTXPOPUP_ENTRY_LIST_PADDING_TOP 6
3695 #define CTXPOPUP_ENTRY_LIST_PADDING_RIGHT 3
3696 #define CTXPOPUP_ENTRY_LIST_PADDING_BOTTOM 6
3697 //////////////////////////////////////////////////////////////////////////////////////
3698         group {
3699                 name: "elm/ctxpopup/base/extended/entry";
3700                 alias: "elm/ctxpopup/base/extended/entry/pass_event";
3701                 images {
3702                         image: "copy&paste_bg_center.png" COMP;
3703                         image: "ctxpopup_shadow.png" COMP;
3704                 }
3705                 parts {
3706                         part {
3707                                 name:"frame_shadow_left_top_padding";
3708                                 type:RECT;
3709                                 scale: 1;
3710                                 mouse_events: 0;
3711                                 description {
3712                                         min: CTXPOPUP_SHADOW_PADDING CTXPOPUP_SHADOW_PADDING;
3713                                         max: CTXPOPUP_SHADOW_PADDING CTXPOPUP_SHADOW_PADDING;
3714                                         align: 0 0;
3715                                         fixed: 1 1;
3716                                         visible: 0;
3717                                 }
3718                         }
3719                         part {
3720                                 name:"frame_shadow_right_bottom_padding";
3721                                 type:RECT;
3722                                 scale: 1;
3723                                 mouse_events: 0;
3724                                 description {
3725                                         min: CTXPOPUP_SHADOW_PADDING CTXPOPUP_SHADOW_PADDING;
3726                                         max: CTXPOPUP_SHADOW_PADDING CTXPOPUP_SHADOW_PADDING;
3727                                         rel1{relative: 1 1;}
3728                                         align: 0 0;
3729                                         fixed: 1 1;
3730                                         visible: 0;
3731                                 }
3732                         }
3733                         part {
3734                                 name: "frame_shadow";
3735                                 type: IMAGE;
3736                                 scale: 1;
3737                                 mouse_events: 0;
3738                                 description {
3739                                         state: "default" 0.0;
3740                                         rel1 {to:"frame_shadow_left_top_padding"; relative: 1 1;}
3741                                         rel2 {to:"frame_shadow_right_bottom_padding";}
3742                                         image {
3743                                                 normal: "ctxpopup_shadow.png";
3744                                                 border: 10 10 10 10;
3745                                                 border_scale: 1;
3746                                         }
3747                                 }
3748                         }
3749                         part {
3750                                 name: "frame_bg";
3751                                 type: IMAGE;
3752                                 scale: 1;
3753                                 mouse_events: 0;
3754                                 description {
3755                                         state: "default" 0.0;
3756                                         rel1 {to:"elm.swallow.content";}
3757                                         rel2 {to:"elm.swallow.content";}
3758                                         image {
3759                                                 normal: "copy&paste_bg_center.png";
3760                                                 border: CTXPOPUP_ENTRY_CENTER_IMAGE_BORDER;
3761                                                 border_scale: 1;
3762                                         }
3763                                 }
3764                         }
3765                         part {
3766                                 name: "arrow_area_left";
3767                                 type: RECT;
3768                                 mouse_events: 0;
3769                                 scale: 1;
3770                                 description {
3771                                         state: "default" 0.0;
3772                                         visible: 0;
3773                                         min: CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT 0;
3774                                         fixed: 1 1;
3775                                         align: 1 0.5;
3776                                         rel1 {
3777                                                 relative: 0 1;
3778                                                 to_y: "ctxpopup_frame_left_top";
3779                                         }
3780                                         rel2 {
3781                                                 relative:0 0;
3782                                                 to:"ctxpopup_frame_left_bottom";
3783                                         }
3784                                 }
3785                         }
3786                         part {
3787                                 name: "arrow_area_right";
3788                                 type: RECT;
3789                                 mouse_events: 0;
3790                                 scale: 1;
3791                                 description { state: "default" 0.0;
3792                                         visible: 0;
3793                                         min: CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT 0;
3794                                         fixed: 1 1;
3795                                         align: 0 0.5;
3796                                         rel1 {
3797                                                 relative: 1 1;
3798                                                 to:"ctxpopup_frame_right_top";
3799                                         }
3800                                         rel2 {
3801                                                 relative: 1 0;
3802                                                 to_y: "ctxpopup_frame_right_bottom";
3803                                         }
3804                                 }
3805                         }
3806                         part {
3807                                 name: "arrow_area_up";
3808                                 type: RECT;
3809                                 mouse_events: 0;
3810                                 scale: 1;
3811                                 description { state: "default" 0.0;
3812                                         visible: 0;
3813                                         min: 0 CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT;
3814                                         fixed: 1 1;
3815                                         align: 0.5 1;
3816                                         rel1 {
3817                                                 relative: 0 0;
3818                                                 to: "frame_bg";
3819                                         }
3820                                         rel2 {
3821                                                 relative: 1 0;
3822                                                 to: "frame_bg";
3823                                         }
3824                                 }
3825                         }
3826                         part {
3827                                 name: "arrow_area_down";
3828                                 type: RECT;
3829                                 mouse_events: 0;
3830                                 scale: 1;
3831                                 description {
3832                                         state: "default" 0.0;
3833                                         visible: 0;
3834                                         min: 0 CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT;
3835                                         fixed: 1 1;
3836                                         align: 0.5 0;
3837                                         rel1 {
3838                                                 relative: 0 1;
3839                                                 to: "frame_bg";
3840                                         }
3841                                         rel2 {
3842                                                 relative: 1 1;
3843                                                 to: "frame_bg";
3844                                         }
3845                                 }
3846                         }
3847                         part {
3848                                 name: "elm.swallow.arrow_up";
3849                                 type: SWALLOW;
3850                                 mouse_events: 0;
3851                                 scale: 1;
3852                                 dragable {
3853                                         x: 1 1 0;
3854                                         y: 1 1 0;
3855                                         confine: "arrow_area_up";
3856                                 }
3857                                 description {
3858                                         state: "default" 0.0;
3859                                         min: 0 CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT;
3860                                         fixed: 1 1;
3861                                         visible: 1;
3862                                 }
3863                         }
3864                         part {
3865                                 name: "elm.swallow.arrow_down";
3866                                 type: SWALLOW;
3867                                 mouse_events: 0;
3868                                 scale: 1;
3869                                 dragable {
3870                                         x: 1 1 0;
3871                                         y: 1 1 0;
3872                                         confine: "arrow_area_down";
3873                                 }
3874                                 description {
3875                                         state: "default" 0.0;
3876                                         min: 0 CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT;
3877                                         fixed: 1 1;
3878                                         visible: 1;
3879                                 }
3880                         }
3881                         part {
3882                                 name: "elm.swallow.arrow_left";
3883                                 type: SWALLOW;
3884                                 mouse_events: 0;
3885                                 scale: 1;
3886                                 dragable {
3887                                         x: 1 1 0;
3888                                         y: 1 1 0;
3889                                         confine: "arrow_area_left";
3890                                 }
3891                                 description {
3892                                         state: "default" 0.0;
3893                                         min: CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT 0;
3894                                         fixed: 1 1;
3895                                         visible: 1;
3896                                 }
3897                         }
3898                         part {
3899                                 name: "elm.swallow.arrow_right";
3900                                 type: SWALLOW;
3901                                 mouse_events: 0;
3902                                 scale: 1;
3903                                 dragable {
3904                                         x: 1 1 0;
3905                                         y: 1 1 0;
3906                                         confine: "arrow_area_right";
3907                                 }
3908                                 description {
3909                                         state: "default" 0.0;
3910                                         min: CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT 0;
3911                                         fixed: 1 1;
3912                                         visible: 1;
3913                                 }
3914                         }
3915                         part {
3916                                 name: "ctxpopup_frame_left_top";
3917                                 type: RECT;
3918                                 scale: 1;
3919                                 description {
3920                                         visible: 0;
3921                                         align: 0 0;
3922                                         min: CTXPOPUP_FRAME_CORNER_SIZE;
3923                                         max: CTXPOPUP_FRAME_CORNER_SIZE;
3924                                 }
3925                         }
3926                         part {
3927                                 name: "ctxpopup_frame_right_top";
3928                                 type: RECT;
3929                                 scale: 1;
3930                                 description {
3931                                         visible: 0;
3932                                         align: 1 0;
3933                                         min: CTXPOPUP_FRAME_CORNER_SIZE;
3934                                         max: CTXPOPUP_FRAME_CORNER_SIZE;
3935                                 }
3936                         }
3937                         part {
3938                                 name: "ctxpopup_frame_left_bottom";
3939                                 type: RECT;
3940                                 scale: 1;
3941                                 description {
3942                                         visible: 0;
3943                                         align: 0 1;
3944                                         min: CTXPOPUP_FRAME_CORNER_SIZE;
3945                                         max: CTXPOPUP_FRAME_CORNER_SIZE;
3946                                 }
3947                         }
3948                         part {
3949                                 name: "ctxpopup_frame_right_bottom";
3950                                 type: RECT;
3951                                 scale: 1;
3952                                 description {
3953                                         visible: 0;
3954                                         align: 1 1;
3955                                         min: CTXPOPUP_FRAME_CORNER_SIZE;
3956                                         max: CTXPOPUP_FRAME_CORNER_SIZE;
3957                                 }
3958                         }
3959                         part {
3960                                 name:"list_shadow_right_bottom_padding";
3961                                 type:RECT;
3962                                 scale: 1;
3963                                 mouse_events: 0;
3964                                 description {
3965                                         min: CTXPOPUP_LIST_SHADOW_PADDING CTXPOPUP_LIST_SHADOW_PADDING;
3966                                         max: CTXPOPUP_LIST_SHADOW_PADDING CTXPOPUP_LIST_SHADOW_PADDING;
3967                                         align: 0 0;
3968                                         fixed: 1 1;
3969                                         visible: 0;
3970                                         rel1 {to:"elm.swallow.content";  relative: 1 1;}
3971                                 }
3972                         }
3973                         part {
3974                                 name:"content_left_top_padding";
3975                                 type:RECT;
3976                                 scale: 1;
3977                                 mouse_events: 0;
3978                                 description {
3979                                         state: "default" 0.0;
3980                                         min: CTXPOPUP_LIST_PADDING CTXPOPUP_LIST_PADDING;
3981                                         max: CTXPOPUP_LIST_PADDING CTXPOPUP_LIST_PADDING;
3982                                         align: 0 0;
3983                                         fixed: 1 1;
3984                                         visible: 0;
3985                                 }
3986                         }
3987                         part {
3988                                 name:"content_right_bottom_padding";
3989                                 type:RECT;
3990                                 scale: 1;
3991                                 mouse_events: 0;
3992                                 description {
3993                                         min: CTXPOPUP_LIST_PADDING CTXPOPUP_LIST_PADDING;
3994                                         max: CTXPOPUP_LIST_PADDING CTXPOPUP_LIST_PADDING;
3995                                         rel1 { relative: 1 1;}
3996                                         rel2 { relative: 1 1;}
3997                                         align: 1 1;
3998                                         fixed: 1 1;
3999                                         visible: 0;
4000                                 }
4001                         }
4002                         part {
4003                                 name: "elm.swallow.content";
4004                                 type: SWALLOW;
4005                                 description {
4006                                         state: "default" 0.0;
4007                                         align: 0 0;
4008                                         rel1 {to:"ctxpopup_frame_left_top";  relative: 0.5 0.5;}
4009                                         rel2 {to:"ctxpopup_frame_right_bottom";  relative: 0.5 0.5;}
4010                                 }
4011                         }
4012                 }
4013         }
4014 ///////////////////////////////////////////////////////////////////////////////////////
4015         group {
4016                 name: "elm/ctxpopup/arrow/extended/entry";
4017                 alias: "elm/ctxpopup/arrow/extended/entry/pass_event";
4018                 images {
4019                         image: "copy&paste_arrow_up.png" COMP;
4020                         image: "copy&paste_arrow_left.png" COMP;
4021                         image: "copy&paste_arrow_right.png" COMP;
4022                         image: "copy&paste_arrow_down.png" COMP;
4023                 }
4024                 parts {
4025                         part {
4026                                 name: "ctxpopup_arrow";
4027                                 type: IMAGE;
4028                                 scale: 1;
4029                                 description {
4030                                         state: "default" 0.0;
4031                                         min: CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT;
4032                                         max: CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT;
4033                                         fixed: 1 1;
4034                                         visible: 0;
4035                                         align: 0.5 0.5;
4036                                 }
4037                                 description {
4038                                         state: "left" 0.0;
4039                                         min: CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH;
4040                                         max: CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH;
4041                                         fixed: 1 1;
4042                                         align: 0 0.5;
4043                                         image {
4044                                                 normal: "copy&paste_arrow_left.png";
4045                                         }
4046                                 }
4047                                 description {
4048                                         state: "right" 0.0;
4049                                         min: CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH;
4050                                         max: CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH;
4051                                         fixed: 1 1;
4052                                         align: 1 0.5;
4053                                         image {
4054                                                 normal: "copy&paste_arrow_right.png";
4055                                         }
4056                                 }
4057                                 description {
4058                                         state: "top" 0.0;
4059                                         min: CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT;
4060                                         max: CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT;
4061                                         fixed: 1 1;
4062                                         align: 0.5 0;
4063                                         image {
4064                                                 normal: "copy&paste_arrow_up.png";
4065                                         }
4066                                 }
4067                                 description {
4068                                         state: "bottom" 0.0;
4069                                         min: CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT;
4070                                         max: CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT;
4071                                         fixed: 1 1;
4072                                         align: 0.5 1;
4073                                         image {
4074                                                 normal: "copy&paste_arrow_down.png";
4075                                         }
4076                                 }
4077                         }
4078                 }
4079                 programs {
4080                         program {
4081                                 name: "enable_left_arrow";
4082                                 signal: "elm,state,left";
4083                                 source: "elm";
4084                                 action: STATE_SET "left" 0.0;
4085                                 target: "ctxpopup_arrow";
4086                         }
4087                         program {
4088                                 name: "enable_right_arrow";
4089                                 signal: "elm,state,right";
4090                                 source: "elm";
4091                                 action: STATE_SET "right" 0.0;
4092                                 target: "ctxpopup_arrow";
4093                         }
4094                         program {
4095                                 name: "enable_top_arrow";
4096                                 signal: "elm,state,top";
4097                                 source: "elm";
4098                                 action: STATE_SET "top" 0.0;
4099                                 target: "ctxpopup_arrow";
4100                         }
4101                         program {
4102                                 name: "enable_bottom_arrow";
4103                                 signal: "elm,state,bottom";
4104                                 source: "elm";
4105                                 action: STATE_SET "bottom" 0.0;
4106                                 target: "ctxpopup_arrow";
4107                         }
4108                 }
4109         }
4110 ///////////////////////////////////////////////////////////////////////////////////////
4111 #define CTXPOPUP_ENTRY_ITEM_BG_PART \
4112                         part {\
4113                                 name: "bg";\
4114                                 mouse_events: 0;\
4115                                 type: IMAGE;\
4116                                 description {\
4117                                         state: "default" 0.0;\
4118                                         visible: 0;\
4119                                         rel1 {to:"left_bg_padding"; relative: 1 0;}\
4120                                         rel2 {to:"right_bg_padding"; relative: 0 1;}\
4121                                         image {\
4122                                                 normal: "copy&paste_press_center.png";\
4123                                                 border: 0 0 0 0;\
4124                                         }\
4125                                 }\
4126                                 description {\
4127                                         state: "clicked" 0.0;\
4128                                         inherit: "default" 0.0;\
4129                                         visible: 1;\
4130                                         image {\
4131                                                 normal: "copy&paste_press_center.png";\
4132                                                 border: 0 0 0 0;\
4133                                         }\
4134                                 }\
4135                         }
4136 #define CTXPOPUP_ENTRY_ITEM_LEFT_BG_PADDING_PART \
4137                         part {\
4138                                 name: "left_bg_padding";\
4139                                 type: IMAGE;\
4140                                 scale: 1;\
4141                                 mouse_events: 0;\
4142                                 description {\
4143                                         state: "default" 0.0;\
4144                                         visible: 0;\
4145                                         min: CTXPOPUP_ENTRY_ITEM_PADDING_WIDTH CTXPOPUP_ENTRY_ITEM_HEIGHT;\
4146                                         max: CTXPOPUP_ENTRY_ITEM_PADDING_WIDTH CTXPOPUP_ENTRY_ITEM_HEIGHT;\
4147                                         align: 0 0.5;\
4148                                         fixed: 1 0;\
4149                                         rel1 { to: "event_blocker"; relative: 0 0; }\
4150                                         rel2 { to: "event_blocker"; relative: 0 1; }\
4151                                         image {\
4152                                                 normal: "copy&paste_press_left.png";\
4153                                                 border: CTXPOPUP_ENTRY_IMAGE_BORDER_WIDTH 0 0 0;\
4154                                                 border_scale: 1;\
4155                                         }\
4156                                 }\
4157                                 description {\
4158                                         state: "clicked" 0.0;\
4159                                         inherit: "default" 0.0;\
4160                                         visible: 1;\
4161                                         image {\
4162                                                 normal: "copy&paste_press_left.png";\
4163                                                 border: CTXPOPUP_ENTRY_IMAGE_BORDER_WIDTH 0 0 0;\
4164                                                 border_scale: 1;\
4165                                         }\
4166                                 }\
4167                         }
4168 #define CTXPOPUP_ENTRY_ITEM_RIGHT_BG_PADDING_PART \
4169                         part {\
4170                                 name: "right_bg_padding";\
4171                                 type: IMAGE;\
4172                                 scale: 1;\
4173                                 mouse_events: 0;\
4174                                 description {\
4175                                         state: "default" 0.0;\
4176                                         visible: 0;\
4177                                         min: CTXPOPUP_ENTRY_ITEM_PADDING_WIDTH CTXPOPUP_ENTRY_ITEM_HEIGHT;\
4178                                         max: CTXPOPUP_ENTRY_ITEM_PADDING_WIDTH CTXPOPUP_ENTRY_ITEM_HEIGHT;\
4179                                         fixed: 1 0;\
4180                                         align: 1.0 0.5;\
4181                                         rel1 { to: "event_blocker"; relative: 1 0; }\
4182                                         rel2 { to: "event_blocker"; relative: 1 1; }\
4183                                         image {\
4184                                                 normal: "copy&paste_press_right.png";\
4185                                                 border: 0 CTXPOPUP_ENTRY_IMAGE_BORDER_WIDTH 0 0;\
4186                                                 border_scale: 1;\
4187                                         }\
4188                                 }\
4189                                 description {\
4190                                         state: "clicked" 0.0;\
4191                                         inherit: "default" 0.0;\
4192                                         visible: 1;\
4193                                         image {\
4194                                                 normal: "copy&paste_press_right.png";\
4195                                                 border: 0 CTXPOPUP_ENTRY_IMAGE_BORDER_WIDTH 0 0;\
4196                                                 border_scale: 1;\
4197                                         }\
4198                                 }\
4199                         }
4200 #define CTXPOPUP_ENTRY_ITEM_LEFT_PADDING_PART \
4201                         part {\
4202                                 name: "left_padding";\
4203                                 type: RECT;\
4204                                 scale: 1;\
4205                                 mouse_events: 0;\
4206                                 description {\
4207                                         state: "default" 0.0;\
4208                                         visible: 0;\
4209                                         min: CTXPOPUP_ENTRY_ITEM_PADDING_WIDTH CTXPOPUP_ENTRY_ITEM_HEIGHT;\
4210                                         max: CTXPOPUP_ENTRY_ITEM_PADDING_WIDTH CTXPOPUP_ENTRY_ITEM_HEIGHT;\
4211                                         align: 0 0.5;\
4212                                         fixed: 1 0;\
4213                                 }\
4214                         }
4215 #define CTXPOPUP_ENTRY_ITEM_RIGHT_PADDING_PART \
4216                         part {\
4217                                 name: "right_padding";\
4218                                 type: RECT;\
4219                                 scale: 1;\
4220                                 mouse_events: 0;\
4221                                 description {\
4222                                         state: "default" 0.0;\
4223                                         visible: 0;\
4224                                         min: CTXPOPUP_ENTRY_ITEM_PADDING_WIDTH CTXPOPUP_ENTRY_ITEM_HEIGHT;\
4225                                         max: CTXPOPUP_ENTRY_ITEM_PADDING_WIDTH CTXPOPUP_ENTRY_ITEM_HEIGHT;\
4226                                         fixed: 1 0;\
4227                                         align: 1.0 0.5;\
4228                                 }\
4229                         }
4230 #define CTXPOPUP_ENTRY_ITEM_LEFT_SEPARATOR_PART \
4231                         part {\
4232                                 name: "left_separator";\
4233                                 mouse_events: 0;\
4234                                 type: RECT;\
4235                                 scale: 1;\
4236                                 description {\
4237                                         state: "default" 0.0;\
4238                                         visible: 0;\
4239                                         color: CTXPOPUP_ENTRY_ITEM_LEFT_SEPARATOR_COLOR;\
4240                                         min: CTXPOPUP_ENTRY_SEPARATOR_WIDTH CTXPOPUP_ENTRY_SEPARATOR_HEIGHT;\
4241                                         max: CTXPOPUP_ENTRY_SEPARATOR_WIDTH CTXPOPUP_ENTRY_SEPARATOR_HEIGHT;\
4242                                         fixed: 1 1;\
4243                                         rel2 {\
4244                                                 relative: 0 1;\
4245                                         }\
4246                                 }\
4247                                 description {\
4248                                         state: "vertical" 0.0;\
4249                                         inherit: "default" 0.0;\
4250                                         visible: 1;\
4251                                 }\
4252                                 description {\
4253                                         state: "horizontal" 0.0;\
4254                                         inherit: "default" 0.0;\
4255                                         visible: 1;\
4256                                 }\
4257                         }
4258 #define CTXPOPUP_ENTRY_ITEM_RIGHT_SEPARATOR_PART \
4259                         part {\
4260                                 name: "right_separator";\
4261                                 mouse_events: 0;\
4262                                 type: RECT;\
4263                                 scale: 1;\
4264                                 description {\
4265                                         state: "default" 0.0;\
4266                                         visible: 0;\
4267                                         color: CTXPOPUP_ENTRY_ITEM_RIGHT_SEPARATOR_COLOR;\
4268                                         min: CTXPOPUP_ENTRY_SEPARATOR_WIDTH CTXPOPUP_ENTRY_SEPARATOR_HEIGHT;\
4269                                         max: CTXPOPUP_ENTRY_SEPARATOR_WIDTH CTXPOPUP_ENTRY_SEPARATOR_HEIGHT;\
4270                                         fixed: 1 1;\
4271                                         rel1 {\
4272                                                 offset: -1 0;\
4273                                         }\
4274                                         rel2 {\
4275                                                 relative: 0 1;\
4276                                                 offset: -1 0;\
4277                                         }\
4278                                 }\
4279                                 description {\
4280                                         state: "vertical" 0.0;\
4281                                         inherit: "default" 0.0;\
4282                                         visible: 1;\
4283                                 }\
4284                                 description {\
4285                                         state: "horizontal" 0.0;\
4286                                         inherit: "default" 0.0;\
4287                                         visible: 1;\
4288                                 }\
4289                         }
4290 ///////////////////////////////////////////////////////////////////////////////////////
4291
4292         group {
4293                 name: "elm/ctxpopup/text_style_item/extended/entry";
4294                 alias: "elm/ctxpopup/text_style_item/extended/entry/pass_event";
4295                 images {
4296                         image: "copy&paste_press_center.png" COMP;
4297                         image: "copy&paste_press_left.png" COMP;
4298                         image: "copy&paste_press_right.png" COMP;
4299                 }
4300                 parts {
4301                         part {
4302                                 name: "event_blocker";
4303                                 type: RECT;
4304                                 mouse_events: 1;
4305                                 description {
4306                                         state: "default" 0.0;
4307                                         color: 0 0 0 0;
4308                                 }
4309                         }
4310                         CTXPOPUP_ENTRY_ITEM_BG_PART
4311                         CTXPOPUP_ENTRY_ITEM_LEFT_BG_PADDING_PART
4312                         CTXPOPUP_ENTRY_ITEM_RIGHT_BG_PADDING_PART
4313                         CTXPOPUP_ENTRY_ITEM_LEFT_PADDING_PART
4314                         CTXPOPUP_ENTRY_ITEM_RIGHT_PADDING_PART
4315                         CTXPOPUP_ENTRY_ITEM_LEFT_SEPARATOR_PART
4316                         CTXPOPUP_ENTRY_ITEM_RIGHT_SEPARATOR_PART
4317                         part {
4318                                 name: "elm.text";
4319                                 type:  TEXT;
4320                                 mouse_events:  0;
4321                                 scale: 1;
4322                                 description {
4323                                         state: "default" 0.0;
4324                                         min: 1 CTXPOPUP_ENTRY_ITEM_HEIGHT;
4325                                         max: CTXPOPUP_ENTRY_ITEM_WIDTH_MAX CTXPOPUP_ENTRY_ITEM_HEIGHT;
4326                                         fixed: 0 1;
4327                                         align: 0.5 0.5;
4328                                         rel1 {relative: 1.0 0.0; to: "left_padding";}
4329                                         rel2 {relative: 0.0 1.0; to: "right_padding";}
4330                                         color: CTXPOPUP_ENTRY_ITEM_TEXT_COLOR;
4331                                         text {
4332                                                 font: "Tizen:style=Roman";
4333                                                 size: CTXPOPUP_ENTRY_ITEM_FONT_SIZE;
4334                                                 align: 0.5 0.5;
4335                                                 min: 1 1;
4336                                                 text_class: "list_item";
4337                                         }
4338                                 }
4339                                 description {
4340                                         state: "clicked" 0.0;
4341                                         inherit: "default" 0.0;
4342                                         color: CTXPOPUP_ENTRY_ITEM_TEXT_COLOR;
4343                                 }
4344                         }
4345                         part {
4346                                 name: "over1";
4347                                 type: RECT;
4348                                 mouse_events: 1;
4349                                 repeat_events: 1;
4350                                 ignore_flags: ON_HOLD;
4351                                 description {
4352                                         state: "default" 0.0;
4353                                         color: 0 0 0 0;
4354                                 }
4355                         }
4356                         part {
4357                                 name: "over2";
4358                                 type: RECT;
4359                                 mouse_events: 1;
4360                                 repeat_events: 1;
4361                                 description {
4362                                         state: "default" 0.0;
4363                                 }
4364                         }
4365                         part {
4366                                 name: "disclip";
4367                                 type: RECT;
4368                                 description {
4369                                         state: "default" 0.0;
4370                                         visible: 0;
4371                                 }
4372                                 description {
4373                                         state: "disabled" 0.0;
4374                                         visible: 1;
4375                                         color: CTXPOPUP_ENTRY_ITEM_DISABLED_COLOR;
4376                                 }
4377                         }
4378                 }
4379                 programs {
4380                         program {
4381                                 name: "item_unclick";
4382                                 signal: "mouse,up,1";
4383                                 source: "over1";
4384                                 action: SIGNAL_EMIT "elm,action,click" "";
4385                         }
4386                         program {
4387                                 name: "disable";
4388                                 signal: "elm,state,disabled";
4389                                 source: "elm";
4390                                 action: STATE_SET "disabled" 0.0;
4391                                 target: "disclip";
4392                         }
4393                         program {
4394                                 name: "enable";
4395                                 signal: "elm,state,enabled";
4396                                 source: "elm";
4397                                 action: STATE_SET "default" 0.0;
4398                                 target: "disclip";
4399                         }
4400                         program {
4401                                 name: "item_click2";
4402                                 signal: "mouse,down,1";
4403                                 source: "over2";
4404                                 script {
4405                                         set_state(PART:"elm.text", "clicked", 0.0);
4406                                         set_state(PART:"bg", "clicked", 0.0);
4407                                         set_state(PART:"left_bg_padding", "clicked", 0.0);
4408                                         set_state(PART:"right_bg_padding", "clicked", 0.0);
4409                                 }
4410                         }
4411                         program {
4412                                 name: "item_unclick2";
4413                                 signal: "mouse,up,1";
4414                                 source: "over2";
4415                                 script {
4416                                         set_state(PART:"elm.text", "default", 0.0);
4417                                         set_state(PART:"bg", "default", 0.0);
4418                                         set_state(PART:"left_bg_padding", "default", 0.0);
4419                                         set_state(PART:"right_bg_padding", "default", 0.0);
4420                                 }
4421                         }
4422                         program {
4423                                 name: "default";
4424                                 signal: "elm,state,default";
4425                                 source: "elm";
4426                                 script {
4427                                         set_state(PART:"left_separator", "default", 0.0);
4428                                         set_state(PART:"right_separator", "default", 0.0);
4429                                 }
4430                         }
4431                         program {
4432                                 name: "vertical";
4433                                 signal: "elm,state,vertical";
4434                                 source: "elm";
4435                                 script {
4436                                         set_state(PART:"left_separator", "vertical", 0.0);
4437                                         set_state(PART:"right_separator", "vertical", 0.0);
4438                                 }
4439                         }
4440                         program {
4441                                 name: "horizontal";
4442                                 signal: "elm,state,horizontal";
4443                                 source: "elm";
4444                                 script {
4445                                         set_state(PART:"left_separator", "horizontal", 0.0);
4446                                         set_state(PART:"right_separator", "horizontal", 0.0);
4447                                 }
4448                         }
4449                 }
4450         }
4451 ///////////////////////////////////////////////////////////////////////////////
4452         group {
4453                 name: "elm/ctxpopup/icon_style_item/extended/entry";
4454                 images {
4455                         image: "copy&paste_press_center.png" COMP;
4456                         image: "copy&paste_press_left.png" COMP;
4457                         image: "copy&paste_press_right.png" COMP;
4458                 }
4459                 parts {
4460                         part {
4461                                 name: "event_blocker";
4462                                 type: RECT;
4463                                 mouse_events: 1;
4464                                 description {
4465                                         state: "default" 0.0;
4466                                         color: 0 0 0 0;
4467                                 }
4468                         }
4469                         CTXPOPUP_ENTRY_ITEM_BG_PART
4470                         CTXPOPUP_ENTRY_ITEM_LEFT_BG_PADDING_PART
4471                         CTXPOPUP_ENTRY_ITEM_RIGHT_BG_PADDING_PART
4472                         CTXPOPUP_ENTRY_ITEM_LEFT_PADDING_PART
4473                         CTXPOPUP_ENTRY_ITEM_RIGHT_PADDING_PART
4474                         CTXPOPUP_ENTRY_ITEM_LEFT_SEPARATOR_PART
4475                         CTXPOPUP_ENTRY_ITEM_RIGHT_SEPARATOR_PART
4476                         part {
4477                                 name: "elm.swallow.icon";
4478                                 type: SWALLOW;
4479                                 scale: 1;
4480                                 description {
4481                                         state: "default" 0.0;
4482                                         min: 36 36;
4483                                         max: 36 36;
4484                                         fixed: 0 1;
4485                                         align: 0.5 0.5;
4486 //                                      aspect: 1.0 1.0;
4487                                         rel1 {relative: 1.0 0.0; to: "left_padding";}
4488                                         rel2 {relative: 0.0 1.0; to: "right_padding";}
4489                                 }
4490                         }
4491                         part {
4492                                 name: "elm.swallow.icon.paint";
4493                                 type: RECT;
4494                                 scale: 1;
4495                                 description {
4496                                         state: "default" 0.0;
4497                                         visible: 0;
4498                                         color: 255 255 0 255;
4499                                         rel1 { to: "elm.swallow.icon"; }
4500                                         rel2 { to: "elm.swallow.icon"; }
4501                                 }
4502                         }
4503                         part {
4504                                 name: "over1";
4505                                 type: RECT;
4506                                 mouse_events: 1;
4507                                 repeat_events: 1;
4508                                 ignore_flags: ON_HOLD;
4509                                 description {
4510                                         state: "default" 0.0;
4511                                         color: 0 0 0 0;
4512                                 }
4513                         }
4514                         part {
4515                                 name: "over2";
4516                                 type: RECT;
4517                                 mouse_events: 1;
4518                                 repeat_events: 1;
4519                                 description {
4520                                         state: "default" 0.0;
4521                                 }
4522                         }
4523                         part {
4524                                 name: "disclip";
4525                                 type: RECT;
4526                                 description {
4527                                         state: "default" 0.0;
4528                                         visible: 0;
4529                                 }
4530                                 description {
4531                                         state: "disabled" 0.0;
4532                                         visible: 1;
4533                                         color: CTXPOPUP_ENTRY_ITEM_DISABLED_COLOR;
4534                                 }
4535                         }
4536                 }
4537                 programs {
4538                         program {
4539                                 name: "item_unclick";
4540                                 signal: "mouse,up,1";
4541                                 source: "over1";
4542                                 action: SIGNAL_EMIT "elm,action,click" "";
4543                         }
4544                         program {
4545                                 name: "disable";
4546                                 signal: "elm,state,disabled";
4547                                 source: "elm";
4548                                 action: STATE_SET "disabled" 0.0;
4549                                 target: "disclip";
4550                         }
4551                         program {
4552                                 name: "item_click2";
4553                                 signal: "mouse,down,1";
4554                                 source: "over2";
4555                                 script {
4556                                         set_state(PART:"bg", "clicked", 0.0);
4557                                         set_state(PART:"left_bg_padding", "clicked", 0.0);
4558                                         set_state(PART:"right_bg_padding", "clicked", 0.0);
4559                                 }
4560                         }
4561                         program {
4562                                 name: "item_unclick2";
4563                                 signal: "mouse,up,1";
4564                                 source: "over2";
4565                                 script {
4566                                         set_state(PART:"bg", "default", 0.0);
4567                                         set_state(PART:"left_bg_padding", "default", 0.0);
4568                                         set_state(PART:"right_bg_padding", "default", 0.0);
4569                                 }
4570                         }
4571                         program {
4572                                 name: "default";
4573                                 signal: "elm,state,default";
4574                                 source: "elm";
4575                                 script {
4576                                         set_state(PART:"left_separator", "default", 0.0);
4577                                         set_state(PART:"right_separator", "default", 0.0);
4578                                 }
4579                         }
4580                         program {
4581                                 name: "vertical";
4582                                 signal: "elm,state,vertical";
4583                                 source: "elm";
4584                                 script {
4585                                         set_state(PART:"left_separator", "vertical", 0.0);
4586                                         set_state(PART:"right_separator", "vertical", 0.0);
4587                                 }
4588                         }
4589                         program {
4590                                 name: "horizontal";
4591                                 signal: "elm,state,horizontal";
4592                                 source: "elm";
4593                                 script {
4594                                         set_state(PART:"left_separator", "horizontal", 0.0);
4595                                         set_state(PART:"right_separator", "horizontal", 0.0);
4596                                 }
4597                         }
4598                 }
4599         }
4600 ///////////////////////////////////////////////////////////////////////////////////////
4601 #define CTXPOPUP_TP_TEXT_WIDTH 32
4602 #define CTXPOPUP_TP_PADDING 15
4603 #define CTXPOPUP_TP_FONT_COLOR 231 173 95 255
4604 #define CTXPOPUP_TP_CLICKED_FONT_COLOR 255 255 255 255
4605 #define CTXPOPUP_TP_FONT_SIZE 24
4606 ///////////////////////////////////////////////////////////////////////////////
4607 group {
4608         name: "elm/ctxpopup/base/datetime/default";
4609         alias: "elm/ctxpopup/base/timepicker";
4610         parts {
4611                 part {
4612                         name: "ctxpopup_frame";
4613                         type: RECT;
4614                         scale: 1;
4615                         description {
4616                                 color: CTXPOPUP_TP_BG_COLOR_INC;
4617                                 min: 1 CTXPOPUP_TP_HEIGHT_INC;
4618                                 rel1 { to: "elm.swallow.content"; }
4619                                 rel2 { to: "elm.swallow.content"; }
4620                         }
4621                 }
4622                 part {
4623                         name: "elm.swallow.content";
4624                         type: SWALLOW;
4625                         scale: 1;
4626                         description {
4627                                 state: "default" 0.0;
4628                                 min: 1 CTXPOPUP_TP_HEIGHT_INC;
4629                         }
4630                 }
4631                 part { name: "arrow_area_left";
4632                                 type: RECT;
4633                                 mouse_events: 0;
4634                                 scale: 1;
4635                                 description { state: "default" 0.0;
4636                                         visible: 0;
4637                                         min: 20 0;
4638                                         fixed: 1 1;
4639                                         align: 1 0.5;
4640                                         rel1 {
4641                                                 relative: 0 0;
4642                                                 to_y: "ctxpopup_frame";
4643                                         }
4644                                         rel2 {
4645                                                 relative:0 1;
4646                                                 to:"ctxpopup_frame";
4647                                         }
4648                                 }
4649                         }
4650                         part { name: "arrow_area_right";
4651                                 type: RECT;
4652                                 mouse_events: 0;
4653                                 scale: 1;
4654                                 description { state: "default" 0.0;
4655                                         visible: 0;
4656                                         min: 20 0;
4657                                         fixed: 1 1;
4658                                         align: 0 0.5;
4659                                         rel1 {
4660                                                 relative: 1 0;
4661                                                 to:"ctxpopup_frame";
4662                                         }
4663                                         rel2 {
4664                                                 relative: 1 1;
4665                                                 to_y: "ctxpopup_frame";
4666                                         }
4667                                 }
4668                         }
4669                         part { name: "arrow_area_up";
4670                                 type: RECT;
4671                                 mouse_events: 0;
4672                                 scale: 1;
4673                                 description { state: "default" 0.0;
4674                                         visible: 0;
4675                                         min: 0 20;
4676                                         fixed: 1 1;
4677                                         align: 0.5 1;
4678                                         rel1 {
4679                                                 relative: 0 0;
4680                                                 to_x: "ctxpopup_frame";
4681                                         }
4682                                         rel2 {
4683                                                 relative: 1 0;
4684                                                 to:"ctxpopup_frame";
4685                                         }
4686                                 }
4687                         }
4688                         part { name: "arrow_area_down";
4689                                 type: RECT;
4690                                 mouse_events: 0;
4691                                 scale: 1;
4692                                 description { state: "default" 0.0;
4693                                         visible: 0;
4694                                         min: 0 20;
4695                                         fixed: 1 1;
4696                                         align: 0.5 0;
4697                                         rel1 {
4698                                                 relative: 0 1;
4699                                                 to:"ctxpopup_frame";
4700                                         }
4701                                         rel2 {
4702                                                 relative: 1 1;
4703                                                 to_x: "ctxpopup_frame";
4704                                         }
4705                                 }
4706                         }
4707                         part { name: "elm.swallow.arrow_up";
4708                                 type: SWALLOW;
4709                                 mouse_events: 0;
4710                                 scale: 1;
4711                                 dragable {
4712                                         x: 1 1 0;
4713                                         y: 1 1 0;
4714                                         confine: "arrow_area_up";
4715                                 }
4716                                 description {
4717                                         state: "default" 0.0;
4718                                         min: 20 20;
4719                                         fixed: 1 1;
4720                                         visible: 1;
4721                                 }
4722                         }
4723                         part { name: "elm.swallow.arrow_down";
4724                                 type: SWALLOW;
4725                                 mouse_events: 0;
4726                                 scale: 1;
4727                                 dragable {
4728                                         x: 1 1 0;
4729                                         y: 1 1 0;
4730                                         confine: "arrow_area_down";
4731                                 }
4732                                 description {
4733                                         state: "default" 0.0;
4734                                         min: 20 20;
4735                                         fixed: 1 1;
4736                                         visible: 1;
4737                                 }
4738                         }
4739                         part { name: "elm.swallow.arrow_left";
4740                                 type: SWALLOW;
4741                                 mouse_events: 0;
4742                                 scale: 1;
4743                                 dragable {
4744                                         x: 1 1 0;
4745                                         y: 1 1 0;
4746                                         confine: "arrow_area_left";
4747                                 }
4748                                 description {
4749                                         state: "default" 0.0;
4750                                         min: 20 20;
4751                                         fixed: 1 1;
4752                                         visible: 1;
4753                                 }
4754                         }
4755                         part { name: "elm.swallow.arrow_right";
4756                                 type: SWALLOW;
4757                                 mouse_events: 0;
4758                                 scale: 1;
4759                                 dragable {
4760                                         x: 1 1 0;
4761                                         y: 1 1 0;
4762                                         confine: "arrow_area_right";
4763                                 }
4764                                 description {
4765                                         state: "default" 0.0;
4766                                         min: 20 20;
4767                                         fixed: 1 1;
4768                                         visible: 1;
4769                                 }
4770                         }
4771         }
4772 }
4773 ///////////////////////////////////////////////////////////////////////////////
4774 group { name: "elm/ctxpopup/arrow/datetime/default";
4775         alias: "elm/ctxpopup/arrow/timepicker";
4776         images {
4777                 image: "timepicker_left_arrow.png" COMP;
4778                 image: "timepicker_right_arrow.png" COMP;
4779                 image: "timepicker_top_arrow.png" COMP;
4780                 image: "timepicker_bottom_arrow.png" COMP;
4781         }
4782         parts {
4783                 part {
4784                         name: "ctxpopup_arrow";
4785                         type: IMAGE;
4786                         scale: 1;
4787                         description {
4788                                 state: "default" 0.0;
4789                                 min: CTXPOPUP_TP_ARROW_SIZE_INC CTXPOPUP_TP_ARROW_SIZE_INC;
4790                                 max: CTXPOPUP_TP_ARROW_SIZE_INC CTXPOPUP_TP_ARROW_SIZE_INC;
4791                                 fixed: 1 1;
4792                                 visible: 0;
4793                                 align: 0.5 0.5;
4794                         }
4795                         description {
4796                                 state: "left" 0.0;
4797                                 min: CTXPOPUP_TP_ARROW_SIZE_INC CTXPOPUP_TP_ARROW_SIZE_INC;
4798                                 max: CTXPOPUP_TP_ARROW_SIZE_INC CTXPOPUP_TP_ARROW_SIZE_INC;
4799                                 fixed: 1 1;
4800                                 align: 1.0 0.5;
4801                                 image {
4802                                         normal: "timepicker_left_arrow.png";
4803                                 }
4804                         }
4805                         description {
4806                                 state: "right" 0.0;
4807                                 min: CTXPOPUP_TP_ARROW_SIZE_INC CTXPOPUP_TP_ARROW_SIZE_INC;
4808                                 max: CTXPOPUP_TP_ARROW_SIZE_INC CTXPOPUP_TP_ARROW_SIZE_INC;
4809                                 fixed: 1 1;
4810                                 align: 0.0 0.5;
4811                                 image {
4812                                         normal: "timepicker_right_arrow.png";
4813                                 }
4814                         }
4815                         description {
4816                                 state: "top" 0.0;
4817                                 min: CTXPOPUP_TP_ARROW_SIZE_INC CTXPOPUP_TP_ARROW_SIZE_INC;
4818                                 max: CTXPOPUP_TP_ARROW_SIZE_INC CTXPOPUP_TP_ARROW_SIZE_INC;
4819                                 fixed: 1 1;
4820                                 align: 0.5 1.0;
4821                                 image {
4822                                         normal: "timepicker_top_arrow.png";
4823                                 }
4824                         }
4825                         description {
4826                                 state: "bottom" 0.0;
4827                                 min: CTXPOPUP_TP_ARROW_SIZE_INC CTXPOPUP_TP_ARROW_SIZE_INC;
4828                                 max: CTXPOPUP_TP_ARROW_SIZE_INC CTXPOPUP_TP_ARROW_SIZE_INC;
4829                                 fixed: 1 1;
4830                                 align: 0.5 0.0;
4831                                 image {
4832                                         normal: "timepicker_bottom_arrow.png";
4833                                 }
4834                         }
4835                 }
4836         }
4837         programs {
4838                 program {
4839                         name: "enable_left_arrow";
4840                         signal: "elm,state,left";
4841                         source: "elm";
4842                         action: STATE_SET "left" 0.0;
4843                         target: "ctxpopup_arrow";
4844                 }
4845                 program {
4846                         name: "enable_right_arrow";
4847                         signal: "elm,state,right";
4848                         source: "elm";
4849                         action: STATE_SET "right" 0.0;
4850                         target: "ctxpopup_arrow";
4851                 }
4852                 program {
4853                         name: "enable_top_arrow";
4854                         signal: "elm,state,top";
4855                         source: "elm";
4856                         action: STATE_SET "top" 0.0;
4857                         target: "ctxpopup_arrow";
4858                 }
4859                 program {
4860                         name: "enable_bottom_arrow";
4861                         signal: "elm,state,bottom";
4862                         source: "elm";
4863                         action: STATE_SET "bottom" 0.0;
4864                         target: "ctxpopup_arrow";
4865                 }
4866         }
4867 }
4868 ///////////////////////////////////////////////////////////////////////////////
4869 group {
4870         name: "elm/ctxpopup/text_style_item/datetime/default";
4871         alias: "elm/ctxpopup/text_style_item/timepicker";
4872         parts {
4873                 part {
4874                         name: "left_padding";
4875                         type: RECT;
4876                         scale: 1;
4877                         mouse_events: 0;
4878                         description {
4879                                 state: "default" 0.0;
4880                                 min: CTXPOPUP_TP_PADDING CTXPOPUP_TP_HEIGHT_INC;
4881                                 max: CTXPOPUP_TP_PADDING CTXPOPUP_TP_HEIGHT_INC;
4882                                 align: 0 0.5;
4883                                 fixed: 1 1;
4884                                 visible: 0;
4885                         }
4886                 }
4887                 part {
4888                         name: "elm.text";
4889                         type:  TEXT;
4890                         mouse_events:  0;
4891                         scale: 1;
4892                         description {
4893                                 state: "default" 0.0;
4894                                 min: CTXPOPUP_TP_TEXT_WIDTH CTXPOPUP_TP_HEIGHT_INC;
4895                                 max: CTXPOPUP_TP_TEXT_WIDTH CTXPOPUP_TP_HEIGHT_INC;
4896                                 fixed: 1 1;
4897                                 align: 0 0;
4898                                 rel1 {relative: 1.0 0.0; to: "left_padding";}
4899                                 color: CTXPOPUP_TP_FONT_COLOR;
4900                                 text {
4901                                         font: "Tizen:style=Medium";
4902                                         size: CTXPOPUP_TP_FONT_SIZE;
4903                                         align: 0.5 0.5;
4904                                         min: 1 1;
4905                                         text_class: "tizen";
4906                                 }
4907                         }
4908                         description {
4909                                 state: "clicked" 0.0;
4910                                 inherit: "default" 0.0;
4911                                 color: 255 255 255 255;
4912                         }
4913                 }
4914                 part {
4915                         name: "right_padding";
4916                         scale: 1;
4917                         mouse_events: 0;
4918                         description {
4919                                 state: "default" 0.0;
4920                                 min: CTXPOPUP_TP_PADDING CTXPOPUP_TP_HEIGHT_INC;
4921                                 max: CTXPOPUP_TP_PADDING CTXPOPUP_TP_HEIGHT_INC;
4922                                 align: 0 0;
4923                         rel1 {relative: 1.0 0.0; to: "elm.text";}
4924                                 visible: 0;
4925         }
4926                 }
4927                 part {
4928                         name: "over1";
4929                         type: RECT;
4930                         mouse_events: 1;
4931                         repeat_events: 1;
4932                         ignore_flags: ON_HOLD;
4933                         description {
4934                                 state: "default" 0.0;
4935                                 color: 0 0 0 0;
4936                         }
4937                 }
4938                 part {
4939                         name: "over2";
4940                         type: RECT;
4941                         mouse_events: 1;
4942                         repeat_events: 1;
4943                         description {
4944                                 state: "default" 0.0;
4945                         }
4946                 }
4947         }
4948
4949         programs {
4950                 program {
4951                         name: "item_unclick";
4952                         signal: "mouse,up,1";
4953                         source: "over1";
4954                         action: SIGNAL_EMIT "elm,action,click" "";
4955                 }
4956                 program {
4957                         name: "item_click";
4958                         signal: "mouse,down,1";
4959                         source: "over2";
4960                         script {
4961                                 set_state(PART:"elm.text", "clicked", 0.0);
4962                         }
4963                 }
4964                 program {
4965                         name: "item_unclick2";
4966                         signal: "mouse,up,1";
4967                         source: "over2";
4968                         script {
4969                                 set_state(PART:"elm.text", "default", 0.0);
4970                         }
4971                 }
4972         }
4973 }
4974 ///////////////////////////////////////////////////////////////////////////////
4975         group {
4976                 name: "elm/ctxpopup/text_style_item/toolbar_segmentedcontrol";
4977                 parts {
4978                         part {
4979                                 name: "event_blocker";
4980                                 type: RECT;
4981                                 mouse_events: 1;
4982                                 description {
4983                                         state: "default" 0.0;
4984                                         color: 0 0 0 0;
4985                                 }
4986                         }
4987                         part {
4988                                 name: "bg";
4989                                 mouse_events: 0;
4990                                 type: RECT;
4991                                 scale: 1;
4992                                 description {
4993                                         state: "default" 0.0;
4994                                         color: CTXPOPUP_BG_COLOR_INC;
4995                                         visible: 1;
4996                                         min: (CTXPOPUP_TOOLBAR_SEGMENTEDCONTROL_WIDTH_INC-CTXPOPUP_SHADOW_LEFT_PADDING-CTXPOPUP_SHADOW_RIGHT_PADDING-CTXPOPUP_CONTENT_PADDING*2) 1;
4997                                         max: (CTXPOPUP_TOOLBAR_SEGMENTEDCONTROL_WIDTH_INC-CTXPOPUP_SHADOW_LEFT_PADDING-CTXPOPUP_SHADOW_RIGHT_PADDING-CTXPOPUP_CONTENT_PADDING*2) CTXPOPUP_TOOLBAR_SEGMENTEDCONTROL_HEIGHT_MAX_INC;
4998                                 }
4999                                 description {
5000                                         state: "clicked" 0.0;
5001                                         color: CTXPOPUP_BG_PRESS_COLOR_INC;
5002                                         visible: 1;
5003                                 }
5004                                 description {
5005                                         state: "clicked_separator" 0.0;
5006                                         rel1 { relative: 0.0 1.0; to_y: "separator2"; }
5007                                         color: CTXPOPUP_BG_PRESS_COLOR_INC;
5008                                         visible: 1;
5009                                 }
5010                         }
5011                         part {
5012                                 name: "separator1";
5013                                 mouse_events: 0;
5014                                 type: RECT;
5015                                 scale: 1;
5016                                 description {
5017                                         state: "default" 0.0;
5018                                         color: CTXPOPUP_SEPARATOR_COLOR_INC;
5019                                         rel1 { relative: 1.0 0.0; to_x: "left_padding";}
5020                                         rel2 { relative: 0.0 1.0; to_x: "right_padding"; offset: 0 0;}
5021                                         align: 0.5 0;
5022                                         min: 0 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
5023                                         max: 999999 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
5024                                         visible: 0;
5025                                 }
5026                                 description {
5027                                         state: "visible" 0.0;
5028                                         inherit: "default" 0.0;
5029                                         visible: 1;
5030                                 }
5031                         }
5032                         part {
5033                                 name: "separator2";
5034                                 mouse_events: 0;
5035                                 type: RECT;
5036                                 scale: 1;
5037                                 description {
5038                                         state: "default" 0.0;
5039                                         color: CTXPOPUP_SEPARATOR2_COLOR_INC;
5040                                         rel1 { relative: 0.0 1.0; to: "separator1";}
5041                                         rel2 { relative: 1.0 1.0; to: "separator1"; offset: 0 0; }
5042                                         align: 0.5 0;
5043                                         fixed: 0 1;
5044                                         min: 0 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
5045                                         max: 999999 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
5046                                         visible: 0;
5047                                 }
5048                                 description {
5049                                         state: "visible" 0.0;
5050                                         inherit: "default" 0.0;
5051                                         visible: 1;
5052                                 }
5053                         }
5054                         part {
5055                                 name: "left_padding";
5056                                 type: RECT;
5057                                 scale: 1;
5058                                 mouse_events: 0;
5059                                 description {
5060                                         state: "default" 0.0;
5061                                         min: (CTXPOPUP_ITEM_TEXT_PADDING_INC-CTXPOPUP_CONTENT_PADDING) CTXPOPUP_TOOLBAR_SEGMENTEDCONTROL_HEIGHT_MIN_INC;
5062                                         max: (CTXPOPUP_ITEM_TEXT_PADDING_INC-CTXPOPUP_CONTENT_PADDING) CTXPOPUP_TOOLBAR_SEGMENTEDCONTROL_HEIGHT_MAX_INC;
5063                                         align: 0 0;
5064                                         fixed: 1 1;
5065                                         visible: 0;
5066                                 }
5067                         }
5068                         part {
5069                                 name: "elm.text";
5070                                 type: TEXT;
5071                                 mouse_events: 0;
5072                                 scale: 1;
5073                                 description {
5074                                         state: "default" 0.0;
5075                                         min: 1 CTXPOPUP_TOOLBAR_SEGMENTEDCONTROL_HEIGHT_MIN_INC;
5076                                         align: 0.5 0.5;
5077                                         rel1 {relative: 1.0 0.0; to_x: "left_padding"; to_y: "bg";}
5078                                         rel2 {relative: 0.0 1.0; to_x: "right_padding"; to_y: "bg";}
5079                                         color: CTXPOPUP_LIST_MAIN_TEXT_COLOR_INC;
5080                                         text {
5081                                                 font: "Tizen:style=Roman";
5082                                                 size: CTXPOPUP_LIST_MAIN_TEXT_SIZE_INC;
5083                                                 align: 0.5 0.5;
5084                                                 min: 0 1;
5085                                                 text_class: "list_item";
5086                                         }
5087                                 }
5088                                 description {
5089                                         state: "compress" 0.0;
5090                                         inherit: "default" 0.0;
5091                                         max: -1 -1;
5092                                         text {
5093                                                 min: 0 1;
5094                                         }
5095                                 }
5096                                 description {
5097                                         state: "clicked" 0.0;
5098                                         inherit: "default" 0.0;
5099                                         color: CTXPOPUP_LIST_MAIN_TEXT_PRESS_COLOR_INC;
5100                                 }
5101                                 description {
5102                                         state: "disabled" 0.0;
5103                                         inherit: "default" 0.0;
5104                                         color: CTXPOPUP_LIST_MAIN_TEXT_DIM_COLOR_INC;
5105                                 }
5106                                 description {
5107                                         state: "compress_disabled" 0.0;
5108                                         inherit: "compress" 0.0;
5109                                         color: CTXPOPUP_LIST_MAIN_TEXT_DIM_COLOR_INC;
5110                                 }
5111                         }
5112                         part {
5113                                 name: "right_padding";
5114                                 type: RECT;
5115                                 scale: 1;
5116                                 mouse_events: 0;
5117                                 description {
5118                                         state: "default" 0.0;
5119                                         visible: 0;
5120                                         min: (CTXPOPUP_ITEM_TEXT_PADDING_INC-CTXPOPUP_CONTENT_PADDING) CTXPOPUP_TOOLBAR_SEGMENTEDCONTROL_HEIGHT_MIN_INC;
5121                                         max: (CTXPOPUP_ITEM_TEXT_PADDING_INC-CTXPOPUP_CONTENT_PADDING) CTXPOPUP_TOOLBAR_SEGMENTEDCONTROL_HEIGHT_MAX_INC;
5122                                         fixed: 1 1;
5123                                         align: 1.0 1.0;
5124                                 }
5125                         }
5126                         part {
5127                                 name: "over1";
5128                                 type: RECT;
5129                                 mouse_events: 1;
5130                                 repeat_events: 1;
5131                                 description {
5132                                         state: "default" 0.0;
5133                                         color: 0 0 0 0;
5134                                 }
5135                         }
5136                         part {
5137                                 name: "over2";
5138                                 type: RECT;
5139                                 mouse_events: 1;
5140                                 repeat_events: 1;
5141                                 dragable {
5142                                         x: 0 0 0;
5143                                         y: 1 1 0;
5144                                 }
5145                                 description {
5146                                         state: "default" 0.0;
5147                                         rel1.to:"bg";
5148                                         rel2.to:"bg";
5149                                         color: 0 0 0 0;
5150                                 }
5151                         }
5152                         part {
5153                                 name: "disclip";
5154                                 type: RECT;
5155                                 description {
5156                                         state: "default" 0.0;
5157                                         visible: 0;
5158                                 }
5159                                 description {
5160                                         state: "disabled" 0.0;
5161                                         visible: 1;
5162                                         color: CTXPOPUP_ITEM_DISABLED_COLOR;
5163                                 }
5164                         }
5165                 }
5166                 programs {
5167                         program {
5168                                 name: "item_unclick";
5169                                 signal: "mouse,clicked,1";
5170                                 source: "over1";
5171                                 action: SIGNAL_EMIT "elm,action,click" "";
5172                         }
5173                         program {
5174                                 name: "disable";
5175                                 signal: "elm,state,disabled";
5176                                 source: "elm";
5177                                 script {
5178                                         new st[31];
5179                                         new Float:vl;
5180                                         get_state(PART:"elm.text", st, 30, vl);
5181                                         if ((!strcmp(st, "compress")) || (!strcmp(st, "compress_disabled")))
5182                                                 set_state(PART:"elm.text", "compress_disabled", 0.0);
5183                                         else
5184                                                 set_state(PART:"elm.text", "disabled", 0.0);
5185
5186                                         set_state(PART:"disclip", "disabled", 0.0);
5187                                 }
5188                         }
5189                         program {
5190                                 name: "enable";
5191                                 signal: "elm,state,enabled";
5192                                 source: "elm";
5193                                 script {
5194                                         new st[31];
5195                                         new Float:vl;
5196                                         get_state(PART:"elm.text", st, 30, vl);
5197                                         if ((!strcmp(st, "compress")) || (!strcmp(st, "compress_disabled")))
5198                                                 set_state(PART:"elm.text", "compress", 0.0);
5199                                         else
5200                                                 set_state(PART:"elm.text", "default", 0.0);
5201
5202                                         set_state(PART:"disclip", "default", 0.0);
5203                                 }
5204                         }
5205                         program {
5206                                 name: "default";
5207                                 signal: "elm,state,default";
5208                                 source: "elm";
5209                                 script {
5210                                         set_state(PART:"separator1", "default", 0.0);
5211                                         set_state(PART:"separator2", "default", 0.0);
5212                                 }
5213                         }
5214                         program {
5215                                 name: "compress";
5216                                 signal: "elm,state,compress";
5217                                 source: "elm";
5218                                 script {
5219                                         new st[31];
5220                                         new Float:vl;
5221                                         get_state(PART:"disclip", st, 30, vl);
5222                                         if (!strcmp(st, "disabled"))
5223                                                 set_state(PART:"elm.text", "compress_disabled", 0.0);
5224                                         else
5225                                                 set_state(PART:"elm.text", "compress", 0.0);
5226                                 }
5227                         }
5228                         program {
5229                                 name: "separator";
5230                                 signal: "elm,state,separator";
5231                                 source: "elm";
5232                                 script {
5233                                         set_state(PART:"separator1", "visible", 0.0);
5234                                         set_state(PART:"separator2", "visible", 0.0);
5235                                 }
5236                         }
5237                         program {
5238                                 name: "item_click2";
5239                                 signal: "mouse,down,1";
5240                                 source: "over2";
5241                                 script {
5242                                         set_state(PART:"elm.text", "clicked", 0.0);
5243
5244                                         new st[31];
5245                                         new Float:vl;
5246                                         get_state(PART:"separator2", st, 30, vl);
5247                                         if (!strcmp(st, "default"))
5248                                                 set_state(PART:"bg", "clicked", 0.0);
5249                                         else
5250                                                 set_state(PART:"bg", "clicked_separator", 0.0);
5251                                 }
5252                         }
5253                         program {
5254                                 name: "drag";
5255                                 signal: "drag";
5256                                 source: "over2";
5257                                 script {
5258                                         new Float:dx, Float:dy;
5259                                         get_drag(PART:"over2", dx, dy);
5260                                         if (abs(dy) > 20)
5261                                                 {
5262                                                         set_drag(PART:"over2", 0.0, 0.0);
5263                                                         set_state(PART:"elm.text", "compress", 0.0);
5264                                                         set_state(PART:"bg", "default", 0.0);
5265                                                 }
5266                                         set_drag(PART:"over2", 0.0, 0.0);
5267                                 }
5268                         }
5269                         program {
5270                                 name: "item_unclick2";
5271                                 signal: "mouse,up,1";
5272                                 source: "over2";
5273                                 script {
5274                                         set_drag(PART:"over2", 0.0, 0.0);
5275                                         set_state(PART:"elm.text", "compress", 0.0);
5276                                         set_state(PART:"bg", "default", 0.0);
5277                                 }
5278                         }
5279                 }
5280         }