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

authorform.cpp

Go to the documentation of this file.
00001 #include <klocale.h>
00002 /****************************************************************************
00003 ** Form implementation generated from reading ui file './authorform.ui'
00004 **
00005 ** Created: Sa Mär 27 00:52:13 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 "authorform.h"
00012 
00013 #include <qvariant.h>
00014 #include <qpushbutton.h>
00015 #include <qlabel.h>
00016 #include <qlineedit.h>
00017 #include <qtextedit.h>
00018 #include <qlayout.h>
00019 #include <qtooltip.h>
00020 #include <qwhatsthis.h>
00021 #include <qimage.h>
00022 #include <qpixmap.h>
00023 
00024 #include "linklistbox.h"
00025 #include "./authorform.ui.h"
00026 /*
00027  *  Constructs a AuthorForm as a child of 'parent', with the
00028  *  name 'name' and widget flags set to 'f'.
00029  */
00030 AuthorForm::AuthorForm( QWidget* parent, const char* name, WFlags fl )
00031     : QWidget( parent, name, fl )
00032 {
00033     if ( !name )
00034         setName( "AuthorForm" );
00035     AuthorFormLayout = new QHBoxLayout( this, 11, 6, "AuthorFormLayout"); 
00036 
00037     Layout20 = new QVBoxLayout( 0, 0, 6, "Layout20"); 
00038 
00039     Layout12 = new QHBoxLayout( 0, 0, 6, "Layout12"); 
00040 
00041     Layout11 = new QVBoxLayout( 0, 0, 6, "Layout11"); 
00042 
00043     Layout12_2 = new QVBoxLayout( 0, 0, 6, "Layout12_2"); 
00044 
00045     Layout1 = new QHBoxLayout( 0, 0, 6, "Layout1"); 
00046 
00047     TextLabel1 = new QLabel( this, "TextLabel1" );
00048     TextLabel1->setMinimumSize( QSize( 90, 0 ) );
00049     Layout1->addWidget( TextLabel1 );
00050 
00051     firstname = new QLineEdit( this, "firstname" );
00052     Layout1->addWidget( firstname );
00053     Layout12_2->addLayout( Layout1 );
00054 
00055     Layout2 = new QHBoxLayout( 0, 0, 6, "Layout2"); 
00056 
00057     TextLabel2 = new QLabel( this, "TextLabel2" );
00058     TextLabel2->setMinimumSize( QSize( 90, 0 ) );
00059     Layout2->addWidget( TextLabel2 );
00060 
00061     lastname = new QLineEdit( this, "lastname" );
00062     Layout2->addWidget( lastname );
00063     Layout12_2->addLayout( Layout2 );
00064 
00065     Layout11_2 = new QHBoxLayout( 0, 0, 6, "Layout11_2"); 
00066 
00067     TextLabel3 = new QLabel( this, "TextLabel3" );
00068     TextLabel3->setMinimumSize( QSize( 90, 0 ) );
00069     Layout11_2->addWidget( TextLabel3 );
00070 
00071     pseudonym = new QLineEdit( this, "pseudonym" );
00072     Layout11_2->addWidget( pseudonym );
00073     Layout12_2->addLayout( Layout11_2 );
00074 
00075     Layout6 = new QHBoxLayout( 0, 0, 6, "Layout6"); 
00076 
00077     TextLabel6 = new QLabel( this, "TextLabel6" );
00078     TextLabel6->setMinimumSize( QSize( 90, 0 ) );
00079     Layout6->addWidget( TextLabel6 );
00080 
00081     country = new QLineEdit( this, "country" );
00082     Layout6->addWidget( country );
00083     Layout12_2->addLayout( Layout6 );
00084 
00085     Layout4 = new QHBoxLayout( 0, 0, 6, "Layout4"); 
00086 
00087     TextLabel4 = new QLabel( this, "TextLabel4" );
00088     TextLabel4->setMinimumSize( QSize( 90, 0 ) );
00089     Layout4->addWidget( TextLabel4 );
00090 
00091     born = new QLineEdit( this, "born" );
00092     Layout4->addWidget( born );
00093     Layout12_2->addLayout( Layout4 );
00094 
00095     Layout5 = new QHBoxLayout( 0, 0, 6, "Layout5"); 
00096 
00097     TextLabel5 = new QLabel( this, "TextLabel5" );
00098     TextLabel5->setMinimumSize( QSize( 90, 0 ) );
00099     Layout5->addWidget( TextLabel5 );
00100 
00101     died = new QLineEdit( this, "died" );
00102     Layout5->addWidget( died );
00103     Layout12_2->addLayout( Layout5 );
00104     Layout11->addLayout( Layout12_2 );
00105     QSpacerItem* spacer = new QSpacerItem( 0, 16, QSizePolicy::Minimum, QSizePolicy::Expanding );
00106     Layout11->addItem( spacer );
00107     Layout12->addLayout( Layout11 );
00108 
00109     Layout8 = new QVBoxLayout( 0, 0, 6, "Layout8"); 
00110 
00111     TextLabel7 = new QLabel( this, "TextLabel7" );
00112     Layout8->addWidget( TextLabel7 );
00113 
00114     memo = new QTextEdit( this, "memo" );
00115     Layout8->addWidget( memo );
00116     Layout12->addLayout( Layout8 );
00117     Layout20->addLayout( Layout12 );
00118     QSpacerItem* spacer_2 = new QSpacerItem( 16, 16, QSizePolicy::Minimum, QSizePolicy::Fixed );
00119     Layout20->addItem( spacer_2 );
00120 
00121     Layout17 = new QHBoxLayout( 0, 0, 6, "Layout17"); 
00122 
00123     publications = new LinkListBox( this, "publications" );
00124     publications->setEnabled( FALSE );
00125     publications->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, publications->sizePolicy().hasHeightForWidth() ) );
00126     Layout17->addWidget( publications );
00127     Layout20->addLayout( Layout17 );
00128 
00129     Layout18 = new QHBoxLayout( 0, 0, 6, "Layout18"); 
00130 
00131     parts = new LinkListBox( this, "parts" );
00132     parts->setEnabled( FALSE );
00133     parts->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, parts->sizePolicy().hasHeightForWidth() ) );
00134     Layout18->addWidget( parts );
00135     Layout20->addLayout( Layout18 );
00136 
00137     Layout19 = new QHBoxLayout( 0, 0, 6, "Layout19"); 
00138 
00139     links = new LinkListBox( this, "links" );
00140     links->setEnabled( FALSE );
00141     links->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, links->sizePolicy().hasHeightForWidth() ) );
00142     Layout19->addWidget( links );
00143     Layout20->addLayout( Layout19 );
00144     QSpacerItem* spacer_3 = new QSpacerItem( 16, 16, QSizePolicy::Minimum, QSizePolicy::Fixed );
00145     Layout20->addItem( spacer_3 );
00146 
00147     Layout18_2 = new QHBoxLayout( 0, 0, 6, "Layout18_2"); 
00148     QSpacerItem* spacer_4 = new QSpacerItem( 285, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
00149     Layout18_2->addItem( spacer_4 );
00150 
00151     created = new QLabel( this, "created" );
00152     created->setMinimumSize( QSize( 100, 0 ) );
00153     Layout18_2->addWidget( created );
00154     QSpacerItem* spacer_5 = new QSpacerItem( 71, 16, QSizePolicy::Fixed, QSizePolicy::Minimum );
00155     Layout18_2->addItem( spacer_5 );
00156 
00157     modified = new QLabel( this, "modified" );
00158     modified->setMinimumSize( QSize( 100, 0 ) );
00159     Layout18_2->addWidget( modified );
00160     Layout20->addLayout( Layout18_2 );
00161     AuthorFormLayout->addLayout( Layout20 );
00162     languageChange();
00163     resize( QSize(745, 629).expandedTo(minimumSizeHint()) );
00164     clearWState( WState_Polished );
00165     init();
00166 }
00167 
00168 /*
00169  *  Destroys the object and frees any allocated resources
00170  */
00171 AuthorForm::~AuthorForm()
00172 {
00173     // no need to delete child widgets, Qt does it all for us
00174 }
00175 
00176 /*
00177  *  Sets the strings of the subwidgets using the current
00178  *  language.
00179  */
00180 void AuthorForm::languageChange()
00181 {
00182     setCaption( tr2i18n( "Form2" ) );
00183     TextLabel1->setText( tr2i18n( "First Name" ) );
00184     TextLabel2->setText( tr2i18n( "Last Name" ) );
00185     TextLabel3->setText( tr2i18n( "Pseudonym" ) );
00186     TextLabel6->setText( tr2i18n( "Country" ) );
00187     TextLabel4->setText( tr2i18n( "Born" ) );
00188     TextLabel5->setText( tr2i18n( "Deceded" ) );
00189     TextLabel7->setText( tr2i18n( "Memo" ) );
00190     created->setText( tr2i18n( "Created" ) );
00191     modified->setText( tr2i18n( "Modified" ) );
00192 }
00193 
00194 #include "authorform.moc"

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