summaryrefslogtreecommitdiff
path: root/libopie
authorschurig <schurig>2004-09-08 14:37:07 (UTC)
committer schurig <schurig>2004-09-08 14:37:07 (UTC)
commit548f5017a18a0d574baadfb3f063f734db13944a (patch) (side-by-side diff)
tree04b0f1958f767455496375945b15e9fe898b759c /libopie
parent409d1470e28bfaf9a8de34f231a3d6e0ff0b090d (diff)
downloadopie-548f5017a18a0d574baadfb3f063f734db13944a.zip
opie-548f5017a18a0d574baadfb3f063f734db13944a.tar.gz
opie-548f5017a18a0d574baadfb3f063f734db13944a.tar.bz2
default rotation is now 90
Diffstat (limited to 'libopie') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/odevice.cpp28
1 files changed, 3 insertions, 25 deletions
diff --git a/libopie/odevice.cpp b/libopie/odevice.cpp
index 4258d60..013f804 100644
--- a/libopie/odevice.cpp
+++ b/libopie/odevice.cpp
@@ -366,34 +366,12 @@ struct s_button {
"devicebuttons/simpad_upper_lower",
"QPE/Launcher", "home()",
"buttonsettings", "raise()" },
*/
};
-struct r_button {
- uint model;
- Qt::Key code;
- char *utext;
- char *pix;
- char *fpressedservice;
- char *fpressedaction;
- char *fheldservice;
- char *fheldaction;
-} ramses_buttons [] = {
- { Model_Ramses_MNCI,
- Qt::Key_F11, QT_TRANSLATE_NOOP("Button", "Menu Button"),
- "devicebuttons/z_menu",
- "QPE/TaskBar", "toggleMenu()",
- "QPE/TaskBar", "toggleStartMenu()" },
- { Model_Ramses_MNCI,
- Qt::Key_F12, QT_TRANSLATE_NOOP("Button", "Home Button"),
- "devicebuttons/ipaq_home",
- "QPE/Launcher", "home()",
- "buttonsettings", "raise()" },
-};
-
class Yopy : public ODevice {
protected:
virtual void init ( );
virtual void initButtons ( );
public:
@@ -449,18 +427,18 @@ ODevice *ODevice::inst ( )
if ( QFile::exists ( "/proc/hal/model" ))
dev = new iPAQ ( );
else if ( Zaurus::isZaurus() )
dev = new Zaurus ( );
else if ( QFile::exists ( "/proc/ucb1x00" ) && QFile::exists ( "/proc/cs3" ))
dev = new SIMpad ( );
- else if ( QFile::exists ( "/proc/sys/board/name" ))
- dev = new Ramses ( );
else if ( Yopy::isYopy() )
dev = new Yopy ( );
else if ( Jornada::isJornada() )
dev = new Jornada ( );
+ else if ( QFile::exists ( "/proc/sys/board/sys_name" ))
+ dev = new Ramses ( );
else
dev = new ODevice ( );
dev-> init ( );
}
return dev;
}
@@ -2525,13 +2503,13 @@ void Ramses::init()
QFile f("/proc/sys/board/ramses");
d->m_modelstr = "Ramses";
d->m_model = Model_Ramses_MNCI;
- d->m_rotation = Rot0;
+ d->m_rotation = Rot90;
d->m_holdtime = 1000;
f.setName("/etc/oz_version");
if (f.open(IO_ReadOnly)) {
d->m_systemstr = "OpenEmbedded/Ramses";