-rw-r--r-- | core/launcher/documentlist.cpp | 10 | ||||
-rw-r--r-- | core/launcher/documentlist.h | 1 | ||||
-rw-r--r-- | core/launcher/launcher.cpp | 25 | ||||
-rw-r--r-- | core/launcher/launcher.h | 1 | ||||
-rw-r--r-- | core/launcher/launcherview.cpp | 4 | ||||
-rw-r--r-- | core/launcher/server.cpp | 2 |
6 files changed, 37 insertions, 6 deletions
diff --git a/core/launcher/documentlist.cpp b/core/launcher/documentlist.cpp index d8e7a83..9781a32 100644 --- a/core/launcher/documentlist.cpp +++ b/core/launcher/documentlist.cpp | |||
@@ -278,9 +278,17 @@ void DocumentList::reloadDocLnks() | |||
278 | rescan(); | 278 | rescan(); |
279 | } | 279 | } |
280 | 280 | ||
281 | void DocumentList::reforceDocuments() | ||
282 | { | ||
283 | Config cfg( "Launcher" ); | ||
284 | cfg.setGroup( "DocTab" ); | ||
285 | d->scanDocs = cfg.readBoolEntry( "Enable", true ); | ||
286 | reloadDocLnks(); | ||
287 | } | ||
288 | |||
281 | void DocumentList::linkChanged( QString arg ) | 289 | void DocumentList::linkChanged( QString arg ) |
282 | { | 290 | { |
283 | //odebug << "linkchanged( " << arg << " )" << oendl; | 291 | odebug << "linkchanged( " << arg << " )" << oendl; |
284 | 292 | ||
285 | if ( arg.isNull() || OGlobal::isAppLnkFileName( arg ) ) { | 293 | if ( arg.isNull() || OGlobal::isAppLnkFileName( arg ) ) { |
286 | reloadAppLnks(); | 294 | reloadAppLnks(); |
diff --git a/core/launcher/documentlist.h b/core/launcher/documentlist.h index 232bb6a..8b69e95 100644 --- a/core/launcher/documentlist.h +++ b/core/launcher/documentlist.h | |||
@@ -42,6 +42,7 @@ public: | |||
42 | 42 | ||
43 | void reloadAppLnks(); | 43 | void reloadAppLnks(); |
44 | void reloadDocLnks(); | 44 | void reloadDocLnks(); |
45 | void reforceDocuments(); | ||
45 | void DiffAppLnks(); | 46 | void DiffAppLnks(); |
46 | 47 | ||
47 | // Orig DocList stuff | 48 | // Orig DocList stuff |
diff --git a/core/launcher/launcher.cpp b/core/launcher/launcher.cpp index ccc2114..970b8cb 100644 --- a/core/launcher/launcher.cpp +++ b/core/launcher/launcher.cpp | |||
@@ -441,12 +441,33 @@ void LauncherTabWidget::launcherMessage( const QCString &msg, const QByteArray & | |||
441 | if ( isVisibleWindow( static_cast<QWidget*>(parent())->winId() ) ) { | 441 | if ( isVisibleWindow( static_cast<QWidget*>(parent())->winId() ) ) { |
442 | if (categoryBar) | 442 | if (categoryBar) |
443 | categoryBar->nextTab(); | 443 | categoryBar->nextTab(); |
444 | }else | 444 | }else { |
445 | static_cast<QWidget*>(parent())->raise(); | 445 | static_cast<QWidget*>(parent())->raise(); |
446 | } | 446 | } |
447 | } else if (msg=="doctabEnabled(int)") { | ||
448 | int id; stream >> id; | ||
449 | odebug << "Doctab enabled " << id << oendl; | ||
450 | reCheckDoctab(id); | ||
451 | } | ||
447 | } | 452 | } |
448 | 453 | ||
449 | 454 | void LauncherTabWidget::reCheckDoctab(int how) | |
455 | { | ||
456 | if ((bool)how == docTabEnabled) { | ||
457 | /* nothing to do */ | ||
458 | return; | ||
459 | } | ||
460 | if (docLoadingWidget) { | ||
461 | stack->removeWidget(docLoadingWidget); | ||
462 | delete docLoadingWidget; | ||
463 | docLoadingWidget = 0; | ||
464 | } | ||
465 | createDocLoadingWidget(); | ||
466 | { | ||
467 | QCopEnvelope( "QPE/System", "reforceDocuments()" ); | ||
468 | odebug << "Sending doc rescan" << oendl; | ||
469 | } | ||
470 | } | ||
450 | 471 | ||
451 | //--------------------------------------------------------------------------- | 472 | //--------------------------------------------------------------------------- |
452 | 473 | ||
diff --git a/core/launcher/launcher.h b/core/launcher/launcher.h index db6ac54..b741064 100644 --- a/core/launcher/launcher.h +++ b/core/launcher/launcher.h | |||
@@ -81,6 +81,7 @@ private slots: | |||
81 | protected: | 81 | protected: |
82 | void paletteChange( const QPalette &p ); | 82 | void paletteChange( const QPalette &p ); |
83 | void styleChange( QStyle & ); | 83 | void styleChange( QStyle & ); |
84 | void reCheckDoctab(int how); | ||
84 | 85 | ||
85 | private: | 86 | private: |
86 | Launcher *launcher; | 87 | Launcher *launcher; |
diff --git a/core/launcher/launcherview.cpp b/core/launcher/launcherview.cpp index c9efacb..2783423 100644 --- a/core/launcher/launcherview.cpp +++ b/core/launcher/launcherview.cpp | |||
@@ -332,9 +332,6 @@ void LauncherIconView::setSortMethod( SortMethod m ) | |||
332 | 332 | ||
333 | void LauncherIconView::setCategoryFilter( int catfilter, bool resort ) | 333 | void LauncherIconView::setCategoryFilter( int catfilter, bool resort ) |
334 | { | 334 | { |
335 | Categories cat; | ||
336 | cat.load( categoryFileName() ); | ||
337 | QString str; | ||
338 | if ( catfilter == -2 ) | 335 | if ( catfilter == -2 ) |
339 | cf = 0; | 336 | cf = 0; |
340 | else | 337 | else |
@@ -1083,6 +1080,7 @@ void LauncherView::itemPressed( int btn, QIconViewItem *item ) | |||
1083 | void LauncherView::removeAllItems() | 1080 | void LauncherView::removeAllItems() |
1084 | { | 1081 | { |
1085 | odebug << "LauncherView::removeAllItems()" << oendl; | 1082 | odebug << "LauncherView::removeAllItems()" << oendl; |
1083 | if (LauncherIconView::sm_EyeCache) LauncherIconView::sm_EyeCache->clear(); | ||
1086 | icons->clear(); | 1084 | icons->clear(); |
1087 | } | 1085 | } |
1088 | 1086 | ||
diff --git a/core/launcher/server.cpp b/core/launcher/server.cpp index 42186d3..15cd686 100644 --- a/core/launcher/server.cpp +++ b/core/launcher/server.cpp | |||
@@ -342,6 +342,8 @@ void Server::systemMsg(const QCString &msg, const QByteArray &data) | |||
342 | stream >> link; | 342 | stream >> link; |
343 | odebug << "desktop.cpp systemMsg -> linkchanged( " << link << " )" << oendl; | 343 | odebug << "desktop.cpp systemMsg -> linkchanged( " << link << " )" << oendl; |
344 | docList->linkChanged(link); | 344 | docList->linkChanged(link); |
345 | } else if (msg =="reforceDocuments()") { | ||
346 | docList->reforceDocuments(); | ||
345 | } else if ( msg == "serviceChanged(QString)" ) { | 347 | } else if ( msg == "serviceChanged(QString)" ) { |
346 | MimeType::updateApplications(); | 348 | MimeType::updateApplications(); |
347 | } else if ( msg == "mkdir(QString)" ) { | 349 | } else if ( msg == "mkdir(QString)" ) { |