configuredialog.cpp
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 #include "configuredialog.h"
00035
00036 #include <kwin.h>
00037 #include <kapplication.h>
00038 #include <kconfig.h>
00039 #include <klocale.h>
00040
00041 ConfigureDialog::ConfigureDialog( QWidget *parent, const char *name, bool modal )
00042 : KCMultiDialog( KDialogBase::IconList, i18n( "Configure" ), parent, name, modal )
00043 {
00044 KWin::setIcons( winId(), kapp->icon(), kapp->miniIcon() );
00045 showButton( User1, true );
00046
00047 addModule( "kleopatra_config_dirserv", false );
00048 addModule( "kleopatra_config_appear", false );
00049 addModule( "kleopatra_config_dnorder", false );
00050
00051
00052
00053
00054
00055 const KConfigGroup geometry( KGlobal::config(), "Geometry" );
00056 const int width = geometry.readNumEntry( "ConfigureDialogWidth" );
00057 const int height = geometry.readNumEntry( "ConfigureDialogHeight" );
00058 if ( width != 0 && height != 0 ) {
00059 setMinimumSize( width, height );
00060 }
00061
00062 }
00063
00064 void ConfigureDialog::hideEvent( QHideEvent * ) {
00065 KConfigGroup geometry( KGlobal::config(), "Geometry" );
00066 geometry.writeEntry( "ConfigureDialogWidth", width() );
00067 geometry.writeEntry( "ConfigureDialogHeight",height() );
00068 }
00069
00070 ConfigureDialog::~ConfigureDialog() {
00071 }
00072
00073 #include "configuredialog.moc"
This file is part of the documentation for certmanager Library Version 3.3.2.