author | tille <tille> | 2003-05-11 19:19:30 (UTC) |
---|---|---|
committer | tille <tille> | 2003-05-11 19:19:30 (UTC) |
commit | 43c18630840a98aed8deb96b454957c40f0a4344 (patch) (unidiff) | |
tree | 60e5b68d1d172c77560d5af7bea83e81be7144a6 /core/pim/osearch/mainwindow.h | |
parent | 38dc2fd6258f11ba0507c7bd8f8dfd5b39bc0df5 (diff) | |
download | opie-43c18630840a98aed8deb96b454957c40f0a4344.zip opie-43c18630840a98aed8deb96b454957c40f0a4344.tar.gz opie-43c18630840a98aed8deb96b454957c40f0a4344.tar.bz2 |
improved applnk and doclnk searching
clean up:
- mainwindow: handling of searchgroups
- searchgroups: introduced load, search and insertItem functions
- flexible actions handling
- doclnksearch inherits applnksearch
-rw-r--r-- | core/pim/osearch/mainwindow.h | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/core/pim/osearch/mainwindow.h b/core/pim/osearch/mainwindow.h index 424b4ba..f6ae0a4 100644 --- a/core/pim/osearch/mainwindow.h +++ b/core/pim/osearch/mainwindow.h | |||
@@ -15,21 +15,21 @@ | |||
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 <qlist.h> | ||
18 | #include <qtimer.h> | 19 | #include <qtimer.h> |
19 | #include <qpopupmenu.h> | 20 | #include <qpopupmenu.h> |
20 | 21 | ||
21 | class QPEToolBar; | 22 | class QPEToolBar; |
22 | class QVBoxLayout; | 23 | class QVBoxLayout; |
24 | class QHBoxLayout; | ||
23 | class QTextView; | 25 | class QTextView; |
24 | class QFrame; | 26 | class QFrame; |
25 | class QListViewItem; | 27 | class QListViewItem; |
26 | class OListView; | 28 | class OListView; |
27 | class OListViewItem; | 29 | class OListViewItem; |
28 | class AdressSearch; | 30 | class QHButtonGroup; |
29 | class TodoSearch; | 31 | |
30 | class DatebookSearch; | 32 | class SearchGroup; |
31 | class AppLnkSearch; | ||
32 | class DocLnkSearch; | ||
33 | 33 | ||
34 | class MainWindow : public QMainWindow | 34 | class MainWindow : public QMainWindow |
35 | { | 35 | { |
@@ -48,24 +48,21 @@ public slots: | |||
48 | void setSearch( const QString& ); | 48 | void setSearch( const QString& ); |
49 | 49 | ||
50 | protected slots: | 50 | protected slots: |
51 | void showItem(); | 51 | void slotAction(int); |
52 | void editItem(); | ||
53 | 52 | ||
54 | private: | 53 | private: |
55 | OListView *resultsList; | 54 | OListView *resultsList; |
56 | QTextView *richEdit; | 55 | QTextView *richEdit; |
57 | OListViewItem *_currentItem; | 56 | OListViewItem *_currentItem; |
58 | QVBoxLayout *mainLayout; | 57 | QVBoxLayout *mainLayout; |
58 | QHBoxLayout *buttonLayout; | ||
59 | QFrame *detailsFrame; | 59 | QFrame *detailsFrame; |
60 | OListViewItem *_item; | 60 | // OListViewItem *_item; |
61 | QTimer *popupTimer; | 61 | QTimer *popupTimer; |
62 | 62 | ||
63 | AdressSearch *adrSearch; | 63 | QList<SearchGroup> searches; |
64 | TodoSearch *todoSearch; | 64 | QHButtonGroup *buttonGroupActions; |
65 | DatebookSearch *datebookSearch; | 65 | uint _buttonCount; |
66 | AppLnkSearch *applnkSearch; | ||
67 | DocLnkSearch *doclnkSearch; | ||
68 | |||
69 | void makeMenu(); | 66 | void makeMenu(); |
70 | }; | 67 | }; |
71 | 68 | ||