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

pocketreader.cpp

Go to the documentation of this file.
00001 #include <klocale.h>
00002 /****************************************************************************
00003 ** Form implementation generated from reading ui file './pocketreader.ui'
00004 **
00005 ** Created: Sa Mär 27 00:54:46 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 "pocketreader.h"
00012 
00013 #include <qvariant.h>
00014 #include <qprocess.h>
00015 #include <kspell.h>
00016 #include <qapplication.h>
00017 #include <qmessagebox.h>
00018 #include <qpushbutton.h>
00019 #include <qlabel.h>
00020 #include <qlineedit.h>
00021 #include <qcheckbox.h>
00022 #include <qtextedit.h>
00023 #include <qlayout.h>
00024 #include <qtooltip.h>
00025 #include <qwhatsthis.h>
00026 #include <qimage.h>
00027 #include <qpixmap.h>
00028 
00029 #include "./pocketreader.ui.h"
00030 /*
00031  *  Constructs a PocketReader as a child of 'parent', with the
00032  *  name 'name' and widget flags set to 'f'.
00033  */
00034 PocketReader::PocketReader( QWidget* parent, const char* name, WFlags fl )
00035     : QWidget( parent, name, fl )
00036 {
00037     if ( !name )
00038         setName( "PocketReader" );
00039     PocketReaderLayout = new QVBoxLayout( this, 11, 6, "PocketReaderLayout"); 
00040 
00041     layout7 = new QVBoxLayout( 0, 0, 6, "layout7"); 
00042 
00043     layout2 = new QHBoxLayout( 0, 0, 6, "layout2"); 
00044 
00045     textLabel1 = new QLabel( this, "textLabel1" );
00046     layout2->addWidget( textLabel1 );
00047 
00048     cmd = new QLineEdit( this, "cmd" );
00049     layout2->addWidget( cmd );
00050     layout7->addLayout( layout2 );
00051 
00052     layout6 = new QHBoxLayout( 0, 0, 6, "layout6"); 
00053 
00054     spellcheck = new QCheckBox( this, "spellcheck" );
00055     layout6->addWidget( spellcheck );
00056 
00057     conf = new QPushButton( this, "conf" );
00058     layout6->addWidget( conf );
00059     QSpacerItem* spacer = new QSpacerItem( 230, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00060     layout6->addItem( spacer );
00061     layout7->addLayout( layout6 );
00062 
00063     layout4 = new QHBoxLayout( 0, 0, 6, "layout4"); 
00064 
00065     startproc = new QPushButton( this, "startproc" );
00066     layout4->addWidget( startproc );
00067     QSpacerItem* spacer_2 = new QSpacerItem( 41, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00068     layout4->addItem( spacer_2 );
00069     layout7->addLayout( layout4 );
00070 
00071     result = new QTextEdit( this, "result" );
00072     layout7->addWidget( result );
00073 
00074     Layout1 = new QHBoxLayout( 0, 0, 6, "Layout1"); 
00075     QSpacerItem* spacer_3 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00076     Layout1->addItem( spacer_3 );
00077 
00078     buttonOk = new QPushButton( this, "buttonOk" );
00079     buttonOk->setAutoDefault( TRUE );
00080     buttonOk->setDefault( TRUE );
00081     Layout1->addWidget( buttonOk );
00082 
00083     buttonCancel = new QPushButton( this, "buttonCancel" );
00084     buttonCancel->setAutoDefault( TRUE );
00085     Layout1->addWidget( buttonCancel );
00086     layout7->addLayout( Layout1 );
00087     PocketReaderLayout->addLayout( layout7 );
00088     languageChange();
00089     resize( QSize(646, 596).expandedTo(minimumSizeHint()) );
00090     clearWState( WState_Polished );
00091 
00092     // signals and slots connections
00093     connect( startproc, SIGNAL( clicked() ), this, SLOT( start() ) );
00094     connect( conf, SIGNAL( clicked() ), this, SLOT( configSpellchecker() ) );
00095     init();
00096 }
00097 
00098 /*
00099  *  Destroys the object and frees any allocated resources
00100  */
00101 PocketReader::~PocketReader()
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 PocketReader::languageChange()
00111 {
00112     setCaption( tr2i18n( "PocketReaderWidget" ) );
00113     textLabel1->setText( tr2i18n( "Command" ) );
00114     spellcheck->setText( tr2i18n( "Spell Check" ) );
00115     conf->setText( tr2i18n( "Configure Spellchecker" ) );
00116     startproc->setText( tr2i18n( "Start" ) );
00117     buttonOk->setText( tr2i18n( "&OK" ) );
00118     buttonOk->setAccel( QKeySequence( QString::null ) );
00119     buttonCancel->setText( tr2i18n( "&Cancel" ) );
00120     buttonCancel->setAccel( QKeySequence( QString::null ) );
00121 }
00122 
00123 #include "pocketreader.moc"

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