Initialize Tizen 2.3
[framework/uifw/elementary.git] / wearable / src / examples / codegen_example.edc
1 collections {
2    group {
3       name: "elm/example/mylayout/default";
4
5       data {
6          item: "title" "elm_codegen Example";
7       }
8
9       parts {
10          part {
11             name: "example/title";
12             api: "title" "The example title";
13             type: TEXT;
14
15                description {
16                state: "default" 0.0;
17                color: 0 0 0 255;
18                rel1 {
19                   relative: 0.0 0.0;
20                   offset: 0 0;
21                }
22                rel2 {
23                   relative: 1.0 0.2;
24                   offset: -1 -1;
25                }
26                text {
27                   text: "Using elementary_codegen";
28                   size: 16;
29                   font: "sans";
30                   min: 1 1;
31                }
32             }
33          }
34
35          part {
36             name: "example/custom";
37             api: "custom" "The swallow part";
38             type: SWALLOW;
39
40             description {
41                state: "default" 0.0;
42                min: 160 50;
43                max: 160 50;
44                align: 0.5 0.4;
45             }
46             description {
47                state: "big" 0.0;
48                inherit: "default" 0.0;
49                min: 320 100;
50                max: 320 100;
51             }
52          } // example/custom
53
54          part {
55             name: "example/box";
56             api: "box" "The box part";
57             type: BOX;
58
59             description {
60                state: "default" 0.0;
61                box {
62                   layout: "horizontal_homogeneous";
63                }
64                rel1.relative: 0.0 0.5;
65                rel2.relative: 1.0 0.6;
66             }
67          } // box
68
69          part {
70             name: "example/table";
71             api: "table" "The table part";
72             type: TABLE;
73
74             description {
75                state: "default" 0.0;
76                rel1.relative: 0.0 0.8;
77                rel2.relative: 1.0 1.0;
78             }
79          } // table
80
81          programs {
82             program {
83                name: "swallow,grow";
84                api: "swallow_grow" "Executed when the button enlarges";
85                signal: "button,enlarge";
86                action: STATE_SET "big" 0.0;
87                transition: LINEAR 0.5;
88                target: "example/custom";
89                after: "emit,changed";
90             }
91             program {
92                name: "swallow,shrink";
93                api: "swallow_shrink" "Executed when the button reduces";
94                signal: "button,reduce";
95                action: STATE_SET "default" 0.0;
96                transition: LINEAR 0.5;
97                target: "example/custom";
98                after: "emit,changed";
99             }
100             program {
101                name: "emit,changed";
102                action: SIGNAL_EMIT "size,changed" "";
103                api: "size_changed" "Emit the signal size,changed";
104             }
105          }
106       }
107    }
108 }