|
|
@ -69,16 +69,16 @@ class ConnectionListViewItem : public TDEListViewItem
|
|
|
|
setText(1, TDENetworkConnectionManager::friendlyConnectionTypeName(conn->type()));
|
|
|
|
setText(1, TDENetworkConnectionManager::friendlyConnectionTypeName(conn->type()));
|
|
|
|
// TODO: Move to a Factory
|
|
|
|
// TODO: Move to a Factory
|
|
|
|
if (conn->type() == TDENetworkConnectionType::WiredEthernet) {
|
|
|
|
if (conn->type() == TDENetworkConnectionType::WiredEthernet) {
|
|
|
|
setPixmap(0, TDEGlobal::iconLoader()->loadIcon("wired", KIcon::Small));
|
|
|
|
setPixmap(0, TDEGlobal::iconLoader()->loadIcon("wired", TDEIcon::Small));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (conn->type() == TDENetworkConnectionType::WiFi) {
|
|
|
|
else if (conn->type() == TDENetworkConnectionType::WiFi) {
|
|
|
|
setPixmap(0, TDEGlobal::iconLoader()->loadIcon("wireless", KIcon::Small));
|
|
|
|
setPixmap(0, TDEGlobal::iconLoader()->loadIcon("wireless", TDEIcon::Small));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (conn->type() == TDENetworkConnectionType::VPN) {
|
|
|
|
else if (conn->type() == TDENetworkConnectionType::VPN) {
|
|
|
|
setPixmap(0, TDEGlobal::iconLoader()->loadIcon("encrypted", KIcon::Small));
|
|
|
|
setPixmap(0, TDEGlobal::iconLoader()->loadIcon("encrypted", TDEIcon::Small));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
setPixmap(0, TDEGlobal::iconLoader()->loadIcon("help", KIcon::Small));
|
|
|
|
setPixmap(0, TDEGlobal::iconLoader()->loadIcon("help", TDEIcon::Small));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -101,17 +101,17 @@ ConnectionEditorImpl::ConnectionEditorImpl(TQWidget* parent, const char* name, b
|
|
|
|
// pbEdit->hide();
|
|
|
|
// pbEdit->hide();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pbNew->setIconSet(TDEGlobal::iconLoader()->loadIcon("add", KIcon::Small));
|
|
|
|
pbNew->setIconSet(TDEGlobal::iconLoader()->loadIcon("add", TDEIcon::Small));
|
|
|
|
pbDelete->setIconSet(TDEGlobal::iconLoader()->loadIcon("remove", KIcon::Small));
|
|
|
|
pbDelete->setIconSet(TDEGlobal::iconLoader()->loadIcon("remove", TDEIcon::Small));
|
|
|
|
pbEdit->setIconSet(TDEGlobal::iconLoader()->loadIcon("edit", KIcon::Small));
|
|
|
|
pbEdit->setIconSet(TDEGlobal::iconLoader()->loadIcon("edit", TDEIcon::Small));
|
|
|
|
|
|
|
|
|
|
|
|
TQPopupMenu* popup = new TQPopupMenu(pbNew);
|
|
|
|
TQPopupMenu* popup = new TQPopupMenu(pbNew);
|
|
|
|
// TODO: move to a factory class
|
|
|
|
// TODO: move to a factory class
|
|
|
|
popup->insertItem(TDEGlobal::iconLoader()->loadIcon("wireless", KIcon::Small), i18n("Wireless"), this, TQT_SLOT(slotNewWirelessConnection()));
|
|
|
|
popup->insertItem(TDEGlobal::iconLoader()->loadIcon("wireless", TDEIcon::Small), i18n("Wireless"), this, TQT_SLOT(slotNewWirelessConnection()));
|
|
|
|
popup->insertItem(TDEGlobal::iconLoader()->loadIcon("wired", KIcon::Small), i18n("Wired"), this, TQT_SLOT(slotNewWiredConnection()));
|
|
|
|
popup->insertItem(TDEGlobal::iconLoader()->loadIcon("wired", TDEIcon::Small), i18n("Wired"), this, TQT_SLOT(slotNewWiredConnection()));
|
|
|
|
|
|
|
|
|
|
|
|
// if (!VPNManager::getVPNServices().isEmpty()) {
|
|
|
|
// if (!VPNManager::getVPNServices().isEmpty()) {
|
|
|
|
popup->insertItem(TDEGlobal::iconLoader()->loadIcon("encrypted", KIcon::Small), i18n("VPN"), this, TQT_SLOT(slotNewVPNConnection()));
|
|
|
|
popup->insertItem(TDEGlobal::iconLoader()->loadIcon("encrypted", TDEIcon::Small), i18n("VPN"), this, TQT_SLOT(slotNewVPNConnection()));
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
pbNew->setPopup(popup);
|
|
|
|
pbNew->setPopup(popup);
|
|
|
|