~enlightenment-git/enlightenment-svn/e-modules-extra

« back to all changes in this revision

Viewing changes to eektool/e-module-eektool.edc

  • Committer: leif
  • Date: 2012-04-08 22:55:43 UTC
  • Revision ID: svn-v4:7cbeb6ba-43b4-40fd-8cce-4c39aea84d33:trunk/E-MODULES-EXTRA:69958
New gadget that displays results of a command line

This gadget is inspired by Geektool for Mac OS.
Yet, it misses
    - A GUI font configuration (/inline styles for edje TEXTBLOCKs?)
    - Display/refresh of images

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
collections
 
2
{
 
3
images {
 
4
  image: "icon.png" COMP;
 
5
}
 
6
   group
 
7
     {
 
8
     name: "icon";
 
9
      parts
 
10
        {
 
11
           part
 
12
            {
 
13
                name:         "icon";
 
14
                type:         IMAGE;
 
15
                mouse_events: 1;
 
16
                description
 
17
                {
 
18
                    state:    "default" 0.0;
 
19
                    aspect:   1.0 1.0;
 
20
                    aspect_preference: BOTH;
 
21
                    align:    0.0 0.0;
 
22
                    image {
 
23
                        normal: "icon.png";
 
24
                    }
 
25
                    rel1
 
26
                    {
 
27
                        relative: 0.0 0.0;
 
28
                        offset:   0   0;
 
29
                    }
 
30
                    rel2
 
31
                    {
 
32
                        relative: 1.0 1.0;
 
33
                        offset:   -1  -1;
 
34
                    }
 
35
                }
 
36
             }
 
37
        }
 
38
     }
 
39
 
 
40
group {
 
41
name: "sel_group";
 
42
      parts {
 
43
         part {
 
44
name: "rect";
 
45
type: RECT;
 
46
      description {
 
47
state: "default" 0.0;
 
48
color: 0 255 0 255; /* green */
 
49
       rel1.relative: 0.0 0.0;
 
50
       rel2.relative: 1.0 1.0;
 
51
      }
 
52
         }
 
53
      }
 
54
}
 
55
 
 
56
   group
 
57
     {
 
58
      name: "modules/eektool/text";
 
59
      max: 500 500;
 
60
      min: 50 50;
 
61
 
 
62
      styles {
 
63
         style {
 
64
            name: "style";
 
65
            base: "font=Sans font_size=22 color=#000000 wrap=word";
 
66
            tag:  "br" "\n";
 
67
            tag:  "hilight" "+ font_weight=Bold";
 
68
            tag:  "b" "+ font_weight=Bold";
 
69
            tag:  "tab" "\t";
 
70
         }
 
71
      }
 
72
      parts
 
73
        {
 
74
           part
 
75
            {
 
76
                name:         "command_output";
 
77
                type:         TEXTBLOCK;
 
78
                mouse_events: 1;
 
79
                entry_mode:   NONE;
 
80
                description
 
81
                {
 
82
                    state:    "default" 0.0;
 
83
                    aspect:   1.0 1.0;
 
84
                    aspect_preference: BOTH;
 
85
                    align:    0.0 0.0;
 
86
                    min: 20 20;
 
87
                    text {
 
88
                        style: "style";
 
89
                        min: 1 1;
 
90
                    }
 
91
                }
 
92
             }
 
93
        }
 
94
     }
 
95
}