author | tille <tille> | 2003-05-17 10:38:52 (UTC) |
---|---|---|
committer | tille <tille> | 2003-05-17 10:38:52 (UTC) |
commit | cdf3ec6993eebb80c96258c1bb217594ea442544 (patch) (unidiff) | |
tree | e0323d8011928c11aecc747535fcf8ae521d70c3 /core/pim/osearch/mainwindow.h | |
parent | f6c30fa4d0e97b0256a7b40554f70b5c08895d80 (diff) | |
download | opie-cdf3ec6993eebb80c96258c1bb217594ea442544.zip opie-cdf3ec6993eebb80c96258c1bb217594ea442544.tar.gz opie-cdf3ec6993eebb80c96258c1bb217594ea442544.tar.bz2 |
(layout) fixes from zecke (for 0.99)
and some minor things...
Diffstat (limited to 'core/pim/osearch/mainwindow.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/osearch/mainwindow.h | 22 |
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 | ||
19 | class QAction; | ||
22 | class QPEToolBar; | 20 | class QPEToolBar; |
21 | class QHBox; | ||
23 | class QVBoxLayout; | 22 | class QVBoxLayout; |
24 | class QHBoxLayout; | ||
25 | class QTextView; | 23 | class QTextView; |
26 | class QFrame; | 24 | class QFrame; |
27 | class QListViewItem; | ||
28 | class OListView; | 25 | class OListView; |
29 | class OListViewItem; | 26 | class OListViewItem; |
30 | class QHButtonGroup; | 27 | class QListViewItem; |
31 | 28 | class QPopupMenu; | |
29 | class QSignalMapper; | ||
30 | class QTimer; | ||
32 | class SearchGroup; | 31 | class SearchGroup; |
33 | 32 | ||
34 | class MainWindow : public QMainWindow | 33 | class MainWindow : public QMainWindow |
35 | { | 34 | { |
36 | Q_OBJECT | 35 | Q_OBJECT |
37 | 36 | ||
38 | 37 | ||
39 | public: | 38 | public: |
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 | ||
44 | public slots: | 43 | public 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 | ||
49 | protected slots: | 48 | protected 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 | ||
56 | private: | 55 | private: |
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 | ||