summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/osearch/doclnkitem.cpp54
-rw-r--r--core/pim/osearch/doclnkitem.h37
-rw-r--r--core/pim/osearch/doclnksearch.cpp46
-rw-r--r--core/pim/osearch/doclnksearch.h35
-rw-r--r--core/pim/osearch/mainwindow.cpp3
-rw-r--r--core/pim/osearch/mainwindow.h2
-rw-r--r--core/pim/osearch/osearch.pro8
7 files changed, 183 insertions, 2 deletions
diff --git a/core/pim/osearch/doclnkitem.cpp b/core/pim/osearch/doclnkitem.cpp
new file mode 100644
index 0000000..fd19727
--- a/dev/null
+++ b/core/pim/osearch/doclnkitem.cpp
@@ -0,0 +1,54 @@
1//
2//
3// C++ Implementation: $MODULE$
4//
5// Description:
6//
7//
8// Author: Patrick S. Vogt <tille@handhelds.org>, (C) 2003
9//
10// Copyright: See COPYING file that comes with this distribution
11//
12//
13#include "doclnkitem.h"
14
15#include <qpe/applnk.h>
16
17DocLnkItem::DocLnkItem(OListViewItem* parent, DocLnk *app)
18 : ResultItem(parent)
19{
20 _doc = app;
21 setText(0, _doc->name() );
22}
23
24
25DocLnkItem::~DocLnkItem()
26{
27}
28
29
30QString DocLnkItem::toRichText()
31{
32 QString text;
33 text += "<b><h3>";
34 text += _doc->name();
35 text += "</b></h3><br>";
36 text += _doc->comment();
37 text += "<br><br>`";
38 text += _doc->exec();
39 text += "`";
40 return text;
41}
42
43void DocLnkItem::editItem()
44{
45 _doc->execute();
46}
47
48void DocLnkItem::showItem()
49{
50 /* QCopEnvelope e("QPE/Application/addressbook", "edit(int)");
51 e << _contact->uid();*/
52 ResultItem::showItem();
53}
54
diff --git a/core/pim/osearch/doclnkitem.h b/core/pim/osearch/doclnkitem.h
new file mode 100644
index 0000000..2718733
--- a/dev/null
+++ b/core/pim/osearch/doclnkitem.h
@@ -0,0 +1,37 @@
1//
2//
3// C++ Interface: $MODULE$
4//
5// Description:
6//
7//
8// Author: Patrick S. Vogt <tille@handhelds.org>, (C) 2003
9//
10// Copyright: See COPYING file that comes with this distribution
11//
12//
13#ifndef DOCLNKITEM_H
14#define DOCLNKITEM_H
15
16#include "resultitem.h"
17
18class DocLnk;
19
20/**
21@author Patrick S. Vogt
22*/
23class DocLnkItem : public ResultItem
24{
25public:
26 DocLnkItem(OListViewItem* parent, DocLnk *app);
27 ~DocLnkItem();
28
29 virtual QString toRichText();
30 virtual void editItem();
31 virtual void showItem();
32
33private:
34 DocLnk *_doc;
35};
36
37#endif
diff --git a/core/pim/osearch/doclnksearch.cpp b/core/pim/osearch/doclnksearch.cpp
new file mode 100644
index 0000000..e99a385
--- a/dev/null
+++ b/core/pim/osearch/doclnksearch.cpp
@@ -0,0 +1,46 @@
1//
2//
3// C++ Implementation: $MODULE$
4//
5// Description:
6//
7//
8// Author: Patrick S. Vogt <tille@handhelds.org>, (C) 2003
9//
10// Copyright: See COPYING file that comes with this distribution
11//
12//
13#include "doclnksearch.h"
14
15#include <qpe/applnk.h>
16#include <qpe/qpeapplication.h>
17
18#include "doclnkitem.h"
19
20DocLnkSearch::DocLnkSearch(QListView* parent, QString name): SearchGroup(parent, name)
21{
22 _docs = 0;
23}
24
25
26DocLnkSearch::~DocLnkSearch()
27{
28 delete _docs;
29}
30
31
32void DocLnkSearch::expand()
33{
34 SearchGroup::expand();
35 if (_search.isEmpty()) return;
36 if (!_docs) _docs = new DocLnkSet(QPEApplication::documentDir());
37 QList<DocLnk> appList = _docs->children();
38 for ( DocLnk *app = appList.first(); app != 0; app = appList.next() ){
39 // if (app->name().contains(_search) || app->comment().contains(_search))
40 if ( (_search.match( app->name() ) != -1)
41 || (_search.match(app->comment()) != -1)
42 || (_search.match(app->exec()) != -1) )
43 new DocLnkItem( this, app );
44 }
45}
46
diff --git a/core/pim/osearch/doclnksearch.h b/core/pim/osearch/doclnksearch.h
new file mode 100644
index 0000000..ec740de
--- a/dev/null
+++ b/core/pim/osearch/doclnksearch.h
@@ -0,0 +1,35 @@
1//
2//
3// C++ Interface: $MODULE$
4//
5// Description:
6//
7//
8// Author: Patrick S. Vogt <tille@handhelds.org>, (C) 2003
9//
10// Copyright: See COPYING file that comes with this distribution
11//
12//
13#ifndef DOCLNKSEARCH_H
14#define DOCLNKSEARCH_H
15
16#include "searchgroup.h"
17
18class DocLnkSet;
19
20/**
21@author Patrick S. Vogt
22*/
23class DocLnkSearch : public SearchGroup
24{
25public:
26 DocLnkSearch(QListView* parent, QString name);
27
28 ~DocLnkSearch();
29
30 virtual void expand();
31private:
32 DocLnkSet *_docs;
33};
34
35#endif
diff --git a/core/pim/osearch/mainwindow.cpp b/core/pim/osearch/mainwindow.cpp
index 41ce5b6..140d7bb 100644
--- a/core/pim/osearch/mainwindow.cpp
+++ b/core/pim/osearch/mainwindow.cpp
@@ -1,179 +1,182 @@
1/*************************************************************************** 1/***************************************************************************
2 * * 2 * *
3 * This program is free software; you can redistribute it and/or modify * 3 * This program is free software; you can redistribute it and/or modify *
4 * it under the terms of the GNU General Public License as published by * 4 * it under the terms of the GNU General Public License as published by *
5 * the Free Software Foundation; either version 2 of the License, or * 5 * the Free Software Foundation; either version 2 of the License, or *
6 * (at your option) any later version. * 6 * (at your option) any later version. *
7 * * 7 * *
8 ***************************************************************************/ 8 ***************************************************************************/
9 9
10// (c) 2002 Patrick S. Vogt <tille@handhelds.org> 10// (c) 2002 Patrick S. Vogt <tille@handhelds.org>
11 11
12 12
13#include "mainwindow.h" 13#include "mainwindow.h"
14 14
15#include <qpe/qpemenubar.h> 15#include <qpe/qpemenubar.h>
16#include <qpe/qpemessagebox.h> 16#include <qpe/qpemessagebox.h>
17#include <qpe/resource.h> 17#include <qpe/resource.h>
18#include <qpe/config.h> 18#include <qpe/config.h>
19#include <qpe/qpetoolbar.h> 19#include <qpe/qpetoolbar.h>
20#include <qpe/qpeapplication.h> 20#include <qpe/qpeapplication.h>
21#include <qaction.h> 21#include <qaction.h>
22#include <qmessagebox.h> 22#include <qmessagebox.h>
23#include <qpopupmenu.h> 23#include <qpopupmenu.h>
24#include <qtoolbutton.h> 24#include <qtoolbutton.h>
25#include <qstring.h> 25#include <qstring.h>
26#include <qlabel.h> 26#include <qlabel.h>
27#include <qfile.h> 27#include <qfile.h>
28#include <qpushbutton.h> 28#include <qpushbutton.h>
29#include <qlayout.h> 29#include <qlayout.h>
30#include <qlineedit.h> 30#include <qlineedit.h>
31#include <qtextbrowser.h> 31#include <qtextbrowser.h>
32 32
33#include "olistview.h" 33#include "olistview.h"
34#include "olistviewitem.h" 34#include "olistviewitem.h"
35#include "resultitem.h" 35#include "resultitem.h"
36#include "adresssearch.h" 36#include "adresssearch.h"
37#include "todosearch.h" 37#include "todosearch.h"
38#include "datebooksearch.h" 38#include "datebooksearch.h"
39#include "applnksearch.h" 39#include "applnksearch.h"
40#include "doclnksearch.h"
40 41
41MainWindow::MainWindow( QWidget *parent, const char *name, WFlags f ) : 42MainWindow::MainWindow( QWidget *parent, const char *name, WFlags f ) :
42 QMainWindow( parent, name, f ), _currentItem(0) 43 QMainWindow( parent, name, f ), _currentItem(0)
43{ 44{
44 setCaption( tr("OSearch") ); 45 setCaption( tr("OSearch") );
45 46
46 setSizePolicy( QSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding)); 47 setSizePolicy( QSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding));
47 48
48 QFrame *mainFrame = new QFrame( this, "mainFrame" ); 49 QFrame *mainFrame = new QFrame( this, "mainFrame" );
49 50
50 mainLayout = new QVBoxLayout( mainFrame ); 51 mainLayout = new QVBoxLayout( mainFrame );
51 mainLayout->setSpacing( 0 ); 52 mainLayout->setSpacing( 0 );
52 mainLayout->setMargin( 0 ); 53 mainLayout->setMargin( 0 );
53 54
54 resultsList = new OListView( mainFrame ); 55 resultsList = new OListView( mainFrame );
55 resultsList->setSizePolicy( QSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding)); 56 resultsList->setSizePolicy( QSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding));
56 mainLayout->addWidget( resultsList ); 57 mainLayout->addWidget( resultsList );
57 58
58 detailsFrame = new QFrame( mainFrame, "detailsFrame" ); 59 detailsFrame = new QFrame( mainFrame, "detailsFrame" );
59 QVBoxLayout *detailsLayout = new QVBoxLayout( detailsFrame ); 60 QVBoxLayout *detailsLayout = new QVBoxLayout( detailsFrame );
60 richEdit = new QTextView( detailsFrame ); 61 richEdit = new QTextView( detailsFrame );
61 richEdit->setSizePolicy( QSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding)); 62 richEdit->setSizePolicy( QSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding));
62 detailsLayout->addWidget( richEdit, 0 ); 63 detailsLayout->addWidget( richEdit, 0 );
63 QHBoxLayout *buttonLayout = new QHBoxLayout( detailsFrame ); 64 QHBoxLayout *buttonLayout = new QHBoxLayout( detailsFrame );
64 detailsLayout->addLayout( buttonLayout, 0 ); 65 detailsLayout->addLayout( buttonLayout, 0 );
65 QPushButton *buttonShow = new QPushButton( detailsFrame, "Show" ); 66 QPushButton *buttonShow = new QPushButton( detailsFrame, "Show" );
66 buttonShow->setText( tr("show") ); 67 buttonShow->setText( tr("show") );
67// buttonShow->setSizePolicy( QSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding)); 68// buttonShow->setSizePolicy( QSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding));
68 QPushButton *buttonEdit = new QPushButton( detailsFrame, "Edit" ); 69 QPushButton *buttonEdit = new QPushButton( detailsFrame, "Edit" );
69 buttonEdit->setText( tr("edit") ); 70 buttonEdit->setText( tr("edit") );
70 // buttonEdit->setSizePolicy( QSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding)); 71 // buttonEdit->setSizePolicy( QSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding));
71 buttonLayout->addWidget( buttonShow, 0 ); 72 buttonLayout->addWidget( buttonShow, 0 );
72 buttonLayout->addWidget( buttonEdit, 0 ); 73 buttonLayout->addWidget( buttonEdit, 0 );
73 74
74 mainLayout->addWidget( detailsFrame, 0 ); 75 mainLayout->addWidget( detailsFrame, 0 );
75 detailsFrame->hide(); 76 detailsFrame->hide();
76 77
77 adrSearch = new AdressSearch( resultsList, tr("adressbook") ); 78 adrSearch = new AdressSearch( resultsList, tr("adressbook") );
78 todoSearch = new TodoSearch( resultsList, tr("todo") ); 79 todoSearch = new TodoSearch( resultsList, tr("todo") );
79 datebookSearch = new DatebookSearch( resultsList, tr("datebook") ); 80 datebookSearch = new DatebookSearch( resultsList, tr("datebook") );
80 applnkSearch = new AppLnkSearch( resultsList, tr("applications") ); 81 applnkSearch = new AppLnkSearch( resultsList, tr("applications") );
82 doclnkSearch = new DocLnkSearch( resultsList, tr("documents") );
81 83
82 makeMenu(); 84 makeMenu();
83 setCentralWidget( mainFrame ); 85 setCentralWidget( mainFrame );
84 86
85 popupTimer = new QTimer(); 87 popupTimer = new QTimer();
86 88
87 connect(popupTimer, SIGNAL(timeout()), SLOT(showPopup())); 89 connect(popupTimer, SIGNAL(timeout()), SLOT(showPopup()));
88 connect(resultsList, SIGNAL(pressed(QListViewItem*)), SLOT(setCurrent(QListViewItem*))); 90 connect(resultsList, SIGNAL(pressed(QListViewItem*)), SLOT(setCurrent(QListViewItem*)));
89 connect(resultsList, SIGNAL(clicked(QListViewItem*)), SLOT(stopTimer(QListViewItem*))); 91 connect(resultsList, SIGNAL(clicked(QListViewItem*)), SLOT(stopTimer(QListViewItem*)));
90 connect(buttonShow, SIGNAL(clicked()), SLOT( showItem() ) ); 92 connect(buttonShow, SIGNAL(clicked()), SLOT( showItem() ) );
91 connect(buttonEdit, SIGNAL(clicked()), SLOT( editItem() ) ); 93 connect(buttonEdit, SIGNAL(clicked()), SLOT( editItem() ) );
92 94
93 95
94} 96}
95 97
96void MainWindow::makeMenu() 98void MainWindow::makeMenu()
97{ 99{
98// QPEToolBar *toolBar = new QPEToolBar( this ); 100// QPEToolBar *toolBar = new QPEToolBar( this );
99// QPEMenuBar *menuBar = new QPEMenuBar( toolBar ); 101// QPEMenuBar *menuBar = new QPEMenuBar( toolBar );
100// QPopupMenu *searchMenu = new QPopupMenu( menuBar ); 102// QPopupMenu *searchMenu = new QPopupMenu( menuBar );
101// QPopupMenu *viewMenu = new QPopupMenu( menuBar ); 103// QPopupMenu *viewMenu = new QPopupMenu( menuBar );
102// QPopupMenu *cfgMenu = new QPopupMenu( menuBar ); 104// QPopupMenu *cfgMenu = new QPopupMenu( menuBar );
103// 105//
104 setToolBarsMovable( false ); 106 setToolBarsMovable( false );
105// toolBar->setHorizontalStretchable( true ); 107// toolBar->setHorizontalStretchable( true );
106// menuBar->insertItem( tr( "Search" ), searchMenu ); 108// menuBar->insertItem( tr( "Search" ), searchMenu );
107// menuBar->insertItem( tr( "View" ), viewMenu ); 109// menuBar->insertItem( tr( "View" ), viewMenu );
108// menuBar->insertItem( tr( "Settings" ), cfgMenu ); 110// menuBar->insertItem( tr( "Settings" ), cfgMenu );
109 111
110 //SEARCH 112 //SEARCH
111 QPEToolBar *searchBar = new QPEToolBar(this); 113 QPEToolBar *searchBar = new QPEToolBar(this);
112 addToolBar( searchBar, "Search", QMainWindow::Top, TRUE ); 114 addToolBar( searchBar, "Search", QMainWindow::Top, TRUE );
113 QLabel *label = new QLabel( tr("Search: "), searchBar ); 115 QLabel *label = new QLabel( tr("Search: "), searchBar );
114// label->setBackgroundMode( PaletteForeground ); 116// label->setBackgroundMode( PaletteForeground );
115 searchBar->setHorizontalStretchable( TRUE ); 117 searchBar->setHorizontalStretchable( TRUE );
116 QLineEdit *searchEdit = new QLineEdit( searchBar, "seachEdit" ); 118 QLineEdit *searchEdit = new QLineEdit( searchBar, "seachEdit" );
117 searchBar->setStretchableWidget( searchEdit ); 119 searchBar->setStretchableWidget( searchEdit );
118 connect( searchEdit, SIGNAL( textChanged( const QString & ) ), 120 connect( searchEdit, SIGNAL( textChanged( const QString & ) ),
119 this, SLOT( setSearch( const QString & ) ) ); 121 this, SLOT( setSearch( const QString & ) ) );
120 122
121 123
122} 124}
123 125
124MainWindow::~MainWindow() 126MainWindow::~MainWindow()
125{ 127{
126} 128}
127 129
128void MainWindow::setCurrent(QListViewItem *item) 130void MainWindow::setCurrent(QListViewItem *item)
129{ 131{
130 if (!item) return; 132 if (!item) return;
131 _currentItem = (OListViewItem*)item; 133 _currentItem = (OListViewItem*)item;
132 //_currentItem = dynamic_cast<OListViewItem*>(item); 134 //_currentItem = dynamic_cast<OListViewItem*>(item);
133 if (_currentItem->rtti() == OListViewItem::Result){ 135 if (_currentItem->rtti() == OListViewItem::Result){
134 ResultItem *res = (ResultItem*)item; 136 ResultItem *res = (ResultItem*)item;
135 // ResultItem *res = dynamic_cast<ResultItem*>(item); 137 // ResultItem *res = dynamic_cast<ResultItem*>(item);
136 richEdit->setText( res->toRichText() ); 138 richEdit->setText( res->toRichText() );
137 detailsFrame->show(); 139 detailsFrame->show();
138 }else detailsFrame->hide(); 140 }else detailsFrame->hide();
139 //_currentItem = (OListViewItem*)item; 141 //_currentItem = (OListViewItem*)item;
140 popupTimer->start( 300 ); 142 popupTimer->start( 300 );
141} 143}
142 144
143void MainWindow::stopTimer(QListViewItem*) 145void MainWindow::stopTimer(QListViewItem*)
144{ 146{
145 popupTimer->stop(); 147 popupTimer->stop();
146} 148}
147 149
148void MainWindow::showPopup() 150void MainWindow::showPopup()
149{ 151{
150 qDebug("showPopup"); 152 qDebug("showPopup");
151 if (!_item) return; 153 if (!_item) return;
152} 154}
153 155
154void MainWindow::setSearch( const QString &key ) 156void MainWindow::setSearch( const QString &key )
155{ 157{
156 adrSearch->setSearch(key); 158 adrSearch->setSearch(key);
157 todoSearch->setSearch(key); 159 todoSearch->setSearch(key);
158 datebookSearch->setSearch(key); 160 datebookSearch->setSearch(key);
159 applnkSearch->setSearch(key); 161 applnkSearch->setSearch(key);
162 doclnkSearch->setSearch(key);
160} 163}
161 164
162 165
163void MainWindow::showItem() 166void MainWindow::showItem()
164{ 167{
165 if (_currentItem->rtti() == OListViewItem::Result){ 168 if (_currentItem->rtti() == OListViewItem::Result){
166 ResultItem *res = (ResultItem*)_currentItem; 169 ResultItem *res = (ResultItem*)_currentItem;
167 // ResultItem *res = dynamic_cast<ResultItem*>(item); 170 // ResultItem *res = dynamic_cast<ResultItem*>(item);
168 res->showItem(); 171 res->showItem();
169 } 172 }
170} 173}
171 174
172void MainWindow::editItem() 175void MainWindow::editItem()
173{ 176{
174 if (_currentItem->rtti() == OListViewItem::Result){ 177 if (_currentItem->rtti() == OListViewItem::Result){
175 ResultItem *res = (ResultItem*)_currentItem; 178 ResultItem *res = (ResultItem*)_currentItem;
176 // ResultItem *res = dynamic_cast<ResultItem*>(item); 179 // ResultItem *res = dynamic_cast<ResultItem*>(item);
177 res->editItem(); 180 res->editItem();
178 } 181 }
179} 182}
diff --git a/core/pim/osearch/mainwindow.h b/core/pim/osearch/mainwindow.h
index f79504c..424b4ba 100644
--- a/core/pim/osearch/mainwindow.h
+++ b/core/pim/osearch/mainwindow.h
@@ -1,71 +1,73 @@
1/*************************************************************************** 1/***************************************************************************
2 * * 2 * *
3 * This program is free software; you can redistribute it and/or modify * 3 * This program is free software; you can redistribute it and/or modify *
4 * it under the terms of the GNU General Public License as published by * 4 * it under the terms of the GNU General Public License as published by *
5 * the Free Software Foundation; either version 2 of the License, or * 5 * the Free Software Foundation; either version 2 of the License, or *
6 * (at your option) any later version. * 6 * (at your option) any later version. *
7 * * 7 * *
8 ***************************************************************************/ 8 ***************************************************************************/
9 9
10// (c) 2002 Patrick S. Vogt <tille@handhelds.org> 10// (c) 2002 Patrick S. Vogt <tille@handhelds.org>
11 11
12#ifndef MAINWINDOW_H 12#ifndef MAINWINDOW_H
13#define MAINWINDOW_H 13#define MAINWINDOW_H
14 14
15#include <qmainwindow.h> 15#include <qmainwindow.h>
16#include <qdialog.h> 16#include <qdialog.h>
17#include <qaction.h> 17#include <qaction.h>
18#include <qtimer.h> 18#include <qtimer.h>
19#include <qpopupmenu.h> 19#include <qpopupmenu.h>
20 20
21class QPEToolBar; 21class QPEToolBar;
22class QVBoxLayout; 22class QVBoxLayout;
23class QTextView; 23class QTextView;
24class QFrame; 24class QFrame;
25class QListViewItem; 25class QListViewItem;
26class OListView; 26class OListView;
27class OListViewItem; 27class OListViewItem;
28class AdressSearch; 28class AdressSearch;
29class TodoSearch; 29class TodoSearch;
30class DatebookSearch; 30class DatebookSearch;
31class AppLnkSearch; 31class AppLnkSearch;
32class DocLnkSearch;
32 33
33class MainWindow : public QMainWindow 34class MainWindow : public QMainWindow
34{ 35{
35 Q_OBJECT 36 Q_OBJECT
36 37
37 38
38public: 39public:
39 MainWindow( QWidget *parent = 0, const char *name = 0, WFlags f = 0 ); 40 MainWindow( QWidget *parent = 0, const char *name = 0, WFlags f = 0 );
40 ~MainWindow(); 41 ~MainWindow();
41 42
42 43
43public slots: 44public slots:
44 void setCurrent(QListViewItem*); 45 void setCurrent(QListViewItem*);
45 void showPopup(); 46 void showPopup();
46 void stopTimer( QListViewItem* ); 47 void stopTimer( QListViewItem* );
47 void setSearch( const QString& ); 48 void setSearch( const QString& );
48 49
49protected slots: 50protected slots:
50 void showItem(); 51 void showItem();
51 void editItem(); 52 void editItem();
52 53
53private: 54private:
54 OListView *resultsList; 55 OListView *resultsList;
55 QTextView *richEdit; 56 QTextView *richEdit;
56 OListViewItem *_currentItem; 57 OListViewItem *_currentItem;
57 QVBoxLayout *mainLayout; 58 QVBoxLayout *mainLayout;
58 QFrame *detailsFrame; 59 QFrame *detailsFrame;
59 OListViewItem *_item; 60 OListViewItem *_item;
60 QTimer *popupTimer; 61 QTimer *popupTimer;
61 62
62 AdressSearch *adrSearch; 63 AdressSearch *adrSearch;
63 TodoSearch *todoSearch; 64 TodoSearch *todoSearch;
64 DatebookSearch *datebookSearch; 65 DatebookSearch *datebookSearch;
65 AppLnkSearch *applnkSearch; 66 AppLnkSearch *applnkSearch;
67 DocLnkSearch *doclnkSearch;
66 68
67 void makeMenu(); 69 void makeMenu();
68}; 70};
69 71
70#endif 72#endif
71 73
diff --git a/core/pim/osearch/osearch.pro b/core/pim/osearch/osearch.pro
index 75e90f2..f28b01e 100644
--- a/core/pim/osearch/osearch.pro
+++ b/core/pim/osearch/osearch.pro
@@ -1,36 +1,40 @@
1DEPENDPATH += $(OPIEDIR)/ioclude 1DEPENDPATH += $(OPIEDIR)/ioclude
2LIBS += -lqpe -lopie 2LIBS += -lqpe -lopie
3INTERFACES = 3INTERFACES =
4include ( $(OPIEDIR)/include.pro ) 4include ( $(OPIEDIR)/include.pro )
5TEMPLATE = app 5TEMPLATE = app
6CONFIG += debug warn_on qt 6CONFIG += debug warn_on qt
7DESTDIR = $(OPIEDIR)/bin 7DESTDIR = $(OPIEDIR)/bin
8TARGET = osearch 8TARGET = osearch
9INCLUDEPATH = $(OPIEDIR)/include 9INCLUDEPATH = $(OPIEDIR)/include
10SOURCES += main.cpp \ 10SOURCES += main.cpp \
11 mainwindow.cpp \ 11 mainwindow.cpp \
12 olistview.cpp \ 12 olistview.cpp \
13 olistviewitem.cpp \ 13 olistviewitem.cpp \
14 adresssearch.cpp \ 14 adresssearch.cpp \
15 todosearch.cpp \ 15 todosearch.cpp \
16 datebooksearch.cpp \ 16 datebooksearch.cpp \
17 searchgroup.cpp \ 17 searchgroup.cpp \
18 resultitem.cpp \ 18 resultitem.cpp \
19 todoitem.cpp \ 19 todoitem.cpp \
20 contactitem.cpp \ 20 contactitem.cpp \
21 eventitem.cpp \ 21 eventitem.cpp \
22 applnksearch.cpp \ 22 applnksearch.cpp \
23 applnkitem.cpp 23 applnkitem.cpp \
24 doclnkitem.cpp \
25 doclnksearch.cpp
24HEADERS += mainwindow.h \ 26HEADERS += mainwindow.h \
25 olistview.h \ 27 olistview.h \
26 olistviewitem.h \ 28 olistviewitem.h \
27 adresssearch.h \ 29 adresssearch.h \
28 todosearch.h \ 30 todosearch.h \
29 datebooksearch.h \ 31 datebooksearch.h \
30 searchgroup.h \ 32 searchgroup.h \
31 resultitem.h \ 33 resultitem.h \
32 todoitem.h \ 34 todoitem.h \
33 contactitem.h \ 35 contactitem.h \
34 eventitem.h \ 36 eventitem.h \
35 applnksearch.h \ 37 applnksearch.h \
36 applnkitem.h 38 applnkitem.h \
39 doclnkitem.h \
40 doclnksearch.h