#include "simapi.h"
/****************************************************************************
** Form implementation generated from reading ui file './migratedlgbase.ui'
**
** Created: вт мар 30 16:14:11 2004
**      by: The User Interface Compiler ($Id: qt/main.cpp   3.1.2   edited Dec 19 11:45 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "migratedlgbase.h"

#include <qvariant.h>
#include <qpushbutton.h>
#include <qwidget.h>
#include <qlabel.h>
#include <qframe.h>
#include <qcheckbox.h>
#include <qprogressbar.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>

/* 
 *  Constructs a MigrateDialogBase as a child of 'parent', with the 
 *  name 'name' and widget flags set to 'f'.
 *
 *  The wizard will by default be modeless, unless you set 'modal' to
 *  TRUE to construct a modal wizard.
 */
MigrateDialogBase::MigrateDialogBase( QWidget* parent, const char* name, bool modal, WFlags fl )
    : QWizard( parent, name, modal, fl )
{
    if ( !name )
	setName( "MigrateDialog" );

    page1 = new QWidget( this, "page1" );
    page1Layout = new QVBoxLayout( page1, 11, 6, "page1Layout"); 

    TextLabel1 = new QLabel( page1, "TextLabel1" );
    page1Layout->addWidget( TextLabel1 );

    Line1 = new QFrame( page1, "Line1" );
    Line1->setProperty( "sizePolicy", QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, Line1->sizePolicy().hasHeightForWidth() ) );
    page1Layout->addWidget( Line1 );

    chkRemove = new QCheckBox( page1, "chkRemove" );
    page1Layout->addWidget( chkRemove );

    TextLabel3 = new QLabel( page1, "TextLabel3" );
    TextLabel3->setProperty( "alignment", int( QLabel::WordBreak | QLabel::AlignVCenter | QLabel::AlignLeft ) );
    page1Layout->addWidget( TextLabel3 );
    QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    page1Layout->addItem( spacer );
    addPage( page1, QString("") );

    page2 = new QWidget( this, "page2" );
    page2Layout = new QVBoxLayout( page2, 11, 6, "page2Layout"); 
    QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    page2Layout->addItem( spacer_2 );

    lblStatus = new QLabel( page2, "lblStatus" );
    page2Layout->addWidget( lblStatus );

    barCnv = new QProgressBar( page2, "barCnv" );
    page2Layout->addWidget( barCnv );
    QSpacerItem* spacer_3 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    page2Layout->addItem( spacer_3 );
    addPage( page2, QString("") );
    languageChange();
    resize( QSize(507, 316).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void MigrateDialogBase::languageChange()
{
    setProperty( "caption", i18n( "Convert configuration from old version" ) );
    TextLabel1->setProperty( "text", i18n( "Directories for convert:" ) );
    chkRemove->setProperty( "text", i18n( "&Remove old files" ) );
    TextLabel3->setProperty( "text", i18n( "Note!\n"
"If you select an option \" Remove old files \", you can not use the old version" ) );
    setTitle( page1, i18n( "Select directories for convert" ) );
    lblStatus->setProperty( "text", QString::null );
    setTitle( page2, i18n( "Convert configuration" ) );
}

#include "migratedlgbase.moc"
