summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--ChangeLog3
-rw-r--r--core/launcher/launcherview.cpp2
2 files changed, 3 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index b5d27c3..7228691 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,85 +1,88 @@
1 2004-??-??The Opie Team <opie@handhelds.org> 1 2004-??-??The Opie Team <opie@handhelds.org>
2 2
3 New Features 3 New Features
4 ------------ 4 ------------
5 * Fifteen gained configurable number of items (zecke) 5 * Fifteen gained configurable number of items (zecke)
6 * Fifteen can have custom background images (zecke) 6 * Fifteen can have custom background images (zecke)
7 * Added daemonizing capabilities to QWS Server [via Qt/Embedded] (mickeyl) 7 * Added daemonizing capabilities to QWS Server [via Qt/Embedded] (mickeyl)
8 * Integrated the new security framework into libopie2 (zecke,clem) 8 * Integrated the new security framework into libopie2 (zecke,clem)
9 * Converted the launcher to use the new security framework (zecke) 9 * Converted the launcher to use the new security framework (zecke)
10 * Backup can now handle custom locations for backup and restore (ar) 10 * Backup can now handle custom locations for backup and restore (ar)
11 * Implemented right-on-hold feedback (wimpie,zecke)
12 * Lots of new features in opie-reader (tim,pohly)
11 13
12 Fixed Bugs 14 Fixed Bugs
13 -------- 15 --------
14 * #1225 - Fixed repeated light flashing on Zaurus with keyz (mickeyl) 16 * #1225 - Fixed repeated light flashing on Zaurus with keyz (mickeyl)
15 * #1361 - Fixed auto upercase in Opie-Addressbook (eilers) 17 * #1361 - Fixed auto upercase in Opie-Addressbook (eilers)
16 * #1370 - Pimconverter now reacts on cancel key (eilers) 18 * #1370 - Pimconverter now reacts on cancel key (eilers)
19 * #1401 - Scrollbar is now only visible if necessary in DocTab (mickeyl)
17 20
18 2004-07-06The Opie Team <opie@handhelds.org> 21 2004-07-06The Opie Team <opie@handhelds.org>
19 22
20 * Tagged as Version 1.1.4 (devel) 23 * Tagged as Version 1.1.4 (devel)
21 24
22 New Features 25 New Features
23 ------------ 26 ------------
24 * Added four themes courtesy Robert Griebl (http://www.softforge.de/zstyle) 27 * Added four themes courtesy Robert Griebl (http://www.softforge.de/zstyle)
25 * Added Conversion tool for pim-data (eilers) 28 * Added Conversion tool for pim-data (eilers)
26 * Introduced new OPimAccessFactory and OBackendFactory which simplyfies database access (eilers) 29 * Introduced new OPimAccessFactory and OBackendFactory which simplyfies database access (eilers)
27 * Modified the PIM API for providing generic use of OPimRecords (eilers) 30 * Modified the PIM API for providing generic use of OPimRecords (eilers)
28 * Clicking on the application symbol now iterates over the application's top level widgets if already raised (zecke) 31 * Clicking on the application symbol now iterates over the application's top level widgets if already raised (zecke)
29 32
30 Fixed Bugs 33 Fixed Bugs
31 -------- 34 --------
32 * #1068 - Country Drop Down Box Off Screen 35 * #1068 - Country Drop Down Box Off Screen
33 * #1291 - Opie tinykate does not open .desktop files (ar) 36 * #1291 - Opie tinykate does not open .desktop files (ar)
34 * #1291 - Opie sheet not saving correctly (ar) 37 * #1291 - Opie sheet not saving correctly (ar)
35 * #1294 - Opie does not know about British Summer Time 38 * #1294 - Opie does not know about British Summer Time
36 * #1314 - Drawpad initialization (mickeyl) 39 * #1314 - Drawpad initialization (mickeyl)
37 * #1317 - Packagemanager crashes on hold-down or install (chicken) 40 * #1317 - Packagemanager crashes on hold-down or install (chicken)
38 * #1321 - Batteryapplet graphic glitch (harlekin) 41 * #1321 - Batteryapplet graphic glitch (harlekin)
39 * #1324 - ZSafe not starting up (mickeyl) 42 * #1324 - ZSafe not starting up (mickeyl)
40 * #1328 - Personal Home Address fields is trimmed to 1char (eilers) 43 * #1328 - Personal Home Address fields is trimmed to 1char (eilers)
41 * #1327 - Opie-mail ipk does not depend on libopiedb2 (chicken) 44 * #1327 - Opie-mail ipk does not depend on libopiedb2 (chicken)
42 * #1345 - Networksettingsplugin wlan plugin dependency on libpcap0 (mickeyl) 45 * #1345 - Networksettingsplugin wlan plugin dependency on libpcap0 (mickeyl)
43 * #1348 - Datebook dependency on libopiedb2 (chicken) 46 * #1348 - Datebook dependency on libopiedb2 (chicken)
44 * #1328 - Switched SQLDatabase and VCards char encoding from latin1 to unicode (eilers) 47 * #1328 - Switched SQLDatabase and VCards char encoding from latin1 to unicode (eilers)
45 48
46 2004-04-25The Opie Team <opie@handhelds.org> 49 2004-04-25The Opie Team <opie@handhelds.org>
47 50
48 * Released as Version 1.1.3 (devel) 51 * Released as Version 1.1.3 (devel)
49 * Introduced first implementation of SQL-Support using SQLite (eilers) 52 * Introduced first implementation of SQL-Support using SQLite (eilers)
50 * Added a new Gutenberg Project reader app - opie-gutenbrowser (ljp) 53 * Added a new Gutenberg Project reader app - opie-gutenbrowser (ljp)
51 * Added a real system graffiti character set (brad) 54 * Added a real system graffiti character set (brad)
52 * Added Generic Keyconfig Widget (zecke) 55 * Added Generic Keyconfig Widget (zecke)
53 * Improved Screenshotapplet and Drawpad integration. You can now open a screenshot in drawpad and take notes (zecke) 56 * Improved Screenshotapplet and Drawpad integration. You can now open a screenshot in drawpad and take notes (zecke)
54 * Added new Bible reader app - opie-dagger (drw) 57 * Added new Bible reader app - opie-dagger (drw)
55 * Added a new Image Viewer. Work is ongoing (zecke,alwin) 58 * Added a new Image Viewer. Work is ongoing (zecke,alwin)
56 * Added namespace usage in libopie2 and everywhere (zecke,alwin) 59 * Added namespace usage in libopie2 and everywhere (zecke,alwin)
57 * Enabled the possibility to pass command line arguments to applications (mickeyl) 60 * Enabled the possibility to pass command line arguments to applications (mickeyl)
58 * Added an about applet showing some credits and information about Opie (mickeyl) 61 * Added an about applet showing some credits and information about Opie (mickeyl)
59 * Added benchmarking functionality to sysinfo (mickeyl) 62 * Added benchmarking functionality to sysinfo (mickeyl)
60 * Added applet and configuration application for switching hardware keyboard layouts (alwin) 63 * Added applet and configuration application for switching hardware keyboard layouts (alwin)
61 * Ported applications from libopie1 to libopie2* (drw,ar,alwin) 64 * Ported applications from libopie1 to libopie2* (drw,ar,alwin)
62 * Imported fullscreen and font improvements from the Qkonsole fork to embeddedkonsole (waspe) 65 * Imported fullscreen and font improvements from the Qkonsole fork to embeddedkonsole (waspe)
63 * Clean-up of package information in control files (drw) 66 * Clean-up of package information in control files (drw)
64 * Repaired mediummount which was broken since integrating the quicklauncher (alwin) 67 * Repaired mediummount which was broken since integrating the quicklauncher (alwin)
65 * Improved big-screen support (zecke,ar) 68 * Improved big-screen support (zecke,ar)
66 * Improved multikeyboard support, added keyboard layout switching applet (mouse) 69 * Improved multikeyboard support, added keyboard layout switching applet (mouse)
67 * Added a new mail client based on libetpan (harlekin,alwin,jgf) 70 * Added a new mail client based on libetpan (harlekin,alwin,jgf)
68 * Added new package manager - opie-packagemanager (drw) 71 * Added new package manager - opie-packagemanager (drw)
69 * Improved light-n-power for C7x0 (mickeyl) 72 * Improved light-n-power for C7x0 (mickeyl)
70 * Added automatic rotation support for C7x0 (treke) 73 * Added automatic rotation support for C7x0 (treke)
71 * Split libopie1 up into a set of smaller - functionally grouped - libraries (mickeyl) 74 * Split libopie1 up into a set of smaller - functionally grouped - libraries (mickeyl)
72 * Added scanning the wireless network neighbourhood to networksettings (mickeyl) 75 * Added scanning the wireless network neighbourhood to networksettings (mickeyl)
73 76
74 2003-11-29The Opie Team <opie@handhelds.org> 77 2003-11-29The Opie Team <opie@handhelds.org>
75 78
76 * Released as Version 1.0.3 79 * Released as Version 1.0.3
77 * Improved i18n (various contributors) 80 * Improved i18n (various contributors)
78 * Reduced application startup time by integrating the TT quicklauncher (zecke,harlekin) 81 * Reduced application startup time by integrating the TT quicklauncher (zecke,harlekin)
79 * Made the Documents Tab optional (mickeyl) 82 * Made the Documents Tab optional (mickeyl)
80 * Integrated basic support for HP iPAQ 54xx and the Jornada 5xx (chicken) 83 * Integrated basic support for HP iPAQ 54xx and the Jornada 5xx (chicken)
81 84
82 2003-08-04The Opie Team <opie@handhelds.org> 85 2003-08-04The Opie Team <opie@handhelds.org>
83 86
84 * Released as Version 1.0.0 87 * Released as Version 1.0.0
85 * Including a PPP module for easy dial up (tille,harlekin,zecke) 88 * Including a PPP module for easy dial up (tille,harlekin,zecke)
diff --git a/core/launcher/launcherview.cpp b/core/launcher/launcherview.cpp
index e86f389..0d0f2cb 100644
--- a/core/launcher/launcherview.cpp
+++ b/core/launcher/launcherview.cpp
@@ -565,194 +565,192 @@ void LauncherIconView::hideOrShowItems(bool resort)
565 sort(); 565 sort();
566 viewport()->setUpdatesEnabled( TRUE ); 566 viewport()->setUpdatesEnabled( TRUE );
567} 567}
568 568
569bool LauncherIconView::removeLink(const QString& linkfile) 569bool LauncherIconView::removeLink(const QString& linkfile)
570{ 570{
571 LauncherItem* item = (LauncherItem*)firstItem(); 571 LauncherItem* item = (LauncherItem*)firstItem();
572 AppLnk* l; 572 AppLnk* l;
573 bool did = FALSE; 573 bool did = FALSE;
574 DocLnk dl(linkfile); 574 DocLnk dl(linkfile);
575 while (item) { 575 while (item) {
576 l = item->appLnk(); 576 l = item->appLnk();
577 LauncherItem *nextItem = (LauncherItem *)item->nextItem(); 577 LauncherItem *nextItem = (LauncherItem *)item->nextItem();
578 if ( l->linkFileKnown() && l->linkFile() == linkfile 578 if ( l->linkFileKnown() && l->linkFile() == linkfile
579 || l->fileKnown() && ( 579 || l->fileKnown() && (
580 l->file() == linkfile 580 l->file() == linkfile
581 || dl.isValid() && dl.file() == l->file() ) ) { 581 || dl.isValid() && dl.file() == l->file() ) ) {
582 delete item; 582 delete item;
583 did = TRUE; 583 did = TRUE;
584 } 584 }
585 item = nextItem; 585 item = nextItem;
586 } 586 }
587 QListIterator<AppLnk> it(hidden); 587 QListIterator<AppLnk> it(hidden);
588 while ((l=it.current())) { 588 while ((l=it.current())) {
589 ++it; 589 ++it;
590 if ( l->linkFileKnown() && l->linkFile() == linkfile 590 if ( l->linkFileKnown() && l->linkFile() == linkfile
591 || l->file() == linkfile 591 || l->file() == linkfile
592 || dl.isValid() && dl.file() == l->file() ) { 592 || dl.isValid() && dl.file() == l->file() ) {
593 hidden.removeRef(l); 593 hidden.removeRef(l);
594 did = TRUE; 594 did = TRUE;
595 } 595 }
596 } 596 }
597 return did; 597 return did;
598} 598}
599 599
600//=========================================================================== 600//===========================================================================
601 601
602LauncherView::LauncherView( QWidget* parent, const char* name, WFlags fl ) 602LauncherView::LauncherView( QWidget* parent, const char* name, WFlags fl )
603 : QVBox( parent, name, fl ) 603 : QVBox( parent, name, fl )
604{ 604{
605 catmb = 0; 605 catmb = 0;
606 icons = new LauncherIconView( this ); 606 icons = new LauncherIconView( this );
607 setFocusProxy(icons); 607 setFocusProxy(icons);
608 QPEApplication::setStylusOperation( icons->viewport(), QPEApplication::RightOnHold ); 608 QPEApplication::setStylusOperation( icons->viewport(), QPEApplication::RightOnHold );
609 609
610 icons->setItemsMovable( FALSE ); 610 icons->setItemsMovable( FALSE );
611 icons->setAutoArrange( TRUE ); 611 icons->setAutoArrange( TRUE );
612 icons->setSorting( TRUE ); 612 icons->setSorting( TRUE );
613 icons->setFrameStyle( QFrame::NoFrame ); 613 icons->setFrameStyle( QFrame::NoFrame );
614 icons->setMargin( 0 ); 614 icons->setMargin( 0 );
615 icons->setSelectionMode( QIconView::NoSelection ); 615 icons->setSelectionMode( QIconView::NoSelection );
616 icons->setBackgroundMode( PaletteBase ); 616 icons->setBackgroundMode( PaletteBase );
617 icons->setResizeMode( QIconView::Fixed ); 617 icons->setResizeMode( QIconView::Fixed );
618 vmode = (ViewMode)-1; 618 vmode = (ViewMode)-1;
619 setViewMode( Icon ); 619 setViewMode( Icon );
620 620
621 connect( icons, SIGNAL(mouseButtonClicked(int,QIconViewItem*,const QPoint&)), 621 connect( icons, SIGNAL(mouseButtonClicked(int,QIconViewItem*,const QPoint&)),
622 SLOT(itemClicked(int,QIconViewItem*)) ); 622 SLOT(itemClicked(int,QIconViewItem*)) );
623 connect( icons, SIGNAL(selectionChanged()), 623 connect( icons, SIGNAL(selectionChanged()),
624 SLOT(selectionChanged()) ); 624 SLOT(selectionChanged()) );
625 connect( icons, SIGNAL(returnPressed(QIconViewItem*)), 625 connect( icons, SIGNAL(returnPressed(QIconViewItem*)),
626 SLOT(returnPressed(QIconViewItem*)) ); 626 SLOT(returnPressed(QIconViewItem*)) );
627 connect( icons, SIGNAL(mouseButtonPressed(int,QIconViewItem*,const QPoint&)), 627 connect( icons, SIGNAL(mouseButtonPressed(int,QIconViewItem*,const QPoint&)),
628 SLOT(itemPressed(int,QIconViewItem*)) ); 628 SLOT(itemPressed(int,QIconViewItem*)) );
629 629
630 tools = 0; 630 tools = 0;
631 setBackgroundType( Ruled, QString::null ); 631 setBackgroundType( Ruled, QString::null );
632} 632}
633 633
634LauncherView::~LauncherView() 634LauncherView::~LauncherView()
635{ 635{
636 if ( bgCache && bgCache->contains( bgName ) ) 636 if ( bgCache && bgCache->contains( bgName ) )
637 (*bgCache)[bgName]->ref--; 637 (*bgCache)[bgName]->ref--;
638} 638}
639 639
640void LauncherView::hideIcons() 640void LauncherView::hideIcons()
641{ 641{
642 icons->hide(); 642 icons->hide();
643} 643}
644 644
645void LauncherView::setToolsEnabled(bool y) 645void LauncherView::setToolsEnabled(bool y)
646{ 646{
647 if ( !y != !tools ) { 647 if ( !y != !tools ) {
648 if ( y ) { 648 if ( y ) {
649 tools = new QHBox(this); 649 tools = new QHBox(this);
650 650
651 // Type filter 651 // Type filter
652 typemb = new QComboBox(tools); 652 typemb = new QComboBox(tools);
653 QSizePolicy p = typemb->sizePolicy(); 653 QSizePolicy p = typemb->sizePolicy();
654 p.setHorData(QSizePolicy::Expanding); 654 p.setHorData(QSizePolicy::Expanding);
655 typemb->setSizePolicy(p); 655 typemb->setSizePolicy(p);
656 656
657 // Category filter 657 // Category filter
658 updateTools(); 658 updateTools();
659 tools->show(); 659 tools->show();
660 660
661 // Always show vscrollbar
662 icons->setVScrollBarMode( QScrollView::AlwaysOn );
663 } else { 661 } else {
664 delete tools; 662 delete tools;
665 tools = 0; 663 tools = 0;
666 } 664 }
667 } 665 }
668} 666}
669 667
670void LauncherView::updateTools() 668void LauncherView::updateTools()
671{ 669{
672 disconnect( typemb, SIGNAL(activated(int)), 670 disconnect( typemb, SIGNAL(activated(int)),
673 this, SLOT(showType(int)) ); 671 this, SLOT(showType(int)) );
674 if ( catmb ) disconnect( catmb, SIGNAL(signalSelected(int)), 672 if ( catmb ) disconnect( catmb, SIGNAL(signalSelected(int)),
675 this, SLOT(showCategory(int)) ); 673 this, SLOT(showCategory(int)) );
676 674
677 // ### I want to remove this 675 // ### I want to remove this
678 icons->updateCategoriesAndMimeTypes(); 676 icons->updateCategoriesAndMimeTypes();
679 677
680 QString prev; 678 QString prev;
681 679
682 // Type filter 680 // Type filter
683 QStringList types; 681 QStringList types;
684 typelist = icons->mimeTypes(); 682 typelist = icons->mimeTypes();
685 for (QStringList::ConstIterator it = typelist.begin(); it!=typelist.end(); ++it) { 683 for (QStringList::ConstIterator it = typelist.begin(); it!=typelist.end(); ++it) {
686 QString t = *it; 684 QString t = *it;
687 if ( t.left(12) == "application/" ) { 685 if ( t.left(12) == "application/" ) {
688 MimeType mt(t); 686 MimeType mt(t);
689 const AppLnk* app = mt.application(); 687 const AppLnk* app = mt.application();
690 if ( app ) 688 if ( app )
691 t = app->name(); 689 t = app->name();
692 else 690 else
693 t = t.mid(12); 691 t = t.mid(12);
694 } else { 692 } else {
695 t[0] = t[0].upper(); 693 t[0] = t[0].upper();
696 } 694 }
697 types += t; 695 types += t;
698 } 696 }
699 types << tr("All types"); 697 types << tr("All types");
700 prev = typemb->currentText(); 698 prev = typemb->currentText();
701 typemb->clear(); 699 typemb->clear();
702 typemb->insertStringList(types); 700 typemb->insertStringList(types);
703 for (int i=0; i<typemb->count(); i++) { 701 for (int i=0; i<typemb->count(); i++) {
704 if ( typemb->text(i) == prev ) { 702 if ( typemb->text(i) == prev ) {
705 typemb->setCurrentItem(i); 703 typemb->setCurrentItem(i);
706 break; 704 break;
707 } 705 }
708 } 706 }
709 if ( prev.isNull() ) 707 if ( prev.isNull() )
710 typemb->setCurrentItem(typemb->count()-1); 708 typemb->setCurrentItem(typemb->count()-1);
711 709
712 int pcat = catmb ? catmb->currentCategory() : -2; 710 int pcat = catmb ? catmb->currentCategory() : -2;
713 if ( !catmb ) 711 if ( !catmb )
714 catmb = new CategorySelect(tools); 712 catmb = new CategorySelect(tools);
715 Categories cats( 0 ); 713 Categories cats( 0 );
716 cats.load( categoryFileName() ); 714 cats.load( categoryFileName() );
717 QArray<int> vl( 0 ); 715 QArray<int> vl( 0 );
718 catmb->setCategories( vl, "Document View", // No tr 716 catmb->setCategories( vl, "Document View", // No tr
719 tr("Document View") ); 717 tr("Document View") );
720 catmb->setRemoveCategoryEdit( TRUE ); 718 catmb->setRemoveCategoryEdit( TRUE );
721 catmb->setAllCategories( TRUE ); 719 catmb->setAllCategories( TRUE );
722 catmb->setCurrentCategory(pcat); 720 catmb->setCurrentCategory(pcat);
723 721
724 // if type has changed we need to redisplay 722 // if type has changed we need to redisplay
725 if ( typemb->currentText() != prev ) 723 if ( typemb->currentText() != prev )
726 showType( typemb->currentItem() ); 724 showType( typemb->currentItem() );
727 725
728 connect(typemb, SIGNAL(activated(int)), this, SLOT(showType(int))); 726 connect(typemb, SIGNAL(activated(int)), this, SLOT(showType(int)));
729 connect(catmb, SIGNAL(signalSelected(int)), this, SLOT(showCategory(int))); 727 connect(catmb, SIGNAL(signalSelected(int)), this, SLOT(showCategory(int)));
730} 728}
731 729
732void LauncherView::sortBy(int s) 730void LauncherView::sortBy(int s)
733{ 731{
734 icons->setSortMethod((LauncherIconView::SortMethod)s); 732 icons->setSortMethod((LauncherIconView::SortMethod)s);
735} 733}
736 734
737void LauncherView::showType(int t) 735void LauncherView::showType(int t)
738{ 736{
739 if ( t >= (int)typelist.count() ) { 737 if ( t >= (int)typelist.count() ) {
740 icons->setTypeFilter("",TRUE); 738 icons->setTypeFilter("",TRUE);
741 } else { 739 } else {
742 QString ty = typelist[t]; 740 QString ty = typelist[t];
743 if ( !ty.contains('/') ) 741 if ( !ty.contains('/') )
744 ty += "/*"; 742 ty += "/*";
745 icons->setTypeFilter(ty,TRUE); 743 icons->setTypeFilter(ty,TRUE);
746 } 744 }
747} 745}
748 746
749void LauncherView::showCategory( int c ) 747void LauncherView::showCategory( int c )
750{ 748{
751 icons->setCategoryFilter( c, TRUE ); 749 icons->setCategoryFilter( c, TRUE );
752} 750}
753 751
754void LauncherView::setViewMode( ViewMode m ) 752void LauncherView::setViewMode( ViewMode m )
755{ 753{
756 if ( vmode != m ) { 754 if ( vmode != m ) {
757 bool bigIcons = m == Icon; 755 bool bigIcons = m == Icon;
758 icons->viewport()->setUpdatesEnabled( FALSE ); 756 icons->viewport()->setUpdatesEnabled( FALSE );