32 #include "cryptoconfigdialog.h" 33 #include "cryptoconfigmodule.h" 34 #include <tdelocale.h> 35 #include <tdeaccelmanager.h> 37 Kleo::CryptoConfigDialog::CryptoConfigDialog( Kleo::CryptoConfig* config, TQWidget *parent, const char* name ) 38 : KDialogBase( Swallow, 40 WStyle_Customize | WStyle_DialogBorder | WStyle_Maximize | WStyle_Title | WStyle_SysMenu, 42 i18n( "Configure" ), Default|Cancel|Apply|Ok|User1, 43 Ok, true , KGuiItem( i18n( "&Reset" ), "edit-undo" ) ) 45 mMainWidget = new CryptoConfigModule( config, this ); 46 setMainWidget( mMainWidget ); 47 connect( mMainWidget, TQT_SIGNAL( changed() ), TQT_SLOT( slotChanged() ) ); 48 enableButton( Apply, false ); 49 if ( mMainWidget->hasError() ) { 50 showButton( Default, false ); 51 showButton( User1, false ); 52 showButton( Apply, false ); 53 showButton( Ok, false ); 57 TDEAcceleratorManager::manage( this ); 60 void Kleo::CryptoConfigDialog::slotOk() 66 void Kleo::CryptoConfigDialog::slotCancel() 68 mMainWidget->cancel(); 72 void Kleo::CryptoConfigDialog::slotDefault() 74 mMainWidget->defaults(); 78 void Kleo::CryptoConfigDialog::slotApply() 81 enableButton( Apply, false ); 84 void Kleo::CryptoConfigDialog::slotUser1() 87 enableButton( Apply, false ); 90 void Kleo::CryptoConfigDialog::slotChanged() 92 enableButton( Apply, true ); 95 #include "cryptoconfigdialog.moc" Main interface to crypto configuration.
|