tizen 2.4 release
[apps/home/ug-lockscreen-setting-efl.git] / ug-lockscreen-setting-efl / res / edje / lockscreen-options-locktitle.edc
1 /*
2  * Copyright (c) 2009 - 2015 Samsung Electronics Co., Ltd. All rights reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17
18 #define WIDTH 720
19 #define HEIGHT 1280
20 #define TOOLBAR_WIDTH 720
21 #define TOOLBAR_HEIGHT 83
22 #define TOOLBAR_LANDSCAPE_WIDTH 1280
23
24 sounds {
25         sample {
26                 name: "touch_sound" AS_IS;
27                 source: "Tizen_touch.wav";
28         }
29 }
30
31 #define BUTTON_BACKGROUD_NORMAL_OR_PRESS(part_name, rel1_x, rel1_y, rel2_x, rel2_y, normal_icon_name, press_icon_name)\
32                 part{\
33                         name: part_name;\
34                         type: IMAGE;\
35                         mouse_events: 1;\
36                         scale: 1;\
37                         description{\
38                                 state: "default" 0.0;\
39                                 visible: 1;\
40                                 rel1 {relative: rel1_x/TOOLBAR_WIDTH rel1_y/TOOLBAR_HEIGHT; to: "bg";}\
41                                 rel2 {relative: rel2_x/TOOLBAR_WIDTH rel2_y/TOOLBAR_HEIGHT; to: "bg";}\
42                                 image.normal: normal_icon_name;\
43                                 image.border: 8 8 0 0;\
44                         }\
45                         description{\
46                                 state: "press" 0.0;\
47                                 inherit: "default" 0.0;\
48                                 image.normal: press_icon_name;\
49                                 image.border: 8 8 0 0;\
50                         }\
51                         description{\
52                                 state: "landscape_default" 0.0;\
53                                 inherit: "default" 0.0;\
54                                 rel1 {relative: (rel1_x+10)/TOOLBAR_LANDSCAPE_WIDTH rel1_y/TOOLBAR_HEIGHT; to: "bg";}\
55                                 rel2 {relative: (rel2_x+10)/TOOLBAR_LANDSCAPE_WIDTH rel2_y/TOOLBAR_HEIGHT; to: "bg";}\
56                         }\
57                         description{\
58                                 state: "landscape_press" 0.0;\
59                                 inherit: "landscape_default" 0.0;\
60                                 image.normal: press_icon_name;\
61                                 image.border: 8 8 0 0;\
62                         }\
63                 }
64
65 #define BUTTON_BG_NORMAL_OR_PRESS(part_name, rel1_x, rel1_y, rel2_x, rel2_y, normal_icon_name, press_icon_name)\
66                 part{\
67                         name: part_name;\
68                         type: IMAGE;\
69                         mouse_events: 1;\
70                         scale: 1;\
71                         description{\
72                                 state: "default" 0.0;\
73                                 visible: 1;\
74                                 rel1 {relative: rel1_x/TOOLBAR_WIDTH rel1_y/TOOLBAR_HEIGHT; to: "bg";}\
75                                 rel2 {relative: rel2_x/TOOLBAR_WIDTH rel2_y/TOOLBAR_HEIGHT; to: "bg";}\
76                                 image.normal: normal_icon_name;\
77                                 image.border: 16 8 0 0;\
78                         }\
79                         description{\
80                                 state: "press" 0.0;\
81                                 inherit: "default" 0.0;\
82                                 image.normal: press_icon_name;\
83                         }\
84                         description{\
85                                 state: "landscape_default" 0.0;\
86                                 inherit: "default" 0.0;\
87                                 rel1 {relative: (rel1_x+520)/TOOLBAR_LANDSCAPE_WIDTH rel1_y/TOOLBAR_HEIGHT; to: "bg";}\
88                                 rel2 {relative: (rel2_x+520)/TOOLBAR_LANDSCAPE_WIDTH rel2_y/TOOLBAR_HEIGHT; to: "bg";}\
89                         }\
90                         description{\
91                                 state: "landscape_press" 0.0;\
92                                 inherit: "landscape_default" 0.0;\
93                                 image.normal: press_icon_name;\
94                         }\
95                 }
96 #define BUTTON_BG_NORMAL_OR_PRESS_OR_ENABLE(part_name, rel1_x, rel1_y, rel2_x, rel2_y, normal_icon_name, press_icon_name,enable_icon_name)\
97                 part{\
98                         name: part_name;\
99                         type: IMAGE;\
100                         mouse_events: 1;\
101                         scale: 1;\
102                         description{\
103                                 state: "default" 0.0;\
104                                 visible: 1;\
105                                 rel1 {relative: rel1_x/TOOLBAR_WIDTH rel1_y/TOOLBAR_HEIGHT; to: "bg";}\
106                                 rel2 {relative: rel2_x/TOOLBAR_WIDTH rel2_y/TOOLBAR_HEIGHT; to: "bg";}\
107                                 image.normal: normal_icon_name;\
108                                 image.border: 16 8 0 0;\
109                         }\
110                         description{\
111                                 state: "press" 0.0;\
112                                 inherit: "default" 0.0;\
113                                 image.normal: press_icon_name;\
114                         }\
115                         description{\
116                                 state: "enable" 0.0;\
117                                 inherit: "default" 0.0;\
118                                 image.normal: enable_icon_name;\
119                         }\
120                         description{\
121                                 state: "landscape_default" 0.0;\
122                                 inherit: "default" 0.0;\
123                                 rel1 {relative: (rel1_x+520)/TOOLBAR_LANDSCAPE_WIDTH rel1_y/TOOLBAR_HEIGHT; to: "bg";}\
124                                 rel2 {relative: (rel2_x+520)/TOOLBAR_LANDSCAPE_WIDTH rel2_y/TOOLBAR_HEIGHT; to: "bg";}\
125                         }\
126                         description{\
127                                 state: "landscape_press" 0.0;\
128                                 inherit: "landscape_default" 0.0;\
129                                 image.normal: press_icon_name;\
130                         }\
131                         description{\
132                                 state: "landscape_enable" 0.0;\
133                                 inherit: "landscape_default" 0.0;\
134                                 image.normal: enable_icon_name;\
135                         }\
136                 }
137
138
139 #define BUTTON_BG_PRESS(part_name, rel1_x, rel1_y, rel2_x, rel2_y, press_icon_name)\
140                 part{\
141                         name: part_name;\
142                         type: IMAGE;\
143                         mouse_events: 1;\
144                         scale: 1;\
145                         description{\
146                                 state: "default" 0.0;\
147                                 visible: 1;\
148                                 rel1 {relative: rel1_x/TOOLBAR_WIDTH rel1_y/TOOLBAR_HEIGHT; to: "bg";}\
149                                 rel2 {relative: rel2_x/TOOLBAR_WIDTH rel2_y/TOOLBAR_HEIGHT; to: "bg";}\
150                                 image.border: 8 8 0 0;\
151                         }\
152                         description{\
153                                 state: "press" 0.0;\
154                                 visible: 1;\
155                                 rel1 {relative: rel1_x/TOOLBAR_WIDTH rel1_y/TOOLBAR_HEIGHT; to: "bg";}\
156                                 rel2 {relative: rel2_x/TOOLBAR_WIDTH rel2_y/TOOLBAR_HEIGHT; to: "bg";}\
157                                 image.normal: press_icon_name;\
158                                 image.border: 8 8 0 0;\
159                         }\
160                         description{\
161                                 state: "landscape_default" 0.0;\
162                                 inherit: "default" 0.0;\
163                                 rel1 {relative: (rel1_x+560)/TOOLBAR_LANDSCAPE_WIDTH rel1_y/TOOLBAR_HEIGHT; to: "bg";}\
164                                 rel2 {relative: (rel2_x+560)/TOOLBAR_LANDSCAPE_WIDTH rel2_y/TOOLBAR_HEIGHT; to: "bg";}\
165                         }\
166                         description{\
167                                 state: "landscape_press" 0.0;\
168                                 inherit: "landscape_default" 0.0;\
169                                 image.normal: press_icon_name;\
170                                 image.border: 8 8 0 0;\
171                         }\
172                 }
173
174 #define BUTTON_NORMAL_OR_PRESS(part_name, rel1_x, rel1_y, rel2_x, rel2_y, normal_icon_name, press_icon_name, part_bg_name)\
175                 part{\
176                         name: part_name;\
177                         type: IMAGE;\
178                         scale: 1;\
179                         mouse_events: 1;\
180                         repeat_events: 1;\
181                         description{\
182                                 state: "default" 0.0;\
183                                 visible: 1;\
184                                 rel1 {relative: rel1_x rel1_y; to: part_bg_name;}\
185                                 rel2 {relative: rel2_x rel2_y; to: part_bg_name;}\
186                                 image.normal: normal_icon_name;\
187                         }\
188                         description{\
189                                         state: "press" 0.0;\
190                                         inherit: "default" 0.0;\
191                                         image.normal: press_icon_name;\
192                                 }\
193                         }
194
195 #define TOOLBAR_BUTTON_PROGRAM_SIGNAL_EMIT_1(part_name, singal_name)\
196                  program{\
197                          name: "send_click_event_"part_name;\
198                          signal: "mouse,clicked,1";\
199                          source: part_name;\
200                          action: SIGNAL_EMIT singal_name "";\
201                          after: "touch_snd_"part_name;\
202                  }\
203                  program{\
204                          name: "touch_snd_"part_name;\
205                          action: PLAY_SAMPLE "touch_sound" 1.0;\
206                  }
207
208
209 #define TOOLBAR_BUTTON_PROGRAM_SIGNAL_EMIT_2(part_name, singal_name1, signal_name2)\
210                 program{\
211                         name: "mouse_down_"part_name;\
212                         signal: "mouse,down,1";\
213                         source: part_name;\
214                         action: SIGNAL_EMIT singal_name1 "";\
215                 }\
216                 program{\
217                         name: "mouse_up_"part_name;\
218                         signal: "mouse,up,1";\
219                         source: part_name;\
220                         action: SIGNAL_EMIT signal_name2 "";\
221                 }
222
223
224 #define COLOR_RECT(part_name, relative_part_name, color_class_name)\
225         part{\
226                 name: part_name;\
227                 type: RECT;\
228                 scale: 1;\
229                 description{\
230                         state: "default" 0.0;\
231                         rel1 { relative: 9/56 40/60; to: relative_part_name;}\
232                         rel2 { relative: 49/56 50/60; to: relative_part_name;}\
233                         color_class: color_class_name;\
234                 }\
235         }
236 #define PROG_PART_DEFAULT_PRESS(part_name)\
237                 program{\
238                         name: "default,"part_name;\
239                         signal: "default,"part_name;\
240                         source: part_name;\
241                         action: STATE_SET "default" 0.0;\
242                         target: part_name;\
243                 }\
244                 program{\
245                         name: "press,"part_name;\
246                         signal: "press,"part_name;\
247                         source: part_name;\
248                         action: STATE_SET "press" 0.0;\
249                         target: part_name;\
250                 }\
251                 program{\
252                         name: "landscape_default,"part_name;\
253                         signal: "landscape_default,"part_name;\
254                         source: part_name;\
255                         action: STATE_SET "landscape_default" 0.0;\
256                         target: part_name;\
257                 }\
258                 program{\
259                         name: "landscape_press,"part_name;\
260                         signal: "landscape_press,"part_name;\
261                         source: part_name;\
262                         action: STATE_SET "landscape_press" 0.0;\
263                         target: part_name;\
264                 }\
265
266 #define PROG_PART_DEFAULT_SHOW(part_name)\
267                         program{\
268                                 name: "default,"part_name;\
269                                 signal: "default,"part_name;\
270                                 source: part_name;\
271                                 action: STATE_SET "default" 0.0;\
272                                 target: part_name;\
273                         }\
274                         program{\
275                                 name: "shown,"part_name;\
276                                 signal: "shown,"part_name;\
277                                 source: part_name;\
278                                 action: STATE_SET "shown" 0.0;\
279                                 target: part_name;\
280                         }\
281
282 #define PROG_PART_DEFAULT_LANDSCAPE(part_name)\
283                 program{\
284                         name: "default,"part_name;\
285                         signal: "default,"part_name;\
286                         source: part_name;\
287                         action: STATE_SET "default" 0.0;\
288                         target: part_name;\
289                 }\
290                 program{\
291                         name: "landscape,"part_name;\
292                         signal: "landscape,"part_name;\
293                         source: part_name;\
294                         action: STATE_SET "landscape" 0.0;\
295                         target: part_name;\
296                 }\
297
298 #define PROG_PART_DEFAULT_ENABLE(part_name)\
299                         program{\
300                                 name: "default,"part_name;\
301                                 signal: "default,"part_name;\
302                                 source: part_name;\
303                                 action: STATE_SET "default" 0.0;\
304                                 target: part_name;\
305                         }\
306                         program{\
307                                 name: "enable,"part_name;\
308                                 signal: "enable,"part_name;\
309                                 source: part_name;\
310                                 action: STATE_SET "enable" 0.0;\
311                                 target: part_name;\
312                         }\
313                         program{\
314                                 name: "landscape_default,"part_name;\
315                                 signal: "landscape_default,"part_name;\
316                                 source: part_name;\
317                                 action: STATE_SET "landscape_default" 0.0;\
318                                 target: part_name;\
319                         }\
320                         program{\
321                                 name: "landscape_enable,"part_name;\
322                                 signal: "landscape_enable,"part_name;\
323                                 source: part_name;\
324                                 action: STATE_SET "landscape_enable" 0.0;\
325                                 target: part_name;\
326                         }\
327
328
329
330
331 group{
332         images{
333                 image: "B09_Add_Text_sip_option_bg.png" COMP;
334                 image: "icon_preview_normal.png" COMP;
335                 image: "icon_preview_press.png" COMP;
336                 image: "icon_preview_dim.png" COMP;
337                 image: "00_circle_button.png" COMP;
338                 image: "edit_txt_bg.png" COMP;
339                 image: "icon_preview_search_btn.png" COMP;
340                 image: "icon_preview_search_btn_press.png" COMP;
341         }
342         name: "lockscreen.options.locktitle.main";
343         parts{
344                 part{
345                         name: "background";
346                         type: RECT;
347                         scale: 1;
348                         description{
349                                 state: "default" 0.0;
350                                 visible: 0;
351                                 rel1 { relative: 0.0 0.0; }
352                                 rel2 { relative: 1.0 1.0; }
353                         }
354                 }
355                 part{
356                         name: "sw.bg";
357                         type: SWALLOW;
358                         scale: 1;
359                         mouse_events: 1;
360                         description{
361                                 state: "default" 0.0;
362                                 rel1{
363                                         to: "background";
364                                 }
365                                 rel2{
366                                         to: "background";
367                                 }
368                         }
369                 }
370                 part{
371                         name: "sw.content";
372                         type: SWALLOW;
373                         scale: 1;
374                         mouse_events: 1;
375                         repeat_events: 1;
376                         description{
377                                 state: "default" 0.0;
378                                 rel1{
379                                         to: "background";
380                                 }
381                                 rel2{
382                                         to: "background";
383                                 }
384                         }
385                 }
386         #if 0
387                 part{
388                         name: "elm.swallow.content"; /* editfield */
389                         type: SWALLOW;
390                         scale: 1;
391                         description{
392                                 state: "default" 0.0;
393                                 align: 0.0 0.0;
394                                 rel1 { relative: 0.0 0.0; to: "background"; offset: 0 10;}
395                                 rel2 { relative: 1.0 0.0; to: "background"; offset: -98 220-40-30-10+10;}
396                         }
397                 }
398         #endif
399                 /*part{
400                         name: "sw.submenu";
401                         type: SWALLOW;
402                         scale: 1;
403                         description{
404                                 state: "default" 0.0;
405                                 rel1 { relative: 0.0 0.0; to: "background"; }
406                                 rel2 { relative: 1.0 0.25; to: "background"; }
407                         }
408                 }*/
409                 part{
410                         name: "toolbar.bg";
411                         type: IMAGE;
412                         scale: 1;
413                         description{
414                                 state: "default" 0.0;
415                                 min: 0 100;
416                                 fixed: 1 1;
417                                 align: 0.0 1.0;
418                                 visible: 0;
419                                 rel1 { relative: 0.0 1.0; to: "background";}
420                                 rel2 { relative: 1.0 1.0; to: "background";}
421                                 image.normal: "edit_txt_bg.png";
422                                 image.border: 8 8 8 8;
423                         }
424                 }
425                 part{
426                         name: "elm.swallow.toolbar2";/* add font and color buttons */
427                         type: SWALLOW;
428                         scale: 1;
429                         description{
430                                 state: "default" 0.0;
431                                 visible: 0;
432                                 rel1 { relative: 0.0 0.0; to: "toolbar.bg";}
433                                 rel2 { relative: 1.0 1.0; to: "toolbar.bg";}
434                         }
435                 }
436                 part{
437                         name: "toolbar_another.bg";
438                         type: IMAGE;
439                         scale: 1;
440                         description{
441                                 state: "default" 0.0;
442                                 min: 0 100;
443                                 fixed: 1 1;
444                                 align: 0.0 1.0;
445                                 visible: 1;
446                                 rel1 { relative: 0.0 (1280-474-83)/1280; to: "background";}
447                                 rel2 { relative: 1.0 (1280-474)/1280; to: "background";}
448                                 image.normal: "edit_txt_bg.png";
449                                 image.border: 8 8 8 8;
450                         }
451                 }
452                 part{
453                         name: "elm.swallow.toolbar2_another";/* add font and color buttons */
454                         type: SWALLOW;
455                         scale: 1;
456                         description{
457                                 state: "default" 0.0;
458                                 visible: 1;
459                                 rel1 { relative: 0.0 0.0; to: "toolbar_another.bg";}
460                                 rel2 { relative: 1.0 1.0; to: "toolbar_another.bg";}
461                         }
462                 }
463                 part{
464                         name: "bg.elm.swallow.selector";
465                         type: RECT;
466                         scale: 1;
467                         description{
468                                 state: "default" 0.0;
469                                 visible: 1;
470                                 rel1 { relative: 0.0 1.0; to: "toolbar_another.bg";}
471                                 rel2 { relative: 1.0 1.0; to: "background";}
472                                 color: 0 0 0 255;
473                         }
474                 }
475                 part{
476                         name: "elm.swallow.selector_";/* font and color selector layout */
477                         type: SWALLOW;
478                         scale: 1;
479                         description{
480                                 state: "default" 0.0;
481                                 visible: 1;
482                                 rel1 { relative: 0.0 1.0; to: "toolbar_another.bg";}
483                                 rel2 { relative: 1.0 1.0; to: "background";}
484                         }
485                 }
486 #if 0
487                 part{
488                         name: "elm.swallow.toolbar1";/*add done and back buttons*/
489                         type: SWALLOW;
490                         scale: 1;
491                         description{
492                                 state: "default" 0.0;
493                                 min: 0 100;
494                                 align: 0.0 1.0;
495                                 rel1 { relative: 0.0 1.0; to: "background";}
496                                 rel2 { relative: 1.0 1.0; to: "background";}
497                         }
498                         description{
499                                 state: "up" 1.0;
500                                 align: 0.0 1.0;
501                                 rel1 { relative: 0.0 -1.0; to: "toolbar.bg";}
502                                 rel2 { relative: 1.0 0.0; to: "toolbar.bg";}
503                         }
504                 }
505                 part{
506                         name: "elm.swallow.content"; /* editfield */
507                         type: SWALLOW;
508                         scale: 1;
509                         description{
510                                 state: "default" 0.0;
511                                 align: 0.0 0.0;
512                                 rel1 { relative: 0.0 0.0; to: "background";}
513                                 rel2 { relative: 1.0 0.0; to: "background"; offset: -98 220-40;}
514                         }
515                 }
516                 part{
517                         name: "img.preview.background";
518                         type: IMAGE;
519                         scale: 1;
520                         mouse_events: 1;
521                         repeat_events: 0;
522                         description{
523                                         state: "default" 0.0;
524                                         max: 74 72;
525                                         min: 74 72;
526                                         fixed: 1 1;
527                                         align: 1.0 0.0;
528                                         rel1 { relative: 0.0 0.0; to: "background"; offset: 0 55;}
529                                         rel2 { relative: 1.0 0.0; to: "background"; offset: -20 0;}
530                                         image.normal: "icon_preview_search_btn.png";
531                      }
532                         description{
533                                         state: "press" 0.0;
534                                         max: 74 72;
535                                         min: 74 72;
536                                         fixed: 1 1;
537                                         align: 1.0 0.0;
538                                         rel1 { relative: 0.0 0.0; to: "background"; offset: 0 55;}
539                                         rel2 { relative: 1.0 0.0; to: "background"; offset: -20 0;}
540                                         image.normal: "icon_preview_search_btn_press.png";
541                      }
542                 }
543                 part{
544                         name: "img.preview";
545                         type: IMAGE;
546                         scale: 1;
547                         mouse_events: 1;
548                         repeat_events: 1;
549                         description{
550                                         state: "default" 0.0;
551                                         max: 63 63;
552                                         min: 63 63;
553                                         fixed: 1 1;
554                                         align: 1.0 0.0;
555                                         rel1 { relative: 0.0 0.0; to: "background"; offset: 0 60;}
556                                         rel2 { relative: 1.0 0.0; to: "background"; offset: -25 0;}
557                                         image.normal: "icon_preview_normal.png";
558                         }
559                         description{
560                                         state: "press" 0.0;
561                                         max: 63 63;
562                                         min: 63 63;
563                                         fixed: 1 1;
564                                         align: 1.0 0.0;
565                                         rel1 { relative: 0.0 0.0; to: "background"; offset: 0 60;}
566                                         rel2 { relative: 1.0 0.0; to: "background"; offset: -25 0;}
567                                         image.normal: "icon_preview_press.png";
568                         }
569
570                 }
571                 FOCUS_OBJECT("img.preview");
572                 part{
573                         name: "elm.swallow.selector";/* font and color selector layout */
574                         type: SWALLOW;
575                         scale: 1;
576                         description{
577                                 state: "default" 0.0;
578                                 visible: 1;
579                                 rel1 { relative: 0.0 1.0; to: "toolbar.bg";}
580                                 rel2 { relative: 1.0 1.0; to: "background";}
581                         }
582                 }
583 #endif
584         }
585         script {
586                 public message(Msg_Type:type, id, ...) {
587                         custom_state(PART:"toolbar.bg", "default", 0.0);
588                         custom_state(PART:"elm.swallow.toolbar2", "default", 0.0);
589                         custom_state(PART:"toolbar_another.bg", "default", 0.0);
590                         custom_state(PART:"elm.swallow.toolbar2_another", "default", 0.0);
591                         custom_state(PART:"bg.elm.swallow.selector", "default", 0.0);
592                         custom_state(PART:"elm.swallow.selector_", "default", 0.0);
593
594                         if ((type == MSG_FLOAT) && (id == 1)) {
595                                 new Float:rel2_y = Float:getarg(2);
596                                 set_state_val(PART:"toolbar.bg", STATE_REL1, 0.0, rel2_y);
597                                 set_state_val(PART:"toolbar.bg", STATE_REL2, 1.0, rel2_y);
598                         }
599                         if ((type == MSG_FLOAT) && (id == 2)) {
600                                 set_state_val(PART:"toolbar.bg", STATE_VISIBLE, 1);
601                                 set_state_val(PART:"elm.swallow.toolbar2", STATE_VISIBLE, 1);
602                         }
603                         if ((type == MSG_FLOAT) && (id == 3)) {
604                                 //set_state_val(PART:"toolbar.bg", STATE_REL1_OFFSET, 0, 0);
605                                 //set_state_val(PART:"toolbar.bg", STATE_REL2_OFFSET, 0, 0);
606                                 set_state_val(PART:"toolbar.bg", STATE_VISIBLE, 0);
607                                 set_state_val(PART:"elm.swallow.toolbar2", STATE_VISIBLE, 0);
608                         }
609
610                         if ((type == MSG_INT) && (id == 4)) {
611                                 new offset_y = getarg(2);
612                                 set_state_val(PART:"toolbar.bg", STATE_REL1, 0.0, 0.0);
613                                 set_state_val(PART:"toolbar.bg", STATE_REL2, 1.0, 0.0);
614                                 set_state_val(PART:"toolbar.bg", STATE_REL1_OFFSET, 0, offset_y);
615                                 set_state_val(PART:"toolbar.bg", STATE_REL2_OFFSET, 0, offset_y);
616                         }
617                         if ((type == MSG_FLOAT) && (id == 5)) {
618                                 set_state_val(PART:"toolbar_another.bg", STATE_VISIBLE, 0);
619                                 set_state_val(PART:"elm.swallow.toolbar2_another", STATE_VISIBLE, 0);
620                                 set_state_val(PART:"bg.elm.swallow.selector", STATE_VISIBLE, 0);
621                                 set_state_val(PART:"elm.swallow.selector_", STATE_VISIBLE, 0);
622                         }
623                         if ((type == MSG_FLOAT) && (id == 6)) {
624                                 set_state_val(PART:"toolbar_another.bg", STATE_VISIBLE, 1);
625                                 set_state_val(PART:"elm.swallow.toolbar2_another", STATE_VISIBLE, 1);
626                                 set_state_val(PART:"bg.elm.swallow.selector", STATE_VISIBLE, 1);
627                                 set_state_val(PART:"elm.swallow.selector_", STATE_VISIBLE, 1);
628                         }
629                         set_state(PART:"toolbar.bg", "custom", 0.0);
630                         set_state(PART:"elm.swallow.toolbar2", "custom", 0.0);
631                         set_state(PART:"toolbar_another.bg", "custom", 0.0);
632                         set_state(PART:"elm.swallow.toolbar2_another", "custom", 0.0);
633                         set_state(PART:"bg.elm.swallow.selector", "custom", 0.0);
634                         set_state(PART:"elm.swallow.selector_", "custom", 0.0);
635
636                 }
637         }
638         programs {
639         #if 0
640                 program{
641                         name: "up,toolbar1";
642                         signal: "up,toolbar1";
643                         source: "elm.swallow.toolbar1";
644                         action: STATE_SET "up" 1.0;
645                         target: "elm.swallow.toolbar1";
646                 }
647                 program{
648                         name: "down,toolbar1";
649                         signal: "down,toolbar1";
650                         source: "elm.swallow.toolbar1";
651                         action: STATE_SET "default" 0.0;
652                         target: "elm.swallow.toolbar1";
653                 }
654                 PROGRAM_CLICKED_SIGNAL_EMIT("img.preview","img.preview,clicked")
655                 program{
656                                 name: "mouse_down_img.preview";
657                                 signal: "mouse,down,1";
658                                 source: "img.preview.background";
659                                 action: STATE_SET "press" 0.0;
660                                 target: "img.preview";
661                 }
662                 program{
663                                 name: "mouse_up_img.preview";
664                                 signal: "mouse,up,1";
665                                 source: "img.preview.background";
666                                 action: STATE_SET "default" 0.0;
667                                 target: "img.preview";
668                 }
669
670                 PROGRAM_CLICKED_SIGNAL_EMIT("img.preview.background","img.preview.background,clicked")
671                 program{
672                                 name: "mouse_down_img.preview.background";
673                                 signal: "mouse,down,1";
674                                 source: "img.preview.background";
675                                 action: STATE_SET "press" 0.0;
676                                 target: "img.preview.background";
677                 }
678                 program{
679                                 name: "mouse_up_img.preview.background";
680                                 signal: "mouse,up,1";
681                                 source: "img.preview.background";
682                                 action: STATE_SET "default" 0.0;
683                                 target: "img.preview.background";
684                 }
685         #endif
686         }
687 }
688 styles {
689         style {
690                 name: "font_style";
691                 base: "font=SamsungSans:style=Regular text_class=SamsungSans font_size=48 align=center color=#ffffffff style=shadow shadow_color=#0000007f wrap=""";
692                 tag: "br" "\n";
693                 tag: "hilight" "+ color=#ffff";
694                 tag: "b" "+ color=#ffff";
695                 tag: "tab" "\t";
696         }
697 }
698
699 group{
700         images{
701                 image: "B09_key_btn_01.png" COMP;
702                 image: "B09_key_btn_press.png" COMP;
703                 image: "B09_Add_Text_sip_option_bold.png" COMP;
704                 image: "B09_Add_Text_sip_option_Italic.png" COMP;
705                 image: "B09_Add_Text_sip_option_underline.png" COMP;
706                 image: "B09_Add_Text_sip_option_color.png" COMP;
707                 image: "B09_Add_Text_sip_option_style.png" COMP;
708                 //
709                 image: "icon_preview_tool_icon_01.png" COMP;
710                 image: "icon_preview_tool_icon_01_select.png" COMP;
711                 image: "icon_preview_tool_icon_03.png" COMP;
712                 image: "icon_preview_tool_icon_03_select.png" COMP;
713                 image: "icon_preview_tool_icon_04.png" COMP;
714                 image: "icon_preview_tool_icon_04_select.png" COMP;
715                 image: "icon_preview_tool_icon_05.png" COMP;
716                 image: "icon_preview_tool_icon_05_select.png" COMP;
717                 image: "icon_preview_tool_icon_06.png" COMP;
718                 image: "icon_preview_tool_icon_06_select.png" COMP;
719                 image: "edit_btn_divider.png" COMP;
720                 image: "edit_btn_press.png" COMP;
721                 image: "edit_btn_selected.png" COMP;
722                 image: "edit_btn_normal.png" COMP;
723                 image: "edit_btn_selected_l.png" COMP;
724                 image: "edit_btn_selected_c.png" COMP;
725                 image: "edit_btn_selected_r.png" COMP;
726                 image: "edit_btn_enable_l.png" COMP;
727                 image: "edit_btn_enable_c.png" COMP;
728                 image: "edit_btn_enable_r.png" COMP;
729                 image: "edit_btn_enable.png" COMP;
730                 image: "edit_btn_normal_l.png" COMP;
731                 image: "edit_btn_normal_c.png" COMP;
732                 image: "edit_btn_normal_r.png" COMP;
733                 image: "edit_btn_press_l.png" COMP;
734                 image: "edit_btn_press_c.png" COMP;
735                 image: "edit_btn_press_r.png" COMP;
736                 image: "edit_btn_icon_txtcolor_nor.png" COMP;
737                 image: "edit_btn_icon_txtcolor_nor.png" COMP;
738                 image: "edit_btn_icon_txtcolor_press.png" COMP;
739                 image: "edit_btn_icon_bold_nor.png" COMP;
740                 image: "edit_btn_icon_bold_press.png" COMP;
741                 image: "edit_btn_icon_Italic_nor.png" COMP;
742                 image: "edit_btn_icon_Italic_press.png" COMP;
743                 image: "edit_btn_icon_underline_nor.png" COMP;
744                 image: "edit_btn_icon_underline_press.png" COMP;
745                 image: "edit_btn_icon_txtcolor_nor.png" COMP;
746                 image: "edit_btn_icon_txtcolor_press.png" COMP;
747                 image: "edit_btn_icon_keyboard_nor.png" COMP;
748                 image: "edit_btn_icon_keyboard_press.png" COMP;
749         }
750         name: "lockscreen.options.locktitle.toolbar2";
751         parts{
752                 part{
753                         name: "bg";
754                         type: RECT;
755                         scale: 1;
756                         description{
757                                 state: "default" 0.0;
758                                 visible: 0;
759                                 rel1 { relative: 0.0 0.0; }
760                                 rel2 { relative: 1.0 1.0; }
761                         }
762                 }
763                 /*
764                 //bg for three part
765                 BUTTON_BACKGROUD_NORMAL_OR_PRESS("background", (4), (8), (4+254), (8+82), "edit_btn_normal.png", "edit_btn_normal.png");
766
767                 //keyboard
768                 part{
769                         name: "keyboard.bg";
770                         type: IMAGE;
771                         mouse_events: 1;
772                         scale: 1;
773                         description{
774                                 state: "default" 0.0;
775                                 visible: 1;
776                                 image.border: 8 0 8 8;
777                                 rel1 {relative: 0.0 0.0; to: "background";}
778                                 rel2 {relative: (85)/254 1.0; to: "background";}
779                                 image.normal: "edit_btn_normal_l.png";
780                         }
781                         description{
782                                 state: "shown" 0.0;
783                                 visible: 1;
784                                 image.border: 8 0 8 8;
785                                 rel1 {relative: 0.0 0.0; to: "background";}
786                                 rel2 {relative: (85)/254 1.0; to: "background";}
787                                 image.normal: "edit_btn_enable_l.png";
788                         }
789                         description{
790                                 state: "enable" 0.0;
791                                 visible: 1;
792                                 image.border: 8 0 8 8;
793                                 rel1 {relative: 0.0 0.0; to: "background";}
794                                 rel2 {relative: (85)/254 1.0; to: "background";}
795                                 image.normal: "edit_btn_press_l.png";
796                         }
797                 }
798                 //BUTTON_NORMAL_OR_PRESS("keyboard", (4+13/2)/254, 15/82, (85-10.5)/256, (82-15)/82, "icon_preview_tool_icon_01.png", "icon_preview_tool_icon_01_select.png", "background");
799                 BUTTON_NORMAL_OR_PRESS("keyboard", (4+13/2)/254, 15/82, (85-10.5)/256, (82-15)/82, "edit_btn_icon_keyboard_nor.png", "edit_btn_icon_keyboard_press.png", "background");
800
801                 //divider 1
802                 part{
803                         name: "divider_1";
804                         type: IMAGE;
805                         scale: 1;
806                         mouse_events: 0;
807                         repeat_events: 0;
808                         description{
809                                         state: "default" 0.0;
810                                         max: 2 82;
811                                         min: 2 82;
812                                         fixed: 1 1;
813                                         rel1 { relative: (85)/254 0.0; to: "background";}
814                                         rel2 { relative: (85+2)/254 1.0; to: "background";}
815                                         image.normal: "edit_btn_divider.png";
816                         }
817                 }
818
819                 //font
820                 part{
821                         name: "font.bg";
822                         type: IMAGE;
823                         mouse_events: 1;
824                         scale: 1;
825                         description{
826                                 state: "default" 0.0;
827                                 visible: 1;
828                                 rel1 {relative: (85+2)/254 0.0; to: "background";}
829                                 rel2 {relative: (85+2+80)/254 1.0; to: "background";}
830                                 image.normal: "edit_btn_normal_c.png";
831                         }
832                         description{
833                                 state: "shown" 0.0;
834                                 #if 0
835                                 visible: 1;
836                                 rel1 {relative: (85+2)/254 0.0; to: "background";}
837                                 rel2 {relative: (85+2+80)/254 1.0; to: "background";}
838                                 #endif
839                                 inherit: "default" 0.0;
840                                 //image.normal: "edit_btn_selected_c.png";
841                                 image.normal: "edit_btn_enable_c.png";
842                         }
843                         description{
844                                 state: "enable" 0.0;
845                                 #if 0
846                                 visible: 1;
847                                 rel1 {relative: (85+2)/254 0.0; to: "background";}
848                                 rel2 {relative: (85+2+80)/254 1.0; to: "background";}
849                                 #endif
850                                 inherit: "default" 0.0;
851                                 image.normal: "edit_btn_press_c.png";
852                         }
853                 }
854                 part{
855                         name: "font";
856                         type: TEXTBLOCK;
857                         scale: 1;
858                         mouse_events: 1;
859                         repeat_events: 1;
860                         description{
861                                 state: "default" 0.0;
862                                 visible: 1;
863                                 rel1 { relative: (85+2+9)/254 15/82; to: "background";}
864                                 rel2 { relative: (85+2+9+62)/254 (15+52)/82; to: "background";}
865                                 text{
866                                         style: "font_style";
867                                 }
868                         }
869                 }
870
871                 //divider 2
872                 part{
873                         name: "divider_2";
874                         type: IMAGE;
875                         scale: 1;
876                         mouse_events: 0;
877                         repeat_events: 0;
878                         description{
879                                         state: "default" 0.0;
880                                         max: 2 82;
881                                         min: 2 82;
882                                         fixed: 1 1;
883                                         rel1 { relative: (85+2+80)/254 0.0; to: "background";}
884                                         rel2 { relative: (85+2+80+2)/254 1.0; to: "background";}
885                                         image.normal: "edit_btn_divider.png";
886                         }
887                 }
888
889                 //draw
890                 part{
891                         name: "draw.bg";
892                         type: IMAGE;
893                         mouse_events: 1;
894                         scale: 1;
895                         description{
896                                 state: "default" 0.0;
897                                 visible: 1;
898                                 image.border: 0 8 8 8;
899                                 rel1 {relative: (85+2+80+2)/254 0.0; to: "background";}
900                                 rel2 {relative: 1.0 1.0; to: "background";}
901                                 image.normal: "edit_btn_normal_r.png";
902                         }
903                         description{
904                                 state: "shown" 0.0;
905                                 visible: 1;
906                                 image.border: 0 8 8 8;
907                                 rel1 {relative: (85+2+80+2)/254 0.0; to: "background";}
908                                 rel2 {relative: 1.0 1.0; to: "background";}
909                                 image.normal: "edit_btn_enable_r.png";
910                         }
911                         description{
912                                 state: "enable" 0.0;
913                                 visible: 1;
914                                 image.border: 0 8 8 8;
915                                 rel1 {relative: (85+2+80+2)/254 0.0; to: "background";}
916                                 rel2 {relative: 1.0 1.0; to: "background";}
917                                 image.normal: "edit_btn_press_r.png";
918                         }
919                 }
920                 //BUTTON_NORMAL_OR_PRESS("draw", (85+2+80+2+(85-62)/2)/254, 8/82, (85+2+80+2+10.5+62)/256, (8+52)/82, "icon_preview_tool_icon_03.png", "icon_preview_tool_icon_03_select.png", "background");
921                 BUTTON_NORMAL_OR_PRESS("draw", (85+2+80+2+(85-62)/2)/254, 15/82, (85+2+80+2+10.5+62)/256, (15+52)/82, "edit_btn_icon_txtcolor_nor.png", "edit_btn_icon_txtcolor_press.png", "background");
922        */
923            //keyboard
924            BUTTON_BG_NORMAL_OR_PRESS("keyboard_normal", (10), (9), (10+80), (9+64), "edit_btn_normal.png", "edit_btn_normal.png");
925            BUTTON_BG_NORMAL_OR_PRESS_OR_ENABLE("text.keyboard.bg", (10), (9), (10+80), (9+64), "edit_btn_normal.png", "edit_btn_enable.png","edit_btn_press.png");
926            BUTTON_NORMAL_OR_PRESS("text.keyboard", 0.0, 0.0, 1.0, 1.0,"edit_btn_icon_keyboard_nor.png", "edit_btn_icon_keyboard_press.png", "text.keyboard.bg");
927
928            //font
929            BUTTON_BG_NORMAL_OR_PRESS("font_normal", (10+80+4), (9), (10+80+4+80), (9+64), "edit_btn_normal.png", "edit_btn_normal.png");
930            BUTTON_BG_NORMAL_OR_PRESS_OR_ENABLE("text.font.bg", (10+80+4), (9), (10+80+4+80), (9+64), "edit_btn_normal.png", "edit_btn_enable.png","edit_btn_press.png");
931            part{
932                    name: "font";
933                    type: TEXTBLOCK;
934                    scale: 1;
935                    mouse_events: 1;
936                    repeat_events: 1;
937                    description{
938                            state: "default" 0.0;
939                            visible: 1;
940                            rel1 { relative: 0.0 0.0; to: "text.font.bg";}
941                            rel2 { relative: 1.0 1.0; to: "text.font.bg";}
942                            text{
943                                    style: "font_style";
944                            }
945                    }
946            }
947
948            //colour
949            BUTTON_BG_NORMAL_OR_PRESS("draw_normal", (10+80+4+80+4), (9), (10+80+4+80+4+80), (9+64), "edit_btn_normal.png", "edit_btn_normal.png");
950            BUTTON_BG_NORMAL_OR_PRESS_OR_ENABLE("text.draw.bg", (10+80+4+80+4), (9), (10+80+4+80+4+80), (9+64), "edit_btn_normal.png", "edit_btn_enable.png","edit_btn_press.png");
951            BUTTON_NORMAL_OR_PRESS("text.draw", 0.0, 0.0, 1.0, 1.0, "edit_btn_icon_txtcolor_nor.png", "edit_btn_icon_txtcolor_press.png", "text.draw.bg");
952
953
954                 //indicator
955                 part{
956                         name: "draw_indictor1";/* change the color in c code */
957                         type: RECT;
958                         scale: 1;
959                         mouse_events: 1;
960                         repeat_events: 1;
961                         description{
962                                 state: "default" 0.0;
963                                 //rel1 { relative: (9.5+1)/62 (40-2)/52; to: "draw";}
964                                 //rel2 { relative: (9.5+43+3)/62 (40+8)/52; to: "draw";}
965                                 rel1 { relative: (9.5)/62 (40-2)/52; to: "draw_normal";}
966                                 rel2 { relative: (9.5+43)/62 (40+6)/52; to: "draw_normal";}
967                                 color_class: "draw_indictor";
968                         }
969                 }
970
971                 //bold
972                 BUTTON_BG_NORMAL_OR_PRESS("bold_normal", (10+80+4+80+4+80+204), (9), (10+80+4+80+4+80+204+80), (9+64), "edit_btn_normal.png", "edit_btn_normal.png");
973                 //BUTTON_BG_NORMAL_OR_PRESS_OR_ENABLE("text.bold.bg", (4+254+110), (8), (4+254+110+108), (8+82), "edit_btn_normal.png", "edit_btn_selected.png","edit_btn_enable_c.png");
974                 BUTTON_BG_NORMAL_OR_PRESS_OR_ENABLE("text.bold.bg", (10+80+4+80+4+80+204), (9), (10+80+4+80+4+80+204+80), (9+64), "edit_btn_normal.png", "edit_btn_enable.png","edit_btn_press.png");
975                 //BUTTON_NORMAL_OR_PRESS("text.bold", 23/108, 15/82, (108-23)/108, (82-15)/82,"icon_preview_tool_icon_04.png", "icon_preview_tool_icon_04_select.png", "text.bold.bg");
976                 BUTTON_NORMAL_OR_PRESS("text.bold", 0.0, 0.0, 1.0, 1.0,"edit_btn_icon_bold_nor.png", "edit_btn_icon_bold_press.png", "text.bold.bg");
977
978                 //italic
979                 BUTTON_BG_NORMAL_OR_PRESS("italic_normal", (10+80+4+80+4+80+204+80+4), (9), (10+80+4+80+4+80+204+80+4+80), (9+64), "edit_btn_normal.png", "edit_btn_normal.png");
980                 //BUTTON_BG_NORMAL_OR_PRESS_OR_ENABLE("text.italic.bg", (4+254+110+108+12), (8), (4+254+110+108+12+108), (8+82), "edit_btn_normal.png", "edit_btn_selected.png","edit_btn_enable_c.png");
981                 BUTTON_BG_NORMAL_OR_PRESS_OR_ENABLE("text.italic.bg", (10+80+4+80+4+80+204+80+4), (9), (10+80+4+80+4+80+204+80+4+80), (9+64), "edit_btn_normal.png", "edit_btn_enable.png","edit_btn_press.png");
982                 BUTTON_NORMAL_OR_PRESS("text.italic", 0.0, 0.0, 1.0, 1.0, "edit_btn_icon_Italic_nor.png", "edit_btn_icon_Italic_press.png", "text.italic.bg");
983
984                 //underline
985                 BUTTON_BG_NORMAL_OR_PRESS("underline_normal", (10+80+4+80+4+80+204+80+4+80+4), (9), (10+80+4+80+4+80+204+80+4+80+4+80), (9+64), "edit_btn_normal.png", "edit_btn_normal.png");
986                 //BUTTON_BG_NORMAL_OR_PRESS_OR_ENABLE("text.underline.bg", (4+254+110+108+12+108+12), (8), (4+254+110+108+12+108+12+108), (8+82), "edit_btn_normal.png", "edit_btn_selected.png","edit_btn_enable_c.png");
987                 BUTTON_BG_NORMAL_OR_PRESS_OR_ENABLE("text.underline.bg", (10+80+4+80+4+80+204+80+4+80+4), (9), (10+80+4+80+4+80+204+80+4+80+4+80), (9+64), "edit_btn_normal.png", "edit_btn_enable.png","edit_btn_press.png");
988                 BUTTON_NORMAL_OR_PRESS("text.underline", 0.0, 0.0, 1.0, 1.0, "edit_btn_icon_underline_nor.png", "edit_btn_icon_underline_press.png", "text.underline.bg");
989         }
990         programs{
991                 /*
992                 //keyboard
993                 PROG_PART_DEFAULT_SHOW("keyboard.bg");
994                 program{
995                         name: "select,keyboard.bg";
996                         signal: "select,keyboard.bg";
997                         source: "keyboard.bg";
998                         action: STATE_SET "shown" 0.0;
999                         target: "keyboard.bg";
1000                 }
1001                 program{
1002                         name: "unselect,keyboard.bg";
1003                         signal: "unselect,keyboard.bg";
1004                         source: "keyboard.bg";
1005                         action: STATE_SET "default" 0.0;
1006                         target: "keyboard.bg";
1007                 }
1008                 program{
1009                                 name: "mouse_down.keyboard.bg";
1010                                 signal: "mouse_down,keyboard.bg";
1011                                 source: "keyboard.bg";
1012                                 action: STATE_SET "enable" 0.0;
1013                                 target: "keyboard.bg";
1014                 }
1015                 program{
1016                                 name: "mouse_up.keyboard.bg";
1017                                 signal: "mouse_up,keyboard.bg";
1018                                 source: "keyboard.bg";
1019                                 action: STATE_SET "default" 0.0;
1020                                 target: "keyboard.bg";
1021                 }
1022                 program{
1023                                 name: "mouse_down.keyboard";
1024                                 signal: "mouse,down,1";
1025                                 source: "keyboard.bg";
1026                                 action: STATE_SET "press" 0.0;
1027                                 target: "keyboard";
1028                 }
1029                 program{
1030                                 name: "mouse_up.keyboard";
1031                                 signal: "mouse,up,1";
1032                                 source: "keyboard.bg";
1033                                 action: STATE_SET "default" 0.0;
1034                                 target: "keyboard";
1035                 }
1036                 //font
1037                 PROG_PART_DEFAULT_SHOW("font.bg");
1038                 program{
1039                                 name: "mouse_down.font.bg";
1040                                 signal: "mouse_down,font.bg";
1041                                 source: "font.bg";
1042                                 action: STATE_SET "enable" 0.0;
1043                                 target: "font.bg";
1044                 }
1045                 program{
1046                                 name: "mouse_up.font.bg";
1047                                 signal: "mouse_up,font.bg";
1048                                 source: "font.bg";
1049                                 action: STATE_SET "default" 0.0;
1050                                 target: "font.bg";
1051                 }
1052                 program{
1053                         name: "select,font.bg";
1054                         signal: "select,font.bg";
1055                         source: "font.bg";
1056                         action: STATE_SET "shown" 0.0;
1057                         target: "font.bg";
1058                 }
1059                 program{
1060                         name: "unselect,font.bg";
1061                         signal: "unselect,font.bg";
1062                         source: "font.bg";
1063                         action: STATE_SET "default" 0.0;
1064                         target: "font.bg";
1065                 }
1066                 //draw
1067                 PROG_PART_DEFAULT_SHOW("draw.bg");
1068                 program{
1069                         name: "select,draw.bg";
1070                         signal: "select,draw.bg";
1071                         source: "draw.bg";
1072                         action: STATE_SET "shown" 0.0;
1073                         target: "draw.bg";
1074                 }
1075                 program{
1076                         name: "unselect,draw.bg";
1077                         signal: "unselect,draw.bg";
1078                         source: "draw.bg";
1079                         action: STATE_SET "default" 0.0;
1080                         target: "draw.bg";
1081                 }               
1082                 program{
1083                                 name: "mouse_down.draw.bg";
1084                                 signal: "mouse_down,draw.bg";
1085                                 source: "draw.bg";
1086                                 action: STATE_SET "enable" 0.0;
1087                                 target: "draw.bg";
1088                 }
1089                 program{
1090                                 name: "mouse_up.draw.bg";
1091                                 signal: "mouse_up,draw.bg";
1092                                 source: "draw.bg";
1093                                 action: STATE_SET "default" 0.0;
1094                                 target: "draw.bg";
1095                 }
1096                 program{
1097                                 name: "mouse_down.draw";
1098                                 signal: "mouse,down,1";
1099                                 source: "draw.bg";
1100                                 action: STATE_SET "press" 0.0;
1101                                 target: "draw";
1102                 }
1103                 program{
1104                                 name: "mouse_up.draw";
1105                                 signal: "mouse,up,1";
1106                                 source: "draw.bg";
1107                                 action: STATE_SET "default" 0.0;
1108                                 target: "draw";
1109                 }
1110
1111                 PROG_PART_DEFAULT_PRESS("background");
1112                 */
1113                 PROG_PART_DEFAULT_PRESS("keyboard_normal");
1114                 PROG_PART_DEFAULT_PRESS("text.keyboard.bg");
1115                 program{
1116                         name: "select,text.keyboard.bg";
1117                         signal: "select,text.keyboard.bg";
1118                         source: "text.keyboard.bg";
1119                         action: STATE_SET "shown" 0.0;
1120                         target: "text.keyboard.bg";
1121                 }
1122                 program{
1123                         name: "unselect,text.keyboard.bg";
1124                         signal: "unselect,text.keyboard.bg";
1125                         source: "text.keyboard.bg";
1126                         action: STATE_SET "default" 0.0;
1127                         target: "text.keyboard.bg";
1128                 }
1129                 program{
1130                                 name: "mouse_down.keyboard";
1131                                 signal: "mouse_down,keyboard";
1132                                 source: "text.keyboard.bg";
1133                                 action: STATE_SET "enable" 0.0;
1134                                 target: "text.keyboard.bg";
1135                 }
1136                 program{
1137                                 name: "mouse_up.keyboard";
1138                                 signal: "mouse_up,keyboard";
1139                                 source: "text.keyboard.bg";
1140                                 action: STATE_SET "default" 0.0;
1141                                 target: "text.keyboard.bg";
1142                 }
1143                 program{
1144                                 name: "landscape_mouse_down.keyboard";
1145                                 signal: "landscape_mouse_down,keyboard";
1146                                 source: "text.keyboard.bg";
1147                                 action: STATE_SET "landscape_enable" 0.0;
1148                                 target: "text.keyboard.bg";
1149                 }
1150                 program{
1151                                 name: "landscape_mouse_up.keyboard";
1152                                 signal: "landscape_mouse_up,keyboard";
1153                                 source: "text.keyboard.bg";
1154                                 action: STATE_SET "landscape_default" 0.0;
1155                                 target: "text.keyboard.bg";
1156                 }
1157                 program{
1158                                 name: "mouse_down.text_keyboard";
1159                                 signal: "mouse,down,1";
1160                                 source: "text.keyboard.bg";
1161                                 action: STATE_SET "press" 0.0;
1162                                 target: "text.keyboard";
1163                 }
1164                 program{
1165                                 name: "mouse_up.text_keyboard";
1166                                 signal: "mouse,up,1";
1167                                 source: "text.keyboard.bg";
1168                                 action: STATE_SET "default" 0.0;
1169                                 target: "text.keyboard";
1170                 }
1171
1172                 PROG_PART_DEFAULT_PRESS("font_normal");
1173                 PROG_PART_DEFAULT_PRESS("text.font.bg");
1174                 program{
1175                         name: "select,text.font.bg";
1176                         signal: "select,text.font.bg";
1177                         source: "text.font.bg";
1178                         action: STATE_SET "shown" 0.0;
1179                         target: "text.font.bg";
1180                 }
1181                 program{
1182                         name: "unselect,text.font.bg";
1183                         signal: "unselect,text.font.bg";
1184                         source: "text.font.bg";
1185                         action: STATE_SET "default" 0.0;
1186                         target: "text.font.bg";
1187                 }
1188
1189                 program{
1190                                 name: "mouse_down.font";
1191                                 signal: "mouse_down,font";
1192                                 source: "text.font.bg";
1193                                 action: STATE_SET "enable" 0.0;
1194                                 target: "text.font.bg";
1195                 }
1196                 program{
1197                                 name: "mouse_up.font";
1198                                 signal: "mouse_up,font";
1199                                 source: "text.font.bg";
1200                                 action: STATE_SET "default" 0.0;
1201                                 target: "text.font.bg";
1202                 }
1203                 program{
1204                                 name: "landscape_mouse_down.font";
1205                                 signal: "landscape_mouse_down,font";
1206                                 source: "text.font.bg";
1207                                 action: STATE_SET "landscape_enable" 0.0;
1208                                 target: "text.font.bg";
1209                 }
1210                 program{
1211                                 name: "landscape_mouse_up.font";
1212                                 signal: "landscape_mouse_up,font";
1213                                 source: "text.font.bg";
1214                                 action: STATE_SET "landscape_default" 0.0;
1215                                 target: "text.font.bg";
1216                 }
1217
1218                 PROG_PART_DEFAULT_PRESS("draw_normal");
1219                 PROG_PART_DEFAULT_PRESS("text.draw.bg");
1220                 program{
1221                         name: "select,text.draw.bg";
1222                         signal: "select,text.draw.bg";
1223                         source: "text.draw.bg";
1224                         action: STATE_SET "shown" 0.0;
1225                         target: "text.draw.bg";
1226                 }
1227                 program{
1228                         name: "unselect,text.draw.bg";
1229                         signal: "unselect,text.draw.bg";
1230                         source: "text.draw.bg";
1231                         action: STATE_SET "default" 0.0;
1232                         target: "text.draw.bg";
1233                 }
1234
1235                 program{
1236                                 name: "mouse_down.draw";
1237                                 signal: "mouse_down,draw";
1238                                 source: "text.draw.bg";
1239                                 action: STATE_SET "enable" 0.0;
1240                                 target: "text.draw.bg";
1241                 }
1242                 program{
1243                                 name: "mouse_up.draw";
1244                                 signal: "mouse_up,draw";
1245                                 source: "text.draw.bg";
1246                                 action: STATE_SET "default" 0.0;
1247                                 target: "text.draw.bg";
1248                 }
1249                 program{
1250                                 name: "landscape_mouse_down.draw";
1251                                 signal: "landscape_mouse_down,draw";
1252                                 source: "text.draw.bg";
1253                                 action: STATE_SET "landscape_enable" 0.0;
1254                                 target: "text.draw.bg";
1255                 }
1256                 program{
1257                                 name: "landscape_mouse_up.draw";
1258                                 signal: "landscape_mouse_up,draw";
1259                                 source: "text.draw.bg";
1260                                 action: STATE_SET "landscape_default" 0.0;
1261                                 target: "text.draw.bg";
1262                 }
1263
1264                 program{
1265                                 name: "mouse_down.text_draw";
1266                                 signal: "mouse,down,1";
1267                                 source: "text.draw.bg";
1268                                 action: STATE_SET "press" 0.0;
1269                                 target: "text.draw";
1270                 }
1271                 program{
1272                                 name: "mouse_up.text_draw";
1273                                 signal: "mouse,up,1";
1274                                 source: "text.draw.bg";
1275                                 action: STATE_SET "default" 0.0;
1276                                 target: "text.draw";
1277                 }
1278
1279                 PROG_PART_DEFAULT_PRESS("bold_normal");
1280                 PROG_PART_DEFAULT_PRESS("text.bold.bg");
1281                 program{
1282                                 name: "mouse_down.bold";
1283                                 signal: "mouse_down,bold";
1284                                 source: "text.bold.bg";
1285                                 action: STATE_SET "enable" 0.0;
1286                                 target: "text.bold.bg";
1287                 }
1288                 program{
1289                                 name: "mouse_up.bold";
1290                                 signal: "mouse_up,bold";
1291                                 source: "text.bold.bg";
1292                                 action: STATE_SET "default" 0.0;
1293                                 target: "text.bold.bg";
1294                 }
1295                 program{
1296                                 name: "landscape_mouse_down.bold";
1297                                 signal: "landscape_mouse_down,bold";
1298                                 source: "text.bold.bg";
1299                                 action: STATE_SET "landscape_enable" 0.0;
1300                                 target: "text.bold.bg";
1301                 }
1302                 program{
1303                                 name: "landscape_mouse_up.bold";
1304                                 signal: "landscape_mouse_up,bold";
1305                                 source: "text.bold.bg";
1306                                 action: STATE_SET "landscape_default" 0.0;
1307                                 target: "text.bold.bg";
1308                 }
1309                 program{
1310                                 name: "mouse_down.text_bold";
1311                                 signal: "mouse,down,1";
1312                                 source: "text.bold.bg";
1313                                 action: STATE_SET "press" 0.0;
1314                                 target: "text.bold";
1315                 }
1316                 program{
1317                                 name: "mouse_up.text_bold";
1318                                 signal: "mouse,up,1";
1319                                 source: "text.bold.bg";
1320                                 action: STATE_SET "default" 0.0;
1321                                 target: "text.bold";
1322                 }
1323                 PROG_PART_DEFAULT_PRESS("italic_normal");
1324                 PROG_PART_DEFAULT_PRESS("text.italic.bg");
1325
1326                 program{
1327                                 name: "mouse_down.italic";
1328                                 signal: "mouse_down,italic";
1329                                 source: "text.italic.bg";
1330                                 action: STATE_SET "enable" 0.0;
1331                                 target: "text.italic.bg";
1332                 }
1333                 program{
1334                                 name: "mouse_up.italic";
1335                                 signal: "mouse_up,italic";
1336                                 source: "text.italic.bg";
1337                                 action: STATE_SET "default" 0.0;
1338                                 target: "text.italic.bg";
1339                 }
1340                 program{
1341                                 name: "landscape_mouse_down.italic";
1342                                 signal: "landscape_mouse_down,italic";
1343                                 source: "text.italic.bg";
1344                                 action: STATE_SET "landscape_enable" 0.0;
1345                                 target: "text.italic.bg";
1346                 }
1347                 program{
1348                                 name: "landscape_mouse_up.italic";
1349                                 signal: "landscape_mouse_up,italic";
1350                                 source: "text.italic.bg";
1351                                 action: STATE_SET "landscape_default" 0.0;
1352                                 target: "text.italic.bg";
1353                 }
1354
1355                 program{
1356                                 name: "mouse_down.text_italic";
1357                                 signal: "mouse,down,1";
1358                                 source: "text.italic.bg";
1359                                 action: STATE_SET "press" 0.0;
1360                                 target: "text.italic";
1361                 }
1362                 program{
1363                                 name: "mouse_up.text_italic";
1364                                 signal: "mouse,up,1";
1365                                 source: "text.italic.bg";
1366                                 action: STATE_SET "default" 0.0;
1367                                 target: "text.italic";
1368                 }
1369
1370                 PROG_PART_DEFAULT_PRESS("underline_normal");
1371                 PROG_PART_DEFAULT_PRESS("text.underline.bg");
1372                 program{
1373                                 name: "mouse_down.underline";
1374                                 signal: "mouse_down,underline";
1375                                 source: "text.underline.bg";
1376                                 action: STATE_SET "enable" 0.0;
1377                                 target: "text.underline.bg";
1378                 }
1379                 program{
1380                                 name: "mouse_up.underline";
1381                                 signal: "mouse_up,underline";
1382                                 source: "text.underline.bg";
1383                                 action: STATE_SET "default" 0.0;
1384                                 target: "text.underline.bg";
1385                 }
1386                 program{
1387                                 name: "landscape_mouse_down.underline";
1388                                 signal: "landscape_mouse_down,underline";
1389                                 source: "text.underline.bg";
1390                                 action: STATE_SET "landscape_enable" 0.0;
1391                                 target: "text.underline.bg";
1392                 }
1393                 program{
1394                                 name: "landscape_mouse_up.underline";
1395                                 signal: "landscape_mouse_up,underline";
1396                                 source: "text.underline.bg";
1397                                 action: STATE_SET "landscape_default" 0.0;
1398                                 target: "text.underline.bg";
1399                 }
1400                 program{
1401                                 name: "mouse_down.text_underline";
1402                                 signal: "mouse,down,1";
1403                                 source: "text.underline.bg";
1404                                 action: STATE_SET "press" 0.0;
1405                                 target: "text.underline";
1406                 }
1407                 program{
1408                                 name: "mouse_up.text_underline";
1409                                 signal: "mouse,up,1";
1410                                 source: "text.underline.bg";
1411                                 action: STATE_SET "default" 0.0;
1412                                 target: "text.underline";
1413                 }
1414
1415                 //PROG_PART_DEFAULT_LANDSCAPE("font.bg");
1416                 //PROG_PART_DEFAULT_LANDSCAPE("draw.bg");
1417         /*
1418                 TOOLBAR_BUTTON_PROGRAM_SIGNAL_EMIT_1("keyboard.bg","keyboard.clicked");
1419                 TOOLBAR_BUTTON_PROGRAM_SIGNAL_EMIT_1("font.bg","font.clicked");
1420                 TOOLBAR_BUTTON_PROGRAM_SIGNAL_EMIT_1("draw.bg","draw.clicked");
1421                 */
1422                 TOOLBAR_BUTTON_PROGRAM_SIGNAL_EMIT_1("text.keyboard.bg", "text.keyboard.clicked");
1423                 TOOLBAR_BUTTON_PROGRAM_SIGNAL_EMIT_1("text.font.bg", "text.font.clicked");
1424                 TOOLBAR_BUTTON_PROGRAM_SIGNAL_EMIT_1("text.draw.bg", "text.draw.clicked");
1425
1426                 TOOLBAR_BUTTON_PROGRAM_SIGNAL_EMIT_1("text.bold.bg", "text.bold.clicked");
1427                 TOOLBAR_BUTTON_PROGRAM_SIGNAL_EMIT_1("text.italic.bg", "text.italic.clicked");
1428                 TOOLBAR_BUTTON_PROGRAM_SIGNAL_EMIT_1("text.underline.bg", "text.underline.clicked");
1429
1430                 //TOOLBAR_BUTTON_PROGRAM_SIGNAL_EMIT_2("font.bg",  "dropdown.fonttype.clicked", "dropdown.fonttype.unclicked");
1431                 //TOOLBAR_BUTTON_PROGRAM_SIGNAL_EMIT_2("draw.bg", "draw.button.clicked", "draw.button.unclicked");
1432         }
1433 }
1434
1435 group {
1436         name: "lockscreen.options.locktitle.colorselector";
1437         parts{
1438                 part {
1439                         name: "bg";
1440                         type: RECT;
1441                         scale: 1;
1442                         description {
1443                                 state: "default" 0.0;
1444                                 visible: 0;
1445                         }
1446                 }
1447                 part {
1448                         name: "rect";
1449                         type: SWALLOW;
1450                         scale: 1;
1451                         description {
1452                                 state: "default" 0.0;
1453                                 min: 0 80;
1454                                 rel1 { relative: 0.2 0.108; to: "bg";}
1455                                 rel2 { relative: 0.8 0.108; to: "bg";}
1456                         }
1457                 }
1458                 part {
1459                         name: "color";
1460                         type: SWALLOW;
1461                         scale: 1;
1462                         description {
1463                                 state: "default" 0.0;
1464                                 rel1 { relative: 0.0 1.5; to_x: "bg"; to_y:"rect";}
1465                                 rel2 { relative: 1.0 0.92; to: "bg";}
1466                         }
1467                 }
1468         }
1469 }
1470 group {
1471         name: "colorplane/rect";
1472         parts{
1473                 part {
1474                         name: "bg";
1475                         type: SPACER;
1476                         scale: 1;
1477                         description {
1478                                 state: "default" 0.0;
1479                                 min: 0 200;
1480                                 max: 578 200;
1481                                 align: 0.0 0.0;
1482                         }
1483                 }
1484                 part {
1485                         name: "rect";
1486                         type: SWALLOW;
1487                         scale: 1;
1488                         description {
1489                                 state: "default" 0.0;
1490                                 min: 0 134;
1491                                 max: -1 134;
1492                                 fixed: 0 1;
1493                                 rel1.to: "bg";
1494                                 rel2.to: "bg";
1495                         }
1496                 }
1497         }//end parts
1498 }//end group
1499
1500 group {
1501         name: "colorplane_popup";
1502                 parts {
1503                         part {
1504                                 name: "bg";
1505                                 type: SPACER;
1506                                 scale: 1;
1507                                 description {
1508                                         state: "default" 0.0;
1509                                         min: 578 342;
1510                                         max: 578 342;
1511                                 }
1512                         }
1513                         part {
1514                                 name: "top_padding";
1515                                 type: SPACER;
1516                                 scale: 1;
1517                                 description {
1518                                         state: "default" 0.0;
1519                                         min: 0 20;
1520                                         fixed: 0 1;
1521                                         rel1.to: "bg";
1522                                         rel2 {
1523                                                 to: "bg";
1524                                                 relative: 1.0 0.0;
1525                                         }
1526                                         align: 0.0 0.0;
1527                                 }
1528                         }
1529                         part {
1530                                 name: "colorpalette";
1531                                 type: SWALLOW;
1532                                 scale: 1;
1533                                 description {
1534                                         state: "default" 0.0;
1535                                         fixed: 0 1;
1536                                         rel1 {
1537                                                 relative: 0.0 1.0;
1538                                                 to_y: "top_padding";
1539                                                 to_x: "bg";
1540                                         }
1541                                         rel2 {
1542                                                 to_y: "top_padding";
1543                                                 to_x: "bg";
1544                                         }
1545                                         align: 0.0 0.0;
1546                                 }
1547                         }
1548                         part {
1549                                 name: "colorpalette_bottom_padding";
1550                                 type: SPACER;
1551                                 scale: 1;
1552                                 description {
1553                                         state: "default" 0.0;
1554                                         min: 0 12;
1555                                         fixed: 0 1;
1556                                         rel1 {
1557                                                 relative: 0.0 1.0;
1558                                                 to_y: "colorpalette";
1559                                                 to_x: "bg";
1560                                         }
1561                                         rel2 {
1562                                                 to_x: "bg";
1563                                                 to_y: "colorpalette";
1564                                         }
1565                                         align: 0.0 0.0;
1566                                 }
1567                         }
1568                 }//end parts
1569 } //end group
1570
1571 group {
1572         name: "colorplane";
1573                 parts{
1574                         part {
1575                                 name: "bg";
1576                                 type: RECT;
1577                                 scale: 1;
1578                                 description {
1579                                         state: "default" 0.0;
1580                                         max: 690 -1;
1581                                         align: 0.5 0.0;
1582                                         visible: 0;
1583                                 }
1584                         }
1585                         part {
1586                                 name: "top_padding";
1587                                 type: SPACER;
1588                                 scale: 1;
1589                                 description {
1590                                         state: "default" 0.0;
1591                                         min: 0 51;
1592                                         fixed: 0 1;
1593                                         rel1.to: "bg";
1594                                         rel2 {
1595                                                 to: "bg";
1596                                                 relative: 1.0 0.0;
1597                                         }
1598                                         align: 0.0 0.0;
1599                                 }
1600                         }
1601                         part {
1602                                 name: "colorpalette";
1603                                 type: SWALLOW;
1604                                 scale: 1;
1605                                 description {
1606                                         state: "default" 0.0;
1607                                         fixed: 0 1;
1608                                         rel1 {
1609                                                 relative: 0.0 1.0;
1610                                                 to_y: "top_padding";
1611                                                 to_x: "bg";
1612                                         }
1613                                         rel2 {
1614                                                 relative: 1.0 1.0;
1615                                                 to_y: "top_padding";
1616                                                 to_x: "bg";
1617                                         }
1618                                         min: 690 400;
1619                                         max: 690 400;
1620                                         align: 0.5 0.0;
1621                                 }
1622                         }
1623                         part {
1624                                 name: "colorpalette_bottom_padding";
1625                                 type: SPACER;
1626                                 scale: 1;
1627                                 description {
1628                                         state: "default" 0.0;
1629                                         min: 0 12;
1630                                         fixed: 0 1;
1631                                         rel1 {
1632                                                 relative: 0.0 1.0;
1633                                                 to_y: "colorpalette";
1634                                                 to_x: "bg";
1635                                         }
1636                                         rel2 {
1637                                                 to_x: "bg";
1638                                                 to_y: "colorpalette";
1639                                         }
1640                                         align: 0.0 0.0;
1641                                 }
1642                         }
1643                 }//end parts
1644 } //end group
1645 group {
1646         name: "item/colorpalette";
1647         images {
1648                 image: "00_color_picker_palette_bg.png" COMP;
1649         }
1650         parts {
1651                 part {
1652                         name: "color_rect";
1653                         type: IMAGE;
1654                         scale: 1;
1655                         description{
1656                                 state: "default" 0.0;
1657                                 image.normal: "00_color_picker_palette_bg.png";
1658                                 image.border: 13 13 13 13;
1659                                 image.border_scale: 1;
1660                         }
1661                 }
1662         }
1663 }
1664
1665 // entry edit popup
1666  group { name: "custom_editfield";
1667          parts {
1668                  part {
1669                          name: "base";
1670                          type: SPACER;
1671                          scale: 1;
1672                          description {
1673                                  //color: 37 46 72 255;
1674                                  state: "default" 0.0;
1675                                  align: 0.0 0.0;
1676                          }
1677                  }
1678                  part {
1679                          name: "top_left_padding";
1680                          type: RECT;
1681                          mouse_events: 0;
1682                          scale: 1;
1683                          description {
1684                                  state: "default" 0.0;
1685                                  min: 0 0;
1686                                  max: 0 0;
1687                                  fixed: 1 1;
1688                                  align: 0.0 0.0;
1689                                  rel1 {
1690                                          relative : 0.0 0.0;
1691                                          to: "base";
1692                                          offset: 50 32;
1693                                  }
1694                                  rel2 {
1695                                          relative: 0.0 0.0;
1696                                          to: "base";
1697                                  }
1698                                  visible: 0;
1699                          }
1700                  }
1701                  part { name: "bottom_right_padding";
1702                          type: RECT;
1703                          scale: 1;
1704                          description {
1705                                  state: "default" 0.0;
1706                                  min: 0 0;
1707                                  max: 0 0;
1708                                  fixed: 1 1;
1709                                  align: 1.0 1.0;
1710                                  rel1 { relative: 1.0 1.0; to: "base"; }
1711                                  rel2 { relative: 1.0 1.0; to: "base"; offset: -50 -32;}
1712                                  visible: 0;
1713                          }
1714                  }
1715                  part { name: "elm.swallow.content";
1716                          type: SWALLOW;
1717                          scale: 1;
1718                          description {
1719                                  state: "default" 0.0;
1720                                  min: 0 65;
1721                                  align: 0.0 0.5;
1722                                  rel1 { relative: 1.0 1.0; to: "top_left_padding"; }
1723                                  rel2 { relative: 0.0 0.0; to: "bottom_right_padding"; }
1724                          }
1725                  }
1726          }
1727  }
1728  
1729 #if 0
1730 group {
1731         name: "lockscreen.options.locktitle.toolbar1";
1732         parts{
1733                 part {
1734                         name: "bg";
1735                         type: RECT;
1736                         scale: 1;
1737                         description {
1738                                 state: "default" 0.0;
1739                                 visible: 0;
1740                         }
1741                 }
1742                 part {
1743                         name: "toolbar_button1";
1744                         type: SWALLOW;
1745                         scale: 1;
1746                         description {
1747                                 state: "default" 0.0;
1748                                 align: 0.5 1.0;
1749                         }
1750                 }
1751                 part {
1752                         name: "prev_btn";
1753                         type: SWALLOW;
1754                         scale: 1;
1755                         description {
1756                                 state: "default" 0.0;
1757                                 align: 1.0 1.0;
1758                                 rel1 { relative: 1.0 0.0; to: "toolbar_button1";}
1759                                 rel2 { relative: 1.0 1.0; to: "bg";}
1760                         }
1761                 }
1762         }
1763 }
1764 #endif