Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

importprogress.cpp

Go to the documentation of this file.
00001 #include <klocale.h>
00002 /****************************************************************************
00003 ** Form implementation generated from reading ui file './importprogress.ui'
00004 **
00005 ** Created: Sa Mär 27 00:53:23 2004
00006 **      by: The User Interface Compiler ($Id: qt/main.cpp   3.2.3   edited May 19 14:22 $)
00007 **
00008 ** WARNING! All changes made in this file will be lost!
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  *  Constructs a ImportProgress as a child of 'parent', with the
00025  *  name 'name' and widget flags set to 'f'.
00026  *
00027  *  The dialog will by default be modeless, unless you set 'modal' to
00028  *  TRUE to construct a modal dialog.
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  *  Destroys the object and frees any allocated resources
00075  */
00076 ImportProgress::~ImportProgress()
00077 {
00078     // no need to delete child widgets, Qt does it all for us
00079 }
00080 
00081 /*
00082  *  Sets the strings of the subwidgets using the current
00083  *  language.
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"

Generated on Sat Mar 27 19:20:39 2004 for Literature by doxygen 1.3.6-20040222