summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (show 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
@@ -369,28 +369,6 @@ struct s_button {
369 */ 369 */
370}; 370};
371 371
372struct r_button {
373 uint model;
374 Qt::Key code;
375 char *utext;
376 char *pix;
377 char *fpressedservice;
378 char *fpressedaction;
379 char *fheldservice;
380 char *fheldaction;
381} ramses_buttons [] = {
382 { Model_Ramses_MNCI,
383 Qt::Key_F11, QT_TRANSLATE_NOOP("Button", "Menu Button"),
384 "devicebuttons/z_menu",
385 "QPE/TaskBar", "toggleMenu()",
386 "QPE/TaskBar", "toggleStartMenu()" },
387 { Model_Ramses_MNCI,
388 Qt::Key_F12, QT_TRANSLATE_NOOP("Button", "Home Button"),
389 "devicebuttons/ipaq_home",
390 "QPE/Launcher", "home()",
391 "buttonsettings", "raise()" },
392};
393
394class Yopy : public ODevice { 372class Yopy : public ODevice {
395protected: 373protected:
396 virtual void init ( ); 374 virtual void init ( );
@@ -452,12 +430,12 @@ ODevice *ODevice::inst ( )
452 dev = new Zaurus ( ); 430 dev = new Zaurus ( );
453 else if ( QFile::exists ( "/proc/ucb1x00" ) && QFile::exists ( "/proc/cs3" )) 431 else if ( QFile::exists ( "/proc/ucb1x00" ) && QFile::exists ( "/proc/cs3" ))
454 dev = new SIMpad ( ); 432 dev = new SIMpad ( );
455 else if ( QFile::exists ( "/proc/sys/board/name" ))
456 dev = new Ramses ( );
457 else if ( Yopy::isYopy() ) 433 else if ( Yopy::isYopy() )
458 dev = new Yopy ( ); 434 dev = new Yopy ( );
459 else if ( Jornada::isJornada() ) 435 else if ( Jornada::isJornada() )
460 dev = new Jornada ( ); 436 dev = new Jornada ( );
437 else if ( QFile::exists ( "/proc/sys/board/sys_name" ))
438 dev = new Ramses ( );
461 else 439 else
462 dev = new ODevice ( ); 440 dev = new ODevice ( );
463 dev-> init ( ); 441 dev-> init ( );
@@ -2528,7 +2506,7 @@ void Ramses::init()
2528 d->m_modelstr = "Ramses"; 2506 d->m_modelstr = "Ramses";
2529 d->m_model = Model_Ramses_MNCI; 2507 d->m_model = Model_Ramses_MNCI;
2530 2508
2531 d->m_rotation = Rot0; 2509 d->m_rotation = Rot90;
2532 d->m_holdtime = 1000; 2510 d->m_holdtime = 1000;
2533 2511
2534 f.setName("/etc/oz_version"); 2512 f.setName("/etc/oz_version");