|
|
@ -97,7 +97,7 @@ public:
|
|
|
|
|
|
|
|
|
|
|
|
KPilotInstaller::KPilotInstaller() :
|
|
|
|
KPilotInstaller::KPilotInstaller() :
|
|
|
|
DCOPObject("KPilotIface"),
|
|
|
|
DCOPObject("KPilotIface"),
|
|
|
|
KMainWindow(0),
|
|
|
|
TDEMainWindow(0),
|
|
|
|
fDaemonStub(new PilotDaemonDCOP_stub("kpilotDaemon",
|
|
|
|
fDaemonStub(new PilotDaemonDCOP_stub("kpilotDaemon",
|
|
|
|
"KPilotDaemonIface")),
|
|
|
|
"KPilotDaemonIface")),
|
|
|
|
fP(new KPilotPrivate),
|
|
|
|
fP(new KPilotPrivate),
|
|
|
@ -508,11 +508,11 @@ void KPilotInstaller::initMenu()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
FUNCTIONSETUP;
|
|
|
|
FUNCTIONSETUP;
|
|
|
|
|
|
|
|
|
|
|
|
KAction *a;
|
|
|
|
TDEAction *a;
|
|
|
|
|
|
|
|
|
|
|
|
KActionMenu *syncPopup;
|
|
|
|
TDEActionMenu *syncPopup;
|
|
|
|
|
|
|
|
|
|
|
|
syncPopup = new KActionMenu(i18n("HotSync"), CSL1("kpilot"),
|
|
|
|
syncPopup = new TDEActionMenu(i18n("HotSync"), CSL1("kpilot"),
|
|
|
|
actionCollection(), "popup_hotsync");
|
|
|
|
actionCollection(), "popup_hotsync");
|
|
|
|
syncPopup->setToolTip(i18n("Select the kind of HotSync to perform next."));
|
|
|
|
syncPopup->setToolTip(i18n("Select the kind of HotSync to perform next."));
|
|
|
|
syncPopup->setWhatsThis(i18n("Select the kind of HotSync to perform next. "
|
|
|
|
syncPopup->setWhatsThis(i18n("Select the kind of HotSync to perform next. "
|
|
|
@ -522,7 +522,7 @@ void KPilotInstaller::initMenu()
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotHotSyncRequested()));
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotHotSyncRequested()));
|
|
|
|
|
|
|
|
|
|
|
|
// File actions, keep this list synced with kpilotui.rc and pilotDaemon.cc
|
|
|
|
// File actions, keep this list synced with kpilotui.rc and pilotDaemon.cc
|
|
|
|
a = new KAction(i18n("&HotSync"), CSL1("hotsync"), 0,
|
|
|
|
a = new TDEAction(i18n("&HotSync"), CSL1("hotsync"), 0,
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotHotSyncRequested()),
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotHotSyncRequested()),
|
|
|
|
actionCollection(), "file_hotsync");
|
|
|
|
actionCollection(), "file_hotsync");
|
|
|
|
a->setToolTip(i18n("Next HotSync will be normal HotSync."));
|
|
|
|
a->setToolTip(i18n("Next HotSync will be normal HotSync."));
|
|
|
@ -530,7 +530,7 @@ void KPilotInstaller::initMenu()
|
|
|
|
"should be a normal HotSync."));
|
|
|
|
"should be a normal HotSync."));
|
|
|
|
syncPopup->insert(a);
|
|
|
|
syncPopup->insert(a);
|
|
|
|
|
|
|
|
|
|
|
|
a = new KAction(i18n("Full&Sync"), CSL1("fullsync"), 0,
|
|
|
|
a = new TDEAction(i18n("Full&Sync"), CSL1("fullsync"), 0,
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotFullSyncRequested()),
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotFullSyncRequested()),
|
|
|
|
actionCollection(), "file_fullsync");
|
|
|
|
actionCollection(), "file_fullsync");
|
|
|
|
a->setToolTip(i18n("Next HotSync will be a FullSync."));
|
|
|
|
a->setToolTip(i18n("Next HotSync will be a FullSync."));
|
|
|
@ -538,7 +538,7 @@ void KPilotInstaller::initMenu()
|
|
|
|
"should be a FullSync (check data on both sides)."));
|
|
|
|
"should be a FullSync (check data on both sides)."));
|
|
|
|
syncPopup->insert(a);
|
|
|
|
syncPopup->insert(a);
|
|
|
|
|
|
|
|
|
|
|
|
a = new KAction(i18n("&Backup"), CSL1("backup"), 0,
|
|
|
|
a = new TDEAction(i18n("&Backup"), CSL1("backup"), 0,
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotBackupRequested()),
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotBackupRequested()),
|
|
|
|
actionCollection(), "file_backup");
|
|
|
|
actionCollection(), "file_backup");
|
|
|
|
a->setToolTip(i18n("Next HotSync will be backup."));
|
|
|
|
a->setToolTip(i18n("Next HotSync will be backup."));
|
|
|
@ -546,7 +546,7 @@ void KPilotInstaller::initMenu()
|
|
|
|
"should back up the Handheld to the PC."));
|
|
|
|
"should back up the Handheld to the PC."));
|
|
|
|
syncPopup->insert(a);
|
|
|
|
syncPopup->insert(a);
|
|
|
|
|
|
|
|
|
|
|
|
a = new KAction(i18n("&Restore"), CSL1("restore"), 0,
|
|
|
|
a = new TDEAction(i18n("&Restore"), CSL1("restore"), 0,
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotRestoreRequested()),
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotRestoreRequested()),
|
|
|
|
actionCollection(), "file_restore");
|
|
|
|
actionCollection(), "file_restore");
|
|
|
|
a->setToolTip(i18n("Next HotSync will be restore."));
|
|
|
|
a->setToolTip(i18n("Next HotSync will be restore."));
|
|
|
@ -554,7 +554,7 @@ void KPilotInstaller::initMenu()
|
|
|
|
"should restore the Handheld from data on the PC."));
|
|
|
|
"should restore the Handheld from data on the PC."));
|
|
|
|
syncPopup->insert(a);
|
|
|
|
syncPopup->insert(a);
|
|
|
|
|
|
|
|
|
|
|
|
a = new KAction(i18n("Copy Handheld to PC"), TQString(), 0,
|
|
|
|
a = new TDEAction(i18n("Copy Handheld to PC"), TQString(), 0,
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotHHtoPCRequested()),
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotHHtoPCRequested()),
|
|
|
|
actionCollection(), "file_HHtoPC");
|
|
|
|
actionCollection(), "file_HHtoPC");
|
|
|
|
a->setToolTip(i18n("Next HotSync will be backup."));
|
|
|
|
a->setToolTip(i18n("Next HotSync will be backup."));
|
|
|
@ -563,7 +563,7 @@ void KPilotInstaller::initMenu()
|
|
|
|
"overwriting entries on the PC."));
|
|
|
|
"overwriting entries on the PC."));
|
|
|
|
syncPopup->insert(a);
|
|
|
|
syncPopup->insert(a);
|
|
|
|
|
|
|
|
|
|
|
|
a = new KAction(i18n("Copy PC to Handheld"), TQString(), 0,
|
|
|
|
a = new TDEAction(i18n("Copy PC to Handheld"), TQString(), 0,
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotPCtoHHRequested()),
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotPCtoHHRequested()),
|
|
|
|
actionCollection(), "file_PCtoHH");
|
|
|
|
actionCollection(), "file_PCtoHH");
|
|
|
|
a->setToolTip(i18n("Next HotSync will copy PC to Handheld."));
|
|
|
|
a->setToolTip(i18n("Next HotSync will copy PC to Handheld."));
|
|
|
@ -574,7 +574,7 @@ void KPilotInstaller::initMenu()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if 0
|
|
|
|
#if 0
|
|
|
|
a = new KAction(i18n("&List Only"),CSL1("listsync"),0,
|
|
|
|
a = new TDEAction(i18n("&List Only"),CSL1("listsync"),0,
|
|
|
|
this,TQT_SLOT(slotTestSyncRequested()),
|
|
|
|
this,TQT_SLOT(slotTestSyncRequested()),
|
|
|
|
actionCollection(), "file_list");
|
|
|
|
actionCollection(), "file_list");
|
|
|
|
a->setToolTip(i18n("Next HotSync will list databases."));
|
|
|
|
a->setToolTip(i18n("Next HotSync will list databases."));
|
|
|
@ -585,7 +585,7 @@ void KPilotInstaller::initMenu()
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
a = new KAction(i18n("Rese&t Link"),CSL1("reload"), 0,
|
|
|
|
a = new TDEAction(i18n("Rese&t Link"),CSL1("reload"), 0,
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotResetLink()),
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(slotResetLink()),
|
|
|
|
actionCollection(),"file_reload");
|
|
|
|
actionCollection(),"file_reload");
|
|
|
|
a->setToolTip(i18n("Reset the device connection."));
|
|
|
|
a->setToolTip(i18n("Reset the device connection."));
|
|
|
@ -610,7 +610,7 @@ void KPilotInstaller::initMenu()
|
|
|
|
(void) KStdAction::preferences(TQT_TQOBJECT(this), TQT_SLOT(configure()),
|
|
|
|
(void) KStdAction::preferences(TQT_TQOBJECT(this), TQT_SLOT(configure()),
|
|
|
|
actionCollection());
|
|
|
|
actionCollection());
|
|
|
|
|
|
|
|
|
|
|
|
a = new KAction(i18n("Configuration &Wizard..."), CSL1("wizard"), 0,
|
|
|
|
a = new TDEAction(i18n("Configuration &Wizard..."), CSL1("wizard"), 0,
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(configureWizard()),
|
|
|
|
TQT_TQOBJECT(this), TQT_SLOT(configureWizard()),
|
|
|
|
actionCollection(), "options_configure_wizard");
|
|
|
|
actionCollection(), "options_configure_wizard");
|
|
|
|
a->setWhatsThis(i18n("Configure KPilot using the configuration wizard."));
|
|
|
|
a->setWhatsThis(i18n("Configure KPilot using the configuration wizard."));
|
|
|
@ -683,8 +683,8 @@ void KPilotInstaller::addComponentPage(PilotComponent * p,
|
|
|
|
strlcat(actionname, componentname, actionnameLength);
|
|
|
|
strlcat(actionname, componentname, actionnameLength);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
KToggleAction *pt =
|
|
|
|
TDEToggleAction *pt =
|
|
|
|
new KToggleAction(name, /* "kpilot" -- component icon, */ 0,
|
|
|
|
new TDEToggleAction(name, /* "kpilot" -- component icon, */ 0,
|
|
|
|
TQT_TQOBJECT(p), TQT_SLOT(slotShowComponent()),
|
|
|
|
TQT_TQOBJECT(p), TQT_SLOT(slotShowComponent()),
|
|
|
|
actionCollection(), actionname);
|
|
|
|
actionCollection(), actionname);
|
|
|
|
|
|
|
|
|
|
|
|