View Single Post
No!No!No!Yes!'s Avatar
Posts: 700 | Thanked: 846 times | Joined on Nov 2009
#800
Browser Gravity Button (Template and Example for buttons the like)

Uncompress and Save attached images as/where usual
Import beecon as usual

Code:
[queen-beecon-header]
version=1,000000
checksum=5381482
[queen-beecon-exported-instance]
widgetType=0
widgetVisible=1
operationalStatus=0
hideCanvas=true
hideClickCanvas=true
snippetBgRGB=0
snippetExtBgRGB=#000000000000
beecon_lt0_ImgZoom=0
beecon_lt0_BgRGB=2
beecon_lt0_ExtBgRGB=#808080808080
beecon_lt0_ImgFilename=queen-beecon-syserr.png
beecon_eq0_ImgZoom=0
beecon_eq0_BgRGB=3
beecon_eq0_ExtBgRGB=#00005cfc0000
beecon_eq0_ImgFilename=queen-beecon-appok.png
beecon_eq1_ImgZoom=0
beecon_eq1_BgRGB=4
beecon_eq1_ExtBgRGB=#ffffffff0000
beecon_eq1_ImgFilename=queen-beecon-appwrn.png
beecon_ge2_ImgZoom=0
beecon_ge2_BgRGB=5
beecon_ge2_ExtBgRGB=#ffff00000000
beecon_ge2_ImgFilename=queen-beecon-apperr.png
beecon_idxge2_ImgZoom=0
beecon_idxge2_BgRGB=11
beecon_idxge2_ExtBgRGB=#0000ffffffff
beecon_idxge2_ImgFilename=browser.png
widWidth=156
widHeight=156
instanceTitle=BrowserGButton
instanceCmd=app="browser"\nmove="true";\nlaxy="0,292";poxy="644,292";laixy="644,56";poixy="0,56"\nif [ "$QBW_EXEC_REASON" == "QBW_CLICK" ];then\n   dbus-send --dest=com.nokia.HildonDesktop.AppMgr /com/nokia/HildonDesktop/AppMgr com.nokia.HildonDesktop.AppMgr.LaunchApplication string:"$app"\nfi\n\ncase "$QBW_ORIENTATION_MODE" in\n   "portrait")             xy=$poxy;xt=4 ;;\n   "landscape (inverted)") xy=$laixy;xt=5 ;;\n   "portrait (inverted)")  xy=$poixy;xt=6 ;;\n   *)                      xy=$laxy;xt=3 ;;\nesac\nif [ "$move" == "true" ];then dbus-send --session --type=method_call --dest=oh.no.more.qbw /oh/no/more/qbw$QBW_ID oh.no.more.qbw.set_position int32:"`echo $xy|cut -d, -f1`" int32:"`echo $xy|cut -d, -f2`";fi;\nexit $xt\n
rememberMe=
cmdImgFilename=queen-beecon.png
cmdImgAngle=0
cmdImgZoom=0
cmdFgRGB=1
cmdExtFgRGB=#ffffffffffff
cmdTextAngle=0
cmdVisibilityPosition=0
cmdImgVisibilityPosition=0
cmdJustify=2
cmdExtFont=Nokia Sans 10
cmdFontName=3
cmdFontSize=12
resImgFilename=queen-beecon-resimg.png
resImgAngle=0
resImgZoom=0
resFgRGB=1
resExtFgRGB=#ffff00000000
resTextAngle=0
resVisibilityPosition=0
resImgVisibilityPosition=5
resJustify=0
resExtFont=Nokia Sans bold italic 18
resFontName=2
resFontSize=12
resWrapLongLines=false
progressAnimationFrames=1
progressAnimationTimer=4
progressAnimationPos=4
progressAnimationAtClickXY=false
progressAnimationBasename=browser-frame
updOnStartup=true
updOnClick=true
multiClick=false
updOnDesktop=false
updOnSight=false
updOnOrientation=true
delayIndex=0
customIntervalSecs=0
updNeworkPolicy=0
GPSsettings=0
updOnDBUS=0
updOnDBUSBus=0
updOnDBUSMatchRule=
SETUP:

app="<application>" as per HERE
move="true" if you want button to move on screen according to orientation and coordinates ("false" for fixed position)
laxy=coordinates for landscape mode
poxi=coordinates for portrait mode
laixy=coordinates for landscape inverted mode
poixi=coordinates for portrait inverted mode

For multiple button instances, remember to change in settings also:
  • ">=3" image basename
  • Press & Progress Animation FX basename
Attached Files
File Type: zip BrowserGButton-images.zip (65.5 KB, 144 views)
__________________
Have a look at Queen BeeCon Widget (WIKI) Customizable and flexible widget-based multi-instance monitoring, alerting and interactive tool for the N900
Please provide comments and feedback for having QBW supported and enhanced further - (DONATE) - v1.3.3devel / v1.3.3testing / v1.3.3extras
 

The Following 3 Users Say Thank You to No!No!No!Yes! For This Useful Post: