summaryrefslogtreecommitdiff
path: root/core/launcher
Unidiff
Diffstat (limited to 'core/launcher') (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/launcher.cpp27
1 files changed, 14 insertions, 13 deletions
diff --git a/core/launcher/launcher.cpp b/core/launcher/launcher.cpp
index 0205622..b612aa2 100644
--- a/core/launcher/launcher.cpp
+++ b/core/launcher/launcher.cpp
@@ -360,56 +360,57 @@ void CategoryTabWidget::tabProperties()
360 360
361 delete m; 361 delete m;
362} 362}
363 363
364QString CategoryTabWidget::getAllDocLinkInfo() const 364QString CategoryTabWidget::getAllDocLinkInfo() const
365{ 365{
366 return ""; 366 return "";
367} 367}
368 368
369LauncherView* CategoryTabWidget::newView( const QString& id, const QPixmap& pm, const QString& label ) 369LauncherView* CategoryTabWidget::newView( const QString& id, const QPixmap& pm, const QString& label )
370{ 370{
371 LauncherView* view = new LauncherView( stack ); 371 LauncherView* view = new LauncherView( stack );
372 connect( view, SIGNAL(clicked(const AppLnk*)), 372 connect( view, SIGNAL(clicked(const AppLnk*)),
373 this, SIGNAL(clicked(const AppLnk*))); 373 this, SIGNAL(clicked(const AppLnk*)));
374 connect( view, SIGNAL(rightPressed(AppLnk*)), 374 connect( view, SIGNAL(rightPressed(AppLnk*)),
375 this, SIGNAL(rightPressed(AppLnk*))); 375 this, SIGNAL(rightPressed(AppLnk*)));
376 ids.append(id); 376 ids.append(id);
377 categoryBar->addTab( new CategoryTab( pm, label ) ); 377 categoryBar->addTab( new CategoryTab( pm, label ) );
378 stack->addWidget( view, tabs++ ); 378 stack->addWidget( view, tabs++ );
379 return view; 379 return view;
380} 380}
381 381
382void CategoryTabWidget::updateLink(const QString& linkfile) 382void CategoryTabWidget::updateLink(const QString& linkfile)
383{ 383{
384 // LauncherView* view; 384 int i=0;
385 qApp->processEvents(); 385 LauncherView* view;
386// while ((view = (LauncherView*)stack->widget(i++))) { 386 //qApp->processEvents();
387// if ( view->removeLink(linkfile) ) 387 while ((view = (LauncherView*)stack->widget(i++))) {
388// break; 388 if ( view->removeLink(linkfile) )
389// } 389 break;
390 // addItem(linkfile); 390 }
391 fileSel->reparse(); 391 addItem(linkfile);
392 docview->updateTools();
392} 393}
393 394
394void CategoryTabWidget::paletteChange( const QPalette &p ) 395void CategoryTabWidget::paletteChange( const QPalette &p )
395{ 396{
396 QVBox::paletteChange( p ); 397 QVBox::paletteChange( p );
397 QPalette pal = palette(); 398 QPalette pal = palette();
398 pal.setColor( QColorGroup::Light, pal.color(QPalette::Active,QColorGroup::Shadow) ); 399 pal.setColor( QColorGroup::Light, pal.color(QPalette::Active,QColorGroup::Shadow) );
399 pal.setColor( QColorGroup::Background, pal.active().background().light(110) ); 400 pal.setColor( QColorGroup::Background, pal.active().background().light(110) );
400 categoryBar->setPalette( pal ); 401 categoryBar->setPalette( pal );
401 categoryBar->update(); 402 categoryBar->update();
402} 403}
403 404
404void CategoryTabWidget::setBusy(bool on) 405void CategoryTabWidget::setBusy(bool on)
405{ 406{
406 if ( on ) 407 if ( on )
407 ((LauncherView*)stack->visibleWidget())->setBusy(TRUE); 408 ((LauncherView*)stack->visibleWidget())->setBusy(TRUE);
408 else 409 else
409 for (int i=0; i<tabs-1; i++) 410 for (int i=0; i<tabs-1; i++)
410 ((LauncherView*)stack->widget(i))->setBusy(FALSE); 411 ((LauncherView*)stack->widget(i))->setBusy(FALSE);
411} 412}
412 413
413LauncherView *CategoryTabWidget::view( const QString &id ) 414LauncherView *CategoryTabWidget::view( const QString &id )
414{ 415{
415 int idx = ids.findIndex( id ); 416 int idx = ids.findIndex( id );
@@ -1320,36 +1321,36 @@ bool Launcher::mkdir(const QString &localPath)
1320 qDebug("Unable to make directory %s", checkedPath.latin1()); 1321 qDebug("Unable to make directory %s", checkedPath.latin1());
1321 return FALSE; 1322 return FALSE;
1322 } 1323 }
1323 } 1324 }
1324 1325
1325 } 1326 }
1326 return TRUE; 1327 return TRUE;
1327} 1328}
1328 1329
1329void Launcher::preloadApps() 1330void Launcher::preloadApps()
1330{ 1331{
1331 Config cfg("Launcher"); 1332 Config cfg("Launcher");
1332 cfg.setGroup("Preload"); 1333 cfg.setGroup("Preload");
1333 QStringList apps = cfg.readListEntry("Apps",','); 1334 QStringList apps = cfg.readListEntry("Apps",',');
1334 for (QStringList::ConstIterator it=apps.begin(); it!=apps.end(); ++it) { 1335 for (QStringList::ConstIterator it=apps.begin(); it!=apps.end(); ++it) {
1335#ifndef QT_NO_COP 1336#ifndef QT_NO_COP
1336 QCopEnvelope e("QPE/Application/"+(*it).local8Bit(), "enablePreload()"); 1337 QCopEnvelope e("QPE/Application/"+(*it).local8Bit(), "enablePreload()");
1337#endif 1338#endif
1338 } 1339 }
1339} 1340}
1340 1341
1341DocumentTab::DocumentTab( QWidget *parent, int mode, int selector, const QString &dirName, const QString &fileName) 1342DocumentTab::DocumentTab( QWidget *parent, int mode, int selector, const QString &dirName, const QString &fileName)
1342 : OFileSelector(parent,mode,selector,dirName,fileName) 1343 : OFileSelector(parent,mode,selector,dirName,fileName)
1343{ 1344{
1344 setYesCancelVisible(false); 1345 //setYesCancelVisible(false);
1345 setToolbarVisible(false); 1346 //setToolbarVisible(false);
1346 setPermissionBarVisible(false); 1347 //setPermissionBarVisible(false);
1347 setLineEditVisible(false) ; 1348 //setLineEditVisible(false) ;
1348 //setChooserVisible( bool chooser ); 1349 //setChooserVisible( bool chooser );
1349 1350
1350} 1351}
1351 1352
1352DocumentTab::~DocumentTab() { 1353DocumentTab::~DocumentTab() {
1353 1354
1354} 1355}
1355 1356