summaryrefslogtreecommitdiff
path: root/core/pim/addressbook/abeditor.h
authorkergoth <kergoth>2002-01-25 22:14:26 (UTC)
committer kergoth <kergoth>2002-01-25 22:14:26 (UTC)
commit15318cad33835e4e2dc620d033e43cd930676cdd (patch) (unidiff)
treec2fa0399a2c47fda8e2cd0092c73a809d17f68eb /core/pim/addressbook/abeditor.h
downloadopie-15318cad33835e4e2dc620d033e43cd930676cdd.zip
opie-15318cad33835e4e2dc620d033e43cd930676cdd.tar.gz
opie-15318cad33835e4e2dc620d033e43cd930676cdd.tar.bz2
Initial revision
Diffstat (limited to 'core/pim/addressbook/abeditor.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/addressbook/abeditor.h79
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
30class QScrollView;
31class QMultiLineEdit;
32class QLineEdit;
33class QLabel;
34class QComboBox;
35class CategorySelect;
36
37class AbEditor : public QDialog
38{
39 Q_OBJECT
40public:
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
49public slots:
50 void slotNote();
51 void setEntry( const Contact &entry );
52
53protected slots:
54 void accept();
55
56private:
57 void init();
58 void initMap();
59 void saveEntry();
60 bool isEmpty();
61
62private:
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