author | simon <simon> | 2002-03-25 20:18:22 (UTC) |
---|---|---|
committer | simon <simon> | 2002-03-25 20:18:22 (UTC) |
commit | fb6b1e63a784a6724e05f16269126ea49a7ad54b (patch) (unidiff) | |
tree | 371aa324f17cd3615ff8ece5c85abffd902b5c31 | |
parent | b001d834cd1259ea17fd1faf82111a1efdf607db (diff) | |
download | opie-fb6b1e63a784a6724e05f16269126ea49a7ad54b.zip opie-fb6b1e63a784a6724e05f16269126ea49a7ad54b.tar.gz opie-fb6b1e63a784a6724e05f16269126ea49a7ad54b.tar.bz2 |
- no default argument in method implementations
-rw-r--r-- | core/pim/addressbook/abeditor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/pim/addressbook/abeditor.cpp b/core/pim/addressbook/abeditor.cpp index 6354db9..94baa71 100644 --- a/core/pim/addressbook/abeditor.cpp +++ b/core/pim/addressbook/abeditor.cpp | |||
@@ -1,120 +1,120 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. | 2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Qt Palmtop Environment. | 4 | ** This file is part of Qt 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 | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging 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 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | 20 | ||
21 | #include "abeditor.h" | 21 | #include "abeditor.h" |
22 | #include "addresspicker.h" | 22 | #include "addresspicker.h" |
23 | 23 | ||
24 | #include <qpe/categoryselect.h> | 24 | #include <qpe/categoryselect.h> |
25 | #include <qpe/qpeapplication.h> | 25 | #include <qpe/qpeapplication.h> |
26 | #include <qpe/qpedialog.h> | 26 | #include <qpe/qpedialog.h> |
27 | 27 | ||
28 | #include <qcombobox.h> | 28 | #include <qcombobox.h> |
29 | #include <qlabel.h> | 29 | #include <qlabel.h> |
30 | #include <qlayout.h> | 30 | #include <qlayout.h> |
31 | #include <qlineedit.h> | 31 | #include <qlineedit.h> |
32 | #include <qmultilineedit.h> | 32 | #include <qmultilineedit.h> |
33 | #include <qscrollview.h> | 33 | #include <qscrollview.h> |
34 | #include <qtoolbutton.h> | 34 | #include <qtoolbutton.h> |
35 | #include <qpushbutton.h> | 35 | #include <qpushbutton.h> |
36 | #include <qmainwindow.h> | 36 | #include <qmainwindow.h> |
37 | 37 | ||
38 | 38 | ||
39 | static inline bool containsAlphaNum( const QString &str ); | 39 | static inline bool containsAlphaNum( const QString &str ); |
40 | static inline bool constainsWhiteSpace( const QString &str ); | 40 | static inline bool constainsWhiteSpace( const QString &str ); |
41 | 41 | ||
42 | 42 | ||
43 | // helper functions, convert our comma delimited list to proper | 43 | // helper functions, convert our comma delimited list to proper |
44 | // file format... | 44 | // file format... |
45 | void parseEmailFrom( const QString &txt, QString &strDefaultEmail, | 45 | void parseEmailFrom( const QString &txt, QString &strDefaultEmail, |
46 | QString &strAll ); | 46 | QString &strAll ); |
47 | 47 | ||
48 | // helper convert from file format to comma delimited... | 48 | // helper convert from file format to comma delimited... |
49 | void parseEmailTo( const QString &strDefaultEmail, | 49 | void parseEmailTo( const QString &strDefaultEmail, |
50 | const QString &strOtherEmail, QString &strBack ); | 50 | const QString &strOtherEmail, QString &strBack ); |
51 | 51 | ||
52 | 52 | ||
53 | 53 | ||
54 | AbEditor::AbEditor( const Contact &entry, const QValueList<int> *newOrdered, | 54 | AbEditor::AbEditor( const Contact &entry, const QValueList<int> *newOrdered, |
55 | QStringList *slNewOrdered, | 55 | QStringList *slNewOrdered, |
56 | QWidget *parent = 0, const char *name = 0, WFlags fl = 0 ) | 56 | QWidget *parent, const char *name, WFlags fl ) |
57 | : QDialog( parent, name, TRUE, fl ), | 57 | : QDialog( parent, name, TRUE, fl ), |
58 | orderedValues( newOrdered ), | 58 | orderedValues( newOrdered ), |
59 | slOrdered( slNewOrdered ) | 59 | slOrdered( slNewOrdered ) |
60 | { | 60 | { |
61 | init(); | 61 | init(); |
62 | initMap(); | 62 | initMap(); |
63 | setEntry( entry ); | 63 | setEntry( entry ); |
64 | } | 64 | } |
65 | 65 | ||
66 | AbEditor::~AbEditor() | 66 | AbEditor::~AbEditor() |
67 | { | 67 | { |
68 | } | 68 | } |
69 | 69 | ||
70 | void AbEditor::init() | 70 | void AbEditor::init() |
71 | { | 71 | { |
72 | middleEdit = 0; | 72 | middleEdit = 0; |
73 | QVBoxLayout *vb = new QVBoxLayout( this ); | 73 | QVBoxLayout *vb = new QVBoxLayout( this ); |
74 | svPage = new QScrollView( this ); | 74 | svPage = new QScrollView( this ); |
75 | svPage->setHScrollBarMode( QScrollView::AlwaysOff ); | 75 | svPage->setHScrollBarMode( QScrollView::AlwaysOff ); |
76 | vb->addWidget( svPage ); | 76 | vb->addWidget( svPage ); |
77 | svPage->setResizePolicy( QScrollView::AutoOneFit ); | 77 | svPage->setResizePolicy( QScrollView::AutoOneFit ); |
78 | svPage->setFrameStyle( QFrame::NoFrame ); | 78 | svPage->setFrameStyle( QFrame::NoFrame ); |
79 | 79 | ||
80 | QWidget *container = new QWidget( svPage->viewport() ); | 80 | QWidget *container = new QWidget( svPage->viewport() ); |
81 | svPage->addChild( container ); | 81 | svPage->addChild( container ); |
82 | 82 | ||
83 | QGridLayout *gl = new QGridLayout( container, 20, 2, 4, 2 ); | 83 | QGridLayout *gl = new QGridLayout( container, 20, 2, 4, 2 ); |
84 | 84 | ||
85 | QLabel *l = new QLabel( tr("First Name"), container ); | 85 | QLabel *l = new QLabel( tr("First Name"), container ); |
86 | gl->addWidget( l, 0, 0 ); | 86 | gl->addWidget( l, 0, 0 ); |
87 | firstEdit = new QLineEdit( container ); | 87 | firstEdit = new QLineEdit( container ); |
88 | gl->addWidget( firstEdit, 0, 1 ); | 88 | gl->addWidget( firstEdit, 0, 1 ); |
89 | 89 | ||
90 | l = new QLabel( tr("Last Name"), container ); | 90 | l = new QLabel( tr("Last Name"), container ); |
91 | gl->addWidget( l, 1, 0 ); | 91 | gl->addWidget( l, 1, 0 ); |
92 | lastEdit = new QLineEdit( container ); | 92 | lastEdit = new QLineEdit( container ); |
93 | gl->addWidget( lastEdit, 1, 1 ); | 93 | gl->addWidget( lastEdit, 1, 1 ); |
94 | 94 | ||
95 | l = new QLabel( tr("Categories"), container ); | 95 | l = new QLabel( tr("Categories"), container ); |
96 | gl->addWidget( l, 2, 0 ); | 96 | gl->addWidget( l, 2, 0 ); |
97 | 97 | ||
98 | cmbCat = new CategorySelect( container ); | 98 | cmbCat = new CategorySelect( container ); |
99 | gl->addWidget( cmbCat, 2, 1 ); | 99 | gl->addWidget( cmbCat, 2, 1 ); |
100 | 100 | ||
101 | int i; | 101 | int i; |
102 | bool foundGender, | 102 | bool foundGender, |
103 | foundNotes; | 103 | foundNotes; |
104 | foundGender = foundNotes = false; | 104 | foundGender = foundNotes = false; |
105 | QStringList::ConstIterator it = slOrdered->begin(); | 105 | QStringList::ConstIterator it = slOrdered->begin(); |
106 | for ( i = 0; it != slOrdered->end(); i++, ++it ) { | 106 | for ( i = 0; it != slOrdered->end(); i++, ++it ) { |
107 | if ( !foundGender && *it == tr("Gender") ) { | 107 | if ( !foundGender && *it == tr("Gender") ) { |
108 | foundGender = true; | 108 | foundGender = true; |
109 | } else if ( !foundNotes && *it == tr("Notes") ) { | 109 | } else if ( !foundNotes && *it == tr("Notes") ) { |
110 | foundNotes = true; | 110 | foundNotes = true; |
111 | } else { | 111 | } else { |
112 | l = new QLabel( *it, container ); | 112 | l = new QLabel( *it, container ); |
113 | listName.append( l ); | 113 | listName.append( l ); |
114 | gl->addWidget( l, i + 3, 0 ); | 114 | gl->addWidget( l, i + 3, 0 ); |
115 | QLineEdit *e = new QLineEdit( container ); | 115 | QLineEdit *e = new QLineEdit( container ); |
116 | listValue.append( e ); | 116 | listValue.append( e ); |
117 | gl->addWidget( e, i + 3, 1 ); | 117 | gl->addWidget( e, i + 3, 1 ); |
118 | if ( *it == tr( "Middle Name" ) ) | 118 | if ( *it == tr( "Middle Name" ) ) |
119 | middleEdit = e; | 119 | middleEdit = e; |
120 | } | 120 | } |