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

partmemoform.cpp

Go to the documentation of this file.
00001 #include <klocale.h>
00002 /****************************************************************************
00003 ** Form implementation generated from reading ui file './partmemoform.ui'
00004 **
00005 ** Created: Sa Mär 27 00:54:37 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 "partmemoform.h"
00012 
00013 #include <qvariant.h>
00014 #include <qpushbutton.h>
00015 #include <qlabel.h>
00016 #include <qtextedit.h>
00017 #include <qlayout.h>
00018 #include <qtooltip.h>
00019 #include <qwhatsthis.h>
00020 #include <qimage.h>
00021 #include <qpixmap.h>
00022 
00023 /*
00024  *  Constructs a PartMemoForm as a child of 'parent', with the
00025  *  name 'name' and widget flags set to 'f'.
00026  */
00027 PartMemoForm::PartMemoForm( QWidget* parent, const char* name, WFlags fl )
00028     : QWidget( parent, name, fl )
00029 {
00030     if ( !name )
00031         setName( "Partmemo" );
00032     PartmemoLayout = new QVBoxLayout( this, 11, 6, "PartmemoLayout"); 
00033 
00034     Layout19 = new QVBoxLayout( 0, 0, 6, "Layout19"); 
00035 
00036     title = new QLabel( this, "title" );
00037     title->setMinimumSize( QSize( 0, 20 ) );
00038     title->setMaximumSize( QSize( 32767, 20 ) );
00039     Layout19->addWidget( title );
00040 
00041     Layout17 = new QHBoxLayout( 0, 0, 6, "Layout17"); 
00042 
00043     chapterno = new QLabel( this, "chapterno" );
00044     chapterno->setMinimumSize( QSize( 50, 20 ) );
00045     chapterno->setMaximumSize( QSize( 50, 20 ) );
00046     Layout17->addWidget( chapterno );
00047 
00048     chapter = new QLabel( this, "chapter" );
00049     Layout17->addWidget( chapter );
00050     Layout19->addLayout( Layout17 );
00051 
00052     Layout18 = new QVBoxLayout( 0, 0, 6, "Layout18"); 
00053 
00054     TextLabel4 = new QLabel( this, "TextLabel4" );
00055     TextLabel4->setMinimumSize( QSize( 0, 20 ) );
00056     TextLabel4->setMaximumSize( QSize( 32767, 20 ) );
00057     Layout18->addWidget( TextLabel4 );
00058 
00059     memo = new QTextEdit( this, "memo" );
00060     Layout18->addWidget( memo );
00061     Layout19->addLayout( Layout18 );
00062 
00063     Layout18_2 = new QHBoxLayout( 0, 0, 6, "Layout18_2"); 
00064     QSpacerItem* spacer = new QSpacerItem( 285, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
00065     Layout18_2->addItem( spacer );
00066 
00067     created = new QLabel( this, "created" );
00068     created->setMinimumSize( QSize( 100, 20 ) );
00069     created->setMaximumSize( QSize( 32767, 20 ) );
00070     Layout18_2->addWidget( created );
00071     QSpacerItem* spacer_2 = new QSpacerItem( 71, 16, QSizePolicy::Fixed, QSizePolicy::Minimum );
00072     Layout18_2->addItem( spacer_2 );
00073 
00074     modified = new QLabel( this, "modified" );
00075     modified->setMinimumSize( QSize( 100, 20 ) );
00076     modified->setMaximumSize( QSize( 32767, 20 ) );
00077     Layout18_2->addWidget( modified );
00078     Layout19->addLayout( Layout18_2 );
00079     PartmemoLayout->addLayout( Layout19 );
00080     languageChange();
00081     resize( QSize(316, 409).expandedTo(minimumSizeHint()) );
00082     clearWState( WState_Polished );
00083 }
00084 
00085 /*
00086  *  Destroys the object and frees any allocated resources
00087  */
00088 PartMemoForm::~PartMemoForm()
00089 {
00090     // no need to delete child widgets, Qt does it all for us
00091 }
00092 
00093 /*
00094  *  Sets the strings of the subwidgets using the current
00095  *  language.
00096  */
00097 void PartMemoForm::languageChange()
00098 {
00099     setCaption( tr2i18n( "Form1" ) );
00100     title->setText( tr2i18n( "Title" ) );
00101     chapterno->setText( tr2i18n( "No" ) );
00102     chapter->setText( tr2i18n( "Chapter" ) );
00103     TextLabel4->setText( tr2i18n( "Memo" ) );
00104     created->setText( tr2i18n( "Created" ) );
00105     modified->setText( tr2i18n( "Modified" ) );
00106 }
00107 
00108 #include "partmemoform.moc"

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