Re: [2008.09][FSO] Programming interface to wifi Icon
Joel Newkirk wrote: On Wed, 01 Oct 2008 14:39:08 +0100, Arigead [EMAIL PROTECTED] wrote: 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. 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) j Joel you're a star. Thanks a million for your help on this. Your USB version sounds like a great one as well so let us know when you get that done. Be great to click the icon and get the options no fuss. It's the logical place for Info/Feedback/Options. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [2008.09][FSO] Programming interface to wifi Icon
Carsten Haitzler (The Rasterman) wrote: On Wed, 1 Oct 2008 11:20:23 -0400 Joel Newkirk [EMAIL PROTECTED] babbled: On Wed, 01 Oct 2008 14:39:08 +0100, Arigead [EMAIL PROTECTED] 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 tny icon, pressing it is not that useful and so does nothing. The illume-config menu is brought up from a tiny spanner Icon in the drop down menu. I don't see any difference but I'm not forcing anybody to use a particular method. I would agree that there are disadvantages to having the tiny icon used in this way especially if you've got fat fingers. On the other hand given that you've got the space for an icon there all the time why not use it to convey some useful info. Given the size of the screen you can't really expect big icons anyhow. Anyhow I'm just messing with an idea at the moment which may turn out to be a bad idea. It won't be my first but thanks a million for the information anyhow and maybe at some point I'll get this working. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [2008.09][FSO] Programming interface to wifi Icon
Matthias Apitz wrote: El día Tuesday, September 30, 2008 a las 02:38:51PM +0100, Arigead escribió: Hello all, Want to play with the wifi icon on the FR either in [2008.09] or [FSO] Perhaps [FSO] makes more sense in the long run. Anyhow can I from a C Program set the icon? And can I have a call back so that Icon being pressed issues a DBUS message? If you create a file like this: [EMAIL PROTECTED]:/usr/share/applications# cat Wifi-up.desktop [Desktop Entry] Encoding=UTF-8 Name=Wifi-up Comment=Bring Wifi up with ifup eth0 Exec=xterm -e ifdown eth0 ; iwconfig eth0 txpower auto channel 1 ; killall wpa_supplicant ; killall udhcp ; ifup eth0 ; sleep 20 Icon=wifi Terminal=false Type=Application Categories=Application;Utilities; SingleInstance=true StartupNotify=true the icon will appear and of course you have an action Exec=... matthias Thanks for that Matthias but you misunderstand me. At present the wifi icon, as far as I know, is plain white. I'd like to have three different Icons for the wifi one Red, one Orange/Amber and one Green (Traffic Lights). I'd like to create a daemon in C which every so often did a wee wifi scan to see what networks are out there. If no know wifi SSIDs are available then the icon is red. If I click the Red Wifi Icon I get a list of all the unknown networks and I can select one of them to connect to it if I know the security details. Once connected this info is stored for future. If I'm at my friends house and I am with in range of a known network then the icon is changed to Amber/Orange. This colour could also be used if I'm within range of a free wifi hotspot in a cafe or something. When it's orange the wifi is still not enabled but by looking I can easily see that there is a network available if I want to connect. perhaps I want to save my battery life at the moment. If I click on the amber/orange wifi icon I want to connect to the available network. Once I've connected the icon should go green to indicate that I'm connected and wasting battery. Perhaps clicking on the green icon could give info on the connected network and the option to disconnect. At present i'm just playing with the idea. Things like WIFI Radar and MOFI will currently connect in either a fully automatic way or in a more manual way. I mean by that that wifi radar as far as I know connects a laptop on powerup when it sees a known network. I'm on a mobile device with no battery life. I'd like to be informed via the icon that I can if I want connect but at present i'm not. The C Daemon I'm thinking about might well use MOFI or other python for the User Interface when the icon is selected but the daemon updates the icon. Perhaps if I knew what part of the code is currently controlling the wifi icon I could look at it. Perhaps a traffic light of wifi icons will not be pleasing to the eye but I'd like to find out. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [2008.09][FSO] Programming interface to wifi Icon
El día Wednesday, October 01, 2008 a las 08:30:00AM +0100, Arigead escribió: Matthias Apitz wrote: El día Tuesday, September 30, 2008 a las 02:38:51PM +0100, Arigead escribió: Hello all, Want to play with the wifi icon on the FR either in [2008.09] or [FSO] Perhaps [FSO] makes more sense in the long run. Anyhow can I from a C Program set the icon? And can I have a call back so that Icon being pressed issues a DBUS message? If you create a file like this: [EMAIL PROTECTED]:/usr/share/applications# cat Wifi-up.desktop [Desktop Entry] Encoding=UTF-8 Name=Wifi-up Comment=Bring Wifi up with ifup eth0 Exec=xterm -e ifdown eth0 ; iwconfig eth0 txpower auto channel 1 ; killall wpa_supplicant ; killall udhcp ; ifup eth0 ; sleep 20 Icon=wifi Terminal=false Type=Application Categories=Application;Utilities; SingleInstance=true StartupNotify=true the icon will appear and of course you have an action Exec=... matthias Thanks for that Matthias but you misunderstand me. At present the wifi icon, as far as I know, is plain white. I'd like to have three different Icons for the wifi one Red, one Orange/Amber and one Green (Traffic Lights). I'd like to create a daemon in C which every so often did a wee wifi scan to see what networks are out there. If no know wifi SSIDs are available then the icon is red. ... I think I understood you already in your first post very well; you can change the color or the image of a given icon just be rewriting (from C or shell) the corresponding desktop file and let it point to another icon with Icon=wifiRed or Icon=wifiAmber ... ofc the files 'wifiAmber.png' must exist in /usr/share/pixmaps HIH matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e [EMAIL PROTECTED] - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ A computer is like an air conditioner, it stops working when you open Windows Una computadora es como aire acondicionado, deja de funcionar si abres Windows ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [2008.09][FSO] Programming interface to wifi Icon
Matthias Apitz wrote: El día Wednesday, October 01, 2008 a las 08:30:00AM +0100, Arigead escribió: Matthias Apitz wrote: El día Tuesday, September 30, 2008 a las 02:38:51PM +0100, Arigead escribió: Hello all, Want to play with the wifi icon on the FR either in [2008.09] or [FSO] Perhaps [FSO] makes more sense in the long run. Anyhow can I from a C Program set the icon? And can I have a call back so that Icon being pressed issues a DBUS message? If you create a file like this: [EMAIL PROTECTED]:/usr/share/applications# cat Wifi-up.desktop [Desktop Entry] Encoding=UTF-8 Name=Wifi-up Comment=Bring Wifi up with ifup eth0 Exec=xterm -e ifdown eth0 ; iwconfig eth0 txpower auto channel 1 ; killall wpa_supplicant ; killall udhcp ; ifup eth0 ; sleep 20 Icon=wifi Terminal=false Type=Application Categories=Application;Utilities; SingleInstance=true StartupNotify=true the icon will appear and of course you have an action Exec=... matthias Thanks for that Matthias but you misunderstand me. At present the wifi icon, as far as I know, is plain white. I'd like to have three different Icons for the wifi one Red, one Orange/Amber and one Green (Traffic Lights). I'd like to create a daemon in C which every so often did a wee wifi scan to see what networks are out there. If no know wifi SSIDs are available then the icon is red. ... I think I understood you already in your first post very well; you can change the color or the image of a given icon just be rewriting (from C or shell) the corresponding desktop file and let it point to another icon with Icon=wifiRed or Icon=wifiAmber ... ofc the files 'wifiAmber.png' must exist in /usr/share/pixmaps HIH matthias Ah! Sorry, now I see. Thanks million for that. Back to the play pen. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [2008.09][FSO] Programming interface to wifi Icon
Matthias Apitz wrote: El día Wednesday, October 01, 2008 a las 08:30:00AM +0100, Arigead escribió: Matthias Apitz wrote: El día Tuesday, September 30, 2008 a las 02:38:51PM +0100, Arigead escribió: Hello all, Want to play with the wifi icon on the FR either in [2008.09] or [FSO] Perhaps [FSO] makes more sense in the long run. Anyhow can I from a C Program set the icon? And can I have a call back so that Icon being pressed issues a DBUS message? If you create a file like this: [EMAIL PROTECTED]:/usr/share/applications# cat Wifi-up.desktop [Desktop Entry] Encoding=UTF-8 Name=Wifi-up Comment=Bring Wifi up with ifup eth0 Exec=xterm -e ifdown eth0 ; iwconfig eth0 txpower auto channel 1 ; killall wpa_supplicant ; killall udhcp ; ifup eth0 ; sleep 20 Icon=wifi Terminal=false Type=Application Categories=Application;Utilities; SingleInstance=true StartupNotify=true the icon will appear and of course you have an action Exec=... matthias Thanks for that Matthias but you misunderstand me. At present the wifi icon, as far as I know, is plain white. I'd like to have three different Icons for the wifi one Red, one Orange/Amber and one Green (Traffic Lights). I'd like to create a daemon in C which every so often did a wee wifi scan to see what networks are out there. If no know wifi SSIDs are available then the icon is red. ... I think I understood you already in your first post very well; you can change the color or the image of a given icon just be rewriting (from C or shell) the corresponding desktop file and let it point to another icon with Icon=wifiRed or Icon=wifiAmber ... ofc the files 'wifiAmber.png' must exist in /usr/share/pixmaps The .desktop file will put an icon in the application launcher. I think the parent is talking about the wifi icon in the illume bar at the top of the screen which is somewhat different. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [2008.09][FSO] Programming interface to wifi Icon
Alastair Johnson wrote: Matthias Apitz wrote: El día Wednesday, October 01, 2008 a las 08:30:00AM +0100, Arigead escribió: Matthias Apitz wrote: El día Tuesday, September 30, 2008 a las 02:38:51PM +0100, Arigead escribió: Hello all, Want to play with the wifi icon on the FR either in [2008.09] or [FSO] Perhaps [FSO] makes more sense in the long run. Anyhow can I from a C Program set the icon? And can I have a call back so that Icon being pressed issues a DBUS message? If you create a file like this: [EMAIL PROTECTED]:/usr/share/applications# cat Wifi-up.desktop [Desktop Entry] Encoding=UTF-8 Name=Wifi-up Comment=Bring Wifi up with ifup eth0 Exec=xterm -e ifdown eth0 ; iwconfig eth0 txpower auto channel 1 ; killall wpa_supplicant ; killall udhcp ; ifup eth0 ; sleep 20 Icon=wifi Terminal=false Type=Application Categories=Application;Utilities; SingleInstance=true StartupNotify=true the icon will appear and of course you have an action Exec=... matthias Thanks for that Matthias but you misunderstand me. At present the wifi icon, as far as I know, is plain white. I'd like to have three different Icons for the wifi one Red, one Orange/Amber and one Green (Traffic Lights). I'd like to create a daemon in C which every so often did a wee wifi scan to see what networks are out there. If no know wifi SSIDs are available then the icon is red. ... I think I understood you already in your first post very well; you can change the color or the image of a given icon just be rewriting (from C or shell) the corresponding desktop file and let it point to another icon with Icon=wifiRed or Icon=wifiAmber ... ofc the files 'wifiAmber.png' must exist in /usr/share/pixmaps The .desktop file will put an icon in the application launcher. I think the parent is talking about the wifi icon in the illume bar at the top of the screen which is somewhat different. 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? ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [2008.09][FSO] Programming interface to wifi Icon
On Wed, 01 Oct 2008 14:39:08 +0100, Arigead [EMAIL PROTECTED] wrote: 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. 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) j ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [2008.09][FSO] Programming interface to wifi Icon
On Wed, 1 Oct 2008 11:20:23 -0400 Joel Newkirk [EMAIL PROTECTED] babbled: On Wed, 01 Oct 2008 14:39:08 +0100, Arigead [EMAIL PROTECTED] 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 tny 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@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community -- - Codito, ergo sum - I code, therefore I am -- The Rasterman (Carsten Haitzler)[EMAIL PROTECTED] ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
[2008.09][FSO] Programming interface to wifi Icon
Hello all, Want to play with the wifi icon on the FR either in [2008.09] or [FSO] Perhaps [FSO] makes more sense in the long run. Anyhow can I from a C Program set the icon? And can I have a call back so that Icon being pressed issues a DBUS message? Thanks for any help ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [2008.09][FSO] Programming interface to wifi Icon
El día Tuesday, September 30, 2008 a las 02:38:51PM +0100, Arigead escribió: Hello all, Want to play with the wifi icon on the FR either in [2008.09] or [FSO] Perhaps [FSO] makes more sense in the long run. Anyhow can I from a C Program set the icon? And can I have a call back so that Icon being pressed issues a DBUS message? If you create a file like this: [EMAIL PROTECTED]:/usr/share/applications# cat Wifi-up.desktop [Desktop Entry] Encoding=UTF-8 Name=Wifi-up Comment=Bring Wifi up with ifup eth0 Exec=xterm -e ifdown eth0 ; iwconfig eth0 txpower auto channel 1 ; killall wpa_supplicant ; killall udhcp ; ifup eth0 ; sleep 20 Icon=wifi Terminal=false Type=Application Categories=Application;Utilities; SingleInstance=true StartupNotify=true the icon will appear and of course you have an action Exec=... matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e [EMAIL PROTECTED] - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ A computer is like an air conditioner, it stops working when you open Windows Una computadora es como aire acondicionado, deja de funcionar si abres Windows ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community