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

reindex.cpp

Go to the documentation of this file.
00001 #include <klocale.h>
00002 /****************************************************************************
00003 ** Form implementation generated from reading ui file './reindex.ui'
00004 **
00005 ** Created: Sa Mär 27 00:55: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 "reindex.h"
00012 
00013 #include <qvariant.h>
00014 #include <qsqlquery.h>
00015 #include <kmimemagic.h>
00016 #include <qapplication.h>
00017 #include <kmdcodec.h>
00018 #include <qpushbutton.h>
00019 #include <qprogressbar.h>
00020 #include <qlabel.h>
00021 #include <qtextedit.h>
00022 #include <qlayout.h>
00023 #include <qtooltip.h>
00024 #include <qwhatsthis.h>
00025 #include <qimage.h>
00026 #include <qpixmap.h>
00027 
00028 #include "convert2text.h"
00029 #include "./reindex.ui.h"
00030 /*
00031  *  Constructs a ReIndex 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 ReIndex::ReIndex( QWidget* parent, const char* name, bool modal, WFlags fl )
00038     : QDialog( parent, name, modal, fl )
00039 {
00040     if ( !name )
00041         setName( "ReIndex" );
00042     setSizeGripEnabled( TRUE );
00043     ReIndexLayout = new QVBoxLayout( this, 11, 6, "ReIndexLayout"); 
00044 
00045     layout2 = new QVBoxLayout( 0, 0, 6, "layout2"); 
00046 
00047     progress = new QProgressBar( this, "progress" );
00048     layout2->addWidget( progress );
00049 
00050     filename = new QLabel( this, "filename" );
00051     layout2->addWidget( filename );
00052 
00053     textEdit1 = new QTextEdit( this, "textEdit1" );
00054     layout2->addWidget( textEdit1 );
00055 
00056     Layout1 = new QHBoxLayout( 0, 0, 6, "Layout1"); 
00057 
00058     buttonHelp = new QPushButton( this, "buttonHelp" );
00059     buttonHelp->setAutoDefault( TRUE );
00060     Layout1->addWidget( buttonHelp );
00061     QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00062     Layout1->addItem( spacer );
00063 
00064     buttonOk = new QPushButton( this, "buttonOk" );
00065     buttonOk->setAutoDefault( TRUE );
00066     buttonOk->setDefault( TRUE );
00067     Layout1->addWidget( buttonOk );
00068     layout2->addLayout( Layout1 );
00069     ReIndexLayout->addLayout( layout2 );
00070     languageChange();
00071     resize( QSize(511, 407).expandedTo(minimumSizeHint()) );
00072     clearWState( WState_Polished );
00073 
00074     // signals and slots connections
00075     connect( buttonOk, SIGNAL( clicked() ), this, SLOT( close() ) );
00076 }
00077 
00078 /*
00079  *  Destroys the object and frees any allocated resources
00080  */
00081 ReIndex::~ReIndex()
00082 {
00083     // no need to delete child widgets, Qt does it all for us
00084 }
00085 
00086 /*
00087  *  Sets the strings of the subwidgets using the current
00088  *  language.
00089  */
00090 void ReIndex::languageChange()
00091 {
00092     setCaption( tr2i18n( "MyDialog" ) );
00093     filename->setText( QString::null );
00094     buttonHelp->setText( tr2i18n( "&Help" ) );
00095     buttonHelp->setAccel( QKeySequence( tr2i18n( "F1" ) ) );
00096     buttonOk->setText( tr2i18n( "Cancel" ) );
00097     buttonOk->setAccel( QKeySequence( QString::null ) );
00098 }
00099 
00100 #include "reindex.moc"

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