Diffstat (limited to 'core/pim/addressbook/contacteditor.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/addressbook/contacteditor.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/core/pim/addressbook/contacteditor.h b/core/pim/addressbook/contacteditor.h index a58a860..4f3b56e 100644 --- a/core/pim/addressbook/contacteditor.h +++ b/core/pim/addressbook/contacteditor.h | |||
@@ -41,25 +41,25 @@ const int NAME_S = 7; | |||
41 | 41 | ||
42 | class QScrollView; | 42 | class QScrollView; |
43 | class QTabWidget; | 43 | class QTabWidget; |
44 | class QMultiLineEdit; | 44 | class QMultiLineEdit; |
45 | class QLineEdit; | 45 | class QLineEdit; |
46 | class QComboBox; | 46 | class QComboBox; |
47 | class QPushButton; | 47 | class QPushButton; |
48 | class CategorySelect; | 48 | class CategorySelect; |
49 | class QLabel; | 49 | class QLabel; |
50 | 50 | ||
51 | class ContactEditor : public QDialog { | 51 | class ContactEditor : public QDialog { |
52 | Q_OBJECT | 52 | Q_OBJECT |
53 | 53 | ||
54 | public: | 54 | public: |
55 | ContactEditor(const Contact &entry, | 55 | ContactEditor(const Contact &entry, |
56 | const QValueList<int> *newOrderedValues, | 56 | const QValueList<int> *newOrderedValues, |
57 | QStringList *slNewOrdered, | 57 | QStringList *slNewOrdered, |
58 | QWidget *parent = 0, | 58 | QWidget *parent = 0, |
59 | const char *name = 0, | 59 | const char *name = 0, |
60 | WFlags fl = 0 ); | 60 | WFlags fl = 0 ); |
61 | ~ContactEditor(); | 61 | ~ContactEditor(); |
62 | void loadFields(); | 62 | void loadFields(); |
63 | void setNameFocus(); | 63 | void setNameFocus(); |
64 | Contact entry() const { return ent; } | 64 | Contact entry() const { return ent; } |
65 | 65 | ||
@@ -69,25 +69,25 @@ class ContactEditor : public QDialog { | |||
69 | void setEntry(const Contact &entry); | 69 | void setEntry(const Contact &entry); |
70 | 70 | ||
71 | protected slots: | 71 | protected slots: |
72 | void accept(); | 72 | void accept(); |
73 | 73 | ||
74 | private: | 74 | private: |
75 | void init(); | 75 | void init(); |
76 | void initMap(); | 76 | void initMap(); |
77 | void saveEntry(); | 77 | void saveEntry(); |
78 | bool isEmpty(); | 78 | bool isEmpty(); |
79 | void cleanupFields(); | 79 | void cleanupFields(); |
80 | QString parseName( QString fullName, int type ); | 80 | QString parseName( QString fullName, int type ); |
81 | 81 | ||
82 | private slots: | 82 | private slots: |
83 | void slotChooser1Change( const QString &textChanged ); | 83 | void slotChooser1Change( const QString &textChanged ); |
84 | void slotChooser2Change( const QString &textChanged ); | 84 | void slotChooser2Change( const QString &textChanged ); |
85 | void slotChooser3Change( const QString &textChanged ); | 85 | void slotChooser3Change( const QString &textChanged ); |
86 | void slotChooser4Change( const QString &textChanged ); | 86 | void slotChooser4Change( const QString &textChanged ); |
87 | void slotCmbChooser1Change( int index ); | 87 | void slotCmbChooser1Change( int index ); |
88 | void slotCmbChooser2Change( int index ); | 88 | void slotCmbChooser2Change( int index ); |
89 | void slotCmbChooser3Change( int index ); | 89 | void slotCmbChooser3Change( int index ); |
90 | void slotCmbChooser4Change( int index ); | 90 | void slotCmbChooser4Change( int index ); |
91 | void slotAddressTypeChange( int index ); | 91 | void slotAddressTypeChange( int index ); |
92 | void slotAddressChange( const QString &textChanged ); | 92 | void slotAddressChange( const QString &textChanged ); |
93 | void slotAddress2Change( const QString &textChanged ); | 93 | void slotAddress2Change( const QString &textChanged ); |
@@ -100,31 +100,31 @@ class ContactEditor : public QDialog { | |||
100 | 100 | ||
101 | private: | 101 | private: |
102 | bool useFullName, hasGender, hasTitle, hasCompany, hasNotes, hasStreet, hasStreet2, hasPOBox, hasCity, hasState, hasZip, hasCountry; | 102 | bool useFullName, hasGender, hasTitle, hasCompany, hasNotes, hasStreet, hasStreet2, hasPOBox, hasCity, hasState, hasZip, hasCountry; |
103 | 103 | ||
104 | Contact ent; | 104 | Contact ent; |
105 | 105 | ||
106 | QDialog *dlgNote; | 106 | QDialog *dlgNote; |
107 | QDialog *dlgName; | 107 | QDialog *dlgName; |
108 | 108 | ||
109 | QList<QLineEdit> listValue; | 109 | QList<QLineEdit> listValue; |
110 | QList<QLabel> listName; | 110 | QList<QLabel> listName; |
111 | const QValueList<int> *orderedValues; | 111 | const QValueList<int> *orderedValues; |
112 | QStringList *slOrdered; | 112 | QStringList slOrdered; |
113 | QStringList *slDynamicEntries; | 113 | QStringList slDynamicEntries; |
114 | 114 | ||
115 | QStringList *slHomeAddress; | 115 | QStringList slHomeAddress; |
116 | QStringList *slBusinessAddress; | 116 | QStringList slBusinessAddress; |
117 | QStringList *slChooserNames; | 117 | QStringList slChooserNames; |
118 | QStringList *slChooserValues; | 118 | QStringList slChooserValues; |
119 | 119 | ||
120 | QMultiLineEdit *txtNote; | 120 | QMultiLineEdit *txtNote; |
121 | QLabel *lblNote; | 121 | QLabel *lblNote; |
122 | 122 | ||
123 | //QLineEdit *txtTitle; | 123 | //QLineEdit *txtTitle; |
124 | QLineEdit *txtFirstName; | 124 | QLineEdit *txtFirstName; |
125 | QLineEdit *txtMiddleName; | 125 | QLineEdit *txtMiddleName; |
126 | QLineEdit *txtLastName; | 126 | QLineEdit *txtLastName; |
127 | QLineEdit *txtSuffix; | 127 | QLineEdit *txtSuffix; |
128 | 128 | ||
129 | QTabWidget *tabMain; | 129 | QTabWidget *tabMain; |
130 | QScrollView *svGeneral; | 130 | QScrollView *svGeneral; |
@@ -134,25 +134,25 @@ class ContactEditor : public QDialog { | |||
134 | QLineEdit *txtJobTitle; | 134 | QLineEdit *txtJobTitle; |
135 | QLineEdit *txtOrganization; | 135 | QLineEdit *txtOrganization; |
136 | QLineEdit *txtChooserField1; | 136 | QLineEdit *txtChooserField1; |
137 | QLineEdit *txtChooserField2; | 137 | QLineEdit *txtChooserField2; |
138 | QLineEdit *txtChooserField3; | 138 | QLineEdit *txtChooserField3; |
139 | QLineEdit *txtChooserField4; | 139 | QLineEdit *txtChooserField4; |
140 | QComboBox *cmbChooserField1; | 140 | QComboBox *cmbChooserField1; |
141 | QComboBox *cmbChooserField2; | 141 | QComboBox *cmbChooserField2; |
142 | QComboBox *cmbChooserField3; | 142 | QComboBox *cmbChooserField3; |
143 | QComboBox *cmbChooserField4; | 143 | QComboBox *cmbChooserField4; |
144 | QComboBox *cmbFileAs; | 144 | QComboBox *cmbFileAs; |
145 | CategorySelect *cmbCat; | 145 | CategorySelect *cmbCat; |
146 | 146 | ||
147 | QScrollView *svAddress; | 147 | QScrollView *svAddress; |
148 | QLineEdit *txtAddress; | 148 | QLineEdit *txtAddress; |
149 | //QLineEdit *txtAddress2; | 149 | //QLineEdit *txtAddress2; |
150 | //QLineEdit *txtPOBox; | 150 | //QLineEdit *txtPOBox; |
151 | QLineEdit *txtCity; | 151 | QLineEdit *txtCity; |
152 | QLineEdit *txtState; | 152 | QLineEdit *txtState; |
153 | QLineEdit *txtZip; | 153 | QLineEdit *txtZip; |
154 | QComboBox *cmbAddress; | 154 | QComboBox *cmbAddress; |
155 | QComboBox *cmbCountry; | 155 | QComboBox *cmbCountry; |
156 | 156 | ||
157 | QScrollView *svDetails; | 157 | QScrollView *svDetails; |
158 | QComboBox *cmbGender; | 158 | QComboBox *cmbGender; |