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

overviewform.cpp

Go to the documentation of this file.
00001 #include <klocale.h>
00002 /****************************************************************************
00003 ** Form implementation generated from reading ui file './overviewform.ui'
00004 **
00005 ** Created: Sa Mär 27 00:54:19 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 "overviewform.h"
00012 
00013 #include <qvariant.h>
00014 #include <qsettings.h>
00015 #include <qpixmap.h>
00016 #include <qpushbutton.h>
00017 #include <qlabel.h>
00018 #include <qlineedit.h>
00019 #include <qlayout.h>
00020 #include <qtooltip.h>
00021 #include <qwhatsthis.h>
00022 #include <qimage.h>
00023 #include <qpixmap.h>
00024 
00025 #include "linklistbox.h"
00026 #include "./overviewform.ui.h"
00027 /*
00028  *  Constructs a OverviewForm as a child of 'parent', with the
00029  *  name 'name' and widget flags set to 'f'.
00030  */
00031 OverviewForm::OverviewForm( QWidget* parent, const char* name, WFlags fl )
00032     : QWidget( parent, name, fl )
00033 {
00034     if ( !name )
00035         setName( "OverviewForm" );
00036     OverviewFormLayout = new QHBoxLayout( this, 11, 6, "OverviewFormLayout"); 
00037 
00038     layout8 = new QVBoxLayout( 0, 0, 6, "layout8"); 
00039 
00040     title = new QLabel( this, "title" );
00041     title->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, title->sizePolicy().hasHeightForWidth() ) );
00042     layout8->addWidget( title );
00043 
00044     layout7 = new QHBoxLayout( 0, 0, 6, "layout7"); 
00045 
00046     textLabel1 = new QLabel( this, "textLabel1" );
00047     layout7->addWidget( textLabel1 );
00048 
00049     search = new QLineEdit( this, "search" );
00050     layout7->addWidget( search );
00051     layout8->addLayout( layout7 );
00052 
00053     linklistbox = new LinkListBox( this, "linklistbox" );
00054     linklistbox->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, linklistbox->sizePolicy().hasHeightForWidth() ) );
00055     layout8->addWidget( linklistbox );
00056     OverviewFormLayout->addLayout( layout8 );
00057     languageChange();
00058     resize( QSize(745, 505).expandedTo(minimumSizeHint()) );
00059     clearWState( WState_Polished );
00060 
00061     // signals and slots connections
00062     connect( search, SIGNAL( textChanged(const QString&) ), this, SLOT( incrementalSearch(const QString&) ) );
00063     init();
00064 }
00065 
00066 /*
00067  *  Destroys the object and frees any allocated resources
00068  */
00069 OverviewForm::~OverviewForm()
00070 {
00071     // no need to delete child widgets, Qt does it all for us
00072 }
00073 
00074 /*
00075  *  Sets the strings of the subwidgets using the current
00076  *  language.
00077  */
00078 void OverviewForm::languageChange()
00079 {
00080     setCaption( tr2i18n( "Form2" ) );
00081     title->setText( tr2i18n( "Title" ) );
00082     textLabel1->setText( tr2i18n( "Search " ) );
00083 }
00084 
00085 #include "overviewform.moc"

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