summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-11-25 07:40:25 (UTC)
committer zautrix <zautrix>2005-11-25 07:40:25 (UTC)
commitd0de047797095f1862f4ff77b8dcd0d22643882d (patch) (unidiff)
treef2371012b7929d93bf4609e4b10e77be2f8b7d08
parent59a3afa458bfb17314017d39c44b102bebb82fa7 (diff)
downloadkdepimpi-d0de047797095f1862f4ff77b8dcd0d22643882d.zip
kdepimpi-d0de047797095f1862f4ff77b8dcd0d22643882d.tar.gz
kdepimpi-d0de047797095f1862f4ff77b8dcd0d22643882d.tar.bz2
compile fix
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--kaddressbook/addresseeeditorwidget.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/kaddressbook/addresseeeditorwidget.h b/kaddressbook/addresseeeditorwidget.h
index 1703e2f..df9965d 100644
--- a/kaddressbook/addresseeeditorwidget.h
+++ b/kaddressbook/addresseeeditorwidget.h
@@ -1,123 +1,124 @@
1/* 1/*
2 This file is part of KAddressBook. 2 This file is part of KAddressBook.
3 Copyright (c) 2002 Mike Pilone <mpilone@slac.com> 3 Copyright (c) 2002 Mike Pilone <mpilone@slac.com>
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#ifndef ADDRESSEEEDITORWIDGET_H 24#ifndef ADDRESSEEEDITORWIDGET_H
25#define ADDRESSEEEDITORWIDGET_H 25#define ADDRESSEEEDITORWIDGET_H
26 26
27#include <qdatetime.h> 27#include <qdatetime.h>
28#include <qpopupmenu.h>
28 29
29#include <kabc/addressee.h> 30#include <kabc/addressee.h>
30#include <kdialogbase.h> 31#include <kdialogbase.h>
31#include <kjanuswidget.h> 32#include <kjanuswidget.h>
32 33
33#include "extensionwidget.h" 34#include "extensionwidget.h"
34 35
35class AddresseeConfig; 36class AddresseeConfig;
36class QCheckBox; 37class QCheckBox;
37class QSpinBox; 38class QSpinBox;
38class QTabWidget; 39class QTabWidget;
39 40
40#ifndef KAB_EMBEDDED 41#ifndef KAB_EMBEDDED
41class QTextEdit; 42class QTextEdit;
42#else //KAB_EMBEDDED 43#else //KAB_EMBEDDED
43class QMultiLineEdit; 44class QMultiLineEdit;
44#endif //KAB_EMBEDDED 45#endif //KAB_EMBEDDED
45 46
46class KComboBox; 47class KComboBox;
47class KDateEdit; 48class KDateEdit;
48class KLineEdit; 49class KLineEdit;
49class KSqueezedTextLabel; 50class KSqueezedTextLabel;
50 51
51class AddressEditWidget; 52class AddressEditWidget;
52class EmailEditWidget; 53class EmailEditWidget;
53class GeoWidget; 54class GeoWidget;
54class ImageWidget; 55class ImageWidget;
55class KABCore; 56class KABCore;
56class KeyWidget; 57class KeyWidget;
57class PhoneEditWidget; 58class PhoneEditWidget;
58class SecrecyWidget; 59class SecrecyWidget;
59class SoundWidget; 60class SoundWidget;
60 61
61namespace KPIM 62namespace KPIM
62{ 63{
63 class CategorySelectDialog; 64 class CategorySelectDialog;
64 class CategoryEditDialog; 65 class CategoryEditDialog;
65} 66}
66 67
67namespace KABC { class AddressBook; } 68namespace KABC { class AddressBook; }
68 69
69class AddresseeEditorWidget : public ExtensionWidget 70class AddresseeEditorWidget : public ExtensionWidget
70{ 71{
71 Q_OBJECT 72 Q_OBJECT
72 73
73 public: 74 public:
74 AddresseeEditorWidget( KABCore *core, bool isExtension, 75 AddresseeEditorWidget( KABCore *core, bool isExtension,
75 QWidget *parent, const char *name = 0 ); 76 QWidget *parent, const char *name = 0 );
76 ~AddresseeEditorWidget(); 77 ~AddresseeEditorWidget();
77 78
78 void setAddressee( const KABC::Addressee& ); 79 void setAddressee( const KABC::Addressee& );
79 const KABC::Addressee &addressee(); 80 const KABC::Addressee &addressee();
80 81
81 void contactsSelectionChanged(); 82 void contactsSelectionChanged();
82 83
83 void load(); 84 void load();
84 void save(); 85 void save();
85 86
86 bool dirty(); 87 bool dirty();
87 88
88 QString title() const; 89 QString title() const;
89 QString identifier() const; 90 QString identifier() const;
90 91
91 protected slots: 92 protected slots:
92 void showCatPopup(); 93 void showCatPopup();
93 void selectedCatPopup( int ); 94 void selectedCatPopup( int );
94 void setRole2FN(); 95 void setRole2FN();
95 void setCompany2FN(); 96 void setCompany2FN();
96 void textChanged( const QString& ); 97 void textChanged( const QString& );
97 void pageChanged( QWidget *wdg ); 98 void pageChanged( QWidget *wdg );
98 99
99 /** 100 /**
100 Emits the modified signal and sets the dirty flag. Any slot 101 Emits the modified signal and sets the dirty flag. Any slot
101 that modifies data should use this method instead of calling emit 102 that modifies data should use this method instead of calling emit
102 modified() directly. 103 modified() directly.
103 */ 104 */
104 void emitModified(); 105 void emitModified();
105 106
106 void dateChanged( QDate ); 107 void dateChanged( QDate );
107 void invalidDate(); 108 void invalidDate();
108 void nameTextChanged( const QString& ); 109 void nameTextChanged( const QString& );
109 void nameBoxChanged(); 110 void nameBoxChanged();
110 void nameButtonClicked(); 111 void nameButtonClicked();
111 void categoryButtonClicked(); 112 void categoryButtonClicked();
112 113
113 /** 114 /**
114 Called whenever the categories change in the categories dialog. 115 Called whenever the categories change in the categories dialog.
115 */ 116 */
116 void categoriesSelected( const QStringList& ); 117 void categoriesSelected( const QStringList& );
117 118
118 /** 119 /**
119 Edits which categories are available in the CategorySelectDialog. 120 Edits which categories are available in the CategorySelectDialog.
120 */ 121 */
121 void editCategories(); 122 void editCategories();
122 123
123 private: 124 private: