summaryrefslogtreecommitdiffstats
path: root/data/themes/default/edc/elm/ctxpopup.edc
blob: c7e8553afb3d11db7c17844c8a6a092c165f4574 (plain)
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
///////////////////////////////////////////////////////////////////////////////
group { name: "elm/ctxpopup/bg/noblock";
   parts {
      part { name: "base"; type: RECT; mouse_events: 0;
         description { state: "default" 0.0;
            color: 0 0 0 0;
         }
      }
   }
}

group { name: "elm/ctxpopup/bg/default";
   parts {
      part { name: "base"; type: RECT;
         description { state: "default" 0.0;
            color: 0 0 0 0;
         }
         description { state: "visible" 0.0;
            inherit: "default" 0.0;
            color: 0 0 0 192;
         }
      }
   }
   programs {
      program {
         signal: "mouse,clicked,*"; source: "base";
         action: SIGNAL_EMIT "elm,action,click" "elm";
      }
      program {
         signal: "elm,state,show"; source: "elm";
         action: STATE_SET "visible" 0.0;
         transition: LINEAR 0.2;
         target: "base";
      }
      program {
         signal: "elm,state,hide"; source: "elm";
         action: STATE_SET "default" 0.0;
         transition: LINEAR 0.3;
         target: "base";
      }
   }
}

group { name: "elm/ctxpopup/base/default";
   images.image: "tooltip-base.png" COMP;
   parts {
      part { name: "base";
         clip_to: "clip";
         description { state: "default" 0.0;
            image.normal: "tooltip-base.png";
            image.border: 7 7 6 8;
            image.middle: SOLID;
         }
      }
      part { name: "elm.swallow.content"; type: SWALLOW;
         clip_to: "clip";
         description { state: "default" 0.0;
            rel1 { to:"base"; offset: 8 6; }
            rel2 { to:"base"; offset: -7 -8; }
         }
      }
      part { name: "event"; type: RECT;
         description { state: "default" 0.0;
            color: 0 0 0 0;
            visible: 1;
         }
         description { state: "visible" 0.0;
            inherit: "default" 0.0;
            visible: 0;
         }
      }
      part { name: "clip"; type: RECT;
         description { state: "default" 0.0;
            color: 255 255 255 0;
            visible: 0;
            rel1.offset: -20 -20;
            rel2.offset: 19 19;
         }
         description { state: "visible" 0.0;
            inherit: "default" 0.0;
            color: 255 255 255 255;
            visible: 1;
         }
      }
      
      // 9x13
      part { name: "arrow_area_left"; type: SPACER;
         description { state: "default" 0.0;
            min: 9 13;
            fixed: 1 0;
            align: 1.0 0.5;
            rel1.to: "base";
            rel1.offset: 2 5;
            rel2.to: "base";
            rel2.offset: 2 -6;
            rel2.relative: 0.0 1.0;
         }
      }
      part { name: "elm.swallow.arrow_left"; type: SWALLOW; mouse_events: 0;
         clip_to: "clip";
         dragable.x: 1 1 0;
         dragable.y: 1 1 0;
         dragable.confine: "arrow_area_left";
         description { state: "default" 0.0;
            min: 9 13;
            fixed: 1 1;
         }
      }

      part { name: "arrow_area_right"; type: SPACER;
         description { state: "default" 0.0;
            min: 9 13;
            fixed: 1 0;
            align: 0.0 0.5;
            rel1.to: "base";
            rel1.offset: -3 5;
            rel1.relative: 1.0 0.0;
            rel2.to: "base";
            rel2.offset: -3 -6;
         }
      }
      part { name: "elm.swallow.arrow_right"; type: SWALLOW; mouse_events: 0;
         clip_to: "clip";
         dragable.x: 1 1 0;
         dragable.y: 1 1 0;
         dragable.confine: "arrow_area_right";
         description { state: "default" 0.0;
            min: 9 13;
            fixed: 1 1;
         }
      }
      
      // 11x9
      part { name: "arrow_area_up"; type: SPACER;
         description { state: "default" 0.0;
            min: 11 9;
            fixed: 1 1;
            align: 0.5 1;
            rel1.to: "base";
            rel1.offset: 5 3;
            rel2.to: "base";
            rel2.offset: -6 3;
            rel2.relative: 1.0 0.0;
         }
      }
      part { name: "elm.swallow.arrow_up"; type: SWALLOW; mouse_events: 0;
         clip_to: "clip";
         dragable.x: 1 1 0;
         dragable.y: 1 1 0;
         dragable.confine: "arrow_area_up";
         description { state: "default" 0.0;
            min: 11 9;
            fixed: 1 1;
         }
      }
      
      part { name: "arrow_area_down"; type: SPACER;
         description { state: "default" 0.0;
            min: 11 9;
            fixed: 1 1;
            align: 0.5 0.0;
            rel1.to: "base";
            rel1.offset: 5 -4;
            rel1.relative: 0.0 1.0;
            rel2.to: "base";
            rel2.offset: -6 -4;
         }
      }
      part { name: "elm.swallow.arrow_down"; type: SWALLOW; mouse_events: 0;
         clip_to: "clip";
         dragable.x: 1 1 0;
         dragable.y: 1 1 0;
         dragable.confine: "arrow_area_down";
         description { state: "default" 0.0;
            min: 11 9;
            fixed: 1 1;
         }
      }
   }
   programs {
      program {
         signal: "elm,state,show"; source: "elm";
         action: STATE_SET "visible" 0.0;
         transition: LINEAR 0.2;
         target: "clip";
         target: "event";
      }
      program {
         signal: "elm,state,hide"; source: "elm";
         action: STATE_SET "default" 0.0;
         transition: LINEAR 0.3;
         target: "clip";
         target: "event";
         after: "hide2";
      }
      program { name: "hide2";
         action: SIGNAL_EMIT "elm,action,hide,finished" "elm";
      }

   }
}

group { name: "elm/ctxpopup/arrow/default";
   images.image: "tooltip-edge-left-tip.png" COMP;
   images.image: "tooltip-edge-right-tip.png" COMP;
   images.image: "tooltip-edge-bottom-tip.png" COMP;
   images.image: "tooltip-edge-top-tip.png" COMP;
   parts {
      part { name: "base";
         description { state: "default" 0.0;
            min: 9 9;
            fixed: 1 1;
            image.normal: "tooltip-edge-left-tip.png";
         }
         description { state: "left" 0.0;
            inherit: "default" 0.0;
            min: 9 13;
            align: 0.0 0.5;
            image.normal: "tooltip-edge-left-tip.png";
         }
         description { state: "right" 0.0;
            inherit: "default" 0.0;
            min: 9 13;
            align: 1.0 0.5;
            image.normal: "tooltip-edge-right-tip.png";
         }
         description { state: "top" 0.0;
            inherit: "default" 0.0;
            min: 11 9;
            align: 0.5 0.0;
            image.normal: "tooltip-edge-top-tip.png";
         }
         description { state: "bottom" 0.0;
            inherit: "default" 0.0;
            min: 11 9;
            align: 0.5 1.0;
            image.normal: "tooltip-edge-bottom-tip.png";
         }
      }
   }
   programs {
      program {
         signal: "elm,state,left"; source: "elm";
         action: STATE_SET "left" 0.0;
         target: "base";
      }
      program {
         signal: "elm,state,right"; source: "elm";
         action: STATE_SET "right" 0.0;
         target: "base";
      }
      program {
         signal: "elm,state,top"; source: "elm";
         action: STATE_SET "top" 0.0;
         target: "base";
      }
      program {
         signal: "elm,state,bottom"; source: "elm";
         action: STATE_SET "bottom" 0.0;
         target: "base";
      }
   }
}