diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:14:12 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:14:12 -0600 |
commit | fd5d099065a748cac49e20a13481f85666c53c71 (patch) | |
tree | a0f1672cd88eb0e69b9ddc2ed9b08ecd98538bd3 /certmanager/certmanager.cpp | |
parent | b440a9c608596cd88efdb3bfa4661c5e37efbe4b (diff) | |
download | tdepim-fd5d099065a748cac49e20a13481f85666c53c71.tar.gz tdepim-fd5d099065a748cac49e20a13481f85666c53c71.zip |
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'certmanager/certmanager.cpp')
-rw-r--r-- | certmanager/certmanager.cpp | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/certmanager/certmanager.cpp b/certmanager/certmanager.cpp index 57ea1432d..170f64268 100644 --- a/certmanager/certmanager.cpp +++ b/certmanager/certmanager.cpp @@ -162,7 +162,7 @@ namespace { CertManager::CertManager( bool remote, const TQString& query, const TQString & import, TQWidget* parent, const char* name, WFlags f ) - : KMainWindow( parent, name, f|WDestructiveClose ), + : TDEMainWindow( parent, name, f|WDestructiveClose ), mCrlView( 0 ), mDirmngrProc( 0 ), mHierarchyAnalyser( 0 ), @@ -250,104 +250,104 @@ static inline void connectEnableOperationSignal( TQObject * s, TQObject * d ) { void CertManager::createActions() { - KAction * action = 0; + TDEAction * action = 0; (void)KStdAction::quit( TQT_TQOBJECT(this), TQT_SLOT(close()), actionCollection() ); action = KStdAction::redisplay( TQT_TQOBJECT(this), TQT_SLOT(slotRedisplay()), actionCollection() ); // work around the fact that the stdaction has no shortcut - KShortcut reloadShortcut = KStdAccel::shortcut(KStdAccel::Reload); + TDEShortcut reloadShortcut = TDEStdAccel::shortcut(TDEStdAccel::Reload); reloadShortcut.append(KKey(CTRL + Key_R)); action->setShortcut( reloadShortcut ); connectEnableOperationSignal( TQT_TQOBJECT(this), action ); - action = new KAction( i18n("Stop Operation"), "stop", Key_Escape, + action = new TDEAction( i18n("Stop Operation"), "stop", Key_Escape, TQT_TQOBJECT(this), TQT_SIGNAL(stopOperations()), actionCollection(), "view_stop_operations" ); action->setEnabled( false ); - (void) new KAction( i18n("New Key Pair..."), "filenew", 0, + (void) new TDEAction( i18n("New Key Pair..."), "filenew", 0, TQT_TQOBJECT(this), TQT_SLOT(newCertificate()), actionCollection(), "file_new_certificate" ); - connect( new KToggleAction( i18n("Hierarchical Key List"), 0, + connect( new TDEToggleAction( i18n("Hierarchical Key List"), 0, actionCollection(), "view_hierarchical" ), TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotToggleHierarchicalView(bool)) ); - action = new KAction( i18n("Expand All"), 0, CTRL+Key_Period, + action = new TDEAction( i18n("Expand All"), 0, CTRL+Key_Period, TQT_TQOBJECT(this), TQT_SLOT(slotExpandAll()), actionCollection(), "view_expandall" ); - action = new KAction( i18n("Collapse All"), 0, CTRL+Key_Comma, + action = new TDEAction( i18n("Collapse All"), 0, CTRL+Key_Comma, TQT_TQOBJECT(this), TQT_SLOT(slotCollapseAll()), actionCollection(), "view_collapseall" ); - (void) new KAction( i18n("Refresh CRLs"), 0, 0, + (void) new TDEAction( i18n("Refresh CRLs"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotRefreshKeys()), actionCollection(), "certificates_refresh_clr" ); #ifdef NOT_IMPLEMENTED_ANYWAY - mRevokeCertificateAction = new KAction( i18n("Revoke"), 0, + mRevokeCertificateAction = new TDEAction( i18n("Revoke"), 0, TQT_TQOBJECT(this), TQT_SLOT(revokeCertificate()), actionCollection(), "edit_revoke_certificate" ); connectEnableOperationSignal( this, mRevokeCertificateAction ); - mExtendCertificateAction = new KAction( i18n("Extend"), 0, + mExtendCertificateAction = new TDEAction( i18n("Extend"), 0, TQT_TQOBJECT(this), TQT_SLOT(extendCertificate()), actionCollection(), "edit_extend_certificate" ); connectEnableOperationSignal( this, mExtendCertificateAction ); #endif - mDeleteCertificateAction = new KAction( i18n("Delete"), "editdelete", Key_Delete, + mDeleteCertificateAction = new TDEAction( i18n("Delete"), "editdelete", Key_Delete, TQT_TQOBJECT(this), TQT_SLOT(slotDeleteCertificate()), actionCollection(), "edit_delete_certificate" ); connectEnableOperationSignal( TQT_TQOBJECT(this), mDeleteCertificateAction ); - mValidateCertificateAction = new KAction( i18n("Validate"), "reload", SHIFT + Key_F5, + mValidateCertificateAction = new TDEAction( i18n("Validate"), "reload", SHIFT + Key_F5, TQT_TQOBJECT(this), TQT_SLOT(slotValidate()), actionCollection(), "certificates_validate" ); connectEnableOperationSignal( TQT_TQOBJECT(this), mValidateCertificateAction ); - mImportCertFromFileAction = new KAction( i18n("Import Certificates..."), 0, + mImportCertFromFileAction = new TDEAction( i18n("Import Certificates..."), 0, TQT_TQOBJECT(this), TQT_SLOT(slotImportCertFromFile()), actionCollection(), "file_import_certificates" ); connectEnableOperationSignal( TQT_TQOBJECT(this), mImportCertFromFileAction ); - mImportCRLFromFileAction = new KAction( i18n("Import CRLs..."), 0, + mImportCRLFromFileAction = new TDEAction( i18n("Import CRLs..."), 0, TQT_TQOBJECT(this), TQT_SLOT(importCRLFromFile()), actionCollection(), "file_import_crls" ); connectEnableOperationSignal( TQT_TQOBJECT(this), mImportCRLFromFileAction ); - mExportCertificateAction = new KAction( i18n("Export Certificates..."), "export", 0, + mExportCertificateAction = new TDEAction( i18n("Export Certificates..."), "export", 0, TQT_TQOBJECT(this), TQT_SLOT(slotExportCertificate()), actionCollection(), "file_export_certificate" ); - mExportSecretKeyAction = new KAction( i18n("Export Secret Key..."), "export", 0, + mExportSecretKeyAction = new TDEAction( i18n("Export Secret Key..."), "export", 0, TQT_TQOBJECT(this), TQT_SLOT(slotExportSecretKey()), actionCollection(), "file_export_secret_keys" ); connectEnableOperationSignal( TQT_TQOBJECT(this), mExportSecretKeyAction ); - mViewCertDetailsAction = new KAction( i18n("Certificate Details..."), 0, 0, + mViewCertDetailsAction = new TDEAction( i18n("Certificate Details..."), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotViewDetails()), actionCollection(), "view_certificate_details" ); - mDownloadCertificateAction = new KAction( i18n( "Download"), 0, 0, + mDownloadCertificateAction = new TDEAction( i18n( "Download"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotDownloadCertificate()), actionCollection(), "download_certificate" ); const TQString dirmngr = TDEStandardDirs::findExe( "gpgsm" ); mDirMngrFound = !dirmngr.isEmpty(); - action = new KAction( i18n("Dump CRL Cache..."), 0, + action = new TDEAction( i18n("Dump CRL Cache..."), 0, TQT_TQOBJECT(this), TQT_SLOT(slotViewCRLs()), actionCollection(), "crl_dump_crl_cache" ); action->setEnabled( mDirMngrFound ); // we also need dirmngr for this - action = new KAction( i18n("Clear CRL Cache..."), 0, + action = new TDEAction( i18n("Clear CRL Cache..."), 0, TQT_TQOBJECT(this), TQT_SLOT(slotClearCRLs()), actionCollection(), "crl_clear_crl_cache" ); action->setEnabled( mDirMngrFound ); // we also need dirmngr for this - action = new KAction( i18n("GnuPG Log Viewer..."), "pgp-keys", 0, TQT_TQOBJECT(this), + action = new TDEAction( i18n("GnuPG Log Viewer..."), "pgp-keys", 0, TQT_TQOBJECT(this), TQT_SLOT(slotStartWatchGnuPG()), actionCollection(), "tools_start_kwatchgnupg"); // disable action if no kwatchgnupg binary is around if (TDEStandardDirs::findExe("kwatchgnupg").isEmpty()) action->setEnabled(false); @@ -363,13 +363,13 @@ void CertManager::createActions() { mComboAction = new ComboAction( lst, actionCollection(), TQT_TQOBJECT(this), TQT_SLOT( slotToggleRemote(int) ), "location_combo_action", mNextFindRemote? 1 : 0 ); - mFindAction = new KAction( i18n("Find"), "find", 0, TQT_TQOBJECT(this), TQT_SLOT(slotSearch()), + mFindAction = new TDEAction( i18n("Find"), "find", 0, TQT_TQOBJECT(this), TQT_SLOT(slotSearch()), actionCollection(), "find" ); KStdAction::keyBindings( TQT_TQOBJECT(this), TQT_SLOT(slotEditKeybindings()), actionCollection() ); KStdAction::preferences( TQT_TQOBJECT(this), TQT_SLOT(slotShowConfigurationDialog()), actionCollection() ); - new KAction( i18n( "Configure &GpgME Backend" ), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotConfigureGpgME()), + new TDEAction( i18n( "Configure &GpgME Backend" ), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotConfigureGpgME()), actionCollection(), "configure_gpgme" ); createStandardStatusBarAction(); @@ -423,12 +423,12 @@ void CertManager::slotToggleHierarchicalView( bool hier ) { mHierarchicalView = hier; mKeyListView->setHierarchical( hier ); mKeyListView->setRootIsDecorated( hier ); - if ( KAction * act = action("view_expandall") ) + if ( TDEAction * act = action("view_expandall") ) act->setEnabled( hier ); - if ( KAction * act = action("view_collapseall" ) ) + if ( TDEAction * act = action("view_collapseall" ) ) act->setEnabled( hier ); - if ( KToggleAction * act = - static_cast<KToggleAction*>( action("view_hierarchical") ) ) + if ( TDEToggleAction * act = + static_cast<TDEToggleAction*>( action("view_hierarchical") ) ) act->setChecked( hier ); if ( hier && !mCurrentQuery.isEmpty() ) |