Diffstat (limited to 'korganizer/koincidenceeditor.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | korganizer/koincidenceeditor.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/korganizer/koincidenceeditor.cpp b/korganizer/koincidenceeditor.cpp index e10a188..51df123 100644 --- a/korganizer/koincidenceeditor.cpp +++ b/korganizer/koincidenceeditor.cpp | |||
@@ -1,96 +1,95 @@ | |||
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 | 23 | ||
24 | #include <qtooltip.h> | 24 | #include <qtooltip.h> |
25 | #include <qframe.h> | 25 | #include <qframe.h> |
26 | #include <qpixmap.h> | 26 | #include <qpixmap.h> |
27 | #include <qlayout.h> | 27 | #include <qlayout.h> |
28 | #include <qwidgetstack.h> | 28 | #include <qwidgetstack.h> |
29 | #include <qdatetime.h> | 29 | #include <qdatetime.h> |
30 | #include <qdir.h> | 30 | #include <qdir.h> |
31 | 31 | ||
32 | #include <kdebug.h> | 32 | #include <kdebug.h> |
33 | #include <klocale.h> | 33 | #include <klocale.h> |
34 | #include <kstandarddirs.h> | 34 | #include <kstandarddirs.h> |
35 | #include <kmessagebox.h> | 35 | #include <kmessagebox.h> |
36 | #include <kfiledialog.h> | 36 | #include <kfiledialog.h> |
37 | 37 | ||
38 | #include <libkdepim/categoryselectdialog.h> | 38 | #include <libkdepim/categoryselectdialog.h> |
39 | #include <libkdepim/kinputdialog.h> | 39 | #include <libkdepim/kinputdialog.h> |
40 | 40 | ||
41 | #include <libkcal/calendarlocal.h> | 41 | #include <libkcal/calendarlocal.h> |
42 | #include <libkcal/icalformat.h> | 42 | #include <libkcal/icalformat.h> |
43 | 43 | ||
44 | #include "koprefs.h" | 44 | #include "koprefs.h" |
45 | #include "koglobals.h" | 45 | #include "koglobals.h" |
46 | 46 | ||
47 | #include "koincidenceeditor.h" | 47 | #include "koincidenceeditor.h" |
48 | #include "koincidenceeditor.moc" | ||
49 | 48 | ||
50 | KOIncidenceEditor::KOIncidenceEditor( const QString &caption, | 49 | KOIncidenceEditor::KOIncidenceEditor( const QString &caption, |
51 | Calendar *calendar, QWidget *parent ) : | 50 | Calendar *calendar, QWidget *parent ) : |
52 | KDialogBase( Tabbed, caption, Ok | Apply | Cancel |/* Default | */User1, Ok, | 51 | KDialogBase( Tabbed, caption, Ok | Apply | Cancel |/* Default | */User1, Ok, |
53 | parent, caption, true, false ), | 52 | parent, caption, true, false ), |
54 | mSaveTemplateDialog( 0 ) | 53 | mSaveTemplateDialog( 0 ) |
55 | { | 54 | { |
56 | mCalendar = calendar; | 55 | mCalendar = calendar; |
57 | 56 | ||
58 | setButtonText( Default, i18n("Template...") ); | 57 | setButtonText( Default, i18n("Template...") ); |
59 | 58 | ||
60 | QString saveTemplateText; | 59 | QString saveTemplateText; |
61 | // if ( KOPrefs::instance()->mCompactDialogs ) { | 60 | // if ( KOPrefs::instance()->mCompactDialogs ) { |
62 | // showButton( User1, false ); | 61 | // showButton( User1, false ); |
63 | // showButton( Apply, false ); | 62 | // showButton( Apply, false ); |
64 | // } else { | 63 | // } else { |
65 | showButton( Apply, false ); | 64 | showButton( Apply, false ); |
66 | saveTemplateText = i18n("Ok+Agenda"); | 65 | saveTemplateText = i18n("Ok+Agenda"); |
67 | // } | 66 | // } |
68 | setButtonText( User1, saveTemplateText ); | 67 | setButtonText( User1, saveTemplateText ); |
69 | 68 | ||
70 | //mCategoryDialog = new KPIM::CategorySelectDialog( KOPrefs::instance(), this ); | 69 | //mCategoryDialog = new KPIM::CategorySelectDialog( KOPrefs::instance(), this ); |
71 | // KOGlobals::fitDialogToScreen( mCategoryDialog ); | 70 | // KOGlobals::fitDialogToScreen( mCategoryDialog ); |
72 | 71 | ||
73 | //connect(mCategoryDialog,SIGNAL(editCategories()),SIGNAL(editCategories())); | 72 | //connect(mCategoryDialog,SIGNAL(editCategories()),SIGNAL(editCategories())); |
74 | 73 | ||
75 | //connect( this, SIGNAL( defaultClicked() ), SLOT( slotLoadTemplate() ) ); | 74 | //connect( this, SIGNAL( defaultClicked() ), SLOT( slotLoadTemplate() ) ); |
76 | // connect( this, SIGNAL( user1Clicked() ), SLOT( slotSaveTemplate() ) ); | 75 | // connect( this, SIGNAL( user1Clicked() ), SLOT( slotSaveTemplate() ) ); |
77 | connect( this, SIGNAL( user1Clicked() ), SLOT( slotShowIncidence() ) ); | 76 | connect( this, SIGNAL( user1Clicked() ), SLOT( slotShowIncidence() ) ); |
78 | } | 77 | } |
79 | 78 | ||
80 | KOIncidenceEditor::~KOIncidenceEditor() | 79 | KOIncidenceEditor::~KOIncidenceEditor() |
81 | { | 80 | { |
82 | //delete mCategoryDialog; | 81 | //delete mCategoryDialog; |
83 | } | 82 | } |
84 | 83 | ||
85 | void KOIncidenceEditor::setupAttendeesTab() | 84 | void KOIncidenceEditor::setupAttendeesTab() |
86 | { | 85 | { |
87 | QFrame *topFrame = addPage(i18n("Attendees")); | 86 | QFrame *topFrame = addPage(i18n("Attendees")); |
88 | 87 | ||
89 | QBoxLayout *topLayout = new QVBoxLayout(topFrame); | 88 | QBoxLayout *topLayout = new QVBoxLayout(topFrame); |
90 | 89 | ||
91 | mDetails = new KOEditorDetails(spacingHint(),topFrame); | 90 | mDetails = new KOEditorDetails(spacingHint(),topFrame); |
92 | topLayout->addWidget(mDetails); | 91 | topLayout->addWidget(mDetails); |
93 | } | 92 | } |
94 | 93 | ||
95 | 94 | ||
96 | void KOIncidenceEditor::slotApply() | 95 | void KOIncidenceEditor::slotApply() |