Replace various '#define' strings - part 6

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/6/head
Michele Calgaro 11 months ago
parent 08130bc103
commit 4586cddf97
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -78,26 +78,26 @@ KeepMainWindow::~KeepMainWindow()
void KeepMainWindow::initActions()
{
KStdAction::quit(TQT_TQOBJECT(this), TQT_SLOT(close()), actionCollection());
new TDEAction( i18n("Check rdiff-backup"), "application-vnd.tde.info", "", TQT_TQOBJECT(this), TQT_SLOT(slotCheckRDB()), actionCollection(), "check_rdiff-backup" );
new TDEAction( i18n("Configure backups"), "configure", "", TQT_TQOBJECT(this), TQT_SLOT(slotConfigureBackup()), actionCollection(), "configure_backups" );
new TDEAction( i18n("Configure"), "configure", "", TQT_TQOBJECT(this), TQT_SLOT(slotConfigure()), actionCollection(), "configure_keep" );
new TDEAction( i18n("Add Backup"), "add_backup", "", TQT_TQOBJECT(this), TQT_SLOT(slotAddBackupWizard()), actionCollection(), "add_backup" );
new TDEAction( i18n("Restore Backup"), "restore_dir", "", TQT_TQOBJECT(this), TQT_SLOT(slotRestoreBackupWizard()), actionCollection(), "restore_backup" );
new TDEAction( i18n("Backup Now"), "force_backup", "", TQT_TQOBJECT(this), TQT_SLOT(slotForceBackup()), actionCollection(), "force_backup" );
new TDEAction( i18n("View log"), "text-x-log", "", TQT_TQOBJECT(this), TQT_SLOT(slotViewLog()), actionCollection(), "view_log");
KStdAction::quit(this, TQT_SLOT(close()), actionCollection());
new TDEAction( i18n("Check rdiff-backup"), "application-vnd.tde.info", "", this, TQT_SLOT(slotCheckRDB()), actionCollection(), "check_rdiff-backup" );
new TDEAction( i18n("Configure backups"), "configure", "", this, TQT_SLOT(slotConfigureBackup()), actionCollection(), "configure_backups" );
new TDEAction( i18n("Configure"), "configure", "", this, TQT_SLOT(slotConfigure()), actionCollection(), "configure_keep" );
new TDEAction( i18n("Add Backup"), "add_backup", "", this, TQT_SLOT(slotAddBackupWizard()), actionCollection(), "add_backup" );
new TDEAction( i18n("Restore Backup"), "restore_dir", "", this, TQT_SLOT(slotRestoreBackupWizard()), actionCollection(), "restore_backup" );
new TDEAction( i18n("Backup Now"), "force_backup", "", this, TQT_SLOT(slotForceBackup()), actionCollection(), "force_backup" );
new TDEAction( i18n("View log"), "text-x-log", "", this, TQT_SLOT(slotViewLog()), actionCollection(), "view_log");
}
void KeepMainWindow::initConnections()
{
connect( m_actionView->m_btnAddWizard, TQT_SIGNAL( clicked()), TQT_TQOBJECT(this), TQT_SLOT( slotAddBackupWizard() ) );
connect( m_actionView->m_btnRestoreWizard, TQT_SIGNAL( clicked()), TQT_TQOBJECT(this), TQT_SLOT( slotRestoreBackupWizard() ) );
connect( m_actionView->m_btnForce, TQT_SIGNAL( clicked()), TQT_TQOBJECT(this), TQT_SLOT( slotForceBackup() ) );
connect( m_actionView->m_btnBackupConfig, TQT_SIGNAL( clicked()), TQT_TQOBJECT(this), TQT_SLOT( slotConfigureBackup() ) );
connect( m_actionView->m_btnLog, TQT_SIGNAL( clicked()), TQT_TQOBJECT(this), TQT_SLOT( slotViewLog() ) );
connect( m_actionView->m_btnLoadDaemon, TQT_SIGNAL( clicked()), TQT_TQOBJECT(this), TQT_SLOT( slotLoadDaemon() ) );
connect( m_actionView->m_btnUnloadDaemon, TQT_SIGNAL( clicked()), TQT_TQOBJECT(this), TQT_SLOT( slotUnloadDaemon() ) );
connect( m_actionView->m_btnReloadDaemon, TQT_SIGNAL( clicked()), TQT_TQOBJECT(this), TQT_SLOT( slotReloadDaemon() ) );
connect( m_actionView->m_btnAddWizard, TQT_SIGNAL( clicked()), this, TQT_SLOT( slotAddBackupWizard() ) );
connect( m_actionView->m_btnRestoreWizard, TQT_SIGNAL( clicked()), this, TQT_SLOT( slotRestoreBackupWizard() ) );
connect( m_actionView->m_btnForce, TQT_SIGNAL( clicked()), this, TQT_SLOT( slotForceBackup() ) );
connect( m_actionView->m_btnBackupConfig, TQT_SIGNAL( clicked()), this, TQT_SLOT( slotConfigureBackup() ) );
connect( m_actionView->m_btnLog, TQT_SIGNAL( clicked()), this, TQT_SLOT( slotViewLog() ) );
connect( m_actionView->m_btnLoadDaemon, TQT_SIGNAL( clicked()), this, TQT_SLOT( slotLoadDaemon() ) );
connect( m_actionView->m_btnUnloadDaemon, TQT_SIGNAL( clicked()), this, TQT_SLOT( slotUnloadDaemon() ) );
connect( m_actionView->m_btnReloadDaemon, TQT_SIGNAL( clicked()), this, TQT_SLOT( slotReloadDaemon() ) );
}
void KeepMainWindow::slotRefreshGUI()
@ -169,7 +169,7 @@ void KeepMainWindow::slotConfigure()
void KeepMainWindow::slotAddBackupWizard()
{
AddBackupWizard *addBackupWizard = new AddBackupWizard(this, "addBackupWizard");
connect( addBackupWizard, TQT_SIGNAL( backupSetted(Backup)), TQT_TQOBJECT(this), TQT_SLOT( slotAddBackup(Backup) ) );
connect( addBackupWizard, TQT_SIGNAL( backupSetted(Backup)), this, TQT_SLOT( slotAddBackup(Backup) ) );
addBackupWizard->show();
}

Loading…
Cancel
Save