Diffstat (limited to 'core/pim/osearch/mainwindow.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/osearch/mainwindow.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/pim/osearch/mainwindow.h b/core/pim/osearch/mainwindow.h index bdc6c5f..9886053 100644 --- a/core/pim/osearch/mainwindow.h +++ b/core/pim/osearch/mainwindow.h | |||
@@ -1,86 +1,89 @@ | |||
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-2003 Patrick S. Vogt <tille@handhelds.org> | 10 | // (c) 2002-2003 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 <qlist.h> | 18 | #include <qlist.h> |
19 | 19 | ||
20 | #include <qmap.h> | 20 | #include <qmap.h> |
21 | #include <qtimer.h> | 21 | #include <qtimer.h> |
22 | #include <qpopupmenu.h> | 22 | #include <qpopupmenu.h> |
23 | 23 | ||
24 | class QAction; | 24 | class QAction; |
25 | class QToolBar; | 25 | class QToolBar; |
26 | class QHBox; | 26 | class QHBox; |
27 | class QVBoxLayout; | 27 | class QVBoxLayout; |
28 | class QTextView; | 28 | class QTextView; |
29 | class QFrame; | 29 | class QFrame; |
30 | class OListView; | 30 | class OListView; |
31 | class OListViewItem; | 31 | class OListViewItem; |
32 | class QListViewItem; | 32 | class QListViewItem; |
33 | class QPopupMenu; | 33 | class QPopupMenu; |
34 | class QTimer; | 34 | class QTimer; |
35 | class QLabel; | ||
35 | 36 | ||
36 | class QSignalMapper; | 37 | class QSignalMapper; |
37 | class QButton; | 38 | class QButton; |
38 | 39 | ||
39 | class SearchGroup; | 40 | class SearchGroup; |
40 | 41 | ||
41 | class MainWindow : public QMainWindow | 42 | class MainWindow : public QMainWindow |
42 | { | 43 | { |
43 | Q_OBJECT | 44 | Q_OBJECT |
44 | 45 | ||
45 | 46 | ||
46 | public: | 47 | public: |
47 | MainWindow( QWidget *parent = 0, const char *name = 0, WFlags f = 0 ); | 48 | MainWindow( QWidget *parent = 0, const char *name = 0, WFlags f = 0 ); |
48 | ~MainWindow(); | 49 | ~MainWindow(); |
49 | static QString appName() { return QString::fromLatin1("osearch"); } | 50 | static QString appName() { return QString::fromLatin1("osearch"); } |
50 | 51 | ||
51 | public slots: | 52 | public slots: |
52 | void setCurrent(QListViewItem*); | 53 | void setCurrent(QListViewItem*); |
53 | void setSearch( const QString& ); | 54 | void setSearch( const QString& ); |
54 | void searchAll(); | 55 | void searchAll(); |
55 | 56 | ||
56 | protected slots: | 57 | protected slots: |
57 | void slotAction(int); | 58 | void slotAction(int); |
58 | void showPopup(); | 59 | void showPopup(); |
59 | void stopTimer( QListViewItem* ); | 60 | void stopTimer( QListViewItem* ); |
60 | void searchStringChanged(); | 61 | void searchStringChanged(); |
61 | void optionChanged(int); | 62 | void optionChanged(int); |
62 | 63 | ||
63 | private: | 64 | private: |
64 | QHBox *buttonBox; | 65 | QHBox *buttonBox; |
65 | QMap<int, QButton*> buttonMap; | 66 | QMap<int, QButton*> buttonMap; |
66 | QSignalMapper* signalMapper; | 67 | QSignalMapper* signalMapper; |
67 | OListView *resultsList; | 68 | OListView *resultsList; |
68 | QTextView *richEdit; | 69 | QTextView *richEdit; |
69 | OListViewItem *_currentItem; | 70 | OListViewItem *_currentItem; |
70 | QVBoxLayout *mainLayout; | 71 | QVBoxLayout *mainLayout; |
71 | QFrame *detailsFrame; | 72 | QFrame *detailsFrame; |
72 | QTimer *popupTimer; | 73 | QTimer *popupTimer; |
73 | QTimer *searchTimer; | 74 | QTimer *searchTimer; |
75 | QToolButton* ClearSearchText; | ||
76 | QLabel* LabelEnterText; | ||
74 | 77 | ||
75 | QString _searchString; | 78 | QString _searchString; |
76 | QList<SearchGroup> searches; | 79 | QList<SearchGroup> searches; |
77 | QAction *SearchAllAction; | 80 | QAction *SearchAllAction; |
78 | QAction *actionCaseSensitiv; | 81 | QAction *actionCaseSensitiv; |
79 | QAction *actionWildcards; | 82 | QAction *actionWildcards; |
80 | //QAction *actionWholeWordsOnly; | 83 | //QAction *actionWholeWordsOnly; |
81 | uint _buttonCount; | 84 | uint _buttonCount; |
82 | void makeMenu(); | 85 | void makeMenu(); |
83 | }; | 86 | }; |
84 | 87 | ||
85 | #endif | 88 | #endif |
86 | 89 | ||