Diffstat (limited to 'core/pim/addressbook/contacteditor.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/addressbook/contacteditor.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/pim/addressbook/contacteditor.h b/core/pim/addressbook/contacteditor.h index e7432ee..72d14a9 100644 --- a/core/pim/addressbook/contacteditor.h +++ b/core/pim/addressbook/contacteditor.h | |||
@@ -1,83 +1,82 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2002 Michael R. Crawford <mike@tuxnami.org> | 2 | * Copyright (c) 2002 Michael R. Crawford <mike@tuxnami.org> |
3 | * | 3 | * |
4 | * This file is an add-on for the OPIE Palmtop Environment | 4 | * This file is an add-on for the OPIE Palmtop Environment |
5 | * | 5 | * |
6 | * This file may be distributed and/or modified under the terms of the | 6 | * This file may be distributed and/or modified under the terms of the |
7 | * GNU General Public License version 2 as published by the Free Software | 7 | * GNU General Public License version 2 as published by the Free Software |
8 | * Foundation and appearing in the file LICENSE.GPL included in the pacakaging | 8 | * Foundation and appearing in the file LICENSE.GPL included in the pacakaging |
9 | * of this file. | 9 | * of this file. |
10 | * | 10 | * |
11 | * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | * | 13 | * |
14 | * | 14 | * |
15 | * This is a rewrite of the abeditor.h file, modified to provide a more | 15 | * This is a rewrite of the abeditor.h file, modified to provide a more |
16 | * intuitive interface to TrollTech's original Address Book editor. This | 16 | * intuitive interface to TrollTech's original Address Book editor. This |
17 | * is made to operate exactly in interface with the exception of name. | 17 | * is made to operate exactly in interface with the exception of name. |
18 | * | 18 | * |
19 | */ | 19 | */ |
20 | 20 | ||
21 | #ifndef CONTACTEDITOR_H | 21 | #ifndef CONTACTEDITOR_H |
22 | #define CONTACTEDITOR_H | 22 | #define CONTACTEDITOR_H |
23 | 23 | ||
24 | #include <opie/ocontact.h> | 24 | #include <opie/ocontact.h> |
25 | #include <opie/ocontactfields.h> | ||
25 | 26 | ||
26 | #include <qpe/datebookmonth.h> | 27 | #include <qpe/datebookmonth.h> |
27 | 28 | ||
28 | #include <qdialog.h> | 29 | #include <qdialog.h> |
29 | #include <qlist.h> | 30 | #include <qlist.h> |
30 | #include <qmap.h> | 31 | #include <qmap.h> |
31 | #include <qstringlist.h> | 32 | #include <qstringlist.h> |
32 | #include <qwidgetstack.h> | 33 | #include <qwidgetstack.h> |
33 | 34 | ||
34 | #include "ocontactfields.h" | ||
35 | |||
36 | const int NAME_LF = 0; | 35 | const int NAME_LF = 0; |
37 | const int NAME_LFM = 1; | 36 | const int NAME_LFM = 1; |
38 | const int NAME_FL = 2; | 37 | const int NAME_FL = 2; |
39 | const int NAME_FML = 3; | 38 | const int NAME_FML = 3; |
40 | 39 | ||
41 | const int NAME_F = 4; | 40 | const int NAME_F = 4; |
42 | const int NAME_M = 5; | 41 | const int NAME_M = 5; |
43 | const int NAME_L = 6; | 42 | const int NAME_L = 6; |
44 | const int NAME_S = 7; | 43 | const int NAME_S = 7; |
45 | 44 | ||
46 | 45 | ||
47 | class QScrollView; | 46 | class QScrollView; |
48 | class QTabWidget; | 47 | class QTabWidget; |
49 | class QMultiLineEdit; | 48 | class QMultiLineEdit; |
50 | class QLineEdit; | 49 | class QLineEdit; |
51 | class QComboBox; | 50 | class QComboBox; |
52 | class QPushButton; | 51 | class QPushButton; |
53 | class CategorySelect; | 52 | class CategorySelect; |
54 | class QLabel; | 53 | class QLabel; |
55 | 54 | ||
56 | class ContactEditor : public QDialog { | 55 | class ContactEditor : public QDialog { |
57 | Q_OBJECT | 56 | Q_OBJECT |
58 | 57 | ||
59 | public: | 58 | public: |
60 | ContactEditor(const OContact &entry, | 59 | ContactEditor(const OContact &entry, |
61 | QWidget *parent = 0, | 60 | QWidget *parent = 0, |
62 | const char *name = 0, | 61 | const char *name = 0, |
63 | WFlags fl = 0 ); | 62 | WFlags fl = 0 ); |
64 | ~ContactEditor(); | 63 | ~ContactEditor(); |
65 | void setNameFocus(); | 64 | void setNameFocus(); |
66 | void setPersonalView( bool personal = true ); | 65 | void setPersonalView( bool personal = true ); |
67 | OContact entry() const { return ent; } | 66 | OContact entry() const { return ent; } |
68 | 67 | ||
69 | public slots: | 68 | public slots: |
70 | void slotNote(); | 69 | void slotNote(); |
71 | void slotName(); | 70 | void slotName(); |
72 | void setEntry(const OContact &entry); | 71 | void setEntry(const OContact &entry); |
73 | 72 | ||
74 | protected slots: | 73 | protected slots: |
75 | void accept(); | 74 | void accept(); |
76 | 75 | ||
77 | private: | 76 | private: |
78 | void init(); | 77 | void init(); |
79 | void saveEntry(); | 78 | void saveEntry(); |
80 | bool isEmpty(); | 79 | bool isEmpty(); |
81 | void cleanupFields(); | 80 | void cleanupFields(); |
82 | void updateDatePicker(); | 81 | void updateDatePicker(); |
83 | QString parseName( QString fullName, int type ); | 82 | QString parseName( QString fullName, int type ); |