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

searchform.cpp

Go to the documentation of this file.
00001 #include <klocale.h>
00002 /****************************************************************************
00003 ** Form implementation generated from reading ui file './searchform.ui'
00004 **
00005 ** Created: Sa Mär 27 00:55:42 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 "searchform.h"
00012 
00013 #include <qvariant.h>
00014 #include <qpushbutton.h>
00015 #include <qlineedit.h>
00016 #include <qbuttongroup.h>
00017 #include <qcheckbox.h>
00018 #include <qlayout.h>
00019 #include <qtooltip.h>
00020 #include <qwhatsthis.h>
00021 #include <qimage.h>
00022 #include <qpixmap.h>
00023 
00024 #include "searchtextbrowser.h"
00025 #include "./searchform.ui.h"
00026 /*
00027  *  Constructs a SearchForm as a child of 'parent', with the
00028  *  name 'name' and widget flags set to 'f'.
00029  */
00030 SearchForm::SearchForm( QWidget* parent, const char* name, WFlags fl )
00031     : QWidget( parent, name, fl )
00032 {
00033     if ( !name )
00034         setName( "SearchForm" );
00035     SearchFormLayout = new QHBoxLayout( this, 11, 6, "SearchFormLayout"); 
00036 
00037     layout7 = new QVBoxLayout( 0, 0, 6, "layout7"); 
00038 
00039     layout6 = new QHBoxLayout( 0, 0, 6, "layout6"); 
00040 
00041     query = new QLineEdit( this, "query" );
00042     layout6->addWidget( query );
00043 
00044     start = new QPushButton( this, "start" );
00045     layout6->addWidget( start );
00046     layout7->addLayout( layout6 );
00047 
00048     layout5 = new QHBoxLayout( 0, 0, 6, "layout5"); 
00049 
00050     buttonGroup1 = new QButtonGroup( this, "buttonGroup1" );
00051 
00052     notes = new QCheckBox( buttonGroup1, "notes" );
00053     notes->setGeometry( QRect( 10, 60, 113, 26 ) );
00054 
00055     publications = new QCheckBox( buttonGroup1, "publications" );
00056     publications->setGeometry( QRect( 10, 30, 120, 26 ) );
00057 
00058     publishers = new QCheckBox( buttonGroup1, "publishers" );
00059     publishers->setGeometry( QRect( 150, 60, 113, 26 ) );
00060 
00061     parts = new QCheckBox( buttonGroup1, "parts" );
00062     parts->setGeometry( QRect( 150, 30, 113, 26 ) );
00063 
00064     journals = new QCheckBox( buttonGroup1, "journals" );
00065     journals->setGeometry( QRect( 270, 60, 113, 26 ) );
00066 
00067     fulltext = new QCheckBox( buttonGroup1, "fulltext" );
00068     fulltext->setGeometry( QRect( 270, 30, 113, 26 ) );
00069 
00070     checkBox7 = new QCheckBox( buttonGroup1, "checkBox7" );
00071     checkBox7->setGeometry( QRect( 380, 30, 113, 26 ) );
00072     layout5->addWidget( buttonGroup1 );
00073     QSpacerItem* spacer = new QSpacerItem( 16, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00074     layout5->addItem( spacer );
00075     layout7->addLayout( layout5 );
00076 
00077     results = new SearchTextBrowser( this, "results" );
00078     results->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, results->sizePolicy().hasHeightForWidth() ) );
00079     layout7->addWidget( results );
00080     SearchFormLayout->addLayout( layout7 );
00081     languageChange();
00082     resize( QSize(522, 593).expandedTo(minimumSizeHint()) );
00083     clearWState( WState_Polished );
00084 }
00085 
00086 /*
00087  *  Destroys the object and frees any allocated resources
00088  */
00089 SearchForm::~SearchForm()
00090 {
00091     // no need to delete child widgets, Qt does it all for us
00092 }
00093 
00094 /*
00095  *  Sets the strings of the subwidgets using the current
00096  *  language.
00097  */
00098 void SearchForm::languageChange()
00099 {
00100     setCaption( tr2i18n( "Form1" ) );
00101     start->setText( tr2i18n( "Start Search" ) );
00102     buttonGroup1->setTitle( tr2i18n( "Search Options" ) );
00103     notes->setText( tr2i18n( "Notes" ) );
00104     publications->setText( tr2i18n( "Publications" ) );
00105     publishers->setText( tr2i18n( "Publishers" ) );
00106     parts->setText( tr2i18n( "Parts" ) );
00107     journals->setText( tr2i18n( "Journals" ) );
00108     fulltext->setText( tr2i18n( "Fulltext" ) );
00109     checkBox7->setText( tr2i18n( "Authors" ) );
00110 }
00111 
00112 #include "searchform.moc"

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