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

projectform.cpp

Go to the documentation of this file.
00001 #include <klocale.h>
00002 /****************************************************************************
00003 ** Form implementation generated from reading ui file './projectform.ui'
00004 **
00005 ** Created: Sa Mär 27 00:54:56 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 "projectform.h"
00012 
00013 #include <qvariant.h>
00014 #include <qpushbutton.h>
00015 #include <qtabwidget.h>
00016 #include <qlabel.h>
00017 #include <qlineedit.h>
00018 #include <qtextedit.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 /*
00027  *  Constructs a ProjectForm as a child of 'parent', with the
00028  *  name 'name' and widget flags set to 'f'.
00029  */
00030 ProjectForm::ProjectForm( QWidget* parent, const char* name, WFlags fl )
00031     : QWidget( parent, name, fl )
00032 {
00033     if ( !name )
00034         setName( "ProjectForm" );
00035     ProjectFormLayout = new QVBoxLayout( this, 11, 6, "ProjectFormLayout"); 
00036 
00037     tab = new QTabWidget( this, "tab" );
00038 
00039     tab_2 = new QWidget( tab, "tab_2" );
00040     tabLayout = new QVBoxLayout( tab_2, 11, 6, "tabLayout"); 
00041 
00042     layout6 = new QVBoxLayout( 0, 0, 6, "layout6"); 
00043 
00044     layout5 = new QHBoxLayout( 0, 0, 6, "layout5"); 
00045 
00046     textLabel1 = new QLabel( tab_2, "textLabel1" );
00047     layout5->addWidget( textLabel1 );
00048 
00049     title = new QLineEdit( tab_2, "title" );
00050     layout5->addWidget( title );
00051     layout6->addLayout( layout5 );
00052 
00053     textLabel2 = new QLabel( tab_2, "textLabel2" );
00054     layout6->addWidget( textLabel2 );
00055 
00056     memo = new QTextEdit( tab_2, "memo" );
00057     layout6->addWidget( memo );
00058 
00059     layout4 = new QHBoxLayout( 0, 0, 6, "layout4"); 
00060 
00061     created = new QLabel( tab_2, "created" );
00062     created->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, created->sizePolicy().hasHeightForWidth() ) );
00063     created->setMinimumSize( QSize( 100, 20 ) );
00064     created->setMaximumSize( QSize( 32767, 20 ) );
00065     layout4->addWidget( created );
00066     QSpacerItem* spacer = new QSpacerItem( 71, 16, QSizePolicy::Fixed, QSizePolicy::Minimum );
00067     layout4->addItem( spacer );
00068 
00069     modified = new QLabel( tab_2, "modified" );
00070     modified->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, modified->sizePolicy().hasHeightForWidth() ) );
00071     modified->setMinimumSize( QSize( 100, 20 ) );
00072     modified->setMaximumSize( QSize( 32767, 20 ) );
00073     layout4->addWidget( modified );
00074     layout6->addLayout( layout4 );
00075     tabLayout->addLayout( layout6 );
00076     tab->insertTab( tab_2, QString("") );
00077 
00078     TabPage = new QWidget( tab, "TabPage" );
00079     TabPageLayout = new QHBoxLayout( TabPage, 11, 6, "TabPageLayout"); 
00080 
00081     layout11 = new QVBoxLayout( 0, 0, 6, "layout11"); 
00082 
00083     textLabel3 = new QLabel( TabPage, "textLabel3" );
00084     layout11->addWidget( textLabel3 );
00085 
00086     publs = new LinkListBox( TabPage, "publs" );
00087     publs->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, publs->sizePolicy().hasHeightForWidth() ) );
00088     layout11->addWidget( publs );
00089     TabPageLayout->addLayout( layout11 );
00090     tab->insertTab( TabPage, QString("") );
00091 
00092     tab_3 = new QWidget( tab, "tab_3" );
00093     tab->insertTab( tab_3, QString("") );
00094     ProjectFormLayout->addWidget( tab );
00095     languageChange();
00096     resize( QSize(495, 596).expandedTo(minimumSizeHint()) );
00097     clearWState( WState_Polished );
00098 }
00099 
00100 /*
00101  *  Destroys the object and frees any allocated resources
00102  */
00103 ProjectForm::~ProjectForm()
00104 {
00105     // no need to delete child widgets, Qt does it all for us
00106 }
00107 
00108 /*
00109  *  Sets the strings of the subwidgets using the current
00110  *  language.
00111  */
00112 void ProjectForm::languageChange()
00113 {
00114     setCaption( tr2i18n( "Form1" ) );
00115     textLabel1->setText( tr2i18n( "Title" ) );
00116     textLabel2->setText( tr2i18n( "Description" ) );
00117     created->setText( tr2i18n( "Created" ) );
00118     modified->setText( tr2i18n( "Modified" ) );
00119     tab->changeTab( tab_2, tr2i18n( "Overview" ) );
00120     textLabel3->setText( tr2i18n( "Bibliography" ) );
00121     tab->changeTab( TabPage, tr2i18n( "Bibliography" ) );
00122     tab->changeTab( tab_3, tr2i18n( "Documents" ) );
00123 }
00124 
00125 #include "projectform.moc"

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