24 #ifndef ADDRESSEEEDITORWIDGET_H
25 #define ADDRESSEEEDITORWIDGET_H
27 #include <tqdatetime.h>
29 #include <tdeabc/addressee.h>
30 #include <kdialogbase.h>
31 #include <kjanuswidget.h>
33 #include "addresseeeditorbase.h"
34 #include "contacteditorwidgetmanager.h"
35 #include "extensionwidget.h"
45 class KSqueezedTextLabel;
59 class AddresseeLineEdit;
60 class CategorySelectDialog;
61 class CategoryEditDialog;
64 namespace TDEABC {
class AddressBook; }
66 class AddresseeEditorWidget :
public AddresseeEditorBase
72 AddresseeEditorWidget( TQWidget *parent,
const char *name = 0 );
73 ~AddresseeEditorWidget();
75 void setAddressee(
const TDEABC::Addressee& );
76 const TDEABC::Addressee &addressee();
83 void setInitialFocus();
88 void textChanged(
const TQString& );
89 void pageChanged( TQWidget *wdg );
98 void dateChanged(
const TQDate& );
100 void nameTextChanged(
const TQString& );
101 void organizationTextChanged(
const TQString& );
102 void nameBoxChanged();
103 void nameButtonClicked();
104 void selectCategories();
109 void categoriesSelected(
const TQStringList& );
114 void editCategories();
120 void setupAdditionalTabs();
121 void setupCustomFieldsTabs();
123 void setReadOnly(
bool );
125 TDEABC::Addressee mAddressee;
126 int mFormattedNameType;
132 KPIM::CategorySelectDialog *mCategorySelectDialog;
133 KPIM::CategoryEditDialog *mCategoryEditDialog;
134 TQTabWidget *mTabWidget;
137 KLineEdit *mNameEdit;
138 KLineEdit *mRoleEdit;
140 KSqueezedTextLabel *mFormattedNameLabel;
146 KLineEdit *mBlogEdit;
147 TQPushButton *mCategoryButton;
148 KLineEdit *mCategoryEdit;
149 SecrecyWidget *mSecrecyWidget;
150 KSqueezedTextLabel *mNameLabel;
153 KLineEdit *mDepartmentEdit;
154 KLineEdit *mOfficeEdit;
155 KLineEdit *mProfessionEdit;
156 KLineEdit *mTitleEdit;
157 KPIM::AddresseeLineEdit *mManagerEdit;
158 KPIM::AddresseeLineEdit *mAssistantEdit;
159 KLineEdit *mNicknameEdit;
160 KPIM::AddresseeLineEdit *mSpouseEdit;
161 KDateEdit *mBirthdayPicker;
162 KDateEdit *mAnniversaryPicker;
163 TQTextEdit *mNoteEdit;
165 TQDict<ContactEditorTabPage> mTabPages;