00001 #include <klocale.h>
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #include "importprogress.h"
00012
00013 #include <qvariant.h>
00014 #include <qpushbutton.h>
00015 #include <qlabel.h>
00016 #include <qprogressbar.h>
00017 #include <qlayout.h>
00018 #include <qtooltip.h>
00019 #include <qwhatsthis.h>
00020 #include <qimage.h>
00021 #include <qpixmap.h>
00022
00023
00024
00025
00026
00027
00028
00029
00030 ImportProgress::ImportProgress( QWidget* parent, const char* name, bool modal, WFlags fl )
00031 : QDialog( parent, name, modal, fl )
00032 {
00033 if ( !name )
00034 setName( "ImportProgress" );
00035 ImportProgressLayout = new QHBoxLayout( this, 11, 6, "ImportProgressLayout");
00036
00037 layout4 = new QVBoxLayout( 0, 0, 6, "layout4");
00038 QSpacerItem* spacer = new QSpacerItem( 20, 31, QSizePolicy::Minimum, QSizePolicy::Expanding );
00039 layout4->addItem( spacer );
00040
00041 layout3 = new QVBoxLayout( 0, 0, 6, "layout3");
00042
00043 layout1 = new QHBoxLayout( 0, 0, 6, "layout1");
00044
00045 filename = new QLabel( this, "filename" );
00046 layout1->addWidget( filename );
00047 QSpacerItem* spacer_2 = new QSpacerItem( 61, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00048 layout1->addItem( spacer_2 );
00049 layout3->addLayout( layout1 );
00050
00051 file = new QProgressBar( this, "file" );
00052 layout3->addWidget( file );
00053
00054 layout2 = new QHBoxLayout( 0, 0, 6, "layout2");
00055
00056 textLabel1 = new QLabel( this, "textLabel1" );
00057 layout2->addWidget( textLabel1 );
00058 QSpacerItem* spacer_3 = new QSpacerItem( 101, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00059 layout2->addItem( spacer_3 );
00060 layout3->addLayout( layout2 );
00061
00062 all = new QProgressBar( this, "all" );
00063 layout3->addWidget( all );
00064 layout4->addLayout( layout3 );
00065 QSpacerItem* spacer_4 = new QSpacerItem( 20, 21, QSizePolicy::Minimum, QSizePolicy::Expanding );
00066 layout4->addItem( spacer_4 );
00067 ImportProgressLayout->addLayout( layout4 );
00068 languageChange();
00069 resize( QSize(617, 590).expandedTo(minimumSizeHint()) );
00070 clearWState( WState_Polished );
00071 }
00072
00073
00074
00075
00076 ImportProgress::~ImportProgress()
00077 {
00078
00079 }
00080
00081
00082
00083
00084
00085 void ImportProgress::languageChange()
00086 {
00087 setCaption( tr2i18n( "Import Files" ) );
00088 filename->setText( tr2i18n( "File:" ) );
00089 textLabel1->setText( tr2i18n( "All files" ) );
00090 }
00091
00092 #include "importprogress.moc"