On Thu, 18 Mar 2010 14:48:56 -0700
"Enlightenment SVN" <[email protected]> wrote:

Ok, maybe it's just me, but does this module really belong in the
default E install? I really think this is not going to be useful for 99%
of E users and thus should probably be placed in the E-MODULES-EXTRA or
hosted elsewhere. Same could be said of connman and bluez, but at least
those might be useful on a normal laptop/desktop.

Just my 2 cents.

> Log:
>   e: Add ofono module.
>   
>   By: Jo?\195?\163o Paulo Rechi Vita <[email protected]>
>   
>   
> Author:       barbieri
> Date:         2010-03-18 14:48:56 -0700 (Thu, 18 Mar 2010)
> New Revision: 47330
> 
> Added:
>   trunk/e/src/modules/ofono/ trunk/e/src/modules/ofono/Makefile.am
> trunk/e/src/modules/ofono/e_mod_main.c
> trunk/e/src/modules/ofono/e_mod_main.h
> trunk/e/src/modules/ofono/module.desktop.in Modified:
> trunk/e/configure.ac trunk/e/data/themes/default.edc
> trunk/e/src/modules/Makefile.am 
> 
> Modified: trunk/e/configure.ac
> ===================================================================
> --- trunk/e/configure.ac      2010-03-18 21:32:34 UTC (rev 47329)
> +++ trunk/e/configure.ac      2010-03-18 21:48:56 UTC (rev 47330)
> @@ -458,6 +458,15 @@
>  AC_SUBST(EBLUEZ_CFLAGS)
>  AC_SUBST(EBLUEZ_LIBS)
>  
> +AM_CONDITIONAL(HAVE_EOFONO, false)
> +define([CHECK_MODULE_OFONO],
> +[
> +        AC_E_CHECK_PKG(EOFONO, [edbus eofono],
> +                       [], [EOFONO=false])
> +])
> +AC_SUBST(EOFONO_CFLAGS)
> +AC_SUBST(EOFONO_LIBS)
> +
>  AC_E_OPTIONAL_MODULE([ibar], true)
>  AC_E_OPTIONAL_MODULE([dropshadow], true)
>  AC_E_OPTIONAL_MODULE([clock], true)
> @@ -518,6 +527,7 @@
>  AC_E_OPTIONAL_MODULE([mixer], true, [CHECK_MODULE_MIXER])
>  AC_E_OPTIONAL_MODULE([connman], true, [CHECK_MODULE_CONNMAN])
>  AC_E_OPTIONAL_MODULE([bluez], true, [CHECK_MODULE_BLUEZ])
> +AC_E_OPTIONAL_MODULE([ofono], true, [CHECK_MODULE_OFONO])
>  AC_E_OPTIONAL_MODULE([illume], true)
>  AC_E_OPTIONAL_MODULE([illume2], true)
>  AC_E_OPTIONAL_MODULE([syscon], true)
> @@ -652,6 +662,8 @@
>  src/modules/connman/module.desktop
>  src/modules/bluez/Makefile
>  src/modules/bluez/module.desktop
> +src/modules/ofono/Makefile
> +src/modules/ofono/module.desktop
>  src/modules/illume/Makefile
>  src/modules/illume/module.desktop
>  src/modules/illume/keyboards/Makefile
> 
> Modified: trunk/e/data/themes/default.edc
> ===================================================================
> --- trunk/e/data/themes/default.edc   2010-03-18 21:32:34 UTC
> (rev 47329) +++ trunk/e/data/themes/default.edc       2010-03-18
> 21:48:56 UTC (rev 47330) @@ -8651,6 +8651,547 @@
>     }
>  
>  /////////////////////////////////////////////////////////////////////////////
> +   /*** MOD: OFONO ***/
> +
> +// GADGET and TIP all have the same parts and signals:
> +//
> +// PARTS:
> +//    e.text.name
> +//    e.text.status
> +//    e.text.op
> +//
> +// SIGNALS:
> +//    e,unavailable: ofonod is not running (nothing else works)
> +//    e,available:  ofonod is running
> +//    e,name,available: there is info about device name
> +//    e,name,unavailable: there is no info about device name
> +//    e,netinfo,available: there is info about network
> +//    e,netinfo,unavailable: there is no info about network
> +//
> +// MESSAGES:
> +//    id=1, type=MSG_INT, description=strength (0-100)
> +
> +   group { name: "e/modules/ofono/main";
> +      max: 128 128;
> +      min: 1 1;
> +
> +      images {
> +         image: "gsm_0.png" COMP;
> +         image: "gsm_1.png" COMP;
> +         image: "gsm_2.png" COMP;
> +         image: "gsm_3.png" COMP;
> +         image: "gsm_4.png" COMP;
> +         image: "gsm_no.png" COMP;
> +      }
> +
> +      script {
> +      public message(Msg_Type:type, id, ...) {
> +         if ((type == MSG_INT) && (id == 1)) {
> +            new strength;
> +            strength = getarg(2);
> +               if (strength >= 80)
> +                  run_program(PROGRAM:"strength,5");
> +               else if (strength >= 60)
> +                  run_program(PROGRAM:"strength,4");
> +               else if (strength >= 40)
> +                  run_program(PROGRAM:"strength,3");
> +               else if (strength >= 20)
> +                  run_program(PROGRAM:"strength,2");
> +               else if (strength >= 1)
> +                  run_program(PROGRAM:"strength,1");
> +               else
> +                  run_program(PROGRAM:"strength,no");
> +         }
> +      }
> +      }
> +
> +      parts {
> +         part {
> +            name: "eventarea";
> +            type: RECT;
> +            mouse_events: 1;
> +            description {
> +               state: "default" 0.0;
> +               color: 255 255 255 0;
> +            }
> +         }
> +
> +         part {
> +            name: "eventarea.image";
> +            type: IMAGE;
> +            description {
> +               state: "default" 0.0;
> +               aspect: 1.6 1.7;
> +               aspect_preference: HORIZONTAL;
> +               image.normal: "gsm_no.png";
> +               rel1.to: "eventarea";
> +               rel2.to: "eventarea";
> +            }
> +         description {
> +               state: "strength,5" 0.0;
> +               inherit: "default" 0.0;
> +               image.normal: "gsm_4.png";
> +            }
> +         description {
> +               state: "strength,4" 0.0;
> +               inherit: "default" 0.0;
> +               image.normal: "gsm_3.png";
> +            }
> +         description {
> +               state: "strength,3" 0.0;
> +               inherit: "default" 0.0;
> +               image.normal: "gsm_2.png";
> +            }
> +         description {
> +               state: "strength,2" 0.0;
> +               inherit: "default" 0.0;
> +               image.normal: "gsm_1.png";
> +            }
> +         description {
> +               state: "strength,1" 0.0;
> +               inherit: "default" 0.0;
> +               image.normal: "gsm_0.png";
> +            }
> +         description {
> +               state: "strength,no" 0.0;
> +               inherit: "default" 0.0;
> +               image.normal: "gsm_no.png";
> +            }
> +         description {
> +               state: "disabled" 0.0;
> +               inherit: "default" 0.0;
> +            color: 255 255 255 100;
> +            }
> +         }
> +         programs {
> +            program {
> +            name: "strength,5";
> +               action: STATE_SET "strength,5" 0.0;
> +               target: "eventarea.image";
> +            }
> +            program {
> +            name: "strength,4";
> +               action: STATE_SET "strength,4" 0.0;
> +               target: "eventarea.image";
> +            }
> +            program {
> +            name: "strength,3";
> +               action: STATE_SET "strength,3" 0.0;
> +               target: "eventarea.image";
> +            }
> +            program {
> +            name: "strength,2";
> +               action: STATE_SET "strength,2" 0.0;
> +               target: "eventarea.image";
> +            }
> +            program {
> +            name: "strength,1";
> +               action: STATE_SET "strength,1" 0.0;
> +               target: "eventarea.image";
> +            }
> +            program {
> +            name: "strength,0";
> +               action: STATE_SET "strength,0" 0.0;
> +               target: "eventarea.image";
> +            }
> +            program {
> +            name: "strength,no";
> +               action: STATE_SET "strength,no" 0.0;
> +               target: "eventarea.image";
> +            }
> +            program {
> +            name: "e,available";
> +               signal: "e,available";
> +               source: "e";
> +               action: STATE_SET "default" 0.0;
> +               target: "eventarea.image";
> +            }
> +            program {
> +            name: "e,unavailable";
> +               signal: "e,unavailable";
> +               source: "e";
> +               action: STATE_SET "disabled" 0.0;
> +               target: "eventarea.image";
> +            }
> +            program {
> +            name: "netinfo,unavailable";
> +               signal: "e,netinfo,unavailable";
> +               source: "e";
> +               action: STATE_SET "default" 0.0;
> +               target: "eventarea.image";
> +            }
> +      }
> +
> +         part {
> +            name: "e.text.name";
> +            type: TEXT;
> +            mouse_events: 0;
> +         effect: SOFT_SHADOW;
> +            description {
> +               state: "default" 0.0;
> +            color: 224 224 224 255;
> +            color3: 0 0 0 64;
> +               align: 0.5 1.0;
> +               rel1 {
> +                  relative: 0.0 1.0;
> +                  offset: 0 -20;
> +               }
> +               rel2 {
> +                  relative: 1.0 1.0;
> +                  offset: -1 -1;
> +               }
> +               text {
> +                  font: "Sans";
> +                  size: 8;
> +                  align: 0.5 1.0;
> +                  text: "";
> +                  min: 0 1;
> +               }
> +            }
> +            description {
> +               state: "hidden" 0.0;
> +               inherit: "default" 0.0;
> +               visible: 0;
> +            }
> +         }
> +         programs {
> +            program {
> +               name: "resize";
> +               signal: "resize";
> +            script {
> +               new x, y, w, h;
> +               get_geometry(PART:"eventarea", x, y, w, h);
> +               if (w <= 32)
> +                 set_state(PART:"e.text.name", "hidden", 0.0);
> +               else
> +                 set_state(PART:"e.text.name", "default", 0.0);
> +            }
> +            }
> +      }
> +
> +      }
> +   }
> +
> +   group { name: "e/modules/ofono/tip";
> +      min: 220 80;
> +
> +      images {
> +         image: "inset_sunk.png" COMP;
> +      }
> +
> +      script {
> +      public message(Msg_Type:type, id, ...) {
> +         if ((type == MSG_INT) && (id == 1)) {
> +            new strength;
> +               new Float:val;
> +
> +            strength = getarg(2);
> +            val = float(strength) / 100.0;
> +            set_drag(PART:"strength_gauge_knob", val, 0.0);
> +         }
> +      }
> +      }
> +
> +      parts {
> +
> +         part { name: "e.text.error";
> +            type: TEXT;
> +            mouse_events: 0;
> +            description {
> +               state: "default" 0.0;
> +               color: 150 150 150 255;
> +               fixed: 1 1;
> +               visible: 0;
> +               text {
> +                  font: "Sans:style=Bold";
> +                  size: 16;
> +                  text: "";
> +                  min: 1 1;
> +               }
> +            }
> +            description {
> +               state: "shown" 0.0;
> +               inherit: "default" 0.0;
> +               visible: 1;
> +            }
> +         }
> +         programs {
> +            program {
> +            name: "error,e,available";
> +               signal: "e,available";
> +               source: "e";
> +               action: STATE_SET "default" 0.0;
> +               target: "e.text.error";
> +            }
> +            program {
> +            name: "error,e,unavailable";
> +               signal: "e,unavailable";
> +               source: "e";
> +               action: STATE_SET "shown" 0.0;
> +               target: "e.text.error";
> +            }
> +            program {
> +            name: "error,netinfo,available";
> +               signal: "e,netinfo,available";
> +               source: "e";
> +               action: STATE_SET "default" 0.0;
> +               target: "e.text.error";
> +            }
> +            program {
> +            name: "error,netinfo,unavailable";
> +               signal: "e,netinfo,unavailable";
> +               source: "e";
> +               action: STATE_SET "shown" 0.0;
> +               target: "e.text.error";
> +            }
> +         }
> +
> +         part { name: "e.text.name";
> +            type: TEXT;
> +            mouse_events: 0;
> +         effect: SOFT_SHADOW;
> +            description {
> +               state: "default" 0.0;
> +            color: 240 240 240 255;
> +            color3: 0 0 0 64;
> +               align: 0.0 0.0;
> +               fixed: 1 1;
> +            visible: 0;
> +               rel1 {
> +                  relative: 0.0 0.0;
> +                  offset: 10 5;
> +               }
> +               text {
> +                  font: "Sans:style=Bold";
> +                  size: 16;
> +                  align: 0.0 0.0;
> +                  text: "";
> +                  min: 1 1;
> +               }
> +            }
> +            description {
> +               state: "shown" 0.0;
> +               inherit: "default" 0.0;
> +               visible: 1;
> +            }
> +         }
> +         programs {
> +            program {
> +            name: "name,available";
> +               signal: "e,available";
> +               source: "e";
> +               action: STATE_SET "default" 0.0;
> +               target: "e.text.name";
> +            }
> +            program {
> +            name: "name,unavailable";
> +               signal: "e,unavailable";
> +               source: "e";
> +               action: STATE_SET "shown" 0.0;
> +               target: "e.text.name";
> +            }
> +         }
> +
> +         part {
> +         name: "e.text.op";
> +            type: TEXT;
> +            mouse_events: 0;
> +         effect: SOFT_SHADOW;
> +            description {
> +               state: "default" 0.0;
> +            color: 240 240 240 255;
> +            color3: 0 0 0 64;
> +               align: 0.0 0.0;
> +               fixed: 1 1;
> +               visible: 1;
> +               rel1 {
> +                  relative: 0.0 0.0;
> +                  offset: 10 5;
> +               }
> +               text {
> +                  font: "Sans:style=Bold";
> +                  size: 16;
> +                  align: 0.0 0.0;
> +                  text: "";
> +                  min: 1 1;
> +               }
> +            }
> +            description {
> +               state: "hidden" 0.0;
> +               inherit: "default" 0.0;
> +               visible: 0;
> +            }
> +         }
> +         programs {
> +            program {
> +            name: "op,available";
> +               signal: "e,available";
> +               source: "e";
> +               action: STATE_SET "default" 0.0;
> +               target: "e.text.op";
> +            }
> +            program {
> +            name: "op,unavailable";
> +               signal: "e,unavailable";
> +               source: "e";
> +               action: STATE_SET "hidden" 0.0;
> +               target: "e.text.op";
> +            }
> +            program {
> +            name: "op,netinfo,unavailable";
> +               signal: "e,netinfo,unavailable";
> +               source: "e";
> +               action: STATE_SET "hidden" 0.0;
> +               target: "e.text.op";
> +            }
> +         }
> +
> +         part { name: "e.text.status";
> +            type: TEXT;
> +            mouse_events: 0;
> +            description {
> +               state: "default" 0.0;
> +            color: 0 0 0 255;
> +               align: 0.0 0.0;
> +               fixed: 1 1;
> +               visible: 0;
> +               rel1 {
> +                  relative: 0.0 0.0;
> +                  offset: 10 30;
> +               }
> +               text {
> +                  font: "Sans";
> +                  size: 10;
> +                  align: 0.0 0.0;
> +                  text: "";
> +                  min: 1 1;
> +               }
> +            }
> +            description {
> +               state: "shown" 0.0;
> +               inherit: "default" 0.0;
> +               visible: 1;
> +            }
> +         }
> +      programs {
> +            program {
> +               name: "status,available";
> +               signal: "e,netinfo,available";
> +               source: "e";
> +               action: STATE_SET "shown" 0.0;
> +               target: "e.text.status";
> +         }
> +            program {
> +               name: "status,unavailable";
> +               signal: "e,netinfo,unavailable";
> +               source: "e";
> +               action: STATE_SET "default" 0.0;
> +               target: "e.text.status";
> +         }
> +      }
> +
> +      part { name: "strength_gauge_bg";
> +         type: IMAGE;
> +         scale: 1;
> +         mouse_events: 0;
> +         description {
> +               state: "default" 0.0;
> +               min: 100 10;
> +               max: 99999 99999;
> +            visible: 0;
> +               rel1 {
> +                  relative: 0.0 0.0;
> +                  offset: 10 55;
> +               }
> +            rel2 {
> +               relative: 1.0 1.0;
> +               offset: -10 -10;
> +            }
> +            image {
> +                  normal: "inset_sunk.png";
> +                  border: 6 6 6 6;
> +               }
> +         }
> +            description {
> +               state: "shown" 0.0;
> +               inherit: "default" 0.0;
> +               visible: 1;
> +            }
> +         }
> +      programs {
> +            program {
> +               name: "strength,available";
> +               signal: "e,netinfo,available";
> +               source: "e";
> +               action: STATE_SET "shown" 0.0;
> +               target: "strength_gauge_bg";
> +         }
> +            program {
> +               name: "strength,unavailable";
> +               signal: "e,netinfo,unavailable";
> +               source: "e";
> +               action: STATE_SET "default" 0.0;
> +               target: "strength_gauge_bg";
> +         }
> +      }
> +
> +      part { name: "strength_gauge_confine";
> +         type: RECT;
> +         scale: 1;
> +         mouse_events: 0;
> +         description {
> +               state: "default" 0.0;
> +            color: 255 255 255 0;
> +               visible: 0;
> +            rel1 {
> +                  to: "strength_gauge_bg";
> +                  offset: 1 1;
> +               }
> +            rel2 {
> +                  to: "strength_gauge_bg";
> +                  offset: -2 -2;
> +               }
> +         }
> +      }
> +
> +      part { name: "strength_gauge_knob";
> +         mouse_events: 0;
> +         scale: 1;
> +         type: RECT;
> +         dragable {
> +            x: 1 1 0;
> +            y: 0 0 0;
> +               confine: "strength_gauge_confine";
> +               confine: "strength_gauge_bg";
> +         }
> +         description {
> +               state: "default" 0.0;
> +            color: 255 255 255 0;
> +               visible: 0;
> +               min: 0 0;
> +               max: 0 0;
> +         }
> +      }
> +
> +      part { name: "strength_gauge_fill";
> +         mouse_events: 0;
> +         type: RECT;
> +         description {
> +               state: "default" 0.0;
> +            color: 55 55 55 100;
> +               fixed: 1 1;
> +               rel1.to: "strength_gauge_confine";
> +               rel2 {
> +                  to_x: "strength_gauge_knob";
> +                  to_y: "strength_gauge_confine";
> +               }
> +         }
> +      }
> +
> +      }
> +   }
> +
> +/////////////////////////////////////////////////////////////////////////////
>     /*** MOD: CONF_EDGEBINDINGS ***/
>     /* This group draws the edge and corners for the user to pick.
>      * XXX: Needs some love from masters of the brush! */
> 
> Modified: trunk/e/src/modules/Makefile.am
> ===================================================================
> --- trunk/e/src/modules/Makefile.am   2010-03-18 21:32:34 UTC
> (rev 47329) +++ trunk/e/src/modules/Makefile.am       2010-03-18
> 21:48:56 UTC (rev 47330) @@ -266,6 +266,9 @@
>  SUBDIRS += comp
>  endif
>  
> +if USE_MODULE_OFONO
> +SUBDIRS += ofono
> +endif
>  
>  DIST_SUBDIRS = \
>  ibar \
> @@ -340,4 +343,5 @@
>  syscon \
>  everything \
>  systray \
> -comp
> +comp \
> +ofono
> 
> 
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> enlightenment-svn mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to