summaryrefslogtreecommitdiff
authordrw <drw>2005-04-15 17:18:32 (UTC)
committer drw <drw>2005-04-15 17:18:32 (UTC)
commite2d5048b65d95ba7d658aabadece4e91f17f6310 (patch) (unidiff)
treef1ab32bf3790a315554fe4baa191d74f80d66933
parent4bf8d42034beee5e28b25182e21cf74f3c2da6a8 (diff)
downloadopie-e2d5048b65d95ba7d658aabadece4e91f17f6310.zip
opie-e2d5048b65d95ba7d658aabadece4e91f17f6310.tar.gz
opie-e2d5048b65d95ba7d658aabadece4e91f17f6310.tar.bz2
Resource -> OResource
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/osearch/adresssearch.cpp5
-rw-r--r--core/pim/osearch/applnksearch.cpp7
-rw-r--r--core/pim/osearch/contactitem.cpp37
-rw-r--r--core/pim/osearch/datebooksearch.cpp6
-rw-r--r--core/pim/osearch/doclnksearch.cpp5
-rw-r--r--core/pim/osearch/eventitem.cpp14
-rw-r--r--core/pim/osearch/mainwindow.cpp5
-rw-r--r--core/pim/osearch/todoitem.cpp16
-rw-r--r--core/pim/osearch/todosearch.cpp7
9 files changed, 49 insertions, 53 deletions
diff --git a/core/pim/osearch/adresssearch.cpp b/core/pim/osearch/adresssearch.cpp
index e1f575d..d260670 100644
--- a/core/pim/osearch/adresssearch.cpp
+++ b/core/pim/osearch/adresssearch.cpp
@@ -8,27 +8,26 @@
8// Author: Patrick S. Vogt <tille@handhelds.org>, (C) 2003 8// Author: Patrick S. Vogt <tille@handhelds.org>, (C) 2003
9// 9//
10// Copyright: See COPYING file that comes with this distribution 10// Copyright: See COPYING file that comes with this distribution
11// 11//
12// 12//
13#include "adresssearch.h" 13#include "adresssearch.h"
14#include "contactitem.h" 14#include "contactitem.h"
15 15
16#include <qpe/resource.h> 16#include <opie2/oresource.h>
17 17
18//#include <qwhatsthis.h> 18//#include <qwhatsthis.h>
19 19
20using namespace Opie; 20using namespace Opie;
21AdressSearch::AdressSearch(QListView* parent, QString name): 21AdressSearch::AdressSearch(QListView* parent, QString name):
22 SearchGroup(parent, name) 22 SearchGroup(parent, name)
23{ 23{
24 _contacts = 0; 24 _contacts = 0;
25 QIconSet is = Resource::loadIconSet( "addressbook/AddressBook" ); 25 setPixmap( 0, Opie::Core::OResource::loadPixmap( "addressbook/AddressBook", Opie::Core::OResource::SmallIcon ) );
26 setPixmap( 0, is.pixmap( QIconSet::Large, true ) );
27 26
28 27
29 //QWhatsThis::add( this, QObject::tr("Search the addressbook") ); 28 //QWhatsThis::add( this, QObject::tr("Search the addressbook") );
30 /*QPixmap pix = Resource::loadPixmap( "addressbook/AddressBook" ); 29 /*QPixmap pix = Resource::loadPixmap( "addressbook/AddressBook" );
31 QImage img = pix.convertToImage(); 30 QImage img = pix.convertToImage();
32 img.smoothScale( 14, 14 ); 31 img.smoothScale( 14, 14 );
33 pix.convertFromImage( img ); 32 pix.convertFromImage( img );
34 setPixmap( 0, pix );*/ 33 setPixmap( 0, pix );*/
diff --git a/core/pim/osearch/applnksearch.cpp b/core/pim/osearch/applnksearch.cpp
index 474dbb2..69170c9 100644
--- a/core/pim/osearch/applnksearch.cpp
+++ b/core/pim/osearch/applnksearch.cpp
@@ -8,27 +8,26 @@
8// Author: Patrick S. Vogt <tille@handhelds.org>, (C) 2003 8// Author: Patrick S. Vogt <tille@handhelds.org>, (C) 2003
9// 9//
10// Copyright: See COPYING file that comes with this distribution 10// Copyright: See COPYING file that comes with this distribution
11// 11//
12// 12//
13#include "applnksearch.h" 13#include "applnksearch.h"
14#include "applnkitem.h" 14#include "applnkitem.h"
15 15
16#include <opie2/oresource.h>
17
16#include <qpe/applnk.h> 18#include <qpe/applnk.h>
17#include <qpe/qpeapplication.h> 19#include <qpe/qpeapplication.h>
18#include <qpe/resource.h>
19 20
20 21
21AppLnkSearch::AppLnkSearch(QListView* parent, QString name): SearchGroup(parent, name) 22AppLnkSearch::AppLnkSearch(QListView* parent, QString name): SearchGroup(parent, name)
22{ 23{
23 _apps = 0; 24 _apps = 0;
24 QIconSet is = Resource::loadIconSet( "osearch/applications" ); 25 setPixmap( 0, Opie::Core::OResource::loadPixmap( "osearch/applications", Opie::Core::OResource::SmallIcon ) );
25 //QIconSet is = Resource::loadIconSet( "AppsIcon" );
26 setPixmap( 0, is.pixmap( QIconSet::Large, true ) );
27} 26}
28 27
29 28
30AppLnkSearch::~AppLnkSearch() 29AppLnkSearch::~AppLnkSearch()
31{ 30{
32 delete _apps; 31 delete _apps;
33} 32}
34 33
diff --git a/core/pim/osearch/contactitem.cpp b/core/pim/osearch/contactitem.cpp
index c89c6e2..81b6359 100644
--- a/core/pim/osearch/contactitem.cpp
+++ b/core/pim/osearch/contactitem.cpp
@@ -7,17 +7,18 @@
7// 7//
8// Author: Patrick S. Vogt <tille@handhelds.org>, (C) 2003 8// Author: Patrick S. Vogt <tille@handhelds.org>, (C) 2003
9// 9//
10// Copyright: See COPYING file that comes with this distribution 10// Copyright: See COPYING file that comes with this distribution
11// 11//
12// 12//
13#include "contactitem.h" 13#include "contactitem.h"
14 14
15#include <qpe/resource.h> 15#include <opie2/oresource.h>
16
16#include <qpe/qcopenvelope_qws.h> 17#include <qpe/qcopenvelope_qws.h>
17 18
18 19
19using namespace Opie; 20using namespace Opie;
20ContactItem::ContactItem(OListViewItem* parent, OPimContact *contact) 21ContactItem::ContactItem(OListViewItem* parent, OPimContact *contact)
21: ResultItem(parent) 22: ResultItem(parent)
22{ 23{
23 _contact = contact; 24 _contact = contact;
@@ -25,89 +26,89 @@ ContactItem::ContactItem(OListViewItem* parent, OPimContact *contact)
25 setIcon(); 26 setIcon();
26} 27}
27 28
28void ContactItem::setIcon() 29void ContactItem::setIcon()
29{ 30{
30 QPixmap icon; 31 QPixmap icon;
31 switch ( _contact->lastHitField() ) { 32 switch ( _contact->lastHitField() ) {
32 case -1: 33 case -1:
33 icon = Resource::loadPixmap( "reset" ); 34 icon = Opie::Core::OResource::loadPixmap( "reset", Opie::Core::OResource::SmallIcon );
34 break; 35 break;
35 case Qtopia::BusinessPhone: 36 case Qtopia::BusinessPhone:
36 icon = Resource::loadPixmap( "addressbook/phonework" ); 37 icon = Opie::Core::OResource::loadPixmap( "addressbook/phonework", Opie::Core::OResource::SmallIcon );
37 break; 38 break;
38 case Qtopia::BusinessFax: 39 case Qtopia::BusinessFax:
39 icon = Resource::loadPixmap( "addressbook/faxwork" ); 40 icon = Opie::Core::OResource::loadPixmap( "addressbook/faxwork", Opie::Core::OResource::SmallIcon );
40 break; 41 break;
41 case Qtopia::BusinessMobile: 42 case Qtopia::BusinessMobile:
42 icon = Resource::loadPixmap( "addressbook/mobilework" ); 43 icon = Opie::Core::OResource::loadPixmap( "addressbook/mobilework", Opie::Core::OResource::SmallIcon );
43 break; 44 break;
44 case Qtopia::DefaultEmail: 45 case Qtopia::DefaultEmail:
45 case Qtopia::Emails: 46 case Qtopia::Emails:
46 icon = Resource::loadPixmap( "addressbook/email" ); 47 icon = Opie::Core::OResource::loadPixmap( "addressbook/email", Opie::Core::OResource::SmallIcon );
47 break; 48 break;
48 case Qtopia::HomePhone: 49 case Qtopia::HomePhone:
49 icon = Resource::loadPixmap( "addressbook/phonehome" ); 50 icon = Opie::Core::OResource::loadPixmap( "addressbook/phonehome", Opie::Core::OResource::SmallIcon );
50 break; 51 break;
51 case Qtopia::HomeFax: 52 case Qtopia::HomeFax:
52 icon = Resource::loadPixmap( "addressbook/faxhome" ); 53 icon = Opie::Core::OResource::loadPixmap( "addressbook/faxhome", Opie::Core::OResource::SmallIcon );
53 break; 54 break;
54 case Qtopia::HomeMobile: 55 case Qtopia::HomeMobile:
55 icon = Resource::loadPixmap( "addressbook/mobilehome" ); 56 icon = Opie::Core::OResource::loadPixmap( "addressbook/mobilehome", Opie::Core::OResource::SmallIcon );
56 break; 57 break;
57 case Qtopia::HomeWebPage: 58 case Qtopia::HomeWebPage:
58 icon = Resource::loadPixmap( "addressbook/webpagehome" ); 59 icon = Opie::Core::OResource::loadPixmap( "addressbook/webpagehome", Opie::Core::OResource::SmallIcon );
59 break; 60 break;
60 case Qtopia::BusinessWebPage: 61 case Qtopia::BusinessWebPage:
61 icon = Resource::loadPixmap( "addressbook/webpagework" ); 62 icon = Opie::Core::OResource::loadPixmap( "addressbook/webpagework", Opie::Core::OResource::SmallIcon );
62 break; 63 break;
63 case Qtopia::Title: 64 case Qtopia::Title:
64 case Qtopia::JobTitle: 65 case Qtopia::JobTitle:
65 case Qtopia::FirstName: 66 case Qtopia::FirstName:
66 case Qtopia::MiddleName: 67 case Qtopia::MiddleName:
67 case Qtopia::LastName: 68 case Qtopia::LastName:
68 case Qtopia::Suffix: 69 case Qtopia::Suffix:
69 case Qtopia::Nickname: 70 case Qtopia::Nickname:
70 case Qtopia::FileAs: 71 case Qtopia::FileAs:
71 icon = Resource::loadPixmap( "addressbook/identity" ); 72 icon = Opie::Core::OResource::loadPixmap( "addressbook/identity", Opie::Core::OResource::SmallIcon );
72 break; 73 break;
73 case Qtopia::HomeStreet: 74 case Qtopia::HomeStreet:
74 case Qtopia::HomeCity: 75 case Qtopia::HomeCity:
75 case Qtopia::HomeState: 76 case Qtopia::HomeState:
76 case Qtopia::HomeZip: 77 case Qtopia::HomeZip:
77 case Qtopia::HomeCountry: 78 case Qtopia::HomeCountry:
78 icon = Resource::loadPixmap( "osearch/addresshome" ); 79 icon = Opie::Core::OResource::loadPixmap( "osearch/addresshome", Opie::Core::OResource::SmallIcon );
79 break; 80 break;
80 case Qtopia::Company: 81 case Qtopia::Company:
81 case Qtopia::BusinessCity: 82 case Qtopia::BusinessCity:
82 case Qtopia::BusinessStreet: 83 case Qtopia::BusinessStreet:
83 case Qtopia::BusinessZip: 84 case Qtopia::BusinessZip:
84 case Qtopia::BusinessCountry: 85 case Qtopia::BusinessCountry:
85 case Qtopia::Department: 86 case Qtopia::Department:
86 case Qtopia::Office: 87 case Qtopia::Office:
87 case Qtopia::Manager: 88 case Qtopia::Manager:
88 case Qtopia::BusinessPager: 89 case Qtopia::BusinessPager:
89 case Qtopia::Profession: 90 case Qtopia::Profession:
90 icon = Resource::loadPixmap( "osearch/addresshome" ); 91 icon = Opie::Core::OResource::loadPixmap( "osearch/addresshome", Opie::Core::OResource::SmallIcon );
91 break; 92 break;
92 case Qtopia::Assistant: 93 case Qtopia::Assistant:
93 case Qtopia::Spouse: 94 case Qtopia::Spouse:
94 case Qtopia::Children: 95 case Qtopia::Children:
95 icon = Resource::loadPixmap( "osearch/personal" ); 96 icon = Opie::Core::OResource::loadPixmap( "osearch/personal", Opie::Core::OResource::SmallIcon );
96 break; 97 break;
97 case Qtopia::Birthday: 98 case Qtopia::Birthday:
98 case Qtopia::Anniversary: 99 case Qtopia::Anniversary:
99 icon = Resource::loadPixmap( "osearch/clock" ); 100 icon = Opie::Core::OResource::loadPixmap( "osearch/clock", Opie::Core::OResource::SmallIcon );
100 break; 101 break;
101 case Qtopia::Notes: 102 case Qtopia::Notes:
102 icon = Resource::loadPixmap( "txt" ); 103 icon = Opie::Core::OResource::loadPixmap( "txt", Opie::Core::OResource::SmallIcon );
103 break; 104 break;
104 default: 105 default:
105 icon = Resource::loadPixmap( "DocsIcon" ); 106 icon = Opie::Core::OResource::loadPixmap( "DocsIcon", Opie::Core::OResource::SmallIcon );
106 break; 107 break;
107 } 108 }
108 setPixmap( 0, icon ); 109 setPixmap( 0, icon );
109} 110}
110 111
111ContactItem::~ContactItem() 112ContactItem::~ContactItem()
112{ 113{
113 delete _contact; 114 delete _contact;
diff --git a/core/pim/osearch/datebooksearch.cpp b/core/pim/osearch/datebooksearch.cpp
index ef3b006..13df6bf 100644
--- a/core/pim/osearch/datebooksearch.cpp
+++ b/core/pim/osearch/datebooksearch.cpp
@@ -11,30 +11,30 @@
11// 11//
12// 12//
13#include "datebooksearch.h" 13#include "datebooksearch.h"
14#include "eventitem.h" 14#include "eventitem.h"
15 15
16#include <opie2/odebug.h> 16#include <opie2/odebug.h>
17#include <opie2/opimevent.h> 17#include <opie2/opimevent.h>
18#include <opie2/opimrecurrence.h> 18#include <opie2/opimrecurrence.h>
19#include <opie2/oresource.h>
19 20
20#include <qpe/resource.h>
21#include <qpe/config.h> 21#include <qpe/config.h>
22 22
23#include <qaction.h> 23#include <qaction.h>
24#include <qpopupmenu.h> 24#include <qpopupmenu.h>
25 25
26 26
27 27
28DatebookSearch::DatebookSearch(QListView* parent, QString name) 28DatebookSearch::DatebookSearch(QListView* parent, QString name)
29: SearchGroup(parent, name), _dates(0), _popupMenu(0) 29: SearchGroup(parent, name), _dates(0), _popupMenu(0)
30{ 30{
31 QIconSet is = Resource::loadIconSet( "datebook/DateBook" ); 31 setPixmap( 0, Opie::Core::OResource::loadPixmap( "datebook/DateBook", Opie::Core::OResource::SmallIcon ) );
32 setPixmap( 0, is.pixmap( QIconSet::Large, true ) ); 32
33 actionShowPastEvents = new QAction( QObject::tr("Show past events"),QString::null, 0, 0, 0, true ); 33 actionShowPastEvents = new QAction( QObject::tr("Show past events"),QString::null, 0, 0, 0, true );
34 actionSearchInDates = new QAction( QObject::tr("Search in dates"),QString::null, 0, 0, 0, true ); 34 actionSearchInDates = new QAction( QObject::tr("Search in dates"),QString::null, 0, 0, 0, true );
35 Config cfg( "osearch", Config::User ); 35 Config cfg( "osearch", Config::User );
36 cfg.setGroup( "datebook_settings" ); 36 cfg.setGroup( "datebook_settings" );
37 actionShowPastEvents->setOn( cfg.readBoolEntry( "show_past_events", false ) ); 37 actionShowPastEvents->setOn( cfg.readBoolEntry( "show_past_events", false ) );
38 actionSearchInDates->setOn( cfg.readBoolEntry( "search_in_dates", true ) ); 38 actionSearchInDates->setOn( cfg.readBoolEntry( "search_in_dates", true ) );
39} 39}
40 40
diff --git a/core/pim/osearch/doclnksearch.cpp b/core/pim/osearch/doclnksearch.cpp
index 3d91c1f..9d165be 100644
--- a/core/pim/osearch/doclnksearch.cpp
+++ b/core/pim/osearch/doclnksearch.cpp
@@ -10,34 +10,33 @@
10// Copyright: See COPYING file that comes with this distribution 10// Copyright: See COPYING file that comes with this distribution
11// 11//
12// 12//
13 13
14 14
15#include "doclnkitem.h" 15#include "doclnkitem.h"
16#include "doclnksearch.h" 16#include "doclnksearch.h"
17 17
18#include <opie2/oresource.h>
18#include <opie2/owait.h> 19#include <opie2/owait.h>
19 20
20#include <qpe/applnk.h> 21#include <qpe/applnk.h>
21#include <qpe/config.h> 22#include <qpe/config.h>
22#include <qpe/resource.h>
23#include <qpe/qpeapplication.h> 23#include <qpe/qpeapplication.h>
24 24
25#include <qaction.h> 25#include <qaction.h>
26#include <qfile.h> 26#include <qfile.h>
27#include <qpopupmenu.h> 27#include <qpopupmenu.h>
28#include <qtextstream.h> 28#include <qtextstream.h>
29 29
30 30
31DocLnkSearch::DocLnkSearch(QListView* parent, QString name) 31DocLnkSearch::DocLnkSearch(QListView* parent, QString name)
32: AppLnkSearch(parent, name), _popupMenu(0) 32: AppLnkSearch(parent, name), _popupMenu(0)
33{ 33{
34 QIconSet is = Resource::loadIconSet( "osearch/documents" ); 34 setPixmap( 0, Opie::Core::OResource::loadPixmap( "osearch/documents", Opie::Core::OResource::SmallIcon ) );
35 setPixmap( 0, is.pixmap( QIconSet::Large, true ) );
36 35
37 actionSearchInFiles = new QAction( QObject::tr("Search content"),QString::null, 0, 0, 0, true ); 36 actionSearchInFiles = new QAction( QObject::tr("Search content"),QString::null, 0, 0, 0, true );
38 Config cfg( "osearch", Config::User ); 37 Config cfg( "osearch", Config::User );
39 cfg.setGroup( "doclnk_settings" ); 38 cfg.setGroup( "doclnk_settings" );
40 actionSearchInFiles->setOn( cfg.readBoolEntry( "search_content", false ) ); 39 actionSearchInFiles->setOn( cfg.readBoolEntry( "search_content", false ) );
41} 40}
42 41
43 42
diff --git a/core/pim/osearch/eventitem.cpp b/core/pim/osearch/eventitem.cpp
index 7bcf340..36adc63 100644
--- a/core/pim/osearch/eventitem.cpp
+++ b/core/pim/osearch/eventitem.cpp
@@ -7,18 +7,18 @@
7// 7//
8// Author: Patrick S. Vogt <tille@handhelds.org>, (C) 2003 8// Author: Patrick S. Vogt <tille@handhelds.org>, (C) 2003
9// 9//
10// Copyright: See COPYING file that comes with this distribution 10// Copyright: See COPYING file that comes with this distribution
11// 11//
12// 12//
13#include "eventitem.h" 13#include "eventitem.h"
14 14
15#include <opie2/oresource.h>
15 16
16#include <qpe/resource.h>
17#include <qpe/qcopenvelope_qws.h> 17#include <qpe/qcopenvelope_qws.h>
18 18
19 19
20using namespace Opie; 20using namespace Opie;
21EventItem::EventItem(OListViewItem* parent, OPimEvent *event) 21EventItem::EventItem(OListViewItem* parent, OPimEvent *event)
22 : ResultItem(parent) 22 : ResultItem(parent)
23{ 23{
24 _event = event; 24 _event = event;
@@ -56,30 +56,30 @@ QIntDict<QString> EventItem::actions()
56 return result; 56 return result;
57} 57}
58 58
59void EventItem::setIcon() 59void EventItem::setIcon()
60{ 60{
61 QPixmap icon; 61 QPixmap icon;
62 switch ( _event->lastHitField() ) { 62 switch ( _event->lastHitField() ) {
63 case -1: 63 case -1:
64 icon = Resource::loadPixmap( "reset" ); 64 icon = Opie::Core::OResource::loadPixmap( "reset", Opie::Core::OResource::SmallIcon );
65 // QWhatsThis::add( icon, QObject::tr("Enter your search terms here") ); 65 // QWhatsThis::add( icon, QObject::tr("Enter your search terms here") );
66 break; 66 break;
67 case Qtopia::DatebookDescription: 67 case Qtopia::DatebookDescription:
68 icon = Resource::loadPixmap( "osearch/summary" ); 68 icon = Opie::Core::OResource::loadPixmap( "osearch/summary", Opie::Core::OResource::SmallIcon );
69 break; 69 break;
70 case Qtopia::Notes: 70 case Qtopia::Notes:
71 icon = Resource::loadPixmap( "txt" ); 71 icon = Opie::Core::OResource::loadPixmap( "txt", Opie::Core::OResource::SmallIcon );
72 break; 72 break;
73 case Qtopia::Location: 73 case Qtopia::Location:
74 icon = Resource::loadPixmap( "home" ); 74 icon = Opie::Core::OResource::loadPixmap( "home", Opie::Core::OResource::SmallIcon );
75 break; 75 break;
76 case Qtopia::StartDateTime: 76 case Qtopia::StartDateTime:
77 case Qtopia::EndDateTime: 77 case Qtopia::EndDateTime:
78 icon = Resource::loadPixmap( "osearch/clock" ); 78 icon = Opie::Core::OResource::loadPixmap( "osearch/clock", Opie::Core::OResource::SmallIcon );
79 break; 79 break;
80 default: 80 default:
81 icon = Resource::loadPixmap( "DocsIcon" ); 81 icon = Opie::Core::OResource::loadPixmap( "DocsIcon", Opie::Core::OResource::SmallIcon );
82 break; 82 break;
83 } 83 }
84 setPixmap( 0, icon ); 84 setPixmap( 0, icon );
85} 85}
diff --git a/core/pim/osearch/mainwindow.cpp b/core/pim/osearch/mainwindow.cpp
index 1d0331c..d71b167 100644
--- a/core/pim/osearch/mainwindow.cpp
+++ b/core/pim/osearch/mainwindow.cpp
@@ -16,23 +16,22 @@
16#include "adresssearch.h" 16#include "adresssearch.h"
17#include "todosearch.h" 17#include "todosearch.h"
18#include "datebooksearch.h" 18#include "datebooksearch.h"
19#include "applnksearch.h" 19#include "applnksearch.h"
20#include "doclnksearch.h" 20#include "doclnksearch.h"
21#include "mainwindow.h" 21#include "mainwindow.h"
22 22
23#include <opie2/odebug.h> 23#include <opie2/odebug.h>
24#include <opie2/oresource.h>
24#include <opie2/owait.h> 25#include <opie2/owait.h>
25 26
26#include <qpe/qpemessagebox.h> 27#include <qpe/qpemessagebox.h>
27#include <qpe/resource.h>
28#include <qpe/config.h> 28#include <qpe/config.h>
29 29
30
31#include <qpe/qpeapplication.h> 30#include <qpe/qpeapplication.h>
32#include <qpe/global.h> 31#include <qpe/global.h>
33 32
34#include <qtoolbar.h> 33#include <qtoolbar.h>
35#include <qaction.h> 34#include <qaction.h>
36#include <qmessagebox.h> 35#include <qmessagebox.h>
37#include <qpopupmenu.h> 36#include <qpopupmenu.h>
38#include <qtoolbutton.h> 37#include <qtoolbutton.h>
@@ -160,17 +159,17 @@ void MainWindow::makeMenu()
160 if (pop){ 159 if (pop){
161 cfgMenu->insertItem( s->text(0), pop ); 160 cfgMenu->insertItem( s->text(0), pop );
162 } 161 }
163 } 162 }
164 163
165 164
166 //SEARCH 165 //SEARCH
167 SearchAllAction = new QAction( tr("Search all"),QString::null, 0, this, 0 ); 166 SearchAllAction = new QAction( tr("Search all"),QString::null, 0, this, 0 );
168 SearchAllAction->setIconSet( Resource::loadIconSet( "find" ) ); 167 SearchAllAction->setIconSet( Opie::Core::OResource::loadPixmap( "find", Opie::Core::OResource::SmallIcon ) );
169 // QWhatsThis::add( SearchAllAction, tr("Search everything...") ); 168 // QWhatsThis::add( SearchAllAction, tr("Search everything...") );
170 connect( SearchAllAction, SIGNAL(activated()), this, SLOT(searchAll()) ); 169 connect( SearchAllAction, SIGNAL(activated()), this, SLOT(searchAll()) );
171 SearchAllAction->addTo( searchMenu ); 170 SearchAllAction->addTo( searchMenu );
172 searchMenu->insertItem( tr( "Options" ), searchOptions ); 171 searchMenu->insertItem( tr( "Options" ), searchOptions );
173 172
174 //SEARCH OPTIONS 173 //SEARCH OPTIONS
175 //actionWholeWordsOnly = new QAction( tr("Whole words only"),QString::null, 0, this, 0, true ); 174 //actionWholeWordsOnly = new QAction( tr("Whole words only"),QString::null, 0, this, 0, true );
176 //actionWholeWordsOnly->addTo( searchOptions ); 175 //actionWholeWordsOnly->addTo( searchOptions );
diff --git a/core/pim/osearch/todoitem.cpp b/core/pim/osearch/todoitem.cpp
index 34e790a..9172344 100644
--- a/core/pim/osearch/todoitem.cpp
+++ b/core/pim/osearch/todoitem.cpp
@@ -7,22 +7,20 @@
7// 7//
8// Author: Patrick S. Vogt <tille@handhelds.org>, (C) 2003 8// Author: Patrick S. Vogt <tille@handhelds.org>, (C) 2003
9// 9//
10// Copyright: See COPYING file that comes with this distribution 10// Copyright: See COPYING file that comes with this distribution
11// 11//
12// 12//
13#include "todoitem.h" 13#include "todoitem.h"
14 14
15#include <opie2/oresource.h>
15 16
16#include <qpe/resource.h>
17#include <qpe/qcopenvelope_qws.h> 17#include <qpe/qcopenvelope_qws.h>
18 18
19
20
21using namespace Opie; 19using namespace Opie;
22TodoItem::TodoItem(OListViewItem* parent, OPimTodo *todo) 20TodoItem::TodoItem(OListViewItem* parent, OPimTodo *todo)
23: ResultItem(parent) 21: ResultItem(parent)
24{ 22{
25 _todo = todo; 23 _todo = todo;
26 setText( 0, todo->toShortText() ); 24 setText( 0, todo->toShortText() );
27 setIcon(); 25 setIcon();
28} 26}
@@ -56,28 +54,28 @@ QIntDict<QString> TodoItem::actions()
56 return result; 54 return result;
57} 55}
58 56
59void TodoItem::setIcon() 57void TodoItem::setIcon()
60{ 58{
61 QPixmap icon; 59 QPixmap icon;
62 switch ( _todo->lastHitField() ) { 60 switch ( _todo->lastHitField() ) {
63 case -1: 61 case -1:
64 icon = Resource::loadPixmap( "reset" ); 62 icon = Opie::Core::OResource::loadPixmap( "reset", Opie::Core::OResource::SmallIcon );
65 break; 63 break;
66 case OPimTodo::Description: 64 case OPimTodo::Description:
67 icon = Resource::loadPixmap( "txt" ); 65 icon = Opie::Core::OResource::loadPixmap( "txt", Opie::Core::OResource::SmallIcon );
68 break; 66 break;
69 case OPimTodo::Summary: 67 case OPimTodo::Summary:
70 icon = Resource::loadPixmap( "osearch/summary" ); 68 icon = Opie::Core::OResource::loadPixmap( "osearch/summary", Opie::Core::OResource::SmallIcon );
71 break; 69 break;
72 case OPimTodo::Priority: 70 case OPimTodo::Priority:
73 icon = Resource::loadPixmap( "todo/priority1" ); 71 icon = Opie::Core::OResource::loadPixmap( "todo/priority1", Opie::Core::OResource::SmallIcon );
74 break; 72 break;
75 case OPimTodo::HasDate: 73 case OPimTodo::HasDate:
76 icon = Resource::loadPixmap( "osearch/clock" ); 74 icon = Opie::Core::OResource::loadPixmap( "osearch/clock", Opie::Core::OResource::SmallIcon );
77 break; 75 break;
78 default: 76 default:
79 icon = Resource::loadPixmap( "DocsIcon" ); 77 icon = Opie::Core::OResource::loadPixmap( "DocsIcon", Opie::Core::OResource::SmallIcon );
80 break; 78 break;
81 } 79 }
82 setPixmap( 0, icon ); 80 setPixmap( 0, icon );
83} 81}
diff --git a/core/pim/osearch/todosearch.cpp b/core/pim/osearch/todosearch.cpp
index 1ed7370..8a9ae39 100644
--- a/core/pim/osearch/todosearch.cpp
+++ b/core/pim/osearch/todosearch.cpp
@@ -8,30 +8,31 @@
8// Author: Patrick S. Vogt <tille@handhelds.org>, (C) 2003 8// Author: Patrick S. Vogt <tille@handhelds.org>, (C) 2003
9// 9//
10// Copyright: See COPYING file that comes with this distribution 10// Copyright: See COPYING file that comes with this distribution
11// 11//
12// 12//
13#include "todosearch.h" 13#include "todosearch.h"
14#include "todoitem.h" 14#include "todoitem.h"
15 15
16#include <qpe/resource.h> 16#include <opie2/oresource.h>
17
17#include <qpe/config.h> 18#include <qpe/config.h>
18 19
19#include <qaction.h> 20#include <qaction.h>
20#include <qpopupmenu.h> 21#include <qpopupmenu.h>
21 22
22using namespace Opie; 23using namespace Opie;
23TodoSearch::TodoSearch(QListView* parent, QString name) 24TodoSearch::TodoSearch(QListView* parent, QString name)
24: SearchGroup(parent, name), _todos(0), _popupMenu(0) 25: SearchGroup(parent, name), _todos(0), _popupMenu(0)
25{ 26{
26 //AppLnkSet als(QPEApplication::qpeDir()); 27 //AppLnkSet als(QPEApplication::qpeDir());
27 //setPixmap( 0, als.findExec("todolist")->pixmap() ); 28 //setPixmap( 0, als.findExec("todolist")->pixmap() );
28 QIconSet is = Resource::loadIconSet( "todo/TodoList" ); 29 setPixmap( 0, Opie::Core::OResource::loadPixmap( "todo/TodoList", Opie::Core::OResource::SmallIcon ) );
29 setPixmap( 0, is.pixmap( QIconSet::Large, true ) ); 30
30 actionShowCompleted = new QAction( QObject::tr("Show completed tasks"),QString::null, 0, 0, 0, true ); 31 actionShowCompleted = new QAction( QObject::tr("Show completed tasks"),QString::null, 0, 0, 0, true );
31 Config cfg( "osearch", Config::User ); 32 Config cfg( "osearch", Config::User );
32 cfg.setGroup( "todo_settings" ); 33 cfg.setGroup( "todo_settings" );
33 actionShowCompleted->setOn( cfg.readBoolEntry( "show_completed_tasks", false ) ); 34 actionShowCompleted->setOn( cfg.readBoolEntry( "show_completed_tasks", false ) );
34 35
35} 36}
36 37
37 38