author | zecke <zecke> | 2003-11-30 13:13:52 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-11-30 13:13:52 (UTC) |
commit | 8339a705567a3bd50af2e41805e9256973eedcc4 (patch) (side-by-side diff) | |
tree | e38f9a739b02d3c709aa843c8f4bce95e68bfacf | |
parent | 6804b865ea84e995e93e22582d0584b84810be38 (diff) | |
download | opie-8339a705567a3bd50af2e41805e9256973eedcc4.zip opie-8339a705567a3bd50af2e41805e9256973eedcc4.tar.gz opie-8339a705567a3bd50af2e41805e9256973eedcc4.tar.bz2 |
If OPIE_NO_BUILTIN_CALIBRATION is not requested bultin calibration
-rw-r--r-- | core/launcher/server.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/launcher/server.cpp b/core/launcher/server.cpp index 6a140e9..b9580c7 100644 --- a/core/launcher/server.cpp +++ b/core/launcher/server.cpp @@ -78,65 +78,65 @@ static QWidget *calibrate(bool) } #define FACTORY(T) \ static QWidget *new##T( bool maximized ) { \ QWidget *w = new T( 0, 0, QWidget::WDestructiveClose | QWidget::WGroupLeader ); \ if ( maximized ) { \ if ( qApp->desktop()->width() <= 350 ) { \ w->showMaximized(); \ } else { \ w->resize( QSize( 300, 300 ) ); \ } \ } \ w->show(); \ return w; \ } #ifdef SINGLE_APP #define APP(a,b,c,d) FACTORY(b) #include "apps.h" #undef APP #endif // SINGLE_APP static Global::Command builtins[] = { #ifdef SINGLE_APP #define APP(a,b,c,d) { a, new##b, c, d }, #include "apps.h" #undef APP #endif /* FIXME defines need to be defined*/ -#if defined(QPE_NEED_CALIBRATION) +#if !defined(OPIE_NO_BUILTIN_CALIBRATE) { "calibrate", calibrate, 1, 0 }, // No tr #endif #if !defined(OPIE_NO_BUILTIN_SHUTDOWN) { "shutdown", Global::shutdown, 1, 0 }, // No tr // { "run", run, 1, 0 }, // No tr #endif { 0, calibrate, 0, 0 }, }; //--------------------------------------------------------------------------- //=========================================================================== Server::Server() : QWidget( 0, 0, WStyle_Tool | WStyle_Customize ), qcopBridge( 0 ), transferServer( 0 ), packageHandler( 0 ), syncDialog( 0 ) { Global::setBuiltinCommands(builtins); tid_xfer = 0; /* ### FIXME ### */ /* tid_today = startTimer(3600*2*1000);*/ last_today_show = QDate::currentDate(); #if 0 tsmMonitor = new TempScreenSaverMode(); |