@ -125,10 +125,10 @@ void AddresseeEditorWidget::textChanged( const TQString& )
void AddresseeEditorWidget : : initGUI ( )
void AddresseeEditorWidget : : initGUI ( )
{
{
TQVBoxLayout * tq layout = new TQVBoxLayout ( this ) ;
TQVBoxLayout * layout = new TQVBoxLayout ( this ) ;
mTabWidget = new TQTabWidget ( this ) ;
mTabWidget = new TQTabWidget ( this ) ;
tq layout- > addWidget ( mTabWidget ) ;
layout- > addWidget ( mTabWidget ) ;
setupTab1 ( ) ;
setupTab1 ( ) ;
setupTab2 ( ) ;
setupTab2 ( ) ;
@ -144,9 +144,9 @@ void AddresseeEditorWidget::setupTab1()
// This is the General tab
// This is the General tab
TQWidget * tab1 = new TQWidget ( mTabWidget ) ;
TQWidget * tab1 = new TQWidget ( mTabWidget ) ;
TQGridLayout * tq layout = new TQGridLayout ( tab1 , 11 , 7 ) ;
TQGridLayout * layout = new TQGridLayout ( tab1 , 11 , 7 ) ;
tq layout- > setMargin ( KDialogBase : : marginHint ( ) ) ;
layout- > setMargin ( KDialogBase : : marginHint ( ) ) ;
tq layout- > setSpacing ( KDialogBase : : spacingHint ( ) ) ;
layout- > setSpacing ( KDialogBase : : spacingHint ( ) ) ;
TQLabel * label ;
TQLabel * label ;
KSeparator * bar ;
KSeparator * bar ;
@ -159,7 +159,7 @@ void AddresseeEditorWidget::setupTab1()
label = new TQLabel ( tab1 ) ;
label = new TQLabel ( tab1 ) ;
label - > setPixmap ( KGlobal : : iconLoader ( ) - > loadIcon ( " personal " , KIcon : : Desktop ,
label - > setPixmap ( KGlobal : : iconLoader ( ) - > loadIcon ( " personal " , KIcon : : Desktop ,
KIcon : : SizeMedium ) ) ;
KIcon : : SizeMedium ) ) ;
tq layout- > addMultiCellWidget ( label , 0 , 1 , 0 , 0 ) ;
layout- > addMultiCellWidget ( label , 0 , 1 , 0 , 0 ) ;
// First name
// First name
button = new TQPushButton ( i18n ( " Edit Name... " ) , tab1 ) ;
button = new TQPushButton ( i18n ( " Edit Name... " ) , tab1 ) ;
@ -178,16 +178,16 @@ void AddresseeEditorWidget::setupTab1()
mNameLabel - > show ( ) ;
mNameLabel - > show ( ) ;
}
}
tq layout- > addWidget ( button , 0 , 1 ) ;
layout- > addWidget ( button , 0 , 1 ) ;
tq layout- > addWidget ( mNameEdit , 0 , 2 ) ;
layout- > addWidget ( mNameEdit , 0 , 2 ) ;
tq layout- > addWidget ( mNameLabel , 0 , 2 ) ;
layout- > addWidget ( mNameLabel , 0 , 2 ) ;
label = new TQLabel ( i18n ( " <roleLabel>: " , " %1: " ) . arg ( KABC : : Addressee : : roleLabel ( ) ) , tab1 ) ;
label = new TQLabel ( i18n ( " <roleLabel>: " , " %1: " ) . arg ( KABC : : Addressee : : roleLabel ( ) ) , tab1 ) ;
mRoleEdit = new KLineEdit ( tab1 ) ;
mRoleEdit = new KLineEdit ( tab1 ) ;
connect ( mRoleEdit , TQT_SIGNAL ( textChanged ( const TQString & ) ) ,
connect ( mRoleEdit , TQT_SIGNAL ( textChanged ( const TQString & ) ) ,
TQT_SLOT ( textChanged ( const TQString & ) ) ) ;
TQT_SLOT ( textChanged ( const TQString & ) ) ) ;
label - > setBuddy ( mRoleEdit ) ;
label - > setBuddy ( mRoleEdit ) ;
tq layout- > addWidget ( label , 1 , 1 ) ;
layout- > addWidget ( label , 1 , 1 ) ;
tq layout- > addWidget ( mRoleEdit , 1 , 2 ) ;
layout- > addWidget ( mRoleEdit , 1 , 2 ) ;
// Organization
// Organization
label = new TQLabel ( i18n ( " <organizationLabel>: " , " %1: " ) . arg ( KABC : : Addressee : : organizationLabel ( ) ) , tab1 ) ;
label = new TQLabel ( i18n ( " <organizationLabel>: " , " %1: " ) . arg ( KABC : : Addressee : : organizationLabel ( ) ) , tab1 ) ;
@ -195,59 +195,59 @@ void AddresseeEditorWidget::setupTab1()
label - > setBuddy ( mOrgEdit ) ;
label - > setBuddy ( mOrgEdit ) ;
connect ( mOrgEdit , TQT_SIGNAL ( textChanged ( const TQString & ) ) ,
connect ( mOrgEdit , TQT_SIGNAL ( textChanged ( const TQString & ) ) ,
TQT_SLOT ( organizationTextChanged ( const TQString & ) ) ) ;
TQT_SLOT ( organizationTextChanged ( const TQString & ) ) ) ;
tq layout- > addWidget ( label , 2 , 1 ) ;
layout- > addWidget ( label , 2 , 1 ) ;
tq layout- > addWidget ( mOrgEdit , 2 , 2 ) ;
layout- > addWidget ( mOrgEdit , 2 , 2 ) ;
// File as (formatted name)
// File as (formatted name)
label = new TQLabel ( i18n ( " Formatted name: " ) , tab1 ) ;
label = new TQLabel ( i18n ( " Formatted name: " ) , tab1 ) ;
mFormattedNameLabel = new KSqueezedTextLabel ( tab1 ) ;
mFormattedNameLabel = new KSqueezedTextLabel ( tab1 ) ;
tq layout- > addWidget ( label , 3 , 1 ) ;
layout- > addWidget ( label , 3 , 1 ) ;
tq layout- > addWidget ( mFormattedNameLabel , 3 , 2 ) ;
layout- > addWidget ( mFormattedNameLabel , 3 , 2 ) ;
// Left hand separator. This separator doesn't go all the way
// Left hand separator. This separator doesn't go all the way
// across so the dialog still flows from top to bottom
// across so the dialog still flows from top to bottom
bar = new KSeparator ( KSeparator : : HLine , tab1 ) ;
bar = new KSeparator ( KSeparator : : HLine , tab1 ) ;
tq layout- > addMultiCellWidget ( bar , 4 , 4 , 0 , 2 ) ;
layout- > addMultiCellWidget ( bar , 4 , 4 , 0 , 2 ) ;
//////////////////////////////////////
//////////////////////////////////////
// Phone numbers (upper right)
// Phone numbers (upper right)
label = new TQLabel ( tab1 ) ;
label = new TQLabel ( tab1 ) ;
label - > setPixmap ( KGlobal : : iconLoader ( ) - > loadIcon ( " kaddressbook " ,
label - > setPixmap ( KGlobal : : iconLoader ( ) - > loadIcon ( " kaddressbook " ,
KIcon : : Desktop , KIcon : : SizeMedium ) ) ;
KIcon : : Desktop , KIcon : : SizeMedium ) ) ;
tq layout- > addMultiCellWidget ( label , 0 , 1 , 3 , 3 ) ;
layout- > addMultiCellWidget ( label , 0 , 1 , 3 , 3 ) ;
mPhoneEditWidget = new PhoneEditWidget ( tab1 ) ;
mPhoneEditWidget = new PhoneEditWidget ( tab1 ) ;
connect ( mPhoneEditWidget , TQT_SIGNAL ( modified ( ) ) , TQT_SLOT ( emitModified ( ) ) ) ;
connect ( mPhoneEditWidget , TQT_SIGNAL ( modified ( ) ) , TQT_SLOT ( emitModified ( ) ) ) ;
tq layout- > addMultiCellWidget ( mPhoneEditWidget , 0 , 3 , 4 , 6 ) ;
layout- > addMultiCellWidget ( mPhoneEditWidget , 0 , 3 , 4 , 6 ) ;
bar = new KSeparator ( KSeparator : : HLine , tab1 ) ;
bar = new KSeparator ( KSeparator : : HLine , tab1 ) ;
tq layout- > addMultiCellWidget ( bar , 4 , 4 , 3 , 6 ) ;
layout- > addMultiCellWidget ( bar , 4 , 4 , 3 , 6 ) ;
//////////////////////////////////////
//////////////////////////////////////
// Addresses (lower left)
// Addresses (lower left)
label = new TQLabel ( tab1 ) ;
label = new TQLabel ( tab1 ) ;
label - > setPixmap ( KGlobal : : iconLoader ( ) - > loadIcon ( " kfm_home " , KIcon : : Desktop ,
label - > setPixmap ( KGlobal : : iconLoader ( ) - > loadIcon ( " kfm_home " , KIcon : : Desktop ,
KIcon : : SizeMedium ) ) ;
KIcon : : SizeMedium ) ) ;
tq layout- > addMultiCellWidget ( label , 5 , 6 , 0 , 0 ) ;
layout- > addMultiCellWidget ( label , 5 , 6 , 0 , 0 ) ;
mAddressEditWidget = new AddressEditWidget ( tab1 ) ;
mAddressEditWidget = new AddressEditWidget ( tab1 ) ;
connect ( mAddressEditWidget , TQT_SIGNAL ( modified ( ) ) , TQT_SLOT ( emitModified ( ) ) ) ;
connect ( mAddressEditWidget , TQT_SIGNAL ( modified ( ) ) , TQT_SLOT ( emitModified ( ) ) ) ;
tq layout- > addMultiCellWidget ( mAddressEditWidget , 5 , 10 , 1 , 2 ) ;
layout- > addMultiCellWidget ( mAddressEditWidget , 5 , 10 , 1 , 2 ) ;
//////////////////////////////////////
//////////////////////////////////////
// Email / Web (lower right)
// Email / Web (lower right)
label = new TQLabel ( tab1 ) ;
label = new TQLabel ( tab1 ) ;
label - > setPixmap ( KGlobal : : iconLoader ( ) - > loadIcon ( " email " , KIcon : : Desktop ,
label - > setPixmap ( KGlobal : : iconLoader ( ) - > loadIcon ( " email " , KIcon : : Desktop ,
KIcon : : SizeMedium ) ) ;
KIcon : : SizeMedium ) ) ;
tq layout- > addMultiCellWidget ( label , 5 , 6 , 3 , 3 ) ;
layout- > addMultiCellWidget ( label , 5 , 6 , 3 , 3 ) ;
mEmailWidget = new EmailEditWidget ( tab1 ) ;
mEmailWidget = new EmailEditWidget ( tab1 ) ;
connect ( mEmailWidget , TQT_SIGNAL ( modified ( ) ) , TQT_SLOT ( emitModified ( ) ) ) ;
connect ( mEmailWidget , TQT_SIGNAL ( modified ( ) ) , TQT_SLOT ( emitModified ( ) ) ) ;
tq layout- > addMultiCellWidget ( mEmailWidget , 5 , 6 , 4 , 6 ) ;
layout- > addMultiCellWidget ( mEmailWidget , 5 , 6 , 4 , 6 ) ;
// add the separator
// add the separator
bar = new KSeparator ( KSeparator : : HLine , tab1 ) ;
bar = new KSeparator ( KSeparator : : HLine , tab1 ) ;
tq layout- > addMultiCellWidget ( bar , 7 , 7 , 3 , 6 ) ;
layout- > addMultiCellWidget ( bar , 7 , 7 , 3 , 6 ) ;
TQHBoxLayout * homePageLayout = new TQHBoxLayout ( 0 , 11 , 7 ) ;
TQHBoxLayout * homePageLayout = new TQHBoxLayout ( 0 , 11 , 7 ) ;
@ -263,7 +263,7 @@ void AddresseeEditorWidget::setupTab1()
label - > setBuddy ( mURLEdit ) ;
label - > setBuddy ( mURLEdit ) ;
homePageLayout - > addWidget ( label ) ;
homePageLayout - > addWidget ( label ) ;
homePageLayout - > addWidget ( mURLEdit ) ;
homePageLayout - > addWidget ( mURLEdit ) ;
tq layout- > addMultiCellLayout ( homePageLayout , 8 , 8 , 3 , 6 ) ;
layout- > addMultiCellLayout ( homePageLayout , 8 , 8 , 3 , 6 ) ;
TQHBoxLayout * blogLayout = new TQHBoxLayout ( 0 , 11 , 7 ) ;
TQHBoxLayout * blogLayout = new TQHBoxLayout ( 0 , 11 , 7 ) ;
label = new TQLabel ( i18n ( " Blog feed: " ) , tab1 ) ;
label = new TQLabel ( i18n ( " Blog feed: " ) , tab1 ) ;
@ -273,16 +273,16 @@ void AddresseeEditorWidget::setupTab1()
connect ( mBlogEdit , TQT_SIGNAL ( textChanged ( const TQString & ) ) ,
connect ( mBlogEdit , TQT_SIGNAL ( textChanged ( const TQString & ) ) ,
TQT_SLOT ( textChanged ( const TQString & ) ) ) ;
TQT_SLOT ( textChanged ( const TQString & ) ) ) ;
label - > setBuddy ( mBlogEdit ) ;
label - > setBuddy ( mBlogEdit ) ;
tq layout- > addMultiCellLayout ( blogLayout , 9 , 9 , 4 , 6 ) ;
layout- > addMultiCellLayout ( blogLayout , 9 , 9 , 4 , 6 ) ;
mIMWidget = new IMEditWidget ( tab1 , mAddressee ) ;
mIMWidget = new IMEditWidget ( tab1 , mAddressee ) ;
connect ( mIMWidget , TQT_SIGNAL ( modified ( ) ) , TQT_SLOT ( emitModified ( ) ) ) ;
connect ( mIMWidget , TQT_SIGNAL ( modified ( ) ) , TQT_SLOT ( emitModified ( ) ) ) ;
tq layout- > addMultiCellWidget ( mIMWidget , 10 , 10 , 4 , 6 ) ;
layout- > addMultiCellWidget ( mIMWidget , 10 , 10 , 4 , 6 ) ;
tq layout- > addColSpacing ( 6 , 50 ) ;
layout- > addColSpacing ( 6 , 50 ) ;
bar = new KSeparator ( KSeparator : : HLine , tab1 ) ;
bar = new KSeparator ( KSeparator : : HLine , tab1 ) ;
tq layout- > addMultiCellWidget ( bar , 11 , 11 , 0 , 6 ) ;
layout- > addMultiCellWidget ( bar , 11 , 11 , 0 , 6 ) ;
///////////////////////////////////////
///////////////////////////////////////
TQHBox * categoryBox = new TQHBox ( tab1 ) ;
TQHBox * categoryBox = new TQHBox ( tab1 ) ;
@ -300,10 +300,10 @@ void AddresseeEditorWidget::setupTab1()
mSecrecyWidget = new SecrecyWidget ( categoryBox ) ;
mSecrecyWidget = new SecrecyWidget ( categoryBox ) ;
connect ( mSecrecyWidget , TQT_SIGNAL ( changed ( ) ) , TQT_SLOT ( emitModified ( ) ) ) ;
connect ( mSecrecyWidget , TQT_SIGNAL ( changed ( ) ) , TQT_SLOT ( emitModified ( ) ) ) ;
tq layout- > addMultiCellWidget ( categoryBox , 12 , 12 , 0 , 6 ) ;
layout- > addMultiCellWidget ( categoryBox , 12 , 12 , 0 , 6 ) ;
// Build the tq layout and add to the tab widget
// Build the layout and add to the tab widget
tq layout- > activate ( ) ; // required
layout- > activate ( ) ; // required
mTabWidget - > addTab ( tab1 , i18n ( " &General " ) ) ;
mTabWidget - > addTab ( tab1 , i18n ( " &General " ) ) ;
}
}
@ -313,9 +313,9 @@ void AddresseeEditorWidget::setupTab2()
// This is the Details tab
// This is the Details tab
TQWidget * tab2 = new TQWidget ( mTabWidget ) ;
TQWidget * tab2 = new TQWidget ( mTabWidget ) ;
TQGridLayout * tq layout = new TQGridLayout ( tab2 , 6 , 6 ) ;
TQGridLayout * layout = new TQGridLayout ( tab2 , 6 , 6 ) ;
tq layout- > setMargin ( KDialogBase : : marginHint ( ) ) ;
layout- > setMargin ( KDialogBase : : marginHint ( ) ) ;
tq layout- > setSpacing ( KDialogBase : : spacingHint ( ) ) ;
layout- > setSpacing ( KDialogBase : : spacingHint ( ) ) ;
TQLabel * label ;
TQLabel * label ;
KSeparator * bar ;
KSeparator * bar ;
@ -327,58 +327,58 @@ void AddresseeEditorWidget::setupTab2()
label = new TQLabel ( tab2 ) ;
label = new TQLabel ( tab2 ) ;
label - > setPixmap ( KGlobal : : iconLoader ( ) - > loadIcon ( " folder " , KIcon : : Desktop ,
label - > setPixmap ( KGlobal : : iconLoader ( ) - > loadIcon ( " folder " , KIcon : : Desktop ,
KIcon : : SizeMedium ) ) ;
KIcon : : SizeMedium ) ) ;
tq layout- > addMultiCellWidget ( label , 0 , 1 , 0 , 0 ) ;
layout- > addMultiCellWidget ( label , 0 , 1 , 0 , 0 ) ;
label = new TQLabel ( i18n ( " Department: " ) , tab2 ) ;
label = new TQLabel ( i18n ( " Department: " ) , tab2 ) ;
tq layout- > addWidget ( label , 0 , 1 ) ;
layout- > addWidget ( label , 0 , 1 ) ;
mDepartmentEdit = new KLineEdit ( tab2 ) ;
mDepartmentEdit = new KLineEdit ( tab2 ) ;
connect ( mDepartmentEdit , TQT_SIGNAL ( textChanged ( const TQString & ) ) ,
connect ( mDepartmentEdit , TQT_SIGNAL ( textChanged ( const TQString & ) ) ,
TQT_SLOT ( textChanged ( const TQString & ) ) ) ;
TQT_SLOT ( textChanged ( const TQString & ) ) ) ;
label - > setBuddy ( mDepartmentEdit ) ;
label - > setBuddy ( mDepartmentEdit ) ;
tq layout- > addWidget ( mDepartmentEdit , 0 , 2 ) ;
layout- > addWidget ( mDepartmentEdit , 0 , 2 ) ;
label = new TQLabel ( i18n ( " Office: " ) , tab2 ) ;
label = new TQLabel ( i18n ( " Office: " ) , tab2 ) ;
tq layout- > addWidget ( label , 1 , 1 ) ;
layout- > addWidget ( label , 1 , 1 ) ;
mOfficeEdit = new KLineEdit ( tab2 ) ;
mOfficeEdit = new KLineEdit ( tab2 ) ;
connect ( mOfficeEdit , TQT_SIGNAL ( textChanged ( const TQString & ) ) ,
connect ( mOfficeEdit , TQT_SIGNAL ( textChanged ( const TQString & ) ) ,
TQT_SLOT ( textChanged ( const TQString & ) ) ) ;
TQT_SLOT ( textChanged ( const TQString & ) ) ) ;
label - > setBuddy ( mOfficeEdit ) ;
label - > setBuddy ( mOfficeEdit ) ;
tq layout- > addWidget ( mOfficeEdit , 1 , 2 ) ;
layout- > addWidget ( mOfficeEdit , 1 , 2 ) ;
label = new TQLabel ( i18n ( " Profession: " ) , tab2 ) ;
label = new TQLabel ( i18n ( " Profession: " ) , tab2 ) ;
tq layout- > addWidget ( label , 2 , 1 ) ;
layout- > addWidget ( label , 2 , 1 ) ;
mProfessionEdit = new KLineEdit ( tab2 ) ;
mProfessionEdit = new KLineEdit ( tab2 ) ;
connect ( mProfessionEdit , TQT_SIGNAL ( textChanged ( const TQString & ) ) ,
connect ( mProfessionEdit , TQT_SIGNAL ( textChanged ( const TQString & ) ) ,
TQT_SLOT ( textChanged ( const TQString & ) ) ) ;
TQT_SLOT ( textChanged ( const TQString & ) ) ) ;
label - > setBuddy ( mProfessionEdit ) ;
label - > setBuddy ( mProfessionEdit ) ;
tq layout- > addWidget ( mProfessionEdit , 2 , 2 ) ;
layout- > addWidget ( mProfessionEdit , 2 , 2 ) ;
label = new TQLabel ( i18n ( " Manager \' s name: " ) , tab2 ) ;
label = new TQLabel ( i18n ( " Manager \' s name: " ) , tab2 ) ;
tq layout- > addWidget ( label , 0 , 3 ) ;
layout- > addWidget ( label , 0 , 3 ) ;
mManagerEdit = new KPIM : : AddresseeLineEdit ( tab2 ) ;
mManagerEdit = new KPIM : : AddresseeLineEdit ( tab2 ) ;
connect ( mManagerEdit , TQT_SIGNAL ( textChanged ( const TQString & ) ) ,
connect ( mManagerEdit , TQT_SIGNAL ( textChanged ( const TQString & ) ) ,
TQT_SLOT ( textChanged ( const TQString & ) ) ) ;
TQT_SLOT ( textChanged ( const TQString & ) ) ) ;
label - > setBuddy ( mManagerEdit ) ;
label - > setBuddy ( mManagerEdit ) ;
tq layout- > addMultiCellWidget ( mManagerEdit , 0 , 0 , 4 , 5 ) ;
layout- > addMultiCellWidget ( mManagerEdit , 0 , 0 , 4 , 5 ) ;
label = new TQLabel ( i18n ( " Assistant's name: " ) , tab2 ) ;
label = new TQLabel ( i18n ( " Assistant's name: " ) , tab2 ) ;
tq layout- > addWidget ( label , 1 , 3 ) ;
layout- > addWidget ( label , 1 , 3 ) ;
mAssistantEdit = new KPIM : : AddresseeLineEdit ( tab2 ) ;
mAssistantEdit = new KPIM : : AddresseeLineEdit ( tab2 ) ;
connect ( mAssistantEdit , TQT_SIGNAL ( textChanged ( const TQString & ) ) ,
connect ( mAssistantEdit , TQT_SIGNAL ( textChanged ( const TQString & ) ) ,
TQT_SLOT ( textChanged ( const TQString & ) ) ) ;
TQT_SLOT ( textChanged ( const TQString & ) ) ) ;
label - > setBuddy ( mAssistantEdit ) ;
label - > setBuddy ( mAssistantEdit ) ;
tq layout- > addMultiCellWidget ( mAssistantEdit , 1 , 1 , 4 , 5 ) ;
layout- > addMultiCellWidget ( mAssistantEdit , 1 , 1 , 4 , 5 ) ;
label = new TQLabel ( i18n ( " <titleLabel>: " , " %1: " ) . arg ( KABC : : Addressee : : titleLabel ( ) ) , tab2 ) ;
label = new TQLabel ( i18n ( " <titleLabel>: " , " %1: " ) . arg ( KABC : : Addressee : : titleLabel ( ) ) , tab2 ) ;
tq layout- > addWidget ( label , 2 , 3 ) ;
layout- > addWidget ( label , 2 , 3 ) ;
mTitleEdit = new KLineEdit ( tab2 ) ;
mTitleEdit = new KLineEdit ( tab2 ) ;
connect ( mTitleEdit , TQT_SIGNAL ( textChanged ( const TQString & ) ) ,
connect ( mTitleEdit , TQT_SIGNAL ( textChanged ( const TQString & ) ) ,
TQT_SLOT ( textChanged ( const TQString & ) ) ) ;
TQT_SLOT ( textChanged ( const TQString & ) ) ) ;
label - > setBuddy ( mTitleEdit ) ;
label - > setBuddy ( mTitleEdit ) ;
tq layout- > addMultiCellWidget ( mTitleEdit , 2 , 2 , 4 , 5 ) ;
layout- > addMultiCellWidget ( mTitleEdit , 2 , 2 , 4 , 5 ) ;
bar = new KSeparator ( KSeparator : : HLine , tab2 ) ;
bar = new KSeparator ( KSeparator : : HLine , tab2 ) ;
tq layout- > addMultiCellWidget ( bar , 3 , 3 , 0 , 5 ) ;
layout- > addMultiCellWidget ( bar , 3 , 3 , 0 , 5 ) ;
/////////////////////////////////////////////////
/////////////////////////////////////////////////
// Personal info
// Personal info
@ -386,61 +386,61 @@ void AddresseeEditorWidget::setupTab2()
label = new TQLabel ( tab2 ) ;
label = new TQLabel ( tab2 ) ;
label - > setPixmap ( KGlobal : : iconLoader ( ) - > loadIcon ( " personal " , KIcon : : Desktop ,
label - > setPixmap ( KGlobal : : iconLoader ( ) - > loadIcon ( " personal " , KIcon : : Desktop ,
KIcon : : SizeMedium ) ) ;
KIcon : : SizeMedium ) ) ;
tq layout- > addMultiCellWidget ( label , 4 , 5 , 0 , 0 ) ;
layout- > addMultiCellWidget ( label , 4 , 5 , 0 , 0 ) ;
label = new TQLabel ( i18n ( " Nickname: " ) , tab2 ) ;
label = new TQLabel ( i18n ( " Nickname: " ) , tab2 ) ;
tq layout- > addWidget ( label , 4 , 1 ) ;
layout- > addWidget ( label , 4 , 1 ) ;
mNicknameEdit = new KLineEdit ( tab2 ) ;
mNicknameEdit = new KLineEdit ( tab2 ) ;
connect ( mNicknameEdit , TQT_SIGNAL ( textChanged ( const TQString & ) ) ,
connect ( mNicknameEdit , TQT_SIGNAL ( textChanged ( const TQString & ) ) ,
TQT_SLOT ( textChanged ( const TQString & ) ) ) ;
TQT_SLOT ( textChanged ( const TQString & ) ) ) ;
label - > setBuddy ( mNicknameEdit ) ;
label - > setBuddy ( mNicknameEdit ) ;
tq layout- > addWidget ( mNicknameEdit , 4 , 2 ) ;
layout- > addWidget ( mNicknameEdit , 4 , 2 ) ;
label = new TQLabel ( i18n ( " Partner's name: " ) , tab2 ) ;
label = new TQLabel ( i18n ( " Partner's name: " ) , tab2 ) ;
tq layout- > addWidget ( label , 5 , 1 ) ;
layout- > addWidget ( label , 5 , 1 ) ;
mSpouseEdit = new KPIM : : AddresseeLineEdit ( tab2 ) ;
mSpouseEdit = new KPIM : : AddresseeLineEdit ( tab2 ) ;
connect ( mSpouseEdit , TQT_SIGNAL ( textChanged ( const TQString & ) ) ,
connect ( mSpouseEdit , TQT_SIGNAL ( textChanged ( const TQString & ) ) ,
TQT_SLOT ( textChanged ( const TQString & ) ) ) ;
TQT_SLOT ( textChanged ( const TQString & ) ) ) ;
label - > setBuddy ( mSpouseEdit ) ;
label - > setBuddy ( mSpouseEdit ) ;
tq layout- > addWidget ( mSpouseEdit , 5 , 2 ) ;
layout- > addWidget ( mSpouseEdit , 5 , 2 ) ;
label = new TQLabel ( i18n ( " Birthdate: " ) , tab2 ) ;
label = new TQLabel ( i18n ( " Birthdate: " ) , tab2 ) ;
tq layout- > addWidget ( label , 4 , 3 ) ;
layout- > addWidget ( label , 4 , 3 ) ;
mBirthdayPicker = new KDateEdit ( tab2 ) ;
mBirthdayPicker = new KDateEdit ( tab2 ) ;
connect ( mBirthdayPicker , TQT_SIGNAL ( dateChanged ( const TQDate & ) ) ,
connect ( mBirthdayPicker , TQT_SIGNAL ( dateChanged ( const TQDate & ) ) ,
TQT_SLOT ( dateChanged ( const TQDate & ) ) ) ;
TQT_SLOT ( dateChanged ( const TQDate & ) ) ) ;
connect ( mBirthdayPicker , TQT_SIGNAL ( textChanged ( const TQString & ) ) ,
connect ( mBirthdayPicker , TQT_SIGNAL ( textChanged ( const TQString & ) ) ,
TQT_SLOT ( emitModified ( ) ) ) ;
TQT_SLOT ( emitModified ( ) ) ) ;
label - > setBuddy ( mBirthdayPicker ) ;
label - > setBuddy ( mBirthdayPicker ) ;
tq layout- > addWidget ( mBirthdayPicker , 4 , 4 ) ;
layout- > addWidget ( mBirthdayPicker , 4 , 4 ) ;
label = new TQLabel ( i18n ( " Anniversary: " ) , tab2 ) ;
label = new TQLabel ( i18n ( " Anniversary: " ) , tab2 ) ;
tq layout- > addWidget ( label , 5 , 3 ) ;
layout- > addWidget ( label , 5 , 3 ) ;
mAnniversaryPicker = new KDateEdit ( tab2 ) ;
mAnniversaryPicker = new KDateEdit ( tab2 ) ;
connect ( mAnniversaryPicker , TQT_SIGNAL ( dateChanged ( const TQDate & ) ) ,
connect ( mAnniversaryPicker , TQT_SIGNAL ( dateChanged ( const TQDate & ) ) ,
TQT_SLOT ( dateChanged ( const TQDate & ) ) ) ;
TQT_SLOT ( dateChanged ( const TQDate & ) ) ) ;
connect ( mAnniversaryPicker , TQT_SIGNAL ( textChanged ( const TQString & ) ) ,
connect ( mAnniversaryPicker , TQT_SIGNAL ( textChanged ( const TQString & ) ) ,
TQT_SLOT ( emitModified ( ) ) ) ;
TQT_SLOT ( emitModified ( ) ) ) ;
label - > setBuddy ( mAnniversaryPicker ) ;
label - > setBuddy ( mAnniversaryPicker ) ;
tq layout- > addWidget ( mAnniversaryPicker , 5 , 4 ) ;
layout- > addWidget ( mAnniversaryPicker , 5 , 4 ) ;
bar = new KSeparator ( KSeparator : : HLine , tab2 ) ;
bar = new KSeparator ( KSeparator : : HLine , tab2 ) ;
tq layout- > addMultiCellWidget ( bar , 6 , 6 , 0 , 5 ) ;
layout- > addMultiCellWidget ( bar , 6 , 6 , 0 , 5 ) ;
//////////////////////////////////////
//////////////////////////////////////
// Notes
// Notes
label = new TQLabel ( i18n ( " Note: " ) , tab2 ) ;
label = new TQLabel ( i18n ( " Note: " ) , tab2 ) ;
label - > setAlignment ( TQt : : AlignTop | TQt : : AlignLeft ) ;
label - > setAlignment ( TQt : : AlignTop | TQt : : AlignLeft ) ;
tq layout- > addWidget ( label , 7 , 0 ) ;
layout- > addWidget ( label , 7 , 0 ) ;
mNoteEdit = new TQTextEdit ( tab2 ) ;
mNoteEdit = new TQTextEdit ( tab2 ) ;
mNoteEdit - > setWordWrap ( TQTextEdit : : WidgetWidth ) ;
mNoteEdit - > setWordWrap ( TQTextEdit : : WidgetWidth ) ;
mNoteEdit - > setMinimumSize ( mNoteEdit - > sizeHint ( ) ) ;
mNoteEdit - > setMinimumSize ( mNoteEdit - > sizeHint ( ) ) ;
connect ( mNoteEdit , TQT_SIGNAL ( textChanged ( ) ) , TQT_SLOT ( emitModified ( ) ) ) ;
connect ( mNoteEdit , TQT_SIGNAL ( textChanged ( ) ) , TQT_SLOT ( emitModified ( ) ) ) ;
label - > setBuddy ( mNoteEdit ) ;
label - > setBuddy ( mNoteEdit ) ;
tq layout- > addMultiCellWidget ( mNoteEdit , 7 , 7 , 1 , 5 ) ;
layout- > addMultiCellWidget ( mNoteEdit , 7 , 7 , 1 , 5 ) ;
// Build the tq layout and add to the tab widget
// Build the layout and add to the tab widget
tq layout- > activate ( ) ; // required
layout- > activate ( ) ; // required
mTabWidget - > addTab ( tab2 , i18n ( " &Details " ) ) ;
mTabWidget - > addTab ( tab2 , i18n ( " &Details " ) ) ;
}
}
@ -474,7 +474,7 @@ void AddresseeEditorWidget::setupAdditionalTabs()
page - > addWidget ( widget ) ;
page - > addWidget ( widget ) ;
}
}
// query the tq layout update
// query the layout update
TQDictIterator < ContactEditorTabPage > it ( mTabPages ) ;
TQDictIterator < ContactEditorTabPage > it ( mTabPages ) ;
for ( ; it . current ( ) ; + + it )
for ( ; it . current ( ) ; + + it )
it . current ( ) - > updateLayout ( ) ;
it . current ( ) - > updateLayout ( ) ;