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

importfile.cpp

Go to the documentation of this file.
00001 #include <klocale.h>
00002 /****************************************************************************
00003 ** Form implementation generated from reading ui file './importfile.ui'
00004 **
00005 ** Created: Sa Mär 27 13:05:40 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 "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  *  Constructs a ImportFile as a child of 'parent', with the
00026  *  name 'name' and widget flags set to 'f'.
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     // signals and slots connections
00055     connect( choosefile, SIGNAL( pressed() ), this, SLOT( chooseFile() ) );
00056 }
00057 
00058 /*
00059  *  Destroys the object and frees any allocated resources
00060  */
00061 ImportFile::~ImportFile()
00062 {
00063     // no need to delete child widgets, Qt does it all for us
00064 }
00065 
00066 /*
00067  *  Sets the strings of the subwidgets using the current
00068  *  language.
00069  */
00070 void ImportFile::languageChange()
00071 {
00072     setCaption( tr2i18n( "Form1" ) );
00073     choosefile->setText( tr2i18n( "Choose File" ) );
00074 }
00075 
00076 #include "importfile.moc"

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