ctxpopup/naviframe - revert ctxpopup. no need it acutally.
[platform/core/uifw/efl-theme-tizen.git] / themes / widgets / panes.edc
1 /*
2  * efl-theme-tizen
3  * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
4  *
5  * Licensed under the Apache License, Version 2.0 (the License);
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *     http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an AS IS BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17
18
19
20    group {
21       name: "elm/panes/vertical/default";
22       images {
23          image: "00_splite_handler_bg_v.png" COMP;
24          image: "00_splite_handler_bg_press.png" COMP;
25          image: "00_splite_handler_v.png" COMP;
26       }
27       parts
28       {
29          part
30          {
31             name: "whole";
32             type: RECT;
33             description
34             {
35                state: "default" 0.0;
36                visible: 0;
37                rel1.to_x: "pad_left";
38                rel2.to_x: "pad_right";
39             }
40          }
41          part {
42             name: "pad_left";
43             type: RECT;
44             scale: 1;
45             description {
46                state: "default" 0.0;
47                rel2.relative:0.0 1.0;
48                min: PANES_STYLE_DEFAULT_PADDING_LEFT_SIZE_INC 0;
49                fixed: 1 0;
50                align: 1.0 0.5;
51                visible: 0;
52             }
53             description {
54                state: "hidden" 0.0;
55                inherit: "default" 0.0;
56                min: 0 0;
57             }
58          }
59          part {
60             name: "pad_right";
61             type: RECT;
62             scale: 1;
63             description {
64                state: "default" 0.0;
65                rel1.relative: 1.0 0.0;
66                min: PANES_STYLE_DEFAULT_PADDING_RIGHT_SIZE_INC 0;
67                fixed: 1 0;
68                align: 0.0 0.5;
69                visible: 0;
70             }
71             description {
72                state: "hidden" 0.0;
73                inherit: "default" 0.0;
74                min: 0 0;
75             }
76          }
77          //2 contents
78          part
79          {
80             name: "whole_left";
81             type: RECT;
82             mouse_events: 0;
83             description
84             {
85                state: "default" 0.0;
86                rel1 {
87                   to_x: "pad_left";
88                   relative: 1.0 0.0;
89                }
90                rel2 {
91                   to_x: "bar_bg";
92                   relative: 0.0 1.0;
93                }
94             }
95             description
96             {
97                state: "hide" 0.0;
98                inherit: "default" 0.0;
99                color: 255 255 255 0;
100             }
101          }
102          part
103          {
104             name: "elm.swallow.left";
105             type: SWALLOW;
106             clip_to: "whole_left";
107             description
108             {
109                state: "default" 0.0;
110                rel1.to: "whole_left";
111                rel2.to: "whole_left";
112             }
113             description
114             {
115                state: "hide" 0.0;
116                inherit: "default" 0.0;
117                rel1.relative: -1.0 0.0;
118                rel2.relative: 0.0 1.0;
119             }
120          }
121          part
122          {
123             name: "whole_right";
124             type: RECT;
125             mouse_events: 0;
126             description
127             {
128                state: "default" 0.0;
129                rel1 {
130                   to_x: "bar_bg";
131                   relative: 1.0 0.0;
132                }
133                rel2 {
134                   to_x: "pad_right";
135                   relative: 0.0 1.0;
136                }
137             }
138          }
139          part
140          {
141             name: "elm.swallow.right";
142             type: SWALLOW;
143             clip_to: "whole_right";
144             description
145             {
146                state: "default" 0.0;
147                rel1.to: "whole_right";
148                rel2.to: "whole_right";
149             }
150          }
151          //BAR
152          part { name: "elm.bar";
153             type: RECT;
154             dragable {
155                confine: "whole";
156                x: 1 1 1;
157                y: 0 0 0;
158             }
159             scale: 1;
160             description { state: "default" 0.0;
161                min: PANES_STYLE_DEFAULT_MOVABLE_SIZE_INC 999999;
162                fixed: 0 1;
163                align: 1.0 0.5;
164                rel1.relative: 0.0 0.5;
165                rel2.relative: 1.0 0.5;
166                color: 0 0 0 0;
167             }
168             description { state: "default" 0.1;
169                inherit: "default" 0.0;
170                min: 0 999999;
171             }
172             description { state: "disabled" 0.0;
173                inherit:  "default" 0.0;
174                min: PANES_STYLE_DEFAULT_FIXED_SIZE_INC 999999;
175             }
176             description { state: "disabled" 0.1;
177                inherit:  "default" 0.1;
178             }
179          }
180          part { name: "pad_bar_left";
181             type: RECT;
182             scale: 1;
183             mouse_events: 0;
184             description { state: "default" 0.0;
185                min: PANES_STYLE_DEFAULT_PADDING_LEFT_SIZE_INC 0;
186                align: 0.0 0.5;
187                rel1.to_x: "elm.bar";
188                rel2 {
189                   relative: 0.0 1.0;
190                   to_x: "elm.bar";
191                }
192                fixed: 1 0;
193                visible: 0;
194             }
195             description {
196                state: "hidden" 0.0;
197                inherit: "default" 0.0;
198                min: 0 0;
199             }
200          }
201          part { name: "pad_bar_right";
202             type: RECT;
203             scale: 1;
204             mouse_events: 0;
205             description { state: "default" 0.0;
206                min: PANES_STYLE_DEFAULT_PADDING_RIGHT_SIZE_INC 0;
207                align: 1.0 0.5;
208                rel1 {
209                   relative: 1.0 0.0;
210                   to_x: "elm.bar";
211                }
212                rel2.to_x: "elm.bar";
213                fixed: 1 0;
214                visible: 0;
215             }
216             description {
217                state: "hidden" 0.0;
218                inherit: "default" 0.0;
219                min: 0 0;
220             }
221          }
222          part { name: "bar_bg";
223             type: IMAGE;
224             mouse_events: 0;
225             description { state: "default" 0.0;
226                rel1 {
227                   relative: 1.0 0.0;
228                   to_x: "pad_bar_left";
229                }
230                rel2 {
231                   relative: 0.0 1.0;
232                   to_x: "pad_bar_right";
233                }
234                fixed: 1 0;
235                image {
236                   normal: "00_splite_handler_bg_v.png";
237                   border: 2 2 0 0;
238                   border_scale: 1;
239                }
240             }
241             description { state: "clicked" 0.0;
242                inherit: "default" 0.0;
243                image.normal: "00_splite_handler_bg_press.png";
244             }
245          }
246          part { name:"bar_handler";
247             mouse_events: 0;
248             description { state:"default" 0.0;
249                rel1 {
250                   to_x: "bar_bg";
251                   relative: 0.0 0.5;
252                }
253                rel2 {
254                   to_x: "bar_bg";
255                   relative: 1.0 0.5;
256                }
257                fixed: 0 1;
258                min: 0 PANES_STYLE_DEFAULT_MIDDLE_SIZE_INC;
259                image.normal: "00_splite_handler_v.png";
260             }
261             description { state:"clicked" 0.0;
262                inherit: "default" 0.0;
263             }
264             description { state: "disabled" 0.0;
265                inherit: "default" 0.0;
266                visible: 0;
267             }
268          }
269          part { name: "over2";
270             type: RECT;
271             mouse_events: 1;
272             repeat_events: 1;
273             ignore_flags: ON_HOLD;
274             description { state: "default" 0.0;
275                rel1.to: "elm.bar";
276                rel2.to: "elm.bar";
277                color: 0 0 0 0;
278             }
279             description { state: "disabled" 0.0;
280                inherit:  "default" 0.0;
281                visible: 0;
282             }
283          }
284          part { name: "over3";
285             type: RECT;
286             mouse_events: 1;
287             repeat_events: 1;
288             description { state: "default" 0.0;
289                rel1.to: "elm.bar";
290                rel2.to: "elm.bar";
291                color: 0 0 0 0;
292             }
293             description { state: "clicked" 0.0;
294                inherit:  "default" 0.0;
295             }
296          }
297          part { name:"bar_disabled";
298             type: RECT;
299             description { state:"default" 0.0;
300                rel1.to_x: "elm.bar";
301                rel2.to_x: "elm.bar";
302                color: 0 0 0 0;
303                visible: 0;
304             }
305             description { state: "disabled" 0.0;
306                inherit: "default" 0.0;
307                visible: 1;
308             }
309          }
310       }
311       script {
312          public state_pair = 1; //0:both contents are not set, 1:both contents are set
313          public frame_num, whole_drag;
314
315          public drag_effect(val) {
316             new Float:time, Float:cur_drag, Float:drag;
317             new num;
318
319             num = get_int(frame_num);
320             drag = get_float(whole_drag);
321
322             num += 1;
323             time = 0.06 * num; // decide speed
324             cur_drag = drag - drag * sin(time * 90, DEGREES);
325
326             set_int(frame_num, num);
327
328             if (time < 1.0 && cur_drag > 0.0) {
329                set_drag(PART:"elm.bar", cur_drag, 0.0);
330                timer(0.02, "drag_effect", val);
331             }
332             else {
333                set_drag(PART:"elm.bar", 0.0, 0.0);
334                run_program(PROGRAM:"left_content_reset");
335             }
336          }
337       }
338       programs {
339          program {
340             name: "load";
341             signal: "load";
342             source: "";
343             script {
344                set_int(state_pair, 1);
345             }
346          }
347          program {
348             name: "drag_effect_start";
349             signal: "left,hide,effect";
350             source: "";
351             script {
352                new Float:x, Float:y;
353
354                get_drag(PART:"elm.bar", x, y);
355                set_float(whole_drag, x);
356                set_int(frame_num, 0);
357
358                timer(0.02, "drag_effect", 0);
359             }
360             after: "left_content_hide";
361          }
362          program {
363             name: "left_content_hide";
364             action: STATE_SET "hide" 0.0;
365             transition: DECELERATE 0.4;
366             target: "elm.swallow.left";
367             target: "whole_left";
368          }
369          program {
370             name: "left_content_reset";
371             action: STATE_SET "default" 0.0;
372             target: "elm.swallow.left";
373             target: "whole_left";
374             after: "effect_finished";
375          }
376          program {
377             name: "effect_finished";
378             action: SIGNAL_EMIT "left,hide,effect,finished" "";
379          }
380          program {
381             name:   "panes_pair";
382             signal: "elm,panes,pair";
383             source: "";
384             script {
385                new st[31];
386                new Float:vl;
387                set_int(state_pair, 1);
388                get_state(PART:"elm.bar", st, 30, vl);
389                set_state(PART:"elm.bar", st, 0.0);
390                set_state(PART:"pad_left", "default", 0.0);
391                set_state(PART:"pad_right", "default", 0.0);
392                set_state(PART:"pad_bar_left", "default", 0.0);
393                set_state(PART:"pad_bar_right", "default", 0.0);
394             }
395          }
396          program {
397             name:   "panes_unpair";
398             signal: "elm,panes,unpair";
399             source: "";
400             script {
401                new st[31];
402                new Float:vl;
403                set_int(state_pair, 0);
404                get_state(PART:"elm.bar", st, 30, vl);
405                set_state(PART:"elm.bar", st, 0.1);
406                set_state(PART:"pad_left", "hidden", 0.0);
407                set_state(PART:"pad_right", "hidden", 0.0);
408                set_state(PART:"pad_bar_left", "hidden", 0.0);
409                set_state(PART:"pad_bar_right", "hidden", 0.0);
410             }
411          }
412          program {
413             name:   "button_click";
414             signal: "mouse,down,1";
415             source: "over2";
416             action: SIGNAL_EMIT "elm,action,press" "";
417             after: "button_click_anim";
418          }
419          program {
420             name:   "button_click_anim";
421             script {
422                set_state(PART:"bar_bg", "clicked", 0.0);
423             }
424          }
425          program {
426             name:   "button_unclick";
427             signal: "mouse,up,1";
428             source: "over2";
429             action: SIGNAL_EMIT "elm,action,unpress" "";
430             after: "button_unclick_anim";
431          }
432          program {
433             name:   "button_unclick_anim";
434             script {
435                set_state(PART:"bar_bg", "default", 0.0);
436             }
437          }
438          program {
439             name:   "button_click2";
440             signal: "mouse,down,1";
441             source: "over3";
442             action: STATE_SET "clicked" 0.0;
443             target: "over3";
444          }
445          program {
446             name:   "button_unclick2";
447             signal: "mouse,up,1";
448             source: "over3";
449             action: STATE_SET "default" 0.0;
450             transition: DECELERATE 0.5;
451             target: "over3";
452          }
453          program {
454             name:   "button_unclick3";
455             signal: "mouse,up,1";
456             source: "over2";
457             action: SIGNAL_EMIT "elm,action,click" "";
458          }
459          program {
460             name:   "button_down_double";
461             signal: "mouse,down,1,double";
462             source: "over3";
463             action: SIGNAL_EMIT "elm,action,click,double" "";
464          }
465          //fix the pane
466          program {
467             name:   "panes_fixed";
468             signal: "elm.panes.fixed";
469             source: "elm";
470             action: STATE_SET "disabled" 0.0;
471             target: "bar_disabled";
472             target: "bar_handler";
473             after: "after_fixed";
474          }
475          program {
476             name:   "after_fixed";
477             script {
478                if (get_int(state_pair))
479                  set_state(PART:"elm.bar", "disabled", 0.0);
480                else
481                  set_state(PART:"elm.bar", "disabled", 0.1);
482             }
483          }
484          //allow the movement by interaction
485          program {
486             name:   "panes_unfixed";
487             signal: "elm.panes.unfixed";
488             source: "elm";
489             action: STATE_SET "default" 0.0;
490             target: "bar_disabled";
491             target: "bar_handler";
492             after: "after_unfixed";
493          }
494          program {
495             name:   "after_unfixed";
496             script {
497                if (get_int(state_pair))
498                  set_state(PART:"elm.bar", "default", 0.0);
499                else
500                  set_state(PART:"elm.bar", "default", 0.1);
501             }
502          }
503       }
504    }
505
506    group {
507       name: "elm/panes/horizontal/default";
508       images {
509          image: "00_splite_handler_bg_h.png" COMP;
510          image: "00_splite_handler_bg_press.png" COMP;
511          image: "00_splite_handler_h.png" COMP;
512       }
513       script {
514          public state_pair = 1; //0:both contents are not set, 1:both contents are set
515       }
516       parts
517       {
518          part
519          {
520             name: "whole";
521             type: RECT;
522             description
523             {
524                state: "default" 0.0;
525                visible: 0;
526                rel1.to_y: "pad_left";
527                rel2.to_y: "pad_right";
528             }
529          }
530          part {
531             name: "pad_left";
532             type: RECT;
533             scale: 1;
534             description {
535                state: "default" 0.0;
536                rel2.relative:1.0 0.0;
537                min: 0 PANES_STYLE_DEFAULT_PADDING_LEFT_SIZE_INC;
538                fixed: 0 1;
539                align: 0.5 1.0;
540                visible: 0;
541             }
542             description {
543                state: "hidden" 0.0;
544                inherit: "default" 0.0;
545                min: 0 0;
546             }
547          }
548          part {
549             name: "pad_right";
550             type: RECT;
551             scale: 1;
552             description {
553                state: "default" 0.0;
554                rel1.relative: 0.0 1.0;
555                min: 0 PANES_STYLE_DEFAULT_PADDING_RIGHT_SIZE_INC;
556                fixed: 0 1;
557                align: 0.5 0.0;
558                visible: 0;
559             }
560             description {
561                state: "hidden" 0.0;
562                inherit: "default" 0.0;
563                min: 0 0;
564             }
565          }
566          //2 contents
567          part
568          {
569             name: "whole_left";
570             type: RECT;
571             mouse_events: 0;
572             description
573             {
574                state: "default" 0.0;
575                rel1 {
576                   to_y: "pad_left";
577                   relative: 0.0 1.0;
578                }
579                rel2 {
580                   to_y: "bar_bg";
581                   relative: 1.0 0.0;
582                }
583             }
584          }
585          part
586          {
587             name: "elm.swallow.left";
588             type: SWALLOW;
589             clip_to: "whole_left";
590             description
591             {
592                state: "default" 0.0;
593                rel1.to: "whole_left";
594                rel2.to: "whole_left";
595             }
596          }
597          part
598          {
599             name: "whole_right";
600             type: RECT;
601             mouse_events: 0;
602             description
603             {
604                state: "default" 0.0;
605                rel1 {
606                   to_y: "bar_bg";
607                   relative: 0.0 1.0;
608                }
609                rel2 {
610                   to_y: "pad_right";
611                   relative: 1.0 0.0;
612                }
613             }
614          }
615          part
616          {
617             name: "elm.swallow.right";
618             type: SWALLOW;
619             clip_to: "whole_right";
620             description
621             {
622                state: "default" 0.0;
623                rel1.to: "whole_right";
624                rel2.to: "whole_right";
625             }
626          }
627          //BAR
628          part { name: "elm.bar";
629             type: RECT;
630             dragable {
631                confine: "whole";
632                x: 0 0 0;
633                y: 1 1 1;
634             }
635             scale: 1;
636             description { state: "default" 0.0;
637                min: 999999 PANES_STYLE_DEFAULT_MOVABLE_SIZE_INC;
638                fixed: 1 0;
639                align: 0.5 0.0;
640                rel1.relative: 0.5 0.0;
641                rel2.relative: 0.5 1.0;
642                color: 0 0 0 0;
643             }
644             description { state: "default" 0.1;
645                inherit: "default" 0.0;
646                min: 999999 0;
647             }
648             description { state: "disabled" 0.0;
649                inherit:  "default" 0.0;
650                min: 999999 PANES_STYLE_DEFAULT_FIXED_SIZE_INC;
651                visible: 0;
652             }
653             description { state: "disabled" 0.1;
654                inherit:  "default" 0.1;
655             }
656          }
657          part { name: "pad_bar_left";
658             type: RECT;
659             scale: 1;
660             mouse_events: 0;
661             description { state: "default" 0.0;
662                min: 0 PANES_STYLE_DEFAULT_PADDING_LEFT_SIZE_INC;
663                align: 0.5 0.0;
664                rel1.to_y: "elm.bar";
665                rel2 {
666                   relative: 1.0 0.0;
667                   to_y: "elm.bar";
668                }
669                fixed: 0 1;
670                visible: 0;
671             }
672             description {
673                state: "hidden" 0.0;
674                inherit: "default" 0.0;
675                min: 0 0;
676             }
677          }
678          part { name: "pad_bar_right";
679             type: RECT;
680             scale: 1;
681             mouse_events: 0;
682             description { state: "default" 0.0;
683                min: 0 PANES_STYLE_DEFAULT_PADDING_RIGHT_SIZE_INC;
684                align: 0.5 1.0;
685                rel1 {
686                   relative: 0.0 1.0;
687                   to_y: "elm.bar";
688                }
689                rel2.to_y: "elm.bar";
690                fixed: 0 1;
691                visible: 0;
692             }
693             description {
694                state: "visible" 0.0;
695                inherit: "default" 0.0;
696                min: 0 0;
697             }
698          }
699          part { name: "bar_bg";
700             type: IMAGE;
701             mouse_events: 0;
702             description { state: "default" 0.0;
703                rel1 {
704                   relative: 0.0 1.0;
705                   to_y: "pad_bar_left";
706                }
707                rel2 {
708                   relative: 1.0 0.0;
709                   to_y: "pad_bar_right";
710                }
711                fixed: 0 1;
712                image {
713                   normal: "00_splite_handler_bg_h.png";
714                   border: 0 0 2 2;
715                   border_scale: 1;
716                }
717             }
718             description { state: "clicked" 0.0;
719                inherit: "default" 0.0;
720                image.normal: "00_splite_handler_bg_press.png";
721             }
722          }
723          part { name:"bar_handler";
724             mouse_events: 0;
725             description { state:"default" 0.0;
726                rel1 {
727                   to_y: "bar_bg";
728                   relative: 0.5 0.0;
729                }
730                rel2 {
731                   to_y: "bar_bg";
732                   relative: 0.5 1.0;
733                }
734                fixed: 1 0;
735                min: PANES_STYLE_DEFAULT_MIDDLE_SIZE_INC 0;
736                image.normal: "00_splite_handler_h.png";
737             }
738             description { state:"clicked" 0.0;
739                inherit: "default" 0.0;
740             }
741             description { state: "disabled" 0.0;
742                inherit: "default" 0.0;
743                visible: 0;
744             }
745          }
746          part { name: "over2";
747             type: RECT;
748             mouse_events: 1;
749             repeat_events: 1;
750             ignore_flags: ON_HOLD;
751             description { state: "default" 0.0;
752                rel1.to: "elm.bar";
753                rel2.to: "elm.bar";
754                color: 0 0 0 0;
755             }
756             description { state: "disabled" 0.0;
757                inherit:  "default" 0.0;
758                visible: 0;
759             }
760          }
761          part { name: "over3";
762             type: RECT;
763             mouse_events: 1;
764             repeat_events: 1;
765             description { state: "default" 0.0;
766                rel1.to: "elm.bar";
767                rel2.to: "elm.bar";
768                color: 0 0 0 0;
769             }
770             description { state: "clicked" 0.0;
771                inherit:  "default" 0.0;
772             }
773          }
774          part { name:"bar_disabled";
775             type: RECT;
776             description { state:"default" 0.0;
777                rel1.to_y: "elm.bar";
778                rel2.to_y: "elm.bar";
779                color: 0 0 0 0;
780                visible: 0;
781             }
782             description { state: "disabled" 0.0;
783                inherit: "default" 0.0;
784                visible: 1;
785             }
786          }
787       }
788       programs {
789          program {
790             name: "load";
791             signal: "load";
792             source: "";
793             script {
794                set_int(state_pair, 1);
795             }
796          }
797          program {
798             name:   "panes_pair";
799             signal: "elm,panes,pair";
800             source: "";
801             script {
802                new st[31];
803                new Float:vl;
804                set_int(state_pair, 1);
805                get_state(PART:"elm.bar", st, 30, vl);
806                set_state(PART:"elm.bar", st, 0.0);
807                set_state(PART:"pad_left", "default", 0.0);
808                set_state(PART:"pad_right", "default", 0.0);
809                set_state(PART:"pad_bar_left", "default", 0.0);
810                set_state(PART:"pad_bar_right", "default", 0.0);
811             }
812          }
813          program {
814             name:   "panes_unpair";
815             signal: "elm,panes,unpair";
816             source: "";
817             script {
818                new st[31];
819                new Float:vl;
820                set_int(state_pair, 0);
821                get_state(PART:"elm.bar", st, 30, vl);
822                set_state(PART:"elm.bar", st, 0.1);
823                set_state(PART:"pad_left", "hidden", 0.0);
824                set_state(PART:"pad_right", "hidden", 0.0);
825                set_state(PART:"pad_bar_left", "hidden", 0.0);
826                set_state(PART:"pad_bar_right", "hidden", 0.0);
827             }
828          }
829          program {
830             name:   "button_click";
831             signal: "mouse,down,1";
832             source: "over2";
833             action: SIGNAL_EMIT "elm,action,press" "";
834             after: "button_click_anim";
835          }
836          program {
837             name:   "button_click_anim";
838             script {
839                set_state(PART:"bar_bg", "clicked", 0.0);
840             }
841          }
842          program {
843             name:   "button_unclick";
844             signal: "mouse,up,1";
845             source: "over2";
846             action: SIGNAL_EMIT "elm,action,unpress" "";
847             after: "button_unclick_anim";
848          }
849          program {
850             name:   "button_unclick_anim";
851             script {
852                set_state(PART:"bar_bg", "default", 0.0);
853             }
854          }
855          program {
856             name:   "button_click2";
857             signal: "mouse,down,1";
858             source: "over3";
859             action: STATE_SET "clicked" 0.0;
860             target: "over3";
861          }
862          program {
863             name:   "button_unclick2";
864             signal: "mouse,up,1";
865             source: "over3";
866             action: STATE_SET "default" 0.0;
867             transition: DECELERATE 0.5;
868             target: "over3";
869          }
870          program {
871             name:   "button_unclick3";
872             signal: "mouse,up,1";
873             source: "over2";
874             action: SIGNAL_EMIT "elm,action,click" "";
875          }
876          program {
877             name:   "button_down_double";
878             signal: "mouse,down,1,double";
879             source: "over3";
880             action: SIGNAL_EMIT "elm,action,click,double" "";
881          }
882          //fix the pane
883          program {
884             name:   "panes_fixed";
885             signal: "elm.panes.fixed";
886             source: "elm";
887             action: STATE_SET "disabled" 0.0;
888             target: "bar_disabled";
889             target: "bar_handler";
890             after: "after_fixed";
891          }
892          program {
893             name:   "after_fixed";
894             script {
895                if (get_int(state_pair))
896                  set_state(PART:"elm.bar", "disabled", 0.0);
897                else
898                  set_state(PART:"elm.bar", "disabled", 0.1);
899             }
900          }
901          //allow the movement by interaction
902          program {
903             name:   "panes_unfixed";
904             signal: "elm.panes.unfixed";
905             source: "elm";
906             action: STATE_SET "default" 0.0;
907             target: "bar_disabled";
908             target: "bar_handler";
909             after: "after_unfixed";
910          }
911          program {
912             name:   "after_unfixed";
913             script {
914                if (get_int(state_pair))
915                  set_state(PART:"elm.bar", "default", 0.0);
916                else
917                  set_state(PART:"elm.bar", "default", 0.1);
918             }
919          }
920       }
921    }