00001 #include <klocale.h>
00002
00003
00004
00005
00006
00007
00008
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
00028
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
00088
00089 SearchForm::~SearchForm()
00090 {
00091
00092 }
00093
00094
00095
00096
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"