#include <kdialog.h>
#include <klocale.h>
/****************************************************************************
** Form implementation generated from reading ui file './extractdlg.ui'
**
** Created: Sun Jul 10 12:14:41 2005
**      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.4   edited Nov 24 2003 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "extractdlg.h"

#include <qvariant.h>
#include <qpushbutton.h>
#include <qlabel.h>
#include <kurlrequester.h>
#include <qcheckbox.h>
#include <qgroupbox.h>
#include <kpushbutton.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>

/*
 *  Constructs a extractDlg 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.
 */
extractDlg::extractDlg( QWidget* parent, const char* name, bool modal, WFlags fl )
    : QDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "extractDlg" );
    extractDlgLayout = new QVBoxLayout( this, 11, 6, "extractDlgLayout"); 

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

    textLabel1 = new QLabel( this, "textLabel1" );
    layout4->addWidget( textLabel1 );

    extractKURLRequester = new KURLRequester( this, "extractKURLRequester" );
    layout4->addWidget( extractKURLRequester );
    extractDlgLayout->addLayout( layout4 );

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

    configureRestoreSettingsPushButton = new QPushButton( this, "configureRestoreSettingsPushButton" );
    layout37->addWidget( configureRestoreSettingsPushButton );
    spacer34 = new QSpacerItem( 61, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    layout37->addItem( spacer34 );
    extractDlgLayout->addLayout( layout37 );

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

    dryRunCheckBox = new QCheckBox( this, "dryRunCheckBox" );
    layout11->addWidget( dryRunCheckBox );
    spacer10 = new QSpacerItem( 191, 21, QSizePolicy::Expanding, QSizePolicy::Minimum );
    layout11->addItem( spacer10 );
    extractDlgLayout->addLayout( layout11 );

    groupBox16 = new QGroupBox( this, "groupBox16" );
    groupBox16->setColumnLayout(0, Qt::Vertical );
    groupBox16->layout()->setSpacing( 6 );
    groupBox16->layout()->setMargin( 11 );
    groupBox16Layout = new QVBoxLayout( groupBox16->layout() );
    groupBox16Layout->setAlignment( Qt::AlignTop );

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

    saveProfilePushButton = new QPushButton( groupBox16, "saveProfilePushButton" );
    layout38->addWidget( saveProfilePushButton );

    textLabel1_2 = new QLabel( groupBox16, "textLabel1_2" );
    layout38->addWidget( textLabel1_2 );
    spacer35 = new QSpacerItem( 81, 21, QSizePolicy::Expanding, QSizePolicy::Minimum );
    layout38->addItem( spacer35 );
    groupBox16Layout->addLayout( layout38 );

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

    restoreProfilePushButton = new QPushButton( groupBox16, "restoreProfilePushButton" );
    layout39->addWidget( restoreProfilePushButton );

    textLabel2 = new QLabel( groupBox16, "textLabel2" );
    layout39->addWidget( textLabel2 );
    spacer36 = new QSpacerItem( 81, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    layout39->addItem( spacer36 );
    groupBox16Layout->addLayout( layout39 );

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

    exportDarCommandButton = new QPushButton( groupBox16, "exportDarCommandButton" );
    layout7->addWidget( exportDarCommandButton );

    textLabel1_3 = new QLabel( groupBox16, "textLabel1_3" );
    layout7->addWidget( textLabel1_3 );
    spacer7 = new QSpacerItem( 71, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    layout7->addItem( spacer7 );
    groupBox16Layout->addLayout( layout7 );
    extractDlgLayout->addWidget( groupBox16 );
    spacer2 = new QSpacerItem( 20, 16, QSizePolicy::Minimum, QSizePolicy::Expanding );
    extractDlgLayout->addItem( spacer2 );

    layout3 = new QHBoxLayout( 0, 0, 6, "layout3"); 
    spacer2_2 = new QSpacerItem( 196, 21, QSizePolicy::Expanding, QSizePolicy::Minimum );
    layout3->addItem( spacer2_2 );

    kPushButton4 = new KPushButton( this, "kPushButton4" );
    layout3->addWidget( kPushButton4 );

    kPushButton5 = new KPushButton( this, "kPushButton5" );
    layout3->addWidget( kPushButton5 );
    extractDlgLayout->addLayout( layout3 );
    languageChange();
    resize( QSize(460, 399).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( kPushButton4, SIGNAL( clicked() ), this, SLOT( accept() ) );
    connect( kPushButton5, SIGNAL( clicked() ), this, SLOT( reject() ) );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void extractDlg::languageChange()
{
    setCaption( tr2i18n( "Restore" ) );
    textLabel1->setText( tr2i18n( "Restore files to" ) );
    configureRestoreSettingsPushButton->setText( tr2i18n( "Co&nfigure restore settings" ) );
    configureRestoreSettingsPushButton->setAccel( QKeySequence( tr2i18n( "Alt+N" ) ) );
    dryRunCheckBox->setText( tr2i18n( "&Dry run" ) );
    dryRunCheckBox->setAccel( QKeySequence( tr2i18n( "Alt+D" ) ) );
    groupBox16->setTitle( tr2i18n( "Profiles" ) );
    saveProfilePushButton->setText( tr2i18n( "&Save" ) );
    saveProfilePushButton->setAccel( QKeySequence( tr2i18n( "Alt+S" ) ) );
    textLabel1_2->setText( tr2i18n( "this restore profile to disk" ) );
    restoreProfilePushButton->setText( tr2i18n( "&Load" ) );
    restoreProfilePushButton->setAccel( QKeySequence( tr2i18n( "Alt+L" ) ) );
    textLabel2->setText( tr2i18n( "a restore profile from disk" ) );
    exportDarCommandButton->setText( tr2i18n( "&Export" ) );
    exportDarCommandButton->setAccel( QKeySequence( tr2i18n( "Alt+E" ) ) );
    textLabel1_3->setText( tr2i18n( "dar command line" ) );
    kPushButton4->setText( tr2i18n( "&OK" ) );
    kPushButton4->setAccel( QKeySequence( tr2i18n( "Alt+O" ) ) );
    kPushButton5->setText( tr2i18n( "&Cancel" ) );
    kPushButton5->setAccel( QKeySequence( tr2i18n( "Alt+C" ) ) );
}

#include "extractdlg.moc"
