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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/pim/addressbook/contacteditor.h b/core/pim/addressbook/contacteditor.h
index a799672..a58a860 100644
--- a/core/pim/addressbook/contacteditor.h
+++ b/core/pim/addressbook/contacteditor.h
@@ -62,97 +62,101 @@ class ContactEditor : public QDialog {
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
66 public slots: 66 public slots:
67 void slotNote(); 67 void slotNote();
68 void slotName(); 68 void slotName();
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 slotCmbChooser1Change( int index ); 87 void slotCmbChooser1Change( int index );
87 void slotCmbChooser2Change( int index ); 88 void slotCmbChooser2Change( int index );
88 void slotCmbChooser3Change( int index ); 89 void slotCmbChooser3Change( int index );
90 void slotCmbChooser4Change( int index );
89 void slotAddressTypeChange( int index ); 91 void slotAddressTypeChange( int index );
90 void slotAddressChange( const QString &textChanged ); 92 void slotAddressChange( const QString &textChanged );
91 void slotAddress2Change( const QString &textChanged ); 93 void slotAddress2Change( const QString &textChanged );
92 void slotPOBoxChange( const QString &textChanged ); 94 void slotPOBoxChange( const QString &textChanged );
93 void slotCityChange( const QString &textChanged ); 95 void slotCityChange( const QString &textChanged );
94 void slotStateChange( const QString &textChanged ); 96 void slotStateChange( const QString &textChanged );
95 void slotZipChange( const QString &textChanged ); 97 void slotZipChange( const QString &textChanged );
96 void slotCountryChange( const QString &textChanged ); 98 void slotCountryChange( const QString &textChanged );
97 void slotFullNameChange( const QString &textChanged ); 99 void slotFullNameChange( const QString &textChanged );
98 100
99 private: 101 private:
100 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;
101 103
102 Contact ent; 104 Contact ent;
103 105
104 QDialog *dlgNote; 106 QDialog *dlgNote;
105 QDialog *dlgName; 107 QDialog *dlgName;
106 108
107 QList<QLineEdit> listValue; 109 QList<QLineEdit> listValue;
108 QList<QLabel> listName; 110 QList<QLabel> listName;
109 const QValueList<int> *orderedValues; 111 const QValueList<int> *orderedValues;
110 QStringList *slOrdered; 112 QStringList *slOrdered;
111 QStringList *slDynamicEntries; 113 QStringList *slDynamicEntries;
112 114
113 QStringList *slHomeAddress; 115 QStringList *slHomeAddress;
114 QStringList *slBusinessAddress; 116 QStringList *slBusinessAddress;
115 QStringList *slChooserNames; 117 QStringList *slChooserNames;
116 QStringList *slChooserValues; 118 QStringList *slChooserValues;
117 119
118 QMultiLineEdit *txtNote; 120 QMultiLineEdit *txtNote;
119 QLabel *lblNote; 121 QLabel *lblNote;
120 122
121 //QLineEdit *txtTitle; 123 //QLineEdit *txtTitle;
122 QLineEdit *txtFirstName; 124 QLineEdit *txtFirstName;
123 QLineEdit *txtMiddleName; 125 QLineEdit *txtMiddleName;
124 QLineEdit *txtLastName; 126 QLineEdit *txtLastName;
125 QLineEdit *txtSuffix; 127 QLineEdit *txtSuffix;
126 128
127 QTabWidget *tabMain; 129 QTabWidget *tabMain;
128 QScrollView *svGeneral; 130 QScrollView *svGeneral;
129 QPushButton *btnFullName; 131 QPushButton *btnFullName;
130 QPushButton *btnNote; 132 QPushButton *btnNote;
131 QLineEdit *txtFullName; 133 QLineEdit *txtFullName;
132 QLineEdit *txtJobTitle; 134 QLineEdit *txtJobTitle;
133 QLineEdit *txtOrganization; 135 QLineEdit *txtOrganization;
134 QLineEdit *txtChooserField1; 136 QLineEdit *txtChooserField1;
135 QLineEdit *txtChooserField2; 137 QLineEdit *txtChooserField2;
136 QLineEdit *txtChooserField3; 138 QLineEdit *txtChooserField3;
139 QLineEdit *txtChooserField4;
137 QComboBox *cmbChooserField1; 140 QComboBox *cmbChooserField1;
138 QComboBox *cmbChooserField2; 141 QComboBox *cmbChooserField2;
139 QComboBox *cmbChooserField3; 142 QComboBox *cmbChooserField3;
143 QComboBox *cmbChooserField4;
140 QComboBox *cmbFileAs; 144 QComboBox *cmbFileAs;
141 CategorySelect *cmbCat; 145 CategorySelect *cmbCat;
142 146
143 QScrollView *svAddress; 147 QScrollView *svAddress;
144 QLineEdit *txtAddress; 148 QLineEdit *txtAddress;
145 //QLineEdit *txtAddress2; 149 //QLineEdit *txtAddress2;
146 //QLineEdit *txtPOBox; 150 //QLineEdit *txtPOBox;
147 QLineEdit *txtCity; 151 QLineEdit *txtCity;
148 QLineEdit *txtState; 152 QLineEdit *txtState;
149 QLineEdit *txtZip; 153 QLineEdit *txtZip;
150 QComboBox *cmbAddress; 154 QComboBox *cmbAddress;
151 QComboBox *cmbCountry; 155 QComboBox *cmbCountry;
152 156
153 QScrollView *svDetails; 157 QScrollView *svDetails;
154 QComboBox *cmbGender; 158 QComboBox *cmbGender;
155 159
156}; 160};
157 161
158#endif 162#endif