summaryrefslogtreecommitdiff
authoralwin <alwin>2004-02-29 02:03:07 (UTC)
committer alwin <alwin>2004-02-29 02:03:07 (UTC)
commit4cdd469ad2437fb2a09e4e7afff4feb24cd5d83d (patch) (unidiff)
tree5218c24b6ddc3a3433ec3db2ccec79e43f5b398d
parent14db10826688a0f098fc48d4aec6e794b07f4ab4 (diff)
downloadopie-4cdd469ad2437fb2a09e4e7afff4feb24cd5d83d.zip
opie-4cdd469ad2437fb2a09e4e7afff4feb24cd5d83d.tar.gz
opie-4cdd469ad2437fb2a09e4e7afff4feb24cd5d83d.tar.bz2
*grmpf* inserted into the wrong line (where it worked, too ;) - sorry guys.
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
@@ -655,127 +655,127 @@ void Launcher::typeAdded( const QString& type, const QString& name,
655 tabs->view( type )->setUpdatesEnabled( FALSE ); 655 tabs->view( type )->setUpdatesEnabled( FALSE );
656 tabs->view( type )->setSortEnabled( FALSE ); 656 tabs->view( type )->setSortEnabled( FALSE );
657} 657}
658 658
659void Launcher::typeRemoved( const QString& type ) 659void Launcher::typeRemoved( const QString& type )
660{ 660{
661 tabs->view( type )->removeAllItems(); 661 tabs->view( type )->removeAllItems();
662 tabs->deleteView( type ); 662 tabs->deleteView( type );
663 ids.remove( type ); 663 ids.remove( type );
664 /* this will be called in applicationScanningProgress with value 100! */ 664 /* this will be called in applicationScanningProgress with value 100! */
665// tb->refreshStartMenu(); 665// tb->refreshStartMenu();
666} 666}
667 667
668void Launcher::applicationAdded( const QString& type, const AppLnk& app ) 668void Launcher::applicationAdded( const QString& type, const AppLnk& app )
669{ 669{
670 if ( app.type() == "Separator" ) // No tr 670 if ( app.type() == "Separator" ) // No tr
671 return; 671 return;
672 672
673 LauncherView *view = tabs->view( type ); 673 LauncherView *view = tabs->view( type );
674 if ( view ) 674 if ( view )
675 view->addItem( new AppLnk( app ), FALSE ); 675 view->addItem( new AppLnk( app ), FALSE );
676 else 676 else
677 qWarning("addAppLnk: No view for type %s. Can't add app %s!", 677 qWarning("addAppLnk: No view for type %s. Can't add app %s!",
678 type.latin1(),app.name().latin1() ); 678 type.latin1(),app.name().latin1() );
679 679
680 MimeType::registerApp( app ); 680 MimeType::registerApp( app );
681} 681}
682 682
683void Launcher::applicationRemoved( const QString& type, const AppLnk& app ) 683void Launcher::applicationRemoved( const QString& type, const AppLnk& app )
684{ 684{
685 LauncherView *view = tabs->view( type ); 685 LauncherView *view = tabs->view( type );
686 if ( view ) 686 if ( view )
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