|
|
|
@ -287,7 +287,7 @@ void Tray::contextMenuAboutToShow (TDEPopupMenu* menu)
|
|
|
|
|
TDEAction * deviceNewConnAction = 0;
|
|
|
|
|
TQString menuCaption = "VPN Connection";
|
|
|
|
|
TQString actionName = TQString("new_connection_%1").arg("vpn");
|
|
|
|
|
deviceNewConnAction = new TDEAction (menuCaption, 0, TQT_TQOBJECT(this), TQT_SLOT(slotNewVPNConnection()), actionCollection(), actionName.utf8());
|
|
|
|
|
deviceNewConnAction = new TDEAction (menuCaption, 0, this, TQT_SLOT(slotNewVPNConnection()), actionCollection(), actionName.utf8());
|
|
|
|
|
newConnActionMenu->insert(deviceNewConnAction);
|
|
|
|
|
}
|
|
|
|
|
else if ( devices == 1 )
|
|
|
|
@ -1073,7 +1073,7 @@ Tray::Tray() : KSystemTray()
|
|
|
|
|
|
|
|
|
|
updateGraphicsCache();
|
|
|
|
|
|
|
|
|
|
d = new TrayPrivate(TQT_TQOBJECT(this));
|
|
|
|
|
d = new TrayPrivate(this);
|
|
|
|
|
d->helpMenu = new KHelpMenu(0, TDEGlobal::instance()->aboutData(), false);
|
|
|
|
|
|
|
|
|
|
connect(&d->signalMapper, TQT_SIGNAL(mapped(int)), this, TQT_SLOT(slotDeactivateConnection(int)));
|
|
|
|
@ -1084,32 +1084,32 @@ Tray::Tray() : KSystemTray()
|
|
|
|
|
// Actions used for plugging into the menu
|
|
|
|
|
new TDEAction (i18n ("Switch to offline mode"),
|
|
|
|
|
SmallIcon ("no", TQIconSet::Automatic), 0,
|
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT (slotOfflineMode()), actionCollection (), "offline_mode");
|
|
|
|
|
this, TQT_SLOT (slotOfflineMode()), actionCollection (), "offline_mode");
|
|
|
|
|
|
|
|
|
|
new TDEAction (i18n ("Switch to online mode"),
|
|
|
|
|
SmallIcon ("ok", TQIconSet::Automatic), 0,
|
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT (slotOnlineMode()), actionCollection (), "online_mode");
|
|
|
|
|
this, TQT_SLOT (slotOnlineMode()), actionCollection (), "online_mode");
|
|
|
|
|
|
|
|
|
|
new TDEAction (i18n ("Disable Wireless"),
|
|
|
|
|
SmallIcon ("wireless_off", TQIconSet::Automatic), 0,
|
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT (slotDisableWireless()), actionCollection (), "disable_wireless");
|
|
|
|
|
this, TQT_SLOT (slotDisableWireless()), actionCollection (), "disable_wireless");
|
|
|
|
|
|
|
|
|
|
new TDEAction (i18n ("Enable Wireless"),
|
|
|
|
|
SmallIcon ("wireless", TQIconSet::Automatic), 0,
|
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT (slotEnableWireless()), actionCollection (), "enable_wireless");
|
|
|
|
|
this, TQT_SLOT (slotEnableWireless()), actionCollection (), "enable_wireless");
|
|
|
|
|
|
|
|
|
|
new TDEAction (i18n ("Edit Connections"),
|
|
|
|
|
SmallIcon ("edit", TQIconSet::Automatic), 0,
|
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT (slotEditConnections()), actionCollection (), "edit_connections");
|
|
|
|
|
this, TQT_SLOT (slotEditConnections()), actionCollection (), "edit_connections");
|
|
|
|
|
|
|
|
|
|
new TDEAction (i18n ("Configure Notifications"),
|
|
|
|
|
SmallIcon ("knotify", TQIconSet::Automatic), 0,
|
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT (slotEditNotifications()), actionCollection (), "configure_notifications");
|
|
|
|
|
this, TQT_SLOT (slotEditNotifications()), actionCollection (), "configure_notifications");
|
|
|
|
|
|
|
|
|
|
// this action is only connected when the menu is shown, hence the 0 receiver
|
|
|
|
|
new TDEAction (i18n ("New connection ..."),
|
|
|
|
|
SmallIcon ("document-new", TQIconSet::Automatic), 0,
|
|
|
|
|
TQT_TQOBJECT(this), 0, actionCollection (), "new_connection");
|
|
|
|
|
this, 0, actionCollection (), "new_connection");
|
|
|
|
|
|
|
|
|
|
new TDEActionMenu (i18n ("New connection ..."),
|
|
|
|
|
SmallIcon ("document-new", TQIconSet::Automatic),
|
|
|
|
|