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

generatebibtex.cpp

Go to the documentation of this file.
00001 #include <klocale.h>
00002 /****************************************************************************
00003 ** Form implementation generated from reading ui file './generatebibtex.ui'
00004 **
00005 ** Created: Sa Mär 27 00:52:53 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 "generatebibtex.h"
00012 
00013 #include <qvariant.h>
00014 #include <qfile.h>
00015 #include <qtextstream.h>
00016 #include <qsqlquery.h>
00017 #include <qfiledialog.h>
00018 #include <qpushbutton.h>
00019 #include <qlabel.h>
00020 #include <qlineedit.h>
00021 #include <qprogressbar.h>
00022 #include <qtextbrowser.h>
00023 #include <qlayout.h>
00024 #include <qtooltip.h>
00025 #include <qwhatsthis.h>
00026 #include <qimage.h>
00027 #include <qpixmap.h>
00028 
00029 #include "./generatebibtex.ui.h"
00030 /*
00031  *  Constructs a GenerateBibTex as a child of 'parent', with the
00032  *  name 'name' and widget flags set to 'f'.
00033  *
00034  *  The dialog will by default be modeless, unless you set 'modal' to
00035  *  TRUE to construct a modal dialog.
00036  */
00037 GenerateBibTex::GenerateBibTex( QWidget* parent, const char* name, bool modal, WFlags fl )
00038     : QDialog( parent, name, modal, fl )
00039 {
00040     if ( !name )
00041         setName( "GenerateBibTex" );
00042     GenerateBibTexLayout = new QVBoxLayout( this, 11, 6, "GenerateBibTexLayout"); 
00043 
00044     layout18 = new QVBoxLayout( 0, 0, 6, "layout18"); 
00045 
00046     layout12 = new QHBoxLayout( 0, 0, 6, "layout12"); 
00047 
00048     textLabel1 = new QLabel( this, "textLabel1" );
00049     layout12->addWidget( textLabel1 );
00050 
00051     filename = new QLineEdit( this, "filename" );
00052     layout12->addWidget( filename );
00053 
00054     choosefile = new QPushButton( this, "choosefile" );
00055     layout12->addWidget( choosefile );
00056     layout18->addLayout( layout12 );
00057 
00058     layout16 = new QHBoxLayout( 0, 0, 6, "layout16"); 
00059 
00060     generate = new QPushButton( this, "generate" );
00061     layout16->addWidget( generate );
00062     QSpacerItem* spacer = new QSpacerItem( 61, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00063     layout16->addItem( spacer );
00064     layout18->addLayout( layout16 );
00065 
00066     layout17 = new QHBoxLayout( 0, 0, 6, "layout17"); 
00067 
00068     textLabel2 = new QLabel( this, "textLabel2" );
00069     layout17->addWidget( textLabel2 );
00070     QSpacerItem* spacer_2 = new QSpacerItem( 270, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00071     layout17->addItem( spacer_2 );
00072     layout18->addLayout( layout17 );
00073 
00074     progress = new QProgressBar( this, "progress" );
00075     layout18->addWidget( progress );
00076 
00077     log = new QTextBrowser( this, "log" );
00078     layout18->addWidget( log );
00079 
00080     layout14 = new QHBoxLayout( 0, 0, 6, "layout14"); 
00081     QSpacerItem* spacer_3 = new QSpacerItem( 61, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00082     layout14->addItem( spacer_3 );
00083 
00084     pushButton5 = new QPushButton( this, "pushButton5" );
00085     layout14->addWidget( pushButton5 );
00086     layout18->addLayout( layout14 );
00087     GenerateBibTexLayout->addLayout( layout18 );
00088     languageChange();
00089     resize( QSize(600, 483).expandedTo(minimumSizeHint()) );
00090     clearWState( WState_Polished );
00091 
00092     // signals and slots connections
00093     connect( pushButton5, SIGNAL( clicked() ), this, SLOT( close() ) );
00094     connect( choosefile, SIGNAL( clicked() ), this, SLOT( chooseFile() ) );
00095     connect( generate, SIGNAL( clicked() ), this, SLOT( generateBibTex() ) );
00096 }
00097 
00098 /*
00099  *  Destroys the object and frees any allocated resources
00100  */
00101 GenerateBibTex::~GenerateBibTex()
00102 {
00103     // no need to delete child widgets, Qt does it all for us
00104 }
00105 
00106 /*
00107  *  Sets the strings of the subwidgets using the current
00108  *  language.
00109  */
00110 void GenerateBibTex::languageChange()
00111 {
00112     setCaption( tr2i18n( "Form1" ) );
00113     textLabel1->setText( tr2i18n( "Filename" ) );
00114     choosefile->setText( tr2i18n( "Choose File" ) );
00115     generate->setText( tr2i18n( "Generate BibTex" ) );
00116     textLabel2->setText( tr2i18n( "Progress" ) );
00117     pushButton5->setText( tr2i18n( "Close" ) );
00118 }
00119 
00120 #include "generatebibtex.moc"

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