Author Topic: How To Rotote The Program  (Read 2090 times)

mullin

  • Newbie
  • *
  • Posts: 42
    • View Profile
How To Rotote The Program
« on: August 24, 2005, 09:03:44 am »
I'm using cacko 1.22, when i run the following applications, they display at Portrait mode and the Menu's Rotation is missing. I want them to display by Landscape.

e.g. qpdf2, Advanced FM, QPSword

any ideas to make them display at Landscape mode or any shortkey to do so?

thanks!

Snappy

  • Hero Member
  • *****
  • Posts: 793
    • View Profile
    • http://
How To Rotote The Program
« Reply #1 on: August 25, 2005, 09:17:11 am »
I believe you need the rotation plugin.
Snappy!
------------------------
Akita (Daily use)
<span style='font-size:8pt;line-height:100%'>SL-C1000 with Cacko 1.23 full
Accessories: Wifi XI-825 CF  |  16GB (6) SDHC (Transcend) | 1GB 80x CF (RiDATA PRO-2) </span>

Collie (Sandbox)
<span style='font-size:8pt;line-height:100%'>SL-5500 with OZ/GPE 3.5.4.1 alpha3 build 2006-04-27
Accessories: 512MB A-Data SD | 64MB Toshiba SD</span>

TimW

  • Sr. Member
  • ****
  • Posts: 296
    • View Profile
How To Rotote The Program
« Reply #2 on: August 25, 2005, 11:10:04 am »
Here is a script I use to open opie-reader in landscape:

#!/bin/sh
DEFROT=`echo $QWS_DISPLAY | cut -d: -f2 | cut -b4-`
LSROT=`expr $DEFROT - ${1:-90}`
# DEFROT is 270 and LSROT is 180 on a Zaurus SL5000D
qcop "QPE/System" "setDefaultRotation(int)" $LSROT
qcop "QPE/System" "execute(QString)" "uqtreader"
qcop "QPE/System" "setDefaultRotation(int)" $DEFROT

You can run this from the gui by creating a .desktop file for it in the appropriate place. In my case I save this in the /opt/Qtopia/bin directory as (say) landscapereader then go to the /opt/Qtopia/apps/Applications directory and copy the opie-reader desktop file:

cp uqtreader.desktop lsqtreader.desktop

Then I edit lsqtreader.desktop to change the exec line to point to landscapereader instead of uqtreader.

(WARNING: I've quoted some of this from memory so some of the details may be slightly different but the essence is correct). Also, I've heard that the setDefaultRotation qcop message doesn't work on all ROMs (but it does on all the ROMs I have tried)