[2008.09][FSO] Programming interface to wifi Icon

Carsten Haitzler (The Rasterman) raster at rasterman.com
Thu Oct 2 01:26:47 CEST 2008


On Wed, 1 Oct 2008 11:20:23 -0400 Joel Newkirk <freerunner at newkirk.us> babbled:

> 
> 
> On Wed, 01 Oct 2008 14:39:08 +0100, Arigead <captain.deadly at gmail.com>
> wrote:

i'm baffled. that bar wt the top is always visible - it's not part of your app
(and it only is invisible if your app goes fullsreen). note that the icon is
entirely part of the theme and may vary based on whatever theme you use. the
bar is part of the window manager and its contents are controlled by code
running in the wm process (either core or loadable modules). there are no
signals for pressing the icon published - it's internal and up to the gadget
code for that icon (in e terms it's a gadget). as its tiiiiiiiiiiiiiiiiny icon,
pressing it is not that useful and so does nothing.

> > Sorry Yes I would like to use the Icon on the top of the illume bar. I 
> > was thinking interfacing this to my daemon so regardless of app you can 
> > see the wifi status the same as you can see the GSM status at present.
> > 
> > If anybody knows about "somewhat different" :-) Would this presently be 
> > set by Kernel code the Window Manager?
> 
> It's part of the edje setup for the main screen, in illume.edj. (well, that
> can differ - I've always installed illume-config and illume-config-illume)
> You can think of the .edj file as a theme package of sorts, although it
> abstracts more UI handling out of the program than traditional theming. In
> OO fashion it separates all the user interaction into the edje file, with
> the main application interacting via signals to change UI or respond to
> user actions and triggers generated by the UI itself.
> 
> You can set up in the .edj file to support changing icons triggered by
> signals from 'outside', and emit signals when some UI interaction (IE,
> click the icon) takes place.  I'm interested in doing something similar
> with USB, showing whether it's in host or device mode, networking vs mass
> storage if device mode, sending or expecting power, forcing 500mA or 1000mA
> charging, and ability to change all the above.

you'd need code to figure this out - but then you feed a "State" to the edje -
the edje then decides how to display that state.

> The program edje_editor is great for taking a look at such features.  It's
> part of the E17 desktop setup, I've been playing with it in the developer
> VM I'm working on.  It takes the intact .edj file and extracts all the
> configs, images, etc from it and gives you a nice WYSYWIG GUI editor.  BTW
> - I printed out the actual text config from illume.edj, it's about 100
> pages long...  A simpler starting point to learn your way around .edj and
> edje_editor is illume_init.edj, the startup theme.  (second view of the
> boots, with the green scanning back and forth instead of indicating percent
> progress)  It's quite easy to drop in a different background image,
> redefine the animation, etc this way.
> 
> (Now what we really need is a tool running ON the FR that decompiles the
> main .edj file and lets us replace wallpaper, etc - basic customization,
> not full-on UI redesign work)

install edje-utils. use edje_decc then :) but really - you just want e's
wallpaper setting dialog that already does all of this (if you ever used e on
the desktop).

> j
> 
> 
> _______________________________________________
> Openmoko community mailing list
> community at lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community
> 


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    raster at rasterman.com





More information about the community mailing list