|
|
|
@ -59,7 +59,7 @@ NicksOnline::NicksOnline(TQWidget* parent): ChatWindow(parent)
|
|
|
|
|
m_whoisRequested = true;
|
|
|
|
|
|
|
|
|
|
m_nickListView->addColumn(i18n("Network/Nickname/Channel"));
|
|
|
|
|
m_kabcIconSet = TDEGlobal::iconLoader()->loadIconSet("kaddressbook",TDEIcon::Small);
|
|
|
|
|
m_tdeabcIconSet = TDEGlobal::iconLoader()->loadIconSet("kaddressbook",TDEIcon::Small);
|
|
|
|
|
m_nickListView->addColumn(i18n("Additional Information"));
|
|
|
|
|
m_nickListView->setFullWidth(true);
|
|
|
|
|
m_nickListView->setRootIsDecorated(true);
|
|
|
|
@ -109,20 +109,20 @@ NicksOnline::NicksOnline(TQWidget* parent): ChatWindow(parent)
|
|
|
|
|
"Click to create, view, or edit the KAddressBook entry associated with the nickname "
|
|
|
|
|
"selected above.");
|
|
|
|
|
TQWhatsThis::add(m_editContactButton, editContactButtonWT);
|
|
|
|
|
m_editContactButton->setIconSet(m_kabcIconSet);
|
|
|
|
|
m_editContactButton->setIconSet(m_tdeabcIconSet);
|
|
|
|
|
m_changeAssociationButton = new TQPushButton(i18n("&Change Association..."),
|
|
|
|
|
buttonBox, "nicksonline_changeassociation_button");
|
|
|
|
|
TQString changeAssociationButtonWT = i18n(
|
|
|
|
|
"Click to associate the nickname selected above with an entry in KAddressBook.");
|
|
|
|
|
TQWhatsThis::add(m_changeAssociationButton, changeAssociationButtonWT);
|
|
|
|
|
m_changeAssociationButton->setIconSet(m_kabcIconSet);
|
|
|
|
|
m_changeAssociationButton->setIconSet(m_tdeabcIconSet);
|
|
|
|
|
m_deleteAssociationButton = new TQPushButton(i18n("&Delete Association"),
|
|
|
|
|
buttonBox, "nicksonline_deleteassociation_button");
|
|
|
|
|
TQString deleteAssociationButtonWT = i18n(
|
|
|
|
|
"Click to remove the association between the nickname selected above and a "
|
|
|
|
|
"KAddressBook entry.");
|
|
|
|
|
TQWhatsThis::add(m_deleteAssociationButton, deleteAssociationButtonWT);
|
|
|
|
|
m_deleteAssociationButton->setIconSet(m_kabcIconSet);
|
|
|
|
|
m_deleteAssociationButton->setIconSet(m_tdeabcIconSet);
|
|
|
|
|
|
|
|
|
|
connect(m_editContactButton, TQT_SIGNAL(clicked()),
|
|
|
|
|
this, TQT_SLOT(slotEditContactButton_Clicked()));
|
|
|
|
@ -333,10 +333,10 @@ void NicksOnline::updateServerOnlineList(Server* servr)
|
|
|
|
|
}
|
|
|
|
|
// Set Kabc icon if the nick is associated with an addressbook entry.
|
|
|
|
|
if (!addressee.isEmpty())
|
|
|
|
|
nickRoot->setPixmap(nlvcKabc, m_kabcIconSet.pixmap(
|
|
|
|
|
nickRoot->setPixmap(nlvcKabc, m_tdeabcIconSet.pixmap(
|
|
|
|
|
TQIconSet::Small, TQIconSet::Normal, TQIconSet::On));
|
|
|
|
|
else
|
|
|
|
|
nickRoot->setPixmap(nlvcKabc, m_kabcIconSet.pixmap(
|
|
|
|
|
nickRoot->setPixmap(nlvcKabc, m_tdeabcIconSet.pixmap(
|
|
|
|
|
TQIconSet::Small, TQIconSet::Disabled, TQIconSet::Off));
|
|
|
|
|
|
|
|
|
|
TQStringList channelList = server->getNickChannels(nickname);
|
|
|
|
@ -405,10 +405,10 @@ void NicksOnline::updateServerOnlineList(Server* servr)
|
|
|
|
|
nickRoot->setText(nlvcAdditionalInfo, nickAdditionalInfo);
|
|
|
|
|
// Set Kabc icon if the nick is associated with an addressbook entry.
|
|
|
|
|
if (!addressee.isEmpty())
|
|
|
|
|
nickRoot->setPixmap(nlvcKabc, m_kabcIconSet.pixmap(
|
|
|
|
|
nickRoot->setPixmap(nlvcKabc, m_tdeabcIconSet.pixmap(
|
|
|
|
|
TQIconSet::Small, TQIconSet::Normal, TQIconSet::On));
|
|
|
|
|
else
|
|
|
|
|
nickRoot->setPixmap(nlvcKabc, m_kabcIconSet.pixmap(
|
|
|
|
|
nickRoot->setPixmap(nlvcKabc, m_tdeabcIconSet.pixmap(
|
|
|
|
|
TQIconSet::Small, TQIconSet::Disabled, TQIconSet::Off));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -948,12 +948,12 @@ void NicksOnline::refreshItem(TQListViewItem* item)
|
|
|
|
|
break;
|
|
|
|
|
case nsNoAddress:
|
|
|
|
|
{
|
|
|
|
|
item->setPixmap(nlvcKabc, m_kabcIconSet.pixmap(
|
|
|
|
|
item->setPixmap(nlvcKabc, m_tdeabcIconSet.pixmap(
|
|
|
|
|
TQIconSet::Small, TQIconSet::Disabled, TQIconSet::Off)); break;
|
|
|
|
|
}
|
|
|
|
|
case nsHasAddress:
|
|
|
|
|
{
|
|
|
|
|
item->setPixmap(nlvcKabc, m_kabcIconSet.pixmap(
|
|
|
|
|
item->setPixmap(nlvcKabc, m_tdeabcIconSet.pixmap(
|
|
|
|
|
TQIconSet::Small, TQIconSet::Normal, TQIconSet::On)); break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|