summaryrefslogtreecommitdiff
path: root/core/pim/addressbook/contacteditor.h
Unidiff
Diffstat (limited to 'core/pim/addressbook/contacteditor.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/addressbook/contacteditor.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/pim/addressbook/contacteditor.h b/core/pim/addressbook/contacteditor.h
index 1b86e6f..f3cbbd4 100644
--- a/core/pim/addressbook/contacteditor.h
+++ b/core/pim/addressbook/contacteditor.h
@@ -2,70 +2,69 @@
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 <opie2/opimcontact.h> 24#include <opie2/opimcontact.h>
25#include <opie2/opimcontactfields.h> 25#include <opie2/opimcontactfields.h>
26#include <opie2/otabwidget.h>
26 27
27#include <qpe/datebookmonth.h> 28#include <qpe/datebookmonth.h>
28 29
29#include <qdialog.h> 30#include <qdialog.h>
30#include <qlist.h> 31#include <qlist.h>
31#include <qmap.h> 32#include <qmap.h>
32#include <qstringlist.h> 33#include <qstringlist.h>
33#include <qwidgetstack.h> 34#include <qwidgetstack.h>
34 35
35const int NAME_LF = 0; 36const int NAME_LF = 0;
36const int NAME_LFM = 1; 37const int NAME_LFM = 1;
37const int NAME_FL = 2; 38const int NAME_FL = 2;
38const int NAME_FML = 3; 39const int NAME_FML = 3;
39 40
40const int NAME_F = 4; 41const int NAME_F = 4;
41const int NAME_M = 5; 42const int NAME_M = 5;
42const int NAME_L = 6; 43const int NAME_L = 6;
43const int NAME_S = 7; 44const int NAME_S = 7;
44 45
45
46class QScrollView; 46class QScrollView;
47class QTabWidget;
48class QMultiLineEdit; 47class QMultiLineEdit;
49class QLineEdit; 48class QLineEdit;
50class QComboBox; 49class QComboBox;
51class QPushButton; 50class QPushButton;
52class CategorySelect; 51class CategorySelect;
53class QLabel; 52class QLabel;
54 53
55class ContactEditor : public QDialog { 54class ContactEditor : public QDialog {
56 Q_OBJECT 55 Q_OBJECT
57 56
58 public: 57 public:
59 ContactEditor(const Opie::OPimContact &entry, 58 ContactEditor(const Opie::OPimContact &entry,
60 QWidget *parent = 0, 59 QWidget *parent = 0,
61 const char *name = 0, 60 const char *name = 0,
62 WFlags fl = 0 ); 61 WFlags fl = 0 );
63 ~ContactEditor(); 62 ~ContactEditor();
64 void setNameFocus(); 63 void setNameFocus();
65 void setPersonalView( bool personal = true ); 64 void setPersonalView( bool personal = true );
66 Opie::OPimContact entry() const { return ent; } 65 Opie::OPimContact entry() const { return ent; }
67 66
68 public slots: 67 public slots:
69 void slotNote(); 68 void slotNote();
70 void slotName(); 69 void slotName();
71 void setEntry(const Opie::OPimContact &entry); 70 void setEntry(const Opie::OPimContact &entry);
@@ -123,49 +122,50 @@ class ContactEditor : public QDialog {
123 QList<QLineEdit> listValue; 122 QList<QLineEdit> listValue;
124 QList<QLabel> listName; 123 QList<QLabel> listName;
125 124
126 QStringList slDynamicEntries; 125 QStringList slDynamicEntries;
127 QStringList trlDynamicEntries; 126 QStringList trlDynamicEntries;
128 127
129 bool m_personalView; 128 bool m_personalView;
130 129
131 QStringList slHomeAddress; 130 QStringList slHomeAddress;
132 QStringList slBusinessAddress; 131 QStringList slBusinessAddress;
133 QStringList slChooserNames; 132 QStringList slChooserNames;
134 QStringList slChooserValues; 133 QStringList slChooserValues;
135 QStringList emails; 134 QStringList emails;
136 QString defaultEmail; 135 QString defaultEmail;
137 136
138 QMultiLineEdit *txtNote; 137 QMultiLineEdit *txtNote;
139 QLabel *lblNote; 138 QLabel *lblNote;
140 139
141 //QLineEdit *txtTitle; 140 //QLineEdit *txtTitle;
142 QLineEdit *txtFirstName; 141 QLineEdit *txtFirstName;
143 QLineEdit *txtMiddleName; 142 QLineEdit *txtMiddleName;
144 QLineEdit *txtLastName; 143 QLineEdit *txtLastName;
145 QLineEdit *txtSuffix; 144 QLineEdit *txtSuffix;
146 145
147 QTabWidget *tabMain; 146 Opie::Ui::OTabWidget *tabMain;
147 QWidget *m_generalWidget;
148 QScrollView *svGeneral; 148 QScrollView *svGeneral;
149 QPushButton *btnFullName; 149 QPushButton *btnFullName;
150 QPushButton *btnNote; 150 QPushButton *btnNote;
151 QLineEdit *txtFullName; 151 QLineEdit *txtFullName;
152 QLineEdit *txtJobTitle; 152 QLineEdit *txtJobTitle;
153 QLineEdit *txtOrganization; 153 QLineEdit *txtOrganization;
154 QLineEdit *txtChooserField1; 154 QLineEdit *txtChooserField1;
155 QLineEdit *txtChooserField2; 155 QLineEdit *txtChooserField2;
156 QLineEdit *txtChooserField3; 156 QLineEdit *txtChooserField3;
157 QLineEdit *txtChooserField4; 157 QLineEdit *txtChooserField4;
158 QWidgetStack* m_widgetStack1; 158 QWidgetStack* m_widgetStack1;
159 QWidgetStack* m_widgetStack2; 159 QWidgetStack* m_widgetStack2;
160 QWidgetStack* m_widgetStack3; 160 QWidgetStack* m_widgetStack3;
161 QWidgetStack* m_widgetStack4; 161 QWidgetStack* m_widgetStack4;
162 QComboBox *cmbChooserField1; 162 QComboBox *cmbChooserField1;
163 QComboBox *cmbChooserField2; 163 QComboBox *cmbChooserField2;
164 QComboBox *cmbChooserField3; 164 QComboBox *cmbChooserField3;
165 QComboBox *cmbChooserField4; 165 QComboBox *cmbChooserField4;
166 QComboBox *cmbDefaultEmail; 166 QComboBox *cmbDefaultEmail;
167 QComboBox *cmbFileAs; 167 QComboBox *cmbFileAs;
168 CategorySelect *cmbCat; 168 CategorySelect *cmbCat;
169 QLabel *labCat; 169 QLabel *labCat;
170 170
171 QScrollView *svAddress; 171 QScrollView *svAddress;