Diffstat (limited to 'korganizer/calprintplugins.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | korganizer/calprintplugins.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/korganizer/calprintplugins.cpp b/korganizer/calprintplugins.cpp index bc35ca4..9b6dc6e 100644 --- a/korganizer/calprintplugins.cpp +++ b/korganizer/calprintplugins.cpp | |||
@@ -1,80 +1,80 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of KOrganizer. | 2 | This file is part of KOrganizer. |
3 | 3 | ||
4 | Copyright (c) 1998 Preston Brown | 4 | Copyright (c) 1998 Preston Brown |
5 | Copyright (c) 2003 Reinhold Kainhofer <reinhold@kainhofer.com> | 5 | Copyright (c) 2003 Reinhold Kainhofer <reinhold@kainhofer.com> |
6 | Copyright (c) 2003 Cornelius Schumacher <schumacher@kde.org> | 6 | Copyright (c) 2003 Cornelius Schumacher <schumacher@kde.org> |
7 | 7 | ||
8 | This program is free software; you can redistribute it and/or modify | 8 | This program is free software; you can redistribute it and/or modify |
9 | it under the terms of the GNU General Public License as published by | 9 | it under the terms of the GNU General Public License as published by |
10 | the Free Software Foundation; either version 2 of the License, or | 10 | the Free Software Foundation; either version 2 of the License, or |
11 | (at your option) any later version. | 11 | (at your option) any later version. |
12 | 12 | ||
13 | This program is distributed in the hope that it will be useful, | 13 | This program is distributed in the hope that it will be useful, |
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 | GNU General Public License for more details. | 16 | GNU General Public License for more details. |
17 | 17 | ||
18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License |
19 | along with this program; if not, write to the Free Software | 19 | along with this program; if not, write to the Free Software |
20 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 20 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
21 | 21 | ||
22 | As a special exception, permission is given to link this program | 22 | As a special exception, permission is given to link this program |
23 | with any edition of Qt, and distribute the resulting executable, | 23 | with any edition of Qt, and distribute the resulting executable, |
24 | without including the source code for Qt in the source distribution. | 24 | without including the source code for Qt in the source distribution. |
25 | */ | 25 | */ |
26 | 26 | ||
27 | #include <qpainter.h> | 27 | #include <qpainter.h> |
28 | #include <qdatetimeedit.h> | 28 | #include <q3datetimeedit.h> |
29 | #include <qdatetime.h> | 29 | #include <qdatetime.h> |
30 | #include <qcheckbox.h> | 30 | #include <qcheckbox.h> |
31 | #include <qlineedit.h> | 31 | #include <qlineedit.h> |
32 | #include <qbuttongroup.h> | 32 | #include <q3buttongroup.h> |
33 | 33 | ||
34 | #include <kglobal.h> | 34 | #include <kglobal.h> |
35 | #include <klocale.h> | 35 | #include <klocale.h> |
36 | #include <kdebug.h> | 36 | #include <kdebug.h> |
37 | #include <kprinter.h> | 37 | #include <kprinter.h> |
38 | #include <kconfig.h> | 38 | #include <kconfig.h> |
39 | #include <kcalendarsystem.h> | 39 | #include <kcalendarsystem.h> |
40 | 40 | ||
41 | #include <libkcal/todo.h> | 41 | #include <libkcal/todo.h> |
42 | #include <libkcal/calendar.h> | 42 | #include <libkcal/calendar.h> |
43 | 43 | ||
44 | #include <libkdepim/kdateedit.h> | 44 | #include <libkdepim/kdateedit.h> |
45 | 45 | ||
46 | #include "koprefs.h" | 46 | #include "koprefs.h" |
47 | #include "koglobals.h" | 47 | #include "koglobals.h" |
48 | #include "calprintplugins.h" | 48 | #include "calprintplugins.h" |
49 | #ifndef KORG_NOPRINTER | 49 | #ifndef KORG_NOPRINTER |
50 | 50 | ||
51 | //#include "calprintplugins.moc" | 51 | //#include "calprintplugins.moc" |
52 | 52 | ||
53 | #define LEFT_DISTANCE 45 | 53 | #define LEFT_DISTANCE 45 |
54 | 54 | ||
55 | /************************************************************** | 55 | /************************************************************** |
56 | * Print Day | 56 | * Print Day |
57 | **************************************************************/ | 57 | **************************************************************/ |
58 | 58 | ||
59 | CalPrintDay::CalPrintDay( KPrinter *printer, Calendar *cal, KConfig *cfg ) | 59 | CalPrintDay::CalPrintDay( KPrinter *printer, Calendar *cal, KConfig *cfg ) |
60 | : CalPrintBase( printer, cal, cfg ) | 60 | : CalPrintBase( printer, cal, cfg ) |
61 | { | 61 | { |
62 | } | 62 | } |
63 | 63 | ||
64 | CalPrintDay::~CalPrintDay() | 64 | CalPrintDay::~CalPrintDay() |
65 | { | 65 | { |
66 | } | 66 | } |
67 | 67 | ||
68 | QWidget *CalPrintDay::configWidget( QWidget *w ) | 68 | QWidget *CalPrintDay::configWidget( QWidget *w ) |
69 | { | 69 | { |
70 | mConfigWidget = new CalPrintDayConfig_Base( w ); | 70 | mConfigWidget = new CalPrintDayConfig_Base( w ); |
71 | setSettingsWidget(); | 71 | setSettingsWidget(); |
72 | return mConfigWidget; | 72 | return mConfigWidget; |
73 | } | 73 | } |
74 | 74 | ||
75 | void CalPrintDay::readSettingsWidget() | 75 | void CalPrintDay::readSettingsWidget() |
76 | { | 76 | { |
77 | CalPrintDayConfig_Base *cfg = mConfigWidget; | 77 | CalPrintDayConfig_Base *cfg = mConfigWidget; |
78 | if ( cfg ) { | 78 | if ( cfg ) { |
79 | mFromDate = cfg->mFromDate->date(); | 79 | mFromDate = cfg->mFromDate->date(); |
80 | mToDate = cfg->mToDate->date(); | 80 | mToDate = cfg->mToDate->date(); |