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

partform.cpp

Go to the documentation of this file.
00001 #include <klocale.h>
00002 /****************************************************************************
00003 ** Form implementation generated from reading ui file './partform.ui'
00004 **
00005 ** Created: Sa Mär 27 00:54:28 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 "partform.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 "authorlinklistbox.h"
00026 #include "./partform.ui.h"
00027 /*
00028  *  Constructs a PartForm as a child of 'parent', with the
00029  *  name 'name' and widget flags set to 'f'.
00030  */
00031 PartForm::PartForm( QWidget* parent, const char* name, WFlags fl )
00032     : QWidget( parent, name, fl )
00033 {
00034     if ( !name )
00035         setName( "PartForm" );
00036     PartFormLayout = new QVBoxLayout( this, 11, 6, "PartFormLayout"); 
00037 
00038     layout31 = new QVBoxLayout( 0, 0, 6, "layout31"); 
00039 
00040     layout30 = new QHBoxLayout( 0, 0, 6, "layout30"); 
00041 
00042     layout29 = new QVBoxLayout( 0, 0, 6, "layout29"); 
00043 
00044     Layout66 = new QVBoxLayout( 0, 0, 6, "Layout66"); 
00045 
00046     Layout61 = new QHBoxLayout( 0, 0, 6, "Layout61"); 
00047 
00048     TextLabel5 = new QLabel( this, "TextLabel5" );
00049     TextLabel5->setMinimumSize( QSize( 80, 0 ) );
00050     TextLabel5->setMaximumSize( QSize( 80, 32767 ) );
00051     Layout61->addWidget( TextLabel5 );
00052 
00053     number = new QLineEdit( this, "number" );
00054     Layout61->addWidget( number );
00055     Layout66->addLayout( Layout61 );
00056 
00057     Layout62 = new QHBoxLayout( 0, 0, 6, "Layout62"); 
00058 
00059     TextLabel6 = new QLabel( this, "TextLabel6" );
00060     TextLabel6->setMinimumSize( QSize( 80, 0 ) );
00061     TextLabel6->setMaximumSize( QSize( 80, 32767 ) );
00062     Layout62->addWidget( TextLabel6 );
00063 
00064     title = new QLineEdit( this, "title" );
00065     Layout62->addWidget( title );
00066     Layout66->addLayout( Layout62 );
00067 
00068     Layout63 = new QHBoxLayout( 0, 0, 6, "Layout63"); 
00069 
00070     TextLabel7 = new QLabel( this, "TextLabel7" );
00071     TextLabel7->setMinimumSize( QSize( 80, 0 ) );
00072     TextLabel7->setMaximumSize( QSize( 80, 32767 ) );
00073     Layout63->addWidget( TextLabel7 );
00074 
00075     language = new QLabel( this, "language" );
00076     Layout63->addWidget( language );
00077     Layout66->addLayout( Layout63 );
00078 
00079     Layout64 = new QHBoxLayout( 0, 0, 6, "Layout64"); 
00080 
00081     TextLabel8 = new QLabel( this, "TextLabel8" );
00082     TextLabel8->setMinimumSize( QSize( 80, 0 ) );
00083     TextLabel8->setMaximumSize( QSize( 80, 32767 ) );
00084     Layout64->addWidget( TextLabel8 );
00085 
00086     key = new QLineEdit( this, "key" );
00087     Layout64->addWidget( key );
00088     Layout66->addLayout( Layout64 );
00089 
00090     Layout65 = new QHBoxLayout( 0, 0, 6, "Layout65"); 
00091 
00092     TextLabel9 = new QLabel( this, "TextLabel9" );
00093     TextLabel9->setMinimumSize( QSize( 80, 0 ) );
00094     TextLabel9->setMaximumSize( QSize( 80, 32767 ) );
00095     Layout65->addWidget( TextLabel9 );
00096 
00097     pages = new QLineEdit( this, "pages" );
00098     Layout65->addWidget( pages );
00099     Layout66->addLayout( Layout65 );
00100     layout29->addLayout( Layout66 );
00101 
00102     Layout60 = new QVBoxLayout( 0, 0, 6, "Layout60"); 
00103     layout29->addLayout( Layout60 );
00104 
00105     authors = new AuthorLinkListBox( this, "authors" );
00106     layout29->addWidget( authors );
00107 
00108     files = new LinkListBox( this, "files" );
00109     files->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, files->sizePolicy().hasHeightForWidth() ) );
00110     layout29->addWidget( files );
00111     layout30->addLayout( layout29 );
00112 
00113     Layout78 = new QVBoxLayout( 0, 0, 6, "Layout78"); 
00114 
00115     TextLabel13 = new QLabel( this, "TextLabel13" );
00116     Layout78->addWidget( TextLabel13 );
00117 
00118     bibtex = new QTextEdit( this, "bibtex" );
00119     Layout78->addWidget( bibtex );
00120 
00121     genbibtex = new QPushButton( this, "genbibtex" );
00122     Layout78->addWidget( genbibtex );
00123 
00124     links = new LinkListBox( this, "links" );
00125     links->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, links->sizePolicy().hasHeightForWidth() ) );
00126     Layout78->addWidget( links );
00127     layout30->addLayout( Layout78 );
00128     layout31->addLayout( layout30 );
00129 
00130     Layout18 = new QHBoxLayout( 0, 0, 6, "Layout18"); 
00131     QSpacerItem* spacer = new QSpacerItem( 285, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
00132     Layout18->addItem( spacer );
00133 
00134     created = new QLabel( this, "created" );
00135     created->setMinimumSize( QSize( 100, 0 ) );
00136     Layout18->addWidget( created );
00137     QSpacerItem* spacer_2 = new QSpacerItem( 71, 16, QSizePolicy::Fixed, QSizePolicy::Minimum );
00138     Layout18->addItem( spacer_2 );
00139 
00140     modified = new QLabel( this, "modified" );
00141     modified->setMinimumSize( QSize( 100, 0 ) );
00142     Layout18->addWidget( modified );
00143     layout31->addLayout( Layout18 );
00144     PartFormLayout->addLayout( layout31 );
00145     languageChange();
00146     resize( QSize(498, 590).expandedTo(minimumSizeHint()) );
00147     clearWState( WState_Polished );
00148     init();
00149 }
00150 
00151 /*
00152  *  Destroys the object and frees any allocated resources
00153  */
00154 PartForm::~PartForm()
00155 {
00156     // no need to delete child widgets, Qt does it all for us
00157 }
00158 
00159 /*
00160  *  Sets the strings of the subwidgets using the current
00161  *  language.
00162  */
00163 void PartForm::languageChange()
00164 {
00165     setCaption( tr2i18n( "Form3" ) );
00166     TextLabel5->setText( tr2i18n( "No." ) );
00167     TextLabel6->setText( tr2i18n( "Title" ) );
00168     TextLabel7->setText( tr2i18n( "Language" ) );
00169     language->setText( tr2i18n( "language" ) );
00170     TextLabel8->setText( tr2i18n( "Key" ) );
00171     TextLabel9->setText( tr2i18n( "Pages" ) );
00172     TextLabel13->setText( tr2i18n( "BibTex" ) );
00173     genbibtex->setText( tr2i18n( "Generate BibTex" ) );
00174     created->setText( tr2i18n( "Created" ) );
00175     modified->setText( tr2i18n( "Modified" ) );
00176 }
00177 
00178 #include "partform.moc"

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