summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Haste <tomhaste@gmail.com>2008-12-19 14:35:59 +0000
committerTom Haste <tomhaste@gmail.com>2008-12-19 14:35:59 +0000
commit924dad8d41430877523ec2de68fb8c6b8446d55e (patch)
treed742efd862744278016dc6e479c5ab8f1aa779d0
parenta8c71d5a4abbefb1d5e7bd61b0ac89ef9cf344e5 (diff)
Starting to actually look like something. Will be adding and subtracting bits as I go along.
SVN revision: 38228
-rw-r--r--ewl.edc346
1 files changed, 335 insertions, 11 deletions
diff --git a/ewl.edc b/ewl.edc
index 9a93317..539288f 100644
--- a/ewl.edc
+++ b/ewl.edc
@@ -38,6 +38,7 @@ data {
38 38
39 // Buttons 39 // Buttons
40 item: "/button/group" "ewl/button"; 40 item: "/button/group" "ewl/button";
41 item: "/button/body/label/textpart" "ewl/button/text";
41 item: "/radiobutton/group" "ewl/button/other"; 42 item: "/radiobutton/group" "ewl/button/other";
42 item: "/checkbutton/group" "ewl/button/other"; 43 item: "/checkbutton/group" "ewl/button/other";
43 item: "/radio/group" "ewl/button/radio/item"; 44 item: "/radio/group" "ewl/button/radio/item";
@@ -59,7 +60,7 @@ data {
59 item: "/combo/button/group" "ewl/combo/button"; 60 item: "/combo/button/group" "ewl/combo/button";
60 61
61 // Drag and drop 62 // Drag and drop
62 item: "/dndcursor/group" "ewl/sphere-cursor"; 63 item: "/dndcursor/group" "ewl/dnd";
63 64
64 // Text 65 // Text
65 item: "/entry/group" "ewl/entry"; 66 item: "/entry/group" "ewl/entry";
@@ -156,6 +157,7 @@ data {
156 157
157} 158}
158 159
160fonts { font: "DejaVuSans.ttf" "Sans"; }
159 161
160collections { 162collections {
161 163
@@ -164,17 +166,77 @@ collections {
164 166
165 group { name: "ewl/blank"; } 167 group { name: "ewl/blank"; }
166 168
167 group { name: "ewl/sphere-cursor"; } 169 group { name: "ewl/dnd"; } // FORMERLY SPHERE-CURSOR
168 170
169 group { name: "ewl/highlight"; } 171 group { name: "ewl/highlight"; }
170 172
171 group { name: "ewl/shadow"; } 173 group { name: "ewl/shadow";
172 174 data {
173 group { name: "ewl/spacer"; } 175 item: "inset" 6;
176 item: "pad/left" 8;
177 item: "pad/top" 8;
178 }
179 images { image: "e17_mini_button_shadow2.png" COMP; }
180 parts {
181 part { name: "shadow";
182 mouse_events: 0;
183 description { state: "default" 0.0;
184 image {
185 normal: "e17_mini_button_shadow2.png";
186 border: 0 0 0 0;
187 }
188 }
189 }
190 }
191 }
174 192
175 group { name: "ewl/separator/horizontal"; } 193 group { name: "ewl/spacer";
194 parts { part {
195 name: "base";
196 description { state: default 0.0; color: 0 0 0 0; }
197 }
198 }
199 }
176 200
177 group { name: "ewl/separator/vertical"; } 201 group { name: "ewl/separator/horizontal";
202 images { image: "sb_runnerh.png" COMP; }
203 parts {
204 part { name: "separator";
205 mouse_events: 0;
206 description { state: "default" 0.0;
207 min: 16 3;
208 max: 10000 3;
209 rel1.offset: 2 2;
210 rel2.offset: -3 -3;
211 image {
212 normal: "sb_runnerh.png";
213 border: 3 3 0 0;
214 }
215 fill.smooth: 0;
216 }
217 }
218 }
219 }
220
221 group { name: "ewl/separator/vertical";
222 images { image: "sb_runnerv.png" COMP; }
223 parts {
224 part { name: "separator";
225 mouse_events: 0;
226 description { state: "default" 0.0;
227 min: 3 16;
228 max: 3 10000;
229 rel1.offset: 2 2;
230 rel2.offset: -3 -3;
231 image {
232 normal: "sb_runnerv.png";
233 border: 0 0 3 3;
234 }
235 fill.smooth: 0;
236 }
237 }
238 }
239 }
178 240
179 241
180/////////////////////////////////////////////////////// 242///////////////////////////////////////////////////////
@@ -184,7 +246,97 @@ collections {
184 246
185 group { name: "ewl/button/radio/item"; } 247 group { name: "ewl/button/radio/item"; }
186 248
187 group { name: "ewl/button/check/item"; } 249 group { name: "ewl/button/check/item";
250 images {
251 image: "check_base.png" COMP;
252 image: "check_on.png" COMP;
253 image: "check_sel.png" COMP;
254 }
255 parts {
256 part { name: "base";
257 mouse_events: 0;
258 scale: 1;
259 description { state: "default" 0.0;
260 min: 16 16;
261 max: 16 16;
262 align: 0.0 0.5;
263 fixed: 1 1;
264 rel1 {
265 relative: 0.0 0.0;
266 offset: 2 2;
267 }
268 rel2 {
269 relative: 0.0 1.0;
270 offset: 2 -3;
271 }
272 image.normal: "check_base.png";
273 }
274 }
275 part { name: "mark";
276 mouse_events: 0;
277 clip_to: "mark_hold";
278 description { state: "default" 0.0;
279 rel1.to: "mark_hold";
280 rel2.to: "mark_hold";
281 image.normal: "check_on.png";
282 }
283 description { state: "selected" 0.0;
284 inherit: "default" 0.0;
285 image.normal: "check_sel.png";
286 }
287 }
288 part { name: "mark_hold";
289 type: RECT;
290 mouse_events: 0;
291 description { state: "default" 0.0;
292 visible: 0;
293 color: 255 255 255 0;
294 rel1 {
295 to: "base";
296 offset: -5 -5;
297 }
298 rel2 {
299 to: "base";
300 offset: 4 4;
301 }
302 }
303 description { state: "on" 0.0;
304 inherit: "default" 0.0;
305 visible: 1;
306 color: 255 255 255 255;
307 rel1.offset: 0 0;
308 rel2.offset: -1 -1;
309 }
310 }
311 part { name: "event";
312 type: RECT;
313 ignore_flags: ON_HOLD;
314 description { state: "default" 0.0;
315 color: 0 0 0 0;
316 }
317 description { state: "disabled" 0.0;
318 inherit: "default" 0.0;
319 visible: 0;
320 }
321 }
322 }
323 programs {
324 program { name: "on";
325 signal: "checked";
326 source: "EWL";
327 action: STATE_SET "on" 0.0;
328 transition: LINEAR 0.15;
329 target: "mark_hold";
330 }
331 program { name: "off";
332 signal: "default";
333 source: "EWL";
334 action: STATE_SET "default" 0.0;
335 transition: LINEAR 0.2;
336 target: "mark_hold";
337 }
338 }
339 }
188 340
189 group { name: "ewl/button"; 341 group { name: "ewl/button";
190 data { 342 data {
@@ -224,6 +376,34 @@ collections {
224 } 376 }
225 } 377 }
226 } 378 }
379 part { name: "ewl/button/text"; // WHATS THIS!?
380 type: TEXT;
381 effect: NONE;
382 description { state: "default" 0.0;
383 align: 0.5 0.5;
384 text {
385 text: "text";
386 font: "Sans";
387 size: 10;
388 min: 0 1;
389 max: 1 1;
390 align: 0.0 0.5;
391 }
392 color: 255 255 255 255;
393 }
394 description { state: "disabled" 0.0;
395 align: 0.5 0.5;
396 text {
397 text: "text";
398 font: "Sans";
399 size: 10;
400 min: 0 1;
401 max: 1 1;
402 align: 0.0 0.5;
403 }
404 color: 0 0 0 32;
405 }
406 }
227 part { name: "over1"; 407 part { name: "over1";
228 mouse_events: 0; 408 mouse_events: 0;
229 description { state: "default" 0.0; 409 description { state: "default" 0.0;
@@ -324,11 +504,155 @@ collections {
324/////////////////////////////////////////////////////// 504///////////////////////////////////////////////////////
325 /*** ENTRY AND TEXT ***/ 505 /*** ENTRY AND TEXT ***/
326 506
327 group { name: "ewl/label"; } 507 group { name: "ewl/label";
508 parts {
509 part { name: "ewl/label/text";
510 type: TEXT;
511 effect: NONE;
512 description { state: "default" 0.0;
513 align: 0.5 0.5;
514 text {
515 text: "text";
516 font: "Sans";
517 size: 10;
518 min: 0 1;
519 max: 1 1;
520 align: 0.0 0.5;
521 }
522 color: 0 0 0 255;
523 }
524 }
525 part { name: "size_giver";
526 type: TEXT;
527 effect: SOFT_SHADOW;
528 description {
529 state: "default" 0.0;
530 visible: 0;
531 align: 0.0 0.5;
532 text {
533 font: "Sans";
534 text_source: "ewl/label/text";
535 size: 10;
536 min: 1 1;
537 align: 0.0 0.5;
538 }
539 }
540 }
541 }
542 }
328 543
329 group { name: "ewl/entry"; } 544 group { name: "ewl/entry";
545 data {
546 item: "inset" 2;
547 item: "inset/left" 6;
548 item: "pad" 1;
549 }
550 images.image: "inset_sunk.png" COMP;
551 parts {
552 part { name: "base";
553 type: RECT;
554 description { state: "default" 0.0;
555 rel1.offset: 1 1;
556 rel2.offset: -2 -2;
557 color: 255 255 255 255;
558 }
559 }
560 part { name: "text";
561 type: TEXT;
562 effect: NONE;
563 description { state: "default" 0.0;
564 align: 0.5 0.5;
565 text {
566 font: "Sans";
567 size: 10;
568 min: 0 1;
569 max: 1 1;
570 align: 0.0 0.5;
571 }
572 color: 255 0 0 255;
573 }
574 }
575 part { name: "overlay";
576 description { state: "default" 0.0;
577 image {
578 normal: "inset_sunk.png";
579 border: 7 7 7 7;
580 middle: 0;
581 }
582 fill.smooth : 0;
583 }
584 }
585 }
586 }
587
588 group { name: "ewl/entry/cursor";
589 min: 1 0;
590 parts {
591 part { name: "cursor";
592 type: RECT;
593 description { state: "default" 0.0;
594 rel1.offset: 1 0;
595 rel2.offset: 0 -1;
596 color: 0 0 0 0;
597 }
598 description { state: "visible" 0.0;
599 inherit: "default" 0.0;
600 color: 0 0 0 255;
601 }
602 }
603 }
604 programs {
605 program { name: "on_cursor_show";
606 signal: "show";
607 source: "";
608 action: ACTION_STOP;
609 target: "cursor_show";
610 target: "cursor_hide";
611 target: "cursor_show_timer";
612 target: "cursor_hide_timer";
613 after: "cursor_show";
614 }
615 program { name: "cursor_show";
616 action: STATE_SET "visible" 0.0;
617 target: "cursor";
618 after: "cursor_show_timer";
619 }
620 program { name: "cursor_hide";
621 action: STATE_SET "default" 0.0;
622 target: "cursor";
623 transition: SINUSOIDAL 0.2;
624 after: "cursor_hide_timer";
625 }
626 program { name: "cursor_show_timer";
627 in: 0.55 0.0;
628 after: "cursor_hide";
629 }
630 program { name: "cursor_hide_timer";
631 in: 0.2 0.0;
632 after: "cursor_show";
633 }
634 program { name: "off_cursor";
635 signal: "noblink";
636 source: "EWL";
637 action: ACTION_STOP;
638 target: "cursor_show";
639 target: "cursor_hide";
640 target: "cursor_show_timer";
641 target: "cursor_hide_timer";
642 }
643 }
644 }
330 645
331 group { name: "ewl/entry/cursor"; } 646 group { name: "ewl/entry/selection";
647 parts {
648 part { name: "selection";
649 type: RECT;
650 description { state: default 0.0;
651 color: 164 164 164 100;
652 }
653 }
654 }
655 }
332 656
333 657
334/////////////////////////////////////////////////////// 658///////////////////////////////////////////////////////