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

publisherform.cpp

Go to the documentation of this file.
00001 #include <klocale.h>
00002 /****************************************************************************
00003 ** Form implementation generated from reading ui file './publisherform.ui'
00004 **
00005 ** Created: Sa Mär 27 00:55:15 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 "publisherform.h"
00012 
00013 #include <qvariant.h>
00014 #include <qpushbutton.h>
00015 #include <qlabel.h>
00016 #include <qlineedit.h>
00017 #include <qlayout.h>
00018 #include <qtooltip.h>
00019 #include <qwhatsthis.h>
00020 #include <qimage.h>
00021 #include <qpixmap.h>
00022 
00023 #include "linklistbox.h"
00024 /*
00025  *  Constructs a PublisherForm as a child of 'parent', with the
00026  *  name 'name' and widget flags set to 'f'.
00027  */
00028 PublisherForm::PublisherForm( QWidget* parent, const char* name, WFlags fl )
00029     : QWidget( parent, name, fl )
00030 {
00031     if ( !name )
00032         setName( "PublisherForm" );
00033     PublisherFormLayout = new QVBoxLayout( this, 11, 6, "PublisherFormLayout"); 
00034 
00035     layout14 = new QVBoxLayout( 0, 0, 6, "layout14"); 
00036 
00037     layout37 = new QHBoxLayout( 0, 0, 6, "layout37"); 
00038 
00039     textLabel1 = new QLabel( this, "textLabel1" );
00040     textLabel1->setMinimumSize( QSize( 65, 0 ) );
00041     layout37->addWidget( textLabel1 );
00042 
00043     pname = new QLineEdit( this, "pname" );
00044     layout37->addWidget( pname );
00045     layout14->addLayout( layout37 );
00046 
00047     layout38 = new QHBoxLayout( 0, 0, 6, "layout38"); 
00048 
00049     textLabel1_2 = new QLabel( this, "textLabel1_2" );
00050     textLabel1_2->setMinimumSize( QSize( 65, 0 ) );
00051     layout38->addWidget( textLabel1_2 );
00052 
00053     city = new QLineEdit( this, "city" );
00054     layout38->addWidget( city );
00055     layout14->addLayout( layout38 );
00056 
00057     publications = new LinkListBox( this, "publications" );
00058     publications->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, publications->sizePolicy().hasHeightForWidth() ) );
00059     layout14->addWidget( publications );
00060 
00061     layout13 = new QHBoxLayout( 0, 0, 6, "layout13"); 
00062 
00063     created = new QLabel( this, "created" );
00064     created->setMinimumSize( QSize( 100, 20 ) );
00065     created->setMaximumSize( QSize( 32767, 20 ) );
00066     layout13->addWidget( created );
00067     QSpacerItem* spacer = new QSpacerItem( 71, 16, QSizePolicy::Fixed, QSizePolicy::Minimum );
00068     layout13->addItem( spacer );
00069 
00070     modified = new QLabel( this, "modified" );
00071     modified->setMinimumSize( QSize( 100, 20 ) );
00072     modified->setMaximumSize( QSize( 32767, 20 ) );
00073     layout13->addWidget( modified );
00074     layout14->addLayout( layout13 );
00075     PublisherFormLayout->addLayout( layout14 );
00076     languageChange();
00077     resize( QSize(600, 488).expandedTo(minimumSizeHint()) );
00078     clearWState( WState_Polished );
00079 }
00080 
00081 /*
00082  *  Destroys the object and frees any allocated resources
00083  */
00084 PublisherForm::~PublisherForm()
00085 {
00086     // no need to delete child widgets, Qt does it all for us
00087 }
00088 
00089 /*
00090  *  Sets the strings of the subwidgets using the current
00091  *  language.
00092  */
00093 void PublisherForm::languageChange()
00094 {
00095     setCaption( tr2i18n( "Form1" ) );
00096     textLabel1->setText( tr2i18n( "Name" ) );
00097     textLabel1_2->setText( tr2i18n( "City" ) );
00098     created->setText( tr2i18n( "Created" ) );
00099     modified->setText( tr2i18n( "Modified" ) );
00100 }
00101 
00102 #include "publisherform.moc"

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