Diffstat (limited to 'core/pim/addressbook/abeditor.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/addressbook/abeditor.h | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/core/pim/addressbook/abeditor.h b/core/pim/addressbook/abeditor.h new file mode 100644 index 0000000..9ce6704 --- a/dev/null +++ b/core/pim/addressbook/abeditor.h | |||
@@ -0,0 +1,79 @@ | |||
1 | /********************************************************************** | ||
2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. | ||
3 | ** | ||
4 | ** This file is part of Qt Palmtop Environment. | ||
5 | ** | ||
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 | ||
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | ||
9 | ** packaging of this file. | ||
10 | ** | ||
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. | ||
13 | ** | ||
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | ||
15 | ** | ||
16 | ** Contact info@trolltech.com if any conditions of this licensing are | ||
17 | ** not clear to you. | ||
18 | ** | ||
19 | **********************************************************************/ | ||
20 | #ifndef ABEDITOR_H | ||
21 | #define ABEDITOR_H | ||
22 | |||
23 | #include <qpe/contact.h> | ||
24 | |||
25 | #include <qdialog.h> | ||
26 | #include <qlist.h> | ||
27 | #include <qmap.h> | ||
28 | #include <qstringlist.h> | ||
29 | |||
30 | class QScrollView; | ||
31 | class QMultiLineEdit; | ||
32 | class QLineEdit; | ||
33 | class QLabel; | ||
34 | class QComboBox; | ||
35 | class CategorySelect; | ||
36 | |||
37 | class AbEditor : public QDialog | ||
38 | { | ||
39 | Q_OBJECT | ||
40 | public: | ||
41 | AbEditor( const Contact &entry, const QValueList<int> *newOrdedValues, | ||
42 | QStringList *slNewOrdered, | ||
43 | QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); | ||
44 | ~AbEditor(); | ||
45 | void loadFields(); | ||
46 | void setNameFocus(); | ||
47 | Contact entry() const { return ent; } | ||
48 | |||
49 | public slots: | ||
50 | void slotNote(); | ||
51 | void setEntry( const Contact &entry ); | ||
52 | |||
53 | protected slots: | ||
54 | void accept(); | ||
55 | |||
56 | private: | ||
57 | void init(); | ||
58 | void initMap(); | ||
59 | void saveEntry(); | ||
60 | bool isEmpty(); | ||
61 | |||
62 | private: | ||
63 | QDialog *dlgNote; | ||
64 | QLabel *lblNote; | ||
65 | QMultiLineEdit *txtNote; | ||
66 | Contact ent; | ||
67 | QScrollView *svPage; | ||
68 | QLineEdit *firstEdit; | ||
69 | QLineEdit *lastEdit; | ||
70 | QLineEdit *middleEdit; | ||
71 | QComboBox *genderCombo; | ||
72 | QList<QLineEdit> listValue; | ||
73 | QList<QLabel> listName; | ||
74 | const QValueList<int> *orderedValues; | ||
75 | QStringList *slOrdered; | ||
76 | CategorySelect *cmbCat; | ||
77 | }; | ||
78 | |||
79 | #endif | ||