summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/launcher.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/launcher/launcher.cpp b/core/launcher/launcher.cpp
index 7887704..984a57d 100644
--- a/core/launcher/launcher.cpp
+++ b/core/launcher/launcher.cpp
@@ -687,95 +687,95 @@ void Launcher::applicationRemoved( const QString& type, const AppLnk& app )
687 view->removeLink( app.linkFile() ); 687 view->removeLink( app.linkFile() );
688 else 688 else
689 qWarning("removeAppLnk: No view for %s!", type.latin1() ); 689 qWarning("removeAppLnk: No view for %s!", type.latin1() );
690} 690}
691 691
692void Launcher::allApplicationsRemoved() 692void Launcher::allApplicationsRemoved()
693{ 693{
694 MimeType::clear(); 694 MimeType::clear();
695 for ( QStringList::ConstIterator it=ids.begin(); it!= ids.end(); ++it) 695 for ( QStringList::ConstIterator it=ids.begin(); it!= ids.end(); ++it)
696 tabs->view( (*it) )->removeAllItems(); 696 tabs->view( (*it) )->removeAllItems();
697} 697}
698 698
699void Launcher::documentAdded( const DocLnk& doc ) 699void Launcher::documentAdded( const DocLnk& doc )
700{ 700{
701 tabs->docView()->addItem( new DocLnk( doc ), FALSE ); 701 tabs->docView()->addItem( new DocLnk( doc ), FALSE );
702} 702}
703 703
704void Launcher::showLoadingDocs() 704void Launcher::showLoadingDocs()
705{ 705{
706 tabs->docView()->hide(); 706 tabs->docView()->hide();
707} 707}
708 708
709void Launcher::showDocTab() 709void Launcher::showDocTab()
710{ 710{
711 if ( tabs->categoryBar->currentView() == tabs->docView() ) 711 if ( tabs->categoryBar->currentView() == tabs->docView() )
712 tabs->docView()->show(); 712 tabs->docView()->show();
713} 713}
714 714
715void Launcher::documentRemoved( const DocLnk& doc ) 715void Launcher::documentRemoved( const DocLnk& doc )
716{ 716{
717 tabs->docView()->removeLink( doc.linkFile() ); 717 tabs->docView()->removeLink( doc.linkFile() );
718} 718}
719 719
720void Launcher::documentChanged( const DocLnk& oldDoc, const DocLnk& newDoc ) 720void Launcher::documentChanged( const DocLnk& oldDoc, const DocLnk& newDoc )
721{ 721{
722 documentRemoved( oldDoc ); 722 documentRemoved( oldDoc );
723 documentAdded( newDoc ); 723 documentAdded( newDoc );
724} 724}
725 725
726void Launcher::allDocumentsRemoved() 726void Launcher::allDocumentsRemoved()
727{ 727{
728 tabs->docView()->removeAllItems(); 728 tabs->docView()->removeAllItems();
729} 729}
730 730
731void Launcher::applicationStateChanged( const QString& name, ApplicationState state ) 731void Launcher::applicationStateChanged( const QString& name, ApplicationState state )
732{ 732{
733 tb->setApplicationState( name, state ); 733 tb->setApplicationState( name, state );
734} 734}
735 735
736void Launcher::applicationScanningProgress( int percent ) 736void Launcher::applicationScanningProgress( int percent )
737{ 737{
738 switch ( percent ) { 738 switch ( percent ) {
739 case 0: { 739 case 0: {
740 for ( QStringList::ConstIterator it=ids.begin(); it!= ids.end(); ++it) { 740 for ( QStringList::ConstIterator it=ids.begin(); it!= ids.end(); ++it) {
741 tabs->view( (*it) )->setUpdatesEnabled( FALSE ); 741 tabs->view( (*it) )->setUpdatesEnabled( FALSE );
742 tabs->view( (*it) )->setSortEnabled( FALSE ); 742 tabs->view( (*it) )->setSortEnabled( FALSE );
743 } 743 }
744 break; 744 break;
745 } 745 }
746 case 100: { 746 case 100: {
747 for ( QStringList::ConstIterator it=ids.begin(); it!= ids.end(); ++it) { 747 for ( QStringList::ConstIterator it=ids.begin(); it!= ids.end(); ++it) {
748 tabs->view( (*it) )->setUpdatesEnabled( TRUE ); 748 tabs->view( (*it) )->setUpdatesEnabled( TRUE );
749 tabs->view( (*it) )->setSortEnabled( TRUE ); 749 tabs->view( (*it) )->setSortEnabled( TRUE );
750 } 750 }
751 tb->refreshStartMenu();
751 break; 752 break;
752 } 753 }
753 default: 754 default:
754 break; 755 break;
755 } 756 }
756} 757}
757 758
758void Launcher::documentScanningProgress( int percent ) 759void Launcher::documentScanningProgress( int percent )
759{ 760{
760 switch ( percent ) { 761 switch ( percent ) {
761 case 0: { 762 case 0: {
762 tabs->setLoadingProgress( 0 ); 763 tabs->setLoadingProgress( 0 );
763 tabs->setLoadingWidgetEnabled( TRUE ); 764 tabs->setLoadingWidgetEnabled( TRUE );
764 tabs->docView()->setUpdatesEnabled( FALSE ); 765 tabs->docView()->setUpdatesEnabled( FALSE );
765 tabs->docView()->setSortEnabled( FALSE ); 766 tabs->docView()->setSortEnabled( FALSE );
766 break; 767 break;
767 } 768 }
768 case 100: { 769 case 100: {
769 tabs->docView()->updateTools(); 770 tabs->docView()->updateTools();
770 tabs->docView()->setSortEnabled( TRUE ); 771 tabs->docView()->setSortEnabled( TRUE );
771 tabs->docView()->setUpdatesEnabled( TRUE ); 772 tabs->docView()->setUpdatesEnabled( TRUE );
772 tabs->setLoadingWidgetEnabled( FALSE ); 773 tabs->setLoadingWidgetEnabled( FALSE );
773 tb->refreshStartMenu();
774 break; 774 break;
775 } 775 }
776 default: 776 default:
777 tabs->setLoadingProgress( percent ); 777 tabs->setLoadingProgress( percent );
778 break; 778 break;
779 } 779 }
780} 780}
781 781