summaryrefslogtreecommitdiff
path: root/library
authorharlekin <harlekin>2002-03-22 18:16:38 (UTC)
committer harlekin <harlekin>2002-03-22 18:16:38 (UTC)
commita6f3ce177ac43ec2cf91f96cfd11713126e29407 (patch) (unidiff)
tree023664192c19117e524892fea4ec98b49dc55826 /library
parentda1430c6bd5fee39a19b294017848b95198217af (diff)
downloadopie-a6f3ce177ac43ec2cf91f96cfd11713126e29407.zip
opie-a6f3ce177ac43ec2cf91f96cfd11713126e29407.tar.gz
opie-a6f3ce177ac43ec2cf91f96cfd11713126e29407.tar.bz2
different splash
Diffstat (limited to 'library') (more/less context) (ignore whitespace changes)
-rw-r--r--library/qpeapplication.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/qpeapplication.cpp b/library/qpeapplication.cpp
index a55f5f9..c154689 100644
--- a/library/qpeapplication.cpp
+++ b/library/qpeapplication.cpp
@@ -1218,131 +1218,131 @@ void QPEApplication::setKeepRunning()
1218{ 1218{
1219 if ( qApp && qApp->inherits( "QPEApplication" ) ) { 1219 if ( qApp && qApp->inherits( "QPEApplication" ) ) {
1220 QPEApplication *qpeApp = (QPEApplication*)qApp; 1220 QPEApplication *qpeApp = (QPEApplication*)qApp;
1221 qpeApp->d->keep_running = TRUE; 1221 qpeApp->d->keep_running = TRUE;
1222 } 1222 }
1223} 1223}
1224 1224
1225/*! 1225/*!
1226 Returns whether the application will quit after processing the current 1226 Returns whether the application will quit after processing the current
1227 list of qcop messages. 1227 list of qcop messages.
1228 1228
1229 \sa setKeepRunning() 1229 \sa setKeepRunning()
1230*/ 1230*/
1231bool QPEApplication::keepRunning() const 1231bool QPEApplication::keepRunning() const
1232{ 1232{
1233 return d->keep_running; 1233 return d->keep_running;
1234} 1234}
1235 1235
1236/*! 1236/*!
1237 \internal 1237 \internal
1238*/ 1238*/
1239void QPEApplication::internalSetStyle( const QString &style ) 1239void QPEApplication::internalSetStyle( const QString &style )
1240{ 1240{
1241#if QT_VERSION >= 300 1241#if QT_VERSION >= 300
1242 if ( style == "QPE" ) { 1242 if ( style == "QPE" ) {
1243 setStyle( new QPEStyle ); 1243 setStyle( new QPEStyle );
1244 } else { 1244 } else {
1245 QStyle *s = QStyleFactory::create(style); 1245 QStyle *s = QStyleFactory::create(style);
1246 if ( s ) setStyle(s); 1246 if ( s ) setStyle(s);
1247 } 1247 }
1248#else 1248#else
1249 if ( style == "Windows" ) { 1249 if ( style == "Windows" ) {
1250 setStyle( new QWindowsStyle ); 1250 setStyle( new QWindowsStyle );
1251 } else if ( style == "QPE" ) { 1251 } else if ( style == "QPE" ) {
1252 setStyle( new QPEStyle ); 1252 setStyle( new QPEStyle );
1253 } else if ( style == "Light" ) { 1253 } else if ( style == "Light" ) {
1254 setStyle( new LightStyle ); 1254 setStyle( new LightStyle );
1255 } 1255 }
1256#ifndef QT_NO_STYLE_PLATINUM 1256#ifndef QT_NO_STYLE_PLATINUM
1257 else if ( style == "Platinum" ) { 1257 else if ( style == "Platinum" ) {
1258 setStyle( new QPlatinumStyle ); 1258 setStyle( new QPlatinumStyle );
1259 } 1259 }
1260#endif 1260#endif
1261#ifndef QT_NO_STYLE_MOTIF 1261#ifndef QT_NO_STYLE_MOTIF
1262 else if ( style == "Motif" ) { 1262 else if ( style == "Motif" ) {
1263 setStyle( new QMotifStyle ); 1263 setStyle( new QMotifStyle );
1264 } 1264 }
1265#endif 1265#endif
1266#ifndef QT_NO_STYLE_MOTIFPLUS 1266#ifndef QT_NO_STYLE_MOTIFPLUS
1267 else if ( style == "MotifPlus" ) { 1267 else if ( style == "MotifPlus" ) {
1268 setStyle( new QMotifPlusStyle ); 1268 setStyle( new QMotifPlusStyle );
1269 } 1269 }
1270#endif 1270#endif
1271#endif 1271#endif
1272} 1272}
1273 1273
1274/*! 1274/*!
1275 \internal 1275 \internal
1276*/ 1276*/
1277void QPEApplication::prepareForTermination(bool willrestart) 1277void QPEApplication::prepareForTermination(bool willrestart)
1278{ 1278{
1279 if ( willrestart ) { 1279 if ( willrestart ) {
1280 // Draw a big wait icon, the image can be altered in later revisions 1280 // Draw a big wait icon, the image can be altered in later revisions
1281 //QWidget *d = QApplication::desktop(); 1281 //QWidget *d = QApplication::desktop();
1282 QImage img = Resource::loadImage( "wait" ); 1282 QImage img = Resource::loadImage( "launcher/new_wait" );
1283 QPixmap pix; 1283 QPixmap pix;
1284 pix.convertFromImage(img.smoothScale(3*img.width(), 3*img.height())); 1284 pix.convertFromImage(img.smoothScale(1*img.width(), 1*img.height()));
1285 QLabel *lblWait = new QLabel(0, "wait hack!", QWidget::WStyle_Customize | 1285 QLabel *lblWait = new QLabel(0, "wait hack!", QWidget::WStyle_Customize |
1286 QWidget::WStyle_NoBorder | QWidget::WStyle_Tool ); 1286 QWidget::WStyle_NoBorder | QWidget::WStyle_Tool );
1287 lblWait->setPixmap( pix ); 1287 lblWait->setPixmap( pix );
1288 lblWait->setAlignment( QWidget::AlignCenter ); 1288 lblWait->setAlignment( QWidget::AlignCenter );
1289 lblWait->show(); 1289 lblWait->show();
1290 lblWait->showMaximized(); 1290 lblWait->showMaximized();
1291 } 1291 }
1292#ifndef SINGLE_APP 1292#ifndef SINGLE_APP
1293 { QCopEnvelope envelope("QPE/System", "forceQuit()"); } 1293 { QCopEnvelope envelope("QPE/System", "forceQuit()"); }
1294 processEvents(); // ensure the message goes out. 1294 processEvents(); // ensure the message goes out.
1295 sleep(1); // You have 1 second to comply. 1295 sleep(1); // You have 1 second to comply.
1296#endif 1296#endif
1297} 1297}
1298 1298
1299/*! 1299/*!
1300 \internal 1300 \internal
1301*/ 1301*/
1302void QPEApplication::shutdown() 1302void QPEApplication::shutdown()
1303{ 1303{
1304 // Implement in server's QPEApplication subclass 1304 // Implement in server's QPEApplication subclass
1305} 1305}
1306 1306
1307/*! 1307/*!
1308 \internal 1308 \internal
1309*/ 1309*/
1310void QPEApplication::restart() 1310void QPEApplication::restart()
1311{ 1311{
1312 // Implement in server's QPEApplication subclass 1312 // Implement in server's QPEApplication subclass
1313} 1313}
1314 1314
1315static QPtrDict<void>* stylusDict=0; 1315static QPtrDict<void>* stylusDict=0;
1316static void createDict() 1316static void createDict()
1317{ 1317{
1318 if ( !stylusDict ) 1318 if ( !stylusDict )
1319 stylusDict = new QPtrDict<void>; 1319 stylusDict = new QPtrDict<void>;
1320} 1320}
1321 1321
1322/*! 1322/*!
1323 Returns the current StylusMode for \a w. 1323 Returns the current StylusMode for \a w.
1324 1324
1325 \sa setStylusOperation() 1325 \sa setStylusOperation()
1326*/ 1326*/
1327QPEApplication::StylusMode QPEApplication::stylusOperation( QWidget* w ) 1327QPEApplication::StylusMode QPEApplication::stylusOperation( QWidget* w )
1328{ 1328{
1329 if ( stylusDict ) 1329 if ( stylusDict )
1330 return (StylusMode)(int)stylusDict->find(w); 1330 return (StylusMode)(int)stylusDict->find(w);
1331 return LeftOnly; 1331 return LeftOnly;
1332} 1332}
1333 1333
1334/*! 1334/*!
1335 \enum QPEApplication::StylusMode 1335 \enum QPEApplication::StylusMode
1336 1336
1337 \value LeftOnly the stylus only generates LeftButton 1337 \value LeftOnly the stylus only generates LeftButton
1338 events (the default). 1338 events (the default).
1339 \value RightOnHold the stylus generates RightButton events 1339 \value RightOnHold the stylus generates RightButton events
1340 if the user uses the press-and-hold gesture. 1340 if the user uses the press-and-hold gesture.
1341 1341
1342 See setStylusOperation(). 1342 See setStylusOperation().
1343*/ 1343*/
1344 1344
1345/*! 1345/*!
1346 Causes \a w to receive mouse events according to \a mode. 1346 Causes \a w to receive mouse events according to \a mode.
1347 1347
1348 \sa stylusOperation() 1348 \sa stylusOperation()