Enlightenment CVS committal

Author  : chaos
Project : e_modules
Module  : wlan

Dir     : e_modules/wlan


Modified Files:
        wlan.edc 


Log Message:
* Shelf-ify wlan module

===================================================================
RCS file: /cvs/e/e_modules/wlan/wlan.edc,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- wlan.edc    9 Aug 2006 07:34:46 -0000       1.8
+++ wlan.edc    2 Sep 2006 00:57:07 -0000       1.9
@@ -1,6 +1,28 @@
 images
 {
    image: "wlan.png" COMP;
+   image: "qual_00.png" COMP;
+   image: "qual_01.png" COMP;
+   image: "qual_02.png" COMP;
+   image: "qual_03.png" COMP;
+   image: "qual_04.png" COMP;
+   image: "qual_05.png" COMP;
+   image: "qual_06.png" COMP;
+   image: "qual_07.png" COMP;
+   image: "qual_08.png" COMP;
+   image: "qual_09.png" COMP;
+   image: "qual_10.png" COMP;
+   image: "level_00.png" COMP;
+   image: "level_01.png" COMP;
+   image: "level_02.png" COMP;
+   image: "level_03.png" COMP;
+   image: "level_04.png" COMP;
+   image: "level_05.png" COMP;
+   image: "level_06.png" COMP;
+   image: "level_07.png" COMP;
+   image: "level_08.png" COMP;
+   image: "level_09.png" COMP;
+   image: "level_10.png" COMP;
 }
 
 fonts
@@ -13,24 +35,56 @@
    group
      {
        name: "modules/wlan/main";
+       min: 4 4;
+       max: 128 128;
+       script 
+         {
+          public message(Msg_Type:type, id, ...) 
+              {
+                 if ((type == MSG_FLOAT) && (id == 1)) 
+                   {
+                      new Float:value;
+                      
+                      value = getfarg(2);
+                      set_state(PART:"qual_meter", "default", value);
+                   }
+                 if ((type == MSG_FLOAT) && (id == 2)) 
+                   {
+                      new Float:value;
+                      
+                      value = getfarg(2);
+                      set_state(PART:"level_meter", "default", value);
+                   }             
+              }             
+         }
+       
        parts
          {
             part
               {
-                 name:           "fade_clip";
-                 type:           RECT;
-                 mouse_events:   0;
+                 name: "fade_clip";
+                 type: RECT;
                  description
                    {
                       state: "default" 0.0;
                       color: 255 255 255 255;
+                      rel1
+                        {
+                           relative: 0.0 0.0;
+                           offset: 0 0;
+                        }
+                      rel2
+                        {
+                           relative: 1.0 1.0;
+                           offset: -1 -1;
+                        }
                    }
               }
             part
               {
-                 name:          "wlan";
+                 name: "wlan";
+                 type: IMAGE;
                  clip_to: "fade_clip";
-                 mouse_events:  0;
                  description
                    {
                       state:    "default" 0.0;
@@ -38,105 +92,373 @@
                       aspect:   1.0 1.0;
                       aspect_preference: BOTH;
                       align: 0.5 0.5;
+                      
                       rel1
                         {
                            relative: 0.0 0.0;
+                           offset: 0 0;
                         }
                       rel2
                         {
                            relative: 1.0 1.0;
+                           offset: -1 -1;
                         }
                       image
                         {
                            normal: "wlan.png";
                         }
-                      fill
-                        {
-                           smooth: 0;
-                        }
+                      color: 255 255 255 192;
                    }
               }
             part
               {
-                 name,          "lines";
-                 mouse_events,  0;
-                 type,          SWALLOW;
-                 clip_to:      "fade_clip";
+                 name: "qual_meter";
+                 type: IMAGE;
+                 clip_to: "fade_clip";
                  description
                    {
-                      state,    "default" 0.0;
+                      state: "default" 0.0;
                       rel1
                         {
                            relative: 0.0 0.0;
+                           offset: 0 0;
                         }
                       rel2
                         {
-                           relative: 1.0 1.0;
+                           relative: 1.0 0.25;
+                           offset: -1 -1;
+                        }
+                      image
+                        {
+                           normal: "qual_00.png";
+                        }
+                      color: 255 255 255 192;
+                   }
+                 description
+                   {
+                      state: "default" 0.1;
+                      inherit: "default" 0.0;
+                      image
+                        {
+                           normal: "qual_01.png";
+                        }
+                   }
+                 description
+                   {
+                      state: "default" 0.2;
+                      inherit: "default" 0.0;
+                      image
+                        {
+                           normal: "qual_02.png";
+                        }
+                   }
+                 description
+                   {
+                      state: "default" 0.3;
+                      inherit: "default" 0.0;
+                      image
+                        {
+                           normal: "qual_03.png";
+                        }
+                   }
+                 description
+                   {
+                      state: "default" 0.4;
+                      inherit: "default" 0.0;
+                      image
+                        {
+                           normal: "qual_04.png";
+                        }
+                   }
+                 description
+                   {
+                      state: "default" 0.5;
+                      inherit: "default" 0.0;
+                      image
+                        {
+                           normal: "qual_05.png";
+                        }
+                   }
+                 description
+                   {
+                      state: "default" 0.6;
+                      inherit: "default" 0.0;
+                      image
+                        {
+                           normal: "qual_06.png";
+                        }
+                   }
+                 description
+                   {
+                      state: "default" 0.7;
+                      inherit: "default" 0.0;
+                      image
+                        {
+                           normal: "qual_07.png";
+                        }
+                   }
+                 description
+                   {
+                      state: "default" 0.8;
+                      inherit: "default" 0.0;
+                      image
+                        {
+                           normal: "qual_08.png";
+                        }
+                   }
+                 description
+                   {
+                      state: "default" 0.9;
+                      inherit: "default" 0.0;
+                      image
+                        {
+                           normal: "qual_09.png";
+                        }
+                   }
+                 description
+                   {
+                      state: "default" 1.0;
+                      inherit: "default" 0.0;
+                      image
+                        {
+                           normal: "qual_10.png";
                         }
-                      color, 0 0 0 0;
                    }
               }
-         }
-     }
-
-   group
-     {
-       name: "modules/wlan/text";
-       parts
-         {
-            part
+            part 
               {
-                 name:           "text_clip";
-                 type:           RECT;
-                 mouse_events:   0;
-                 description
+                 name: "qual_label";
+                 type: TEXT;
+                 clip_to: "fade_clip";
+                 effect: SOFT_SHADOW;
+                 description 
                    {
                       state: "default" 0.0;
-                      color: 255 255 255 255;
+                      color: 255 255 255 0;
+                      color3: 0 0 0 0;
+                      visible: 0;
                       rel1 
                         {
-                           relative: 0.0 0.0;
+                           relative: 0.5 0.0;
                            offset: 0 0;
+                           to: "qual_meter";
                         }
                       rel2 
                         {
-                           relative: 1.0 1.0;
-                           offset: -1 -1;                          
+                           relative: 0.5 1.0;
+                           offset: -1 -1;
+                           to: "qual_meter";
+                        }
+                      text 
+                        {
+                           text: "Real:";
+                           font: "VeraMono";
+                           size: 9;
+                           min: 1 1;
+                           align: 0.5 1.0;
+                           text_class: "module_small";
                         }
                    }
+                 description 
+                   {
+                      state: "visible" 0.0;
+                      inherit: "default" 0.0;
+                      visible: 1;
+                      color: 255 255 255 255;
+                      color3: 0 0 0 42;
+                   }
               }
             part
               {
-                 name:           "link-text";
-                 type:           TEXT;
-                 effect:         SOFT_SHADOW;
-                 clip_to: "text_clip";
-                 mouse_events: 0;
+                 name: "level_meter";
+                 type: IMAGE;
+                 clip_to: "fade_clip";
                  description
                    {
                       state: "default" 0.0;
-                      align: 0.5 0.5;
                       rel1
                         {
-                           relative: 0.5  0.5;
+                           relative: 0.0 0.75;
+                           offset: 0 0;
                         }
                       rel2
                         {
-                           relative: 0.5  0.5;
+                           relative: 1.0 1.0;
+                           offset: -1 -1;
                         }
-                      color: 255 255 255 255;
-                      color3: 0 0 0 100;
-                      text
+                      image
+                        {
+                           normal: "level_00.png";
+                        }
+                      color: 255 255 255 192;
+                   }
+                 description
+                   {
+                      state: "default" 0.1;
+                      inherit: "default" 0.0;
+                      image
+                        {
+                           normal: "level_01.png";
+                        }
+                   }
+                 description
+                   {
+                      state: "default" 0.2;
+                      inherit: "default" 0.0;
+                      image
+                        {
+                           normal: "level_02.png";
+                        }
+                   }
+                 description
+                   {
+                      state: "default" 0.3;
+                      inherit: "default" 0.0;
+                      image
+                        {
+                           normal: "level_03.png";
+                        }
+                   }
+                 description
+                   {
+                      state: "default" 0.4;
+                      inherit: "default" 0.0;
+                      image
+                        {
+                           normal: "level_04.png";
+                        }
+                   }
+                 description
+                   {
+                      state: "default" 0.5;
+                      inherit: "default" 0.0;
+                      image
+                        {
+                           normal: "level_05.png";
+                        }
+                   }
+                 description
+                   {
+                      state: "default" 0.6;
+                      inherit: "default" 0.0;
+                      image
+                        {
+                           normal: "level_06.png";
+                        }
+                   }
+                 description
+                   {
+                      state: "default" 0.7;
+                      inherit: "default" 0.0;
+                      image
                         {
-                           text: "";
+                           normal: "level_07.png";
+                        }
+                   }
+                 description
+                   {
+                      state: "default" 0.8;
+                      inherit: "default" 0.0;
+                      image
+                        {
+                           normal: "level_08.png";
+                        }
+                   }
+                 description
+                   {
+                      state: "default" 0.9;
+                      inherit: "default" 0.0;
+                      image
+                        {
+                           normal: "level_09.png";
+                        }
+                   }
+                 description
+                   {
+                      state: "default" 1.0;
+                      inherit: "default" 0.0;
+                      image
+                        {
+                           normal: "level_10.png";
+                        }
+                   }
+              }
+            part 
+              {
+                 name: "level_label";
+                 type: TEXT;
+                 clip_to: "fade_clip";
+                 effect: SOFT_SHADOW;
+                 description 
+                   {
+                      state: "default" 0.0;
+                      color: 255 255 255 0;
+                      color3: 0 0 0 0;
+                      visible: 0;
+                      rel1 
+                        {
+                           relative: 0.5 0.0;
+                           offset: 0 0;
+                           to: "level_meter";
+                        }
+                      rel2 
+                        {
+                           relative: 0.5 1.0;
+                           offset: -1 -1;
+                           to: "level_meter";
+                        }
+                      text 
+                        {
+                           text: "Swap:";
                            font: "VeraMono";
-                           size:  8;
-                           min:     1 1;
-                           align: 1.0 0.0;
+                           size: 9;
+                           min: 1 1;
+                           align: 0.5 1.0;
+                           text_class: "module_small";
                         }
                    }
+                 description 
+                   {
+                      state: "visible" 0.0;
+                      inherit: "default" 0.0;
+                      visible: 1;
+                      color: 255 255 255 255;
+                      color3: 0 0 0 42;
+                   }
+              }             
+         }
+       programs 
+         {
+            program 
+              {
+                 name: "go_active";
+                 signal: "label_active";
+                 source: "";
+                 action: STATE_SET "visible" 0.0;
+                 transition: SINUSOIDAL 0.5;
+                 target: "qual_label";
+                 target: "level_label";
+                 //after: "go_passive2";
+              }
+            program 
+              {
+                 name: "go_passive2";
+                 signal: "label_passive2";
+                 source: "";
+                 action: ACTION_STOP;
+                 target: "go_active";
+                 //after: "go_passive2";
+              }
+            program 
+              {
+                 name: "go_passive";
+                 signal: "label_passive";
+                 source: "";
+                 action: STATE_SET "default" 0.0;
+                 transition: SINUSOIDAL 1.0;             
+                 target: "qual_label";
+                 target: "level_label";
               }
          }
      }
 }
-



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to