Diffstat (limited to 'core/pim/addressbook/contacteditor.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/pim/addressbook/contacteditor.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/core/pim/addressbook/contacteditor.cpp b/core/pim/addressbook/contacteditor.cpp index 7932781..b1eb042 100644 --- a/core/pim/addressbook/contacteditor.cpp +++ b/core/pim/addressbook/contacteditor.cpp | |||
@@ -1,95 +1,84 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2002 Michael R. Crawford <mike@tuxnami.org> | 2 | * Copyright (c) 2002 Michael R. Crawford <mike@tuxnami.org> |
3 | * Copyright (C) 2002 by Stefan Eilers (eilers.stefan@epost.de) | 3 | * Copyright (C) 2002 by Stefan Eilers (eilers.stefan@epost.de) |
4 | * | 4 | * |
5 | * This file is an add-on for the OPIE Palmtop Environment | 5 | * This file is an add-on for the OPIE Palmtop Environment |
6 | * | 6 | * |
7 | * This file may be distributed and/or modified under the terms of the | 7 | * This file may be distributed and/or modified under the terms of the |
8 | * GNU General Public License version 2 as published by the Free Software | 8 | * GNU General Public License version 2 as published by the Free Software |
9 | * Foundation and appearing in the file LICENSE.GPL included in the pacakaging | 9 | * Foundation and appearing in the file LICENSE.GPL included in the pacakaging |
10 | * of this file. | 10 | * of this file. |
11 | * | 11 | * |
12 | * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 12 | * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
13 | * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 13 | * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
14 | * | 14 | * |
15 | * | 15 | * |
16 | * This is a rewrite of the abeditor.h file, modified to provide a more | 16 | * This is a rewrite of the abeditor.h file, modified to provide a more |
17 | * intuitive interface to TrollTech's original Address Book editor. This | 17 | * intuitive interface to TrollTech's original Address Book editor. This |
18 | * is made to operate exactly in interface with the exception of name. | 18 | * is made to operate exactly in interface with the exception of name. |
19 | * | 19 | * |
20 | */ | 20 | */ |
21 | 21 | ||
22 | #include "contacteditor.h" | 22 | #include "contacteditor.h" |
23 | #include "addresspicker.h" | ||
24 | 23 | ||
25 | #include <qpe/categoryselect.h> | 24 | #include <qpe/categoryselect.h> |
26 | #include <qpe/qpeapplication.h> | 25 | #include <qpe/qpeapplication.h> |
27 | #include <qpe/qpedialog.h> | 26 | #include <qpe/qpedialog.h> |
28 | #include <qpe/timeconversion.h> | ||
29 | #include <opie/ocontact.h> | 27 | #include <opie/ocontact.h> |
30 | #include <qpe/resource.h> | 28 | #include <qpe/resource.h> |
31 | 29 | ||
32 | #include <qcombobox.h> | ||
33 | #include <qlabel.h> | 30 | #include <qlabel.h> |
34 | #include <qtabwidget.h> | 31 | #include <qtabwidget.h> |
35 | #include <qlayout.h> | 32 | #include <qlayout.h> |
36 | #include <qlineedit.h> | 33 | #include <qlineedit.h> |
37 | #include <qmultilineedit.h> | 34 | #include <qmultilineedit.h> |
38 | #include <qscrollview.h> | ||
39 | #include <qtoolbutton.h> | 35 | #include <qtoolbutton.h> |
40 | #include <qpushbutton.h> | ||
41 | #include <qmainwindow.h> | ||
42 | #include <qvaluelist.h> | ||
43 | #include <qpopupmenu.h> | ||
44 | #include <qlistbox.h> | 36 | #include <qlistbox.h> |
45 | #include <qhbox.h> | ||
46 | #include <qaction.h> | ||
47 | #include <qiconset.h> | ||
48 | #include <qmessagebox.h> | 37 | #include <qmessagebox.h> |
49 | #include <qwhatsthis.h> | 38 | #include <qwhatsthis.h> |
50 | 39 | ||
51 | #include <assert.h> | 40 | #include <assert.h> |
52 | 41 | ||
53 | static inline bool containsAlphaNum( const QString &str ); | 42 | static inline bool containsAlphaNum( const QString &str ); |
54 | static inline bool constainsWhiteSpace( const QString &str ); | 43 | static inline bool constainsWhiteSpace( const QString &str ); |
55 | 44 | ||
56 | // helper functions, convert our comma delimited list to proper | 45 | // helper functions, convert our comma delimited list to proper |
57 | // file format... | 46 | // file format... |
58 | void parseEmailFrom( const QString &txt, QString &strDefaultEmail, | 47 | void parseEmailFrom( const QString &txt, QString &strDefaultEmail, |
59 | QString &strAll ); | 48 | QString &strAll ); |
60 | 49 | ||
61 | // helper convert from file format to comma delimited... | 50 | // helper convert from file format to comma delimited... |
62 | void parseEmailTo( const QString &strDefaultEmail, | 51 | void parseEmailTo( const QString &strDefaultEmail, |
63 | const QString &strOtherEmail, QString &strBack ); | 52 | const QString &strOtherEmail, QString &strBack ); |
64 | 53 | ||
65 | ContactEditor::ContactEditor(const OContact &entry, | 54 | ContactEditor::ContactEditor(const OContact &entry, |
66 | QWidget *parent, | 55 | QWidget *parent, |
67 | const char *name, | 56 | const char *name, |
68 | WFlags ) | 57 | WFlags ) |
69 | : QDialog( parent, name, TRUE, WStyle_ContextHelp ), | 58 | : QDialog( parent, name, TRUE, WStyle_ContextHelp ), |
70 | defaultEmailChooserPosition( -1 ), | 59 | defaultEmailChooserPosition( -1 ), |
71 | m_personalView ( false ), | 60 | m_personalView ( false ), |
72 | cmbDefaultEmail( 0 ), | 61 | cmbDefaultEmail( 0 ), |
73 | initializing ( false ) | 62 | initializing ( false ) |
74 | { | 63 | { |
75 | 64 | ||
76 | initializing = true; | 65 | initializing = true; |
77 | 66 | ||
78 | init(); | 67 | init(); |
79 | setEntry( entry ); | 68 | setEntry( entry ); |
80 | // cmbDefaultEmail = 0; | 69 | // cmbDefaultEmail = 0; |
81 | // defaultEmailChooserPosition = -1; | 70 | // defaultEmailChooserPosition = -1; |
82 | 71 | ||
83 | initializing = false; | 72 | initializing = false; |
84 | } | 73 | } |
85 | 74 | ||
86 | ContactEditor::~ContactEditor() { | 75 | ContactEditor::~ContactEditor() { |
87 | } | 76 | } |
88 | 77 | ||
89 | void ContactEditor::init() { | 78 | void ContactEditor::init() { |
90 | qWarning("init() START"); | 79 | qWarning("init() START"); |
91 | 80 | ||
92 | uint i = 0; | 81 | uint i = 0; |
93 | 82 | ||
94 | QStringList trlChooserNames; | 83 | QStringList trlChooserNames; |
95 | 84 | ||