#include <kdialog.h>
#include <klocale.h>
/****************************************************************************
** Form implementation generated from reading ui file '/usr/src/ports/kdelibs3/kdelibs3-3.5.10-11.i686/src/kdelibs-3.5.10/kio/misc/kwalletd/kbetterthankdialogbase.ui'
**
** Created by User Interface Compiler
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "kbetterthankdialogbase.h"

#include <qvariant.h>
#include <qpushbutton.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include "kactivelabel.h"
#include "/usr/src/ports/kdelibs3/kdelibs3-3.5.10-11.i686/src/kdelibs-3.5.10/kio/misc/kwalletd/kbetterthankdialogbase.ui.h"

/*
 *  Constructs a KBetterThanKDialogBase as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 *
 *  The dialog will by default be modeless, unless you set 'modal' to
 *  TRUE to construct a modal dialog.
 */
KBetterThanKDialogBase::KBetterThanKDialogBase( QWidget* parent, const char* name, bool modal, WFlags fl )
    : QDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "KBetterThanKDialogBase" );
    KBetterThanKDialogBaseLayout = new QGridLayout( this, 1, 1, 11, 6, "KBetterThanKDialogBaseLayout"); 
    KBetterThanKDialogBaseLayout->setResizeMode( QLayout::Fixed );

    _label = new KActiveLabel( this, "_label" );

    KBetterThanKDialogBaseLayout->addMultiCellWidget( _label, 0, 0, 0, 2 );
    spacer1 = new QSpacerItem( 41, 21, QSizePolicy::Expanding, QSizePolicy::Minimum );
    KBetterThanKDialogBaseLayout->addItem( spacer1, 1, 2 );

    layout1 = new QHBoxLayout( 0, 0, 6, "layout1"); 

    _allowOnce = new QPushButton( this, "_allowOnce" );
    _allowOnce->setDefault( TRUE );
    layout1->addWidget( _allowOnce );

    _allowAlways = new QPushButton( this, "_allowAlways" );
    layout1->addWidget( _allowAlways );

    _deny = new QPushButton( this, "_deny" );
    layout1->addWidget( _deny );

    _denyForever = new QPushButton( this, "_denyForever" );
    layout1->addWidget( _denyForever );

    KBetterThanKDialogBaseLayout->addLayout( layout1, 1, 1 );
    spacer2 = new QSpacerItem( 61, 21, QSizePolicy::Expanding, QSizePolicy::Minimum );
    KBetterThanKDialogBaseLayout->addItem( spacer2, 1, 0 );
    languageChange();
    resize( QSize(479, 109).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( _allowOnce, SIGNAL( clicked() ), this, SLOT( clicked() ) );
    connect( _allowAlways, SIGNAL( clicked() ), this, SLOT( clicked() ) );
    connect( _deny, SIGNAL( clicked() ), this, SLOT( clicked() ) );
    connect( _denyForever, SIGNAL( clicked() ), this, SLOT( clicked() ) );
    init();
}

/*
 *  Destroys the object and frees any allocated resources
 */
KBetterThanKDialogBase::~KBetterThanKDialogBase()
{
    // no need to delete child widgets, Qt does it all for us
}

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KBetterThanKDialogBase::languageChange()
{
    setCaption( QString::null );
    _allowOnce->setText( tr2i18n( "Allow &Once" ) );
    _allowAlways->setText( tr2i18n( "Allow &Always" ) );
    _deny->setText( tr2i18n( "&Deny" ) );
    _denyForever->setText( tr2i18n( "Deny &Forever" ) );
}

#include "kbetterthankdialogbase.moc"
