View Single Post
neboja's Avatar
Posts: 277 | Thanked: 93 times | Joined on Jan 2010 @ Belgrade
#710
Originally Posted by No!No!No!Yes! View Post


Here's a walkthrough (approx!!!) for only the braves ... I'm sorry I can't find a slot for implementing it in short time span.

Create A beecon
updates @click
upsize B via dbus if necessary
switch on B via dbus methods on paramater widgetVisible and update_content post-action
DBUS reset_rearm_timer (several seconds) in B for auto-hide
DBUS force B to update_content

Create B beecon
create landscape png image with applications grid (BL)
setup Exit Status = 0 image to BL
setup Exit Status = 1 image to BP
updates @click
create portrait png image with applications grid (BP)
calculate coordinates/sizes for hotspot grid both for BL and BP

if timer execution then downsize B via dbus if necessary, switch-off and hide, disarm timer
if DBUS execution then fetch device orientation:
read 1st value from /sys/class/i2c-adapter/i2c-3/3-001d/coord
if 1st value between -700 and -1000 then orientation is P
if 1st value between 0 and -700 then orientation is L
store position in B via echo (P or L) or rememberme placeholder;
exit 0 to display BL or 1 to display BP according to sensor
if CLICK on B then retreive hotspot according to orientation and run relevant application
hmmmm..... i would wish to avoid making simple images to put in background for apps and suf.... however, if that is nessesery, it will be like that...

i was thinking if it is posible to place command to start app from BP/L widget, in form of that it take even a ICON from the app... ???? O_o
i know i ask to much, but i dont know limitations of QBW... maybe you do

another thing: i am not programmer... and stuff that you put there for me... well i understand what is it... but have no clue how to implement it...
i know that only a misplaced letter or sign is enough for beacon to not work...
therefore, i can just give you a ideas and questions, and opinions, rather than help you in putting some widgets together...
(wish i can, but i can't)
anyhow,... if you think i CAN help in some way, except these above,... tell me HOW!