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

stateform.cpp

Go to the documentation of this file.
00001 #include <klocale.h>
00002 /****************************************************************************
00003 ** Form implementation generated from reading ui file './stateform.ui'
00004 **
00005 ** Created: Sa Mär 27 00:56:18 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 "stateform.h"
00012 
00013 #include <qvariant.h>
00014 #include <qpushbutton.h>
00015 #include <qlabel.h>
00016 #include <qlayout.h>
00017 #include <qtooltip.h>
00018 #include <qwhatsthis.h>
00019 #include <qimage.h>
00020 #include <qpixmap.h>
00021 
00022 #include "./stateform.ui.h"
00023 /*
00024  *  Constructs a StateForm as a child of 'parent', with the
00025  *  name 'name' and widget flags set to 'f'.
00026  */
00027 StateForm::StateForm( QWidget* parent, const char* name, WFlags fl )
00028     : QWidget( parent, name, fl )
00029 {
00030     if ( !name )
00031         setName( "StateForm" );
00032     setPaletteBackgroundColor( QColor( 255, 255, 255 ) );
00033     StateFormLayout = new QVBoxLayout( this, 11, 6, "StateFormLayout"); 
00034 
00035     layout4 = new QHBoxLayout( 0, 0, 6, "layout4"); 
00036     QSpacerItem* spacer = new QSpacerItem( 30, 20, QSizePolicy::Fixed, QSizePolicy::Minimum );
00037     layout4->addItem( spacer );
00038 
00039     layout3 = new QVBoxLayout( 0, 0, 6, "layout3"); 
00040     QSpacerItem* spacer_2 = new QSpacerItem( 16, 193, QSizePolicy::Minimum, QSizePolicy::Expanding );
00041     layout3->addItem( spacer_2 );
00042 
00043     publications = new QLabel( this, "publications" );
00044     publications->setPaletteBackgroundColor( QColor( 255, 255, 255 ) );
00045     layout3->addWidget( publications );
00046 
00047     parts = new QLabel( this, "parts" );
00048     layout3->addWidget( parts );
00049 
00050     authors = new QLabel( this, "authors" );
00051     layout3->addWidget( authors );
00052 
00053     files = new QLabel( this, "files" );
00054     layout3->addWidget( files );
00055 
00056     publishers = new QLabel( this, "publishers" );
00057     layout3->addWidget( publishers );
00058 
00059     journals = new QLabel( this, "journals" );
00060     layout3->addWidget( journals );
00061 
00062     notes = new QLabel( this, "notes" );
00063     layout3->addWidget( notes );
00064 
00065     links = new QLabel( this, "links" );
00066     layout3->addWidget( links );
00067     QSpacerItem* spacer_3 = new QSpacerItem( 20, 160, QSizePolicy::Minimum, QSizePolicy::Expanding );
00068     layout3->addItem( spacer_3 );
00069     layout4->addLayout( layout3 );
00070     QSpacerItem* spacer_4 = new QSpacerItem( 213, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00071     layout4->addItem( spacer_4 );
00072 
00073     PixmapLabel1 = new QLabel( this, "PixmapLabel1" );
00074     PixmapLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, PixmapLabel1->sizePolicy().hasHeightForWidth() ) );
00075     PixmapLabel1->setPixmap( loadBackgroundImage(  ) );
00076     PixmapLabel1->setScaledContents( TRUE );
00077     layout4->addWidget( PixmapLabel1 );
00078     StateFormLayout->addLayout( layout4 );
00079     languageChange();
00080     resize( QSize(600, 607).expandedTo(minimumSizeHint()) );
00081     clearWState( WState_Polished );
00082 }
00083 
00084 /*
00085  *  Destroys the object and frees any allocated resources
00086  */
00087 StateForm::~StateForm()
00088 {
00089     // no need to delete child widgets, Qt does it all for us
00090 }
00091 
00092 /*
00093  *  Sets the strings of the subwidgets using the current
00094  *  language.
00095  */
00096 void StateForm::languageChange()
00097 {
00098     setCaption( tr2i18n( "ReadOnlyFormBaseForm" ) );
00099     publications->setText( tr2i18n( "publications" ) );
00100     parts->setText( tr2i18n( "parts" ) );
00101     authors->setText( tr2i18n( "authors" ) );
00102     files->setText( tr2i18n( "files" ) );
00103     publishers->setText( tr2i18n( "publishers" ) );
00104     journals->setText( tr2i18n( "journals" ) );
00105     notes->setText( tr2i18n( "notes" ) );
00106     links->setText( tr2i18n( "links" ) );
00107 }
00108 
00109 #include "stateform.moc"

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