-rw-r--r-- | korganizer/searchdialog.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/korganizer/searchdialog.cpp b/korganizer/searchdialog.cpp index efe8774..2e32ac2 100644 --- a/korganizer/searchdialog.cpp +++ b/korganizer/searchdialog.cpp | |||
@@ -1,75 +1,76 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of KOrganizer. | 2 | This file is part of KOrganizer. |
3 | Copyright (c) 1998 Preston Brown | 3 | Copyright (c) 1998 Preston Brown |
4 | Copyright (c) 2000,2001 Cornelius Schumacher <schumacher@kde.org> | 4 | Copyright (c) 2000,2001 Cornelius Schumacher <schumacher@kde.org> |
5 | 5 | ||
6 | This program is free software; you can redistribute it and/or modify | 6 | This program is free software; you can redistribute it and/or modify |
7 | it under the terms of the GNU General Public License as published by | 7 | it under the terms of the GNU General Public License as published by |
8 | the Free Software Foundation; either version 2 of the License, or | 8 | the Free Software Foundation; either version 2 of the License, or |
9 | (at your option) any later version. | 9 | (at your option) any later version. |
10 | 10 | ||
11 | This program is distributed in the hope that it will be useful, | 11 | This program is distributed in the hope that it will be useful, |
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 | GNU General Public License for more details. | 14 | GNU General Public License for more details. |
15 | 15 | ||
16 | You should have received a copy of the GNU General Public License | 16 | You should have received a copy of the GNU General Public License |
17 | along with this program; if not, write to the Free Software | 17 | along with this program; if not, write to the Free Software |
18 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 18 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
19 | 19 | ||
20 | As a special exception, permission is given to link this program | 20 | As a special exception, permission is given to link this program |
21 | with any edition of Qt, and distribute the resulting executable, | 21 | with any edition of Qt, and distribute the resulting executable, |
22 | without including the source code for Qt in the source distribution. | 22 | without including the source code for Qt in the source distribution. |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include <qlayout.h> | 25 | #include <qlayout.h> |
26 | #include <qcheckbox.h> | 26 | #include <qcheckbox.h> |
27 | #include <qgroupbox.h> | 27 | #include <qgroupbox.h> |
28 | #include <qapplication.h> | ||
28 | #include <qlabel.h> | 29 | #include <qlabel.h> |
29 | #include <qlistview.h> | 30 | #include <qlistview.h> |
30 | #include <qwhatsthis.h> | 31 | #include <qwhatsthis.h> |
31 | #include <qlineedit.h> | 32 | #include <qlineedit.h> |
32 | #include <qpushbutton.h> | 33 | #include <qpushbutton.h> |
33 | #include <qhbuttongroup.h> | 34 | #include <qhbuttongroup.h> |
34 | #include <klocale.h> | 35 | #include <klocale.h> |
35 | #include <kmessagebox.h> | 36 | #include <kmessagebox.h> |
36 | 37 | ||
37 | #include <libkdepim/kdateedit.h> | 38 | #include <libkdepim/kdateedit.h> |
38 | 39 | ||
39 | #include "koglobals.h" | 40 | #include "koglobals.h" |
40 | #include "koprefs.h" | 41 | #include "koprefs.h" |
41 | #include "klineedit.h" | 42 | #include "klineedit.h" |
42 | 43 | ||
43 | #include "calendarview.h" | 44 | #include "calendarview.h" |
44 | #include "koviewmanager.h" | 45 | #include "koviewmanager.h" |
45 | #include "searchdialog.h" | 46 | #include "searchdialog.h" |
46 | 47 | ||
47 | SearchDialog::SearchDialog(Calendar *calendar,CalendarView *parent) | 48 | SearchDialog::SearchDialog(Calendar *calendar,CalendarView *parent) |
48 | : QVBox( 0 ) | 49 | : QVBox( 0 ) |
49 | 50 | ||
50 | { | 51 | { |
51 | mCalendar = calendar; | 52 | mCalendar = calendar; |
52 | QFrame *topFrame = new QFrame( this ) ;//plainPage(); | 53 | QFrame *topFrame = new QFrame( this ) ;//plainPage(); |
53 | QVBoxLayout *layout = new QVBoxLayout(topFrame,KDialog::marginHint(),KDialog::spacingHint()); | 54 | QVBoxLayout *layout = new QVBoxLayout(topFrame,KDialog::marginHint(),KDialog::spacingHint()); |
54 | 55 | ||
55 | // Search expression | 56 | // Search expression |
56 | QHBoxLayout *subLayout = new QHBoxLayout(); | 57 | QHBoxLayout *subLayout = new QHBoxLayout(); |
57 | layout->addLayout(subLayout); | 58 | layout->addLayout(subLayout); |
58 | /* | 59 | /* |
59 | searchLabel = new QLabel(topFrame); | 60 | searchLabel = new QLabel(topFrame); |
60 | searchLabel->setText(i18n("Search for:")); | 61 | searchLabel->setText(i18n("Search for:")); |
61 | subLayout->addWidget(searchLabel); | 62 | subLayout->addWidget(searchLabel); |
62 | */ | 63 | */ |
63 | QPushButton *OkButton = new QPushButton( i18n("Search for:"), topFrame ); | 64 | QPushButton *OkButton = new QPushButton( i18n("Search for:"), topFrame ); |
64 | //OkButton->setDefault( true ); | 65 | //OkButton->setDefault( true ); |
65 | connect(OkButton,SIGNAL(clicked()),SLOT(doSearch())); | 66 | connect(OkButton,SIGNAL(clicked()),SLOT(doSearch())); |
66 | subLayout->addWidget(OkButton); | 67 | subLayout->addWidget(OkButton); |
67 | searchEdit = new KLineEdit(topFrame); | 68 | searchEdit = new KLineEdit(topFrame); |
68 | subLayout->addWidget(searchEdit); | 69 | subLayout->addWidget(searchEdit); |
69 | 70 | ||
70 | mAddItems = new QRadioButton( "+ ", topFrame ); | 71 | mAddItems = new QRadioButton( "+ ", topFrame ); |
71 | mSubItems = new QRadioButton( "- ", topFrame ); | 72 | mSubItems = new QRadioButton( "- ", topFrame ); |
72 | mRefineItems = new QRadioButton( "< ", topFrame ); | 73 | mRefineItems = new QRadioButton( "< ", topFrame ); |
73 | subLayout->addWidget( mAddItems ); | 74 | subLayout->addWidget( mAddItems ); |
74 | subLayout->addWidget( mSubItems ); | 75 | subLayout->addWidget( mSubItems ); |
75 | subLayout->addWidget( mRefineItems ); | 76 | subLayout->addWidget( mRefineItems ); |