summaryrefslogtreecommitdiff
path: root/src/examples/edje/text.edc
blob: 4c0bf30a0dc90b627edc1a0c0eaad60c0e917b17 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
collections {
   group {
      name: "sel_group";
      parts {
         part {
            name: "rect";
            type: RECT;
            description {
               state: "default" 0.0;
               color: 0 255 0 255; /* green */
               rel1.relative: 0.0 0.0;
               rel2.relative: 1.0 1.0;
            }
         }
      }
   }
   group {
      name: "example_group";
      max: 500 500;
      min: 50 50;
     translation {
        file {
           locale: en_IN;
           source: domain_name.mo;
        }
        file {
           locale: hi_IN;
           source: domain_name.mo;
        }
       file {
          locale: ta_IN;
          source: domain_name.mo;
       }
    }
      styles {
         style {
            name: "textblock_style_en";
            base: "font=Sans font_size=22 color=#f00 wrap=word";
            tag:  "br" "\n";
            tag:  "hilight" "+ font_weight=Bold";
            tag:  "b" "+ font_weight=Bold";
            tag:  "tab" "\t";
         }
         style {
            name: "textblock_style_ta";
            base: "font=Sans font_size=22 color=#000 wrap=word";
            tag:  "br" "\n";
            tag:  "hilight" "+ font_weight=Bold";
            tag:  "b" "+ font_weight=Bold";
            tag:  "tab" "\t";
         }
        style {
            name: "textblock_style_hi";
            base: "font=Sans font_size=22 color=#00f wrap=word";
            tag:  "br" "\n";
            tag:  "hilight" "+ font_weight=Bold";
            tag:  "b" "+ font_weight=Bold";
            tag:  "tab" "\t";
         }
      }
      parts {
         part {
            name: "part_one";
            type: TEXT;
            description {
               min: 50 50;
               state: "default" 0.0;
               color: 0 0 255 255; /* blue */
               rel1.relative: 0.0 0.0;
               rel2.relative: 1.0 0.5;
               text {
                  text : "LOADING";
                  domain: "domain_name";
                  font: "arial";
                  size: 22;
                  min: 1 1;
               }
            }
         }
         part {
            name: "part_two";
            type: TEXTBLOCK;
            select_mode: EXPLICIT;
            source: "sel_group";
            entry_mode: PLAIN;
            description {
               min: 50 50;
               state: "default" 0.0;
               rel1.relative: 0.0 0.5;
               rel2.relative: 1.0 1.0;
               text {
                  style: "textblock_style_en";
                  min: 1 1;
               }
            }
            description {
               inherit: "default" 0.0;
               state: "one" 0.0;
               text {
                  style: "textblock_style_hi";
                  min: 1 1;
               }
            }
            description {
               inherit: "default" 0.0;
               state: "two" 0.0;
               text {
                  style: "textblock_style_ta";
                  min: 1 1;
               }
            }
         }
      }
       programs {
         program {
            signal: "edje,language,hi_IN";
            source: "edje";
            script {
               set_state(PART:"part_two", "one", 1.0);
            }
         }
        program {
            signal: "edje,language,ta_IN";
            source: "edje";
            script {
               set_state(PART:"part_two", "two", 1.0);
            }
         }
      program {
            signal: "edje,language,en_IN";
            source: "edje";
            script {
               set_state(PART:"part_two", "default", 1.0);
            }
         }
      }
   }
}