summaryrefslogtreecommitdiff
path: root/core/pim/osearch/mainwindow.h
Unidiff
Diffstat (limited to 'core/pim/osearch/mainwindow.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/osearch/mainwindow.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/core/pim/osearch/mainwindow.h b/core/pim/osearch/mainwindow.h
index cba11c5..1f5c4bb 100644
--- a/core/pim/osearch/mainwindow.h
+++ b/core/pim/osearch/mainwindow.h
@@ -4,75 +4,75 @@
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>
17#include <qaction.h>
18#include <qlist.h> 16#include <qlist.h>
19#include <qtimer.h> 17#include <qmap.h>
20#include <qpopupmenu.h>
21 18
19class QAction;
22class QPEToolBar; 20class QPEToolBar;
21class QHBox;
23class QVBoxLayout; 22class QVBoxLayout;
24class QHBoxLayout;
25class QTextView; 23class QTextView;
26class QFrame; 24class QFrame;
27class QListViewItem;
28class OListView; 25class OListView;
29class OListViewItem; 26class OListViewItem;
30class QHButtonGroup; 27class QListViewItem;
31 28class QPopupMenu;
29class QSignalMapper;
30class QTimer;
32class SearchGroup; 31class SearchGroup;
33 32
34class MainWindow : public QMainWindow 33class MainWindow : public QMainWindow
35{ 34{
36 Q_OBJECT 35 Q_OBJECT
37 36
38 37
39public: 38public:
40 MainWindow( QWidget *parent = 0, const char *name = 0, WFlags f = 0 ); 39 MainWindow( QWidget *parent = 0, const char *name = 0, WFlags f = 0 );
41 ~MainWindow(); 40 ~MainWindow();
42 41
43 42
44public slots: 43public slots:
45 void setCurrent(QListViewItem*); 44 void setCurrent(QListViewItem*);
46 void setSearch( const QString& ); 45 void setSearch( const QString& );
47 void searchAll(); 46 void searchAll();
48 47
49protected slots: 48protected slots:
50 void slotAction(int); 49 void slotAction(int);
51 void showPopup(); 50 void showPopup();
52 void stopTimer( QListViewItem* ); 51 void stopTimer( QListViewItem* );
53 void searchStringChanged(); 52 void searchStringChanged();
54 void optionChanged(int); 53 void optionChanged(int);
55 54
56private: 55private:
56 QHBox *buttonBox;
57 QMap<int, QButton*> buttonMap;
58 QSignalMapper* signalMapper;
57 OListView *resultsList; 59 OListView *resultsList;
58 QTextView *richEdit; 60 QTextView *richEdit;
59 OListViewItem *_currentItem; 61 OListViewItem *_currentItem;
60 QVBoxLayout *mainLayout; 62 QVBoxLayout *mainLayout;
61 QHBoxLayout *buttonLayout;
62 QFrame *detailsFrame; 63 QFrame *detailsFrame;
63 QTimer *popupTimer; 64 QTimer *popupTimer;
64 QTimer *searchTimer; 65 QTimer *searchTimer;
65 66
66 QString _searchString; 67 QString _searchString;
67 QList<SearchGroup> searches; 68 QList<SearchGroup> searches;
68 QHButtonGroup *buttonGroupActions;
69 QAction *SearchAllAction; 69 QAction *SearchAllAction;
70 QAction *actionCaseSensitiv; 70 QAction *actionCaseSensitiv;
71 QAction *actionWildcards; 71 QAction *actionWildcards;
72 //QAction *actionWholeWordsOnly; 72 //QAction *actionWholeWordsOnly;
73 uint _buttonCount; 73 uint _buttonCount;
74 void makeMenu(); 74 void makeMenu();
75}; 75};
76 76
77#endif 77#endif
78 78