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