Diffstat (limited to 'korganizer/koeditordetails.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | korganizer/koeditordetails.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/korganizer/koeditordetails.cpp b/korganizer/koeditordetails.cpp index 7c4c382..c0e7bdd 100644 --- a/korganizer/koeditordetails.cpp +++ b/korganizer/koeditordetails.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 thse hope that it will be useful, | 10 | This program is distributed in thse 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 <qfiledialog.h> | 25 | #include <qfiledialog.h> |
26 | #include <qlayout.h> | 26 | #include <qlayout.h> |
27 | #include <qvbox.h> | 27 | #include <qvbox.h> |
28 | #include <qbuttongroup.h> | 28 | #include <qbuttongroup.h> |
29 | #include <qvgroupbox.h> | 29 | #include <qvgroupbox.h> |
30 | #include <qwidgetstack.h> | 30 | #include <qwidgetstack.h> |
31 | #include <qdatetime.h> | 31 | #include <qdatetime.h> |
32 | #include <qapp.h> | 32 | #include <qapp.h> |
33 | 33 | ||
34 | #include <klocale.h> | 34 | #include <klocale.h> |
35 | #include <kglobal.h> | 35 | #include <kglobal.h> |
36 | #include <kiconloader.h> | 36 | #include <kiconloader.h> |
37 | #include <kstandarddirs.h> | 37 | #include <kstandarddirs.h> |
38 | #include <kmessagebox.h> | 38 | #include <kmessagebox.h> |
39 | #ifndef KORG_NOKABC | 39 | #ifndef KORG_NOKABC |
40 | #include <kabc/addresseedialog.h> | 40 | #include <kabc/addresseedialog.h> |
41 | #endif | 41 | #endif |
42 | 42 | ||
43 | #include <libkcal/incidence.h> | 43 | #include <libkcal/incidence.h> |
44 | 44 | ||
45 | #include "koprefs.h" | 45 | #include "koprefs.h" |
46 | 46 | ||
47 | #include "koeditordetails.h" | 47 | #include "koeditordetails.h" |
48 | #include "koeditordetails.moc" | ||
49 | 48 | ||
50 | template <> | 49 | template <> |
51 | CustomListViewItem<class Attendee *>::~CustomListViewItem() | 50 | CustomListViewItem<class Attendee *>::~CustomListViewItem() |
52 | { | 51 | { |
53 | delete mData; | 52 | delete mData; |
54 | } | 53 | } |
55 | 54 | ||
56 | template <> | 55 | template <> |
57 | void CustomListViewItem<class Attendee *>::updateItem() | 56 | void CustomListViewItem<class Attendee *>::updateItem() |
58 | { | 57 | { |
59 | setText(0,mData->name()); | 58 | setText(0,mData->name()); |
60 | setText(1,mData->email()); | 59 | setText(1,mData->email()); |
61 | setText(2,mData->roleStr()); | 60 | setText(2,mData->roleStr()); |
62 | setText(3,mData->statusStr()); | 61 | setText(3,mData->statusStr()); |
63 | if (mData->RSVP() && !mData->email().isEmpty()) | 62 | if (mData->RSVP() && !mData->email().isEmpty()) |
64 | setPixmap(4,SmallIcon("mailappt")); | 63 | setPixmap(4,SmallIcon("mailappt")); |
65 | else | 64 | else |
66 | setPixmap(4,SmallIcon("nomailappt")); | 65 | setPixmap(4,SmallIcon("nomailappt")); |
67 | } | 66 | } |
68 | 67 | ||
69 | 68 | ||
70 | KOEditorDetails::KOEditorDetails (int spacing,QWidget* parent,const char* name) | 69 | KOEditorDetails::KOEditorDetails (int spacing,QWidget* parent,const char* name) |
71 | : QWidget( parent, name), mDisableItemUpdate( false ) | 70 | : QWidget( parent, name), mDisableItemUpdate( false ) |
72 | { | 71 | { |
73 | QGridLayout *topLayout = new QGridLayout(this); | 72 | QGridLayout *topLayout = new QGridLayout(this); |
74 | topLayout->setSpacing(spacing); | 73 | topLayout->setSpacing(spacing); |
75 | 74 | ||
76 | QString organizer = KOPrefs::instance()->email(); | 75 | QString organizer = KOPrefs::instance()->email(); |
77 | mOrganizerLabel = new QLabel(i18n("Organizer: %1").arg(organizer),this); | 76 | mOrganizerLabel = new QLabel(i18n("Organizer: %1").arg(organizer),this); |
78 | 77 | ||
79 | mListView = new KListView(this,"mListView"); | 78 | mListView = new KListView(this,"mListView"); |
80 | mListView->addColumn(i18n("Name"),180); | 79 | mListView->addColumn(i18n("Name"),180); |
81 | mListView->addColumn(i18n("Email"),180); | 80 | mListView->addColumn(i18n("Email"),180); |
82 | mListView->addColumn(i18n("Role"),60); | 81 | mListView->addColumn(i18n("Role"),60); |
83 | mListView->addColumn(i18n("Status"),100); | 82 | mListView->addColumn(i18n("Status"),100); |
84 | mListView->addColumn(i18n("RSVP"),35); | 83 | mListView->addColumn(i18n("RSVP"),35); |
85 | if ( KOPrefs::instance()->mCompactDialogs ) { | 84 | if ( KOPrefs::instance()->mCompactDialogs ) { |
86 | //mListView->setFixedHeight(78); | 85 | //mListView->setFixedHeight(78); |
87 | } | 86 | } |
88 | 87 | ||
89 | connect(mListView,SIGNAL(selectionChanged(QListViewItem *)), | 88 | connect(mListView,SIGNAL(selectionChanged(QListViewItem *)), |
90 | SLOT(updateAttendeeInput())); | 89 | SLOT(updateAttendeeInput())); |
91 | 90 | ||
92 | QLabel *attendeeLabel = new QLabel(this); | 91 | QLabel *attendeeLabel = new QLabel(this); |
93 | attendeeLabel->setText(i18n("Name:")); | 92 | attendeeLabel->setText(i18n("Name:")); |
94 | attendeeLabel->setFixedSize( attendeeLabel->sizeHint() ); | 93 | attendeeLabel->setFixedSize( attendeeLabel->sizeHint() ); |
95 | mNameEdit = new QLineEdit(this); | 94 | mNameEdit = new QLineEdit(this); |
96 | connect(mNameEdit,SIGNAL(textChanged(const QString &)), | 95 | connect(mNameEdit,SIGNAL(textChanged(const QString &)), |