# kio Library API Documentation

Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Namespaces | Source Files

# kwalletwizard.ui.h

    00001 /****************************************************************************
    00002 ** ui.h extension file, included from the uic-generated form implementation.
    00003 **
    00004 ** If you wish to add, delete or rename functions or slots use
    00005 ** Qt Designer which will update this file, preserving your code. Create an
    00006 ** init() function in place of a constructor, and a destroy() function in
    00007 ** place of a destructor.
    00008 *****************************************************************************/
    00009
    00010 void KWalletWizard::passwordPageUpdate()
    00011 {
    00012     bool fe = !_useWallet->isChecked() || _pass1->text() == _pass2->text();
    00013     if (_basic->isChecked()) {
    00014         setFinishEnabled(page2, fe);
    00015     } else {
    00016         setNextEnabled(page2, fe);
    00017         setFinishEnabled(page3, fe);
    00018     }
    00019
    00020     if (_useWallet->isChecked()) {
    00021     if (_pass1->text() == _pass2->text()) {
    00022             if (_pass1->text().isEmpty()) {
    00023                 _matchLabel->setText(i18n("<qt>Password is empty.  <b>(WARNING: Insecure)"));
    00024             } else {
    00025                 _matchLabel->setText(i18n("Passwords match."));
    00026             }
    00027     } else {
    00028         _matchLabel->setText(i18n("Passwords do not match."));
    00029     }
    00030     } else {
    00031     _matchLabel->setText(QString::null);
    00032     }
    00033
    00034 }
    00035
    00036
    00037 void KWalletWizard::init()
    00038 {
    00039     setHelpEnabled(page1, false);
    00040     setHelpEnabled(page2, false);
    00041     setHelpEnabled(page3, false);
    00042     setHelpEnabled(page4, false);
    00043     setAppropriate(page3, false);
    00044     setAppropriate(page4, false);
    00045     setFinishEnabled(page2, true);
    00046 }
    00047
    00048
    00049 void KWalletWizard::setAdvanced()
    00050 {
    00051     setAppropriate(page3, true);
    00052     setAppropriate(page4, true);
    00053     bool fe = !_useWallet->isChecked() || _pass1->text() == _pass2->text();
    00054     setFinishEnabled(page2, false);
    00055     setNextEnabled(page2, fe);
    00056     setFinishEnabled(page3, fe);
    00057 }
    00058
    00059
    00060 void KWalletWizard::setBasic()
    00061 {
    00062     setAppropriate(page3, false);
    00063     setAppropriate(page4, false);
    00064     bool fe = !_useWallet->isChecked() || _pass1->text() == _pass2->text();
    00065     setFinishEnabled(page3, false);
    00066     setFinishEnabled(page2, fe);
    00067 }
    00068
    00069
    00070 void KWalletWizard::destroy()
    00071 {
    00072     _pass1->clear();
    00073     _pass2->clear();
    00074 }

This file is part of the documentation for kio Library Version 3.4.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat Jun 11 20:24:06 2005 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003