author | zautrix <zautrix> | 2005-06-15 21:57:17 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-15 21:57:17 (UTC) |
commit | b8b1547f1f4ae54ace16e5faf55aad1274ec2e57 (patch) (unidiff) | |
tree | 77f755fca963e0ee7675e5948fdcf4f98ba46582 /korganizer | |
parent | 4a9b5ad578e991f6216dc0556022a76223165f15 (diff) | |
download | kdepimpi-b8b1547f1f4ae54ace16e5faf55aad1274ec2e57.zip kdepimpi-b8b1547f1f4ae54ace16e5faf55aad1274ec2e57.tar.gz kdepimpi-b8b1547f1f4ae54ace16e5faf55aad1274ec2e57.tar.bz2 |
compile fix
-rw-r--r-- | korganizer/kofilterview.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/korganizer/kofilterview.h b/korganizer/kofilterview.h index 945947a..5495d60 100644 --- a/korganizer/kofilterview.h +++ b/korganizer/kofilterview.h | |||
@@ -1,77 +1,78 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of KOrganizer. | 2 | This file is part of KOrganizer. |
3 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> | 3 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> |
4 | 4 | ||
5 | This program is free software; you can redistribute it and/or modify | 5 | This program is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published by | 6 | it under the terms of the GNU General Public License as published by |
7 | the Free Software Foundation; either version 2 of the License, or | 7 | the Free Software Foundation; either version 2 of the License, or |
8 | (at your option) any later version. | 8 | (at your option) any later version. |
9 | 9 | ||
10 | This program is distributed in the hope that it will be useful, | 10 | This program is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | GNU General Public License for more details. | 13 | GNU General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License | 15 | You should have received a copy of the GNU General Public License |
16 | along with this program; if not, write to the Free Software | 16 | along with this program; if not, write to the Free Software |
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
18 | 18 | ||
19 | As a special exception, permission is given to link this program | 19 | As a special exception, permission is given to link this program |
20 | with any edition of Qt, and distribute the resulting executable, | 20 | with any edition of Qt, and distribute the resulting executable, |
21 | without including the source code for Qt in the source distribution. | 21 | without including the source code for Qt in the source distribution. |
22 | */ | 22 | */ |
23 | #ifndef KOFILTERVIEW_H | 23 | #ifndef KOFILTERVIEW_H |
24 | #define KOFILTERVIEW_H | 24 | #define KOFILTERVIEW_H |
25 | 25 | ||
26 | #include <qstring.h> | 26 | #include <qstring.h> |
27 | #include <qcheckbox.h> | 27 | #include <qcheckbox.h> |
28 | #include <qlayout.h> | 28 | #include <qlayout.h> |
29 | #include <qlabel.h> | 29 | #include <qlabel.h> |
30 | #include <qdialog.h> | ||
30 | #include <qscrollview.h> | 31 | #include <qscrollview.h> |
31 | #include <qpushbutton.h> | 32 | #include <qpushbutton.h> |
32 | #include <kconfig.h> | 33 | #include <kconfig.h> |
33 | #include "kofilterview_base.h" | 34 | #include "kofilterview_base.h" |
34 | 35 | ||
35 | #include <libkcal/calfilter.h> | 36 | #include <libkcal/calfilter.h> |
36 | 37 | ||
37 | #include <kurlrequester.h> | 38 | #include <kurlrequester.h> |
38 | #include <klineedit.h> | 39 | #include <klineedit.h> |
39 | #include <kglobal.h> | 40 | #include <kglobal.h> |
40 | #include <kmessagebox.h> | 41 | #include <kmessagebox.h> |
41 | 42 | ||
42 | class QGridLayout; | 43 | class QGridLayout; |
43 | 44 | ||
44 | using namespace KCal; | 45 | using namespace KCal; |
45 | 46 | ||
46 | class KONewCalPrefs : public QDialog | 47 | class KONewCalPrefs : public QDialog |
47 | { | 48 | { |
48 | Q_OBJECT | 49 | Q_OBJECT |
49 | public: | 50 | public: |
50 | KONewCalPrefs( QWidget *parent=0, const char *name=0 ) : | 51 | KONewCalPrefs( QWidget *parent=0, const char *name=0 ) : |
51 | QDialog( parent, name, true ) | 52 | QDialog( parent, name, true ) |
52 | { | 53 | { |
53 | setCaption( i18n("Add new Calendar") ); | 54 | setCaption( i18n("Add new Calendar") ); |
54 | QVBoxLayout* lay = new QVBoxLayout( this ); | 55 | QVBoxLayout* lay = new QVBoxLayout( this ); |
55 | lay->setSpacing( 3 ); | 56 | lay->setSpacing( 3 ); |
56 | lay->setMargin( 3 ); | 57 | lay->setMargin( 3 ); |
57 | QLabel * lab = new QLabel( i18n("<b>Name of new calendar:</b>"), this ); | 58 | QLabel * lab = new QLabel( i18n("<b>Name of new calendar:</b>"), this ); |
58 | lay->addWidget( lab ); | 59 | lay->addWidget( lab ); |
59 | nameE = new KLineEdit( this ); | 60 | nameE = new KLineEdit( this ); |
60 | lay->addWidget( nameE ); | 61 | lay->addWidget( nameE ); |
61 | lab = new QLabel( i18n("<b>Local ical (*.ics) file:</b>"), this ); | 62 | lab = new QLabel( i18n("<b>Local ical (*.ics) file:</b>"), this ); |
62 | lay->addWidget( lab ); | 63 | lay->addWidget( lab ); |
63 | url = new KURLRequester ( this ); | 64 | url = new KURLRequester ( this ); |
64 | lay->addWidget( url ); | 65 | lay->addWidget( url ); |
65 | QPushButton * ok = new QPushButton( i18n("OK"), this ); | 66 | QPushButton * ok = new QPushButton( i18n("OK"), this ); |
66 | lay->addWidget( ok ); | 67 | lay->addWidget( ok ); |
67 | QPushButton * cancel = new QPushButton( i18n("Cancel"), this ); | 68 | QPushButton * cancel = new QPushButton( i18n("Cancel"), this ); |
68 | lay->addWidget( cancel ); | 69 | lay->addWidget( cancel ); |
69 | connect ( ok,SIGNAL(clicked() ),this , SLOT ( checkValid() ) ); | 70 | connect ( ok,SIGNAL(clicked() ),this , SLOT ( checkValid() ) ); |
70 | connect (cancel, SIGNAL(clicked() ), this, SLOT ( reject()) ); | 71 | connect (cancel, SIGNAL(clicked() ), this, SLOT ( reject()) ); |
71 | setMinimumWidth( 220 ); | 72 | setMinimumWidth( 220 ); |
72 | resize(sizeHint() ); | 73 | resize(sizeHint() ); |
73 | } | 74 | } |
74 | 75 | ||
75 | QString calName() { return nameE->text(); } | 76 | QString calName() { return nameE->text(); } |
76 | QString calFileName() { return url->url(); } | 77 | QString calFileName() { return url->url(); } |
77 | 78 | ||