00001 #include <klocale.h>
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #include "importfile.h"
00012
00013 #include <qvariant.h>
00014 #include <qfiledialog.h>
00015 #include <qpushbutton.h>
00016 #include <qlineedit.h>
00017 #include <qlayout.h>
00018 #include <qtooltip.h>
00019 #include <qwhatsthis.h>
00020 #include <qimage.h>
00021 #include <qpixmap.h>
00022
00023 #include "./importfile.ui.h"
00024
00025
00026
00027
00028 ImportFile::ImportFile( QWidget* parent, const char* name, WFlags fl )
00029 : QWidget( parent, name, fl )
00030 {
00031 if ( !name )
00032 setName( "ImportFile" );
00033 ImportFileLayout = new QHBoxLayout( this, 11, 6, "ImportFileLayout");
00034
00035 layout5 = new QVBoxLayout( 0, 0, 6, "layout5");
00036 QSpacerItem* spacer = new QSpacerItem( 20, 140, QSizePolicy::Minimum, QSizePolicy::Expanding );
00037 layout5->addItem( spacer );
00038
00039 layout7 = new QHBoxLayout( 0, 0, 6, "layout7");
00040
00041 filename = new QLineEdit( this, "filename" );
00042 layout7->addWidget( filename );
00043
00044 choosefile = new QPushButton( this, "choosefile" );
00045 layout7->addWidget( choosefile );
00046 layout5->addLayout( layout7 );
00047 QSpacerItem* spacer_2 = new QSpacerItem( 21, 283, QSizePolicy::Minimum, QSizePolicy::Expanding );
00048 layout5->addItem( spacer_2 );
00049 ImportFileLayout->addLayout( layout5 );
00050 languageChange();
00051 resize( QSize(754, 658).expandedTo(minimumSizeHint()) );
00052 clearWState( WState_Polished );
00053
00054
00055 connect( choosefile, SIGNAL( pressed() ), this, SLOT( chooseFile() ) );
00056 }
00057
00058
00059
00060
00061 ImportFile::~ImportFile()
00062 {
00063
00064 }
00065
00066
00067
00068
00069
00070 void ImportFile::languageChange()
00071 {
00072 setCaption( tr2i18n( "Form1" ) );
00073 choosefile->setText( tr2i18n( "Choose File" ) );
00074 }
00075
00076 #include "importfile.moc"