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