|
|
@ -144,7 +144,7 @@ void PilotDaemonTray::setupWidget()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
FUNCTIONSETUP;
|
|
|
|
FUNCTIONSETUP;
|
|
|
|
|
|
|
|
|
|
|
|
KGlobal::iconLoader()->addAppDir( CSL1("kpilot") );
|
|
|
|
TDEGlobal::iconLoader()->addAppDir( CSL1("kpilot") );
|
|
|
|
icons[Normal] = loadIcon( CSL1("kpilotDaemon") );
|
|
|
|
icons[Normal] = loadIcon( CSL1("kpilotDaemon") );
|
|
|
|
icons[Busy] = loadIcon( CSL1("busysync") );
|
|
|
|
icons[Busy] = loadIcon( CSL1("busysync") );
|
|
|
|
icons[NotListening] = loadIcon( CSL1("nosync") );
|
|
|
|
icons[NotListening] = loadIcon( CSL1("nosync") );
|
|
|
@ -186,7 +186,7 @@ void PilotDaemonTray::setupWidget()
|
|
|
|
|
|
|
|
|
|
|
|
KHelpMenu *help = new KHelpMenu(menu,aboutData);
|
|
|
|
KHelpMenu *help = new KHelpMenu(menu,aboutData);
|
|
|
|
menu->insertItem(
|
|
|
|
menu->insertItem(
|
|
|
|
KGlobal::iconLoader()->loadIconSet(CSL1("help"),KIcon::Small,0,true),
|
|
|
|
TDEGlobal::iconLoader()->loadIconSet(CSL1("help"),KIcon::Small,0,true),
|
|
|
|
i18n("&Help"),help->menu(),false /* no whatsthis */);
|
|
|
|
i18n("&Help"),help->menu(),false /* no whatsthis */);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1236,13 +1236,13 @@ void PilotDaemon::slotRunConfig()
|
|
|
|
// If it succeeds, we can assume kpilot is running and then try
|
|
|
|
// If it succeeds, we can assume kpilot is running and then try
|
|
|
|
// to send the configure() DCOP call.
|
|
|
|
// to send the configure() DCOP call.
|
|
|
|
// If it fails (probably because kpilot isn't running) it tries
|
|
|
|
// If it fails (probably because kpilot isn't running) it tries
|
|
|
|
// to call kpilot via KProcess (using a command line switch to
|
|
|
|
// to call kpilot via TDEProcess (using a command line switch to
|
|
|
|
// only bring up the configure dialog).
|
|
|
|
// only bring up the configure dialog).
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// Implementing the function this way catches all cases.
|
|
|
|
// Implementing the function this way catches all cases.
|
|
|
|
// ie 1 KPilot running with configure dialog open (raise())
|
|
|
|
// ie 1 KPilot running with configure dialog open (raise())
|
|
|
|
// 2 KPilot running with dialog NOT open (configureConduits())
|
|
|
|
// 2 KPilot running with dialog NOT open (configureConduits())
|
|
|
|
// 3 KPilot NOT running (KProcess)
|
|
|
|
// 3 KPilot NOT running (TDEProcess)
|
|
|
|
|
|
|
|
|
|
|
|
DCOPClient *client = kapp->dcopClient();
|
|
|
|
DCOPClient *client = kapp->dcopClient();
|
|
|
|
|
|
|
|
|
|
|
@ -1257,7 +1257,7 @@ void PilotDaemon::slotRunConfig()
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// KPilot not running
|
|
|
|
// KPilot not running
|
|
|
|
KProcess *p = new KProcess;
|
|
|
|
TDEProcess *p = new TDEProcess;
|
|
|
|
*p << "kpilot" << "-s";
|
|
|
|
*p << "kpilot" << "-s";
|
|
|
|
|
|
|
|
|
|
|
|
p->start();
|
|
|
|
p->start();
|
|
|
|