|
|
|
@ -43,9 +43,9 @@
|
|
|
|
|
|
|
|
|
|
Configure::Configure(KNetStats* parent, const InterfaceMap& ifs) : ConfigureBase(parent) {
|
|
|
|
|
// Load configuration
|
|
|
|
|
KIconLoader* loader = kapp->iconLoader();
|
|
|
|
|
TDEIconLoader* loader = kapp->iconLoader();
|
|
|
|
|
|
|
|
|
|
TQPixmap iconPCI = loader->loadIcon("icon_pci.png", KIcon::Small, 16);
|
|
|
|
|
TQPixmap iconPCI = loader->loadIcon("icon_pci.png", TDEIcon::Small, 16);
|
|
|
|
|
|
|
|
|
|
// Clone the configuration.
|
|
|
|
|
for (InterfaceMap::ConstIterator it = ifs.begin(); it != ifs.end(); ++it) {
|
|
|
|
@ -131,23 +131,23 @@ bool Configure::canSaveConfig()
|
|
|
|
|
|
|
|
|
|
void Configure::changeTheme(int theme)
|
|
|
|
|
{
|
|
|
|
|
KIconLoader* loader = kapp->iconLoader();
|
|
|
|
|
TDEIconLoader* loader = kapp->iconLoader();
|
|
|
|
|
mIconError->setPixmap(loader->loadIcon("theme"+TQString::number(theme)+"_error.png",
|
|
|
|
|
KIcon::Panel, ICONSIZE));
|
|
|
|
|
TDEIcon::Panel, ICONSIZE));
|
|
|
|
|
mIconNone->setPixmap(loader->loadIcon("theme"+TQString::number(theme)+"_none.png",
|
|
|
|
|
KIcon::Panel, ICONSIZE));
|
|
|
|
|
TDEIcon::Panel, ICONSIZE));
|
|
|
|
|
mIconTx->setPixmap(loader->loadIcon("theme"+TQString::number(theme)+"_tx.png",
|
|
|
|
|
KIcon::Panel, ICONSIZE));
|
|
|
|
|
TDEIcon::Panel, ICONSIZE));
|
|
|
|
|
mIconRx->setPixmap(loader->loadIcon("theme"+TQString::number(theme)+"_rx.png",
|
|
|
|
|
KIcon::Panel, ICONSIZE));
|
|
|
|
|
TDEIcon::Panel, ICONSIZE));
|
|
|
|
|
mIconBoth->setPixmap(loader->loadIcon("theme"+TQString::number(theme)+"_both.png",
|
|
|
|
|
KIcon::Panel, ICONSIZE));
|
|
|
|
|
TDEIcon::Panel, ICONSIZE));
|
|
|
|
|
}
|
|
|
|
|
/*
|
|
|
|
|
void Configure::showInterfaceContextMenu(TQListBoxItem* item, const TQPoint& point) {
|
|
|
|
|
if (!item && mConfig.size() == 1)
|
|
|
|
|
return;
|
|
|
|
|
TQPixmap icon = kapp->iconLoader()->loadIcon("editdelete", KIcon::Small, 16);
|
|
|
|
|
TQPixmap icon = kapp->iconLoader()->loadIcon("editdelete", TDEIcon::Small, 16);
|
|
|
|
|
TQPopupMenu* menu = new TQPopupMenu(this);
|
|
|
|
|
menu->insertItem(icon, i18n("Renomve Interface"), this, TQT_SLOT(removeInterface()));
|
|
|
|
|
menu->exec(point);
|
|
|
|
|