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

noteform.cpp

Go to the documentation of this file.
00001 #include <klocale.h>
00002 /****************************************************************************
00003 ** Form implementation generated from reading ui file './noteform.ui'
00004 **
00005 ** Created: Sa Mär 27 00:54:00 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 "noteform.h"
00012 
00013 #include <qvariant.h>
00014 #include <qpushbutton.h>
00015 #include <qlabel.h>
00016 #include <qlineedit.h>
00017 #include <qsplitter.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 NoteForm as a child of 'parent', with the
00028  *  name 'name' and widget flags set to 'f'.
00029  */
00030 NoteForm::NoteForm( QWidget* parent, const char* name, WFlags fl )
00031     : QWidget( parent, name, fl )
00032 {
00033     if ( !name )
00034         setName( "NoteForm" );
00035     NoteFormLayout = new QVBoxLayout( this, 11, 6, "NoteFormLayout"); 
00036 
00037     Layout59 = new QVBoxLayout( 0, 0, 6, "Layout59"); 
00038 
00039     Layout47 = new QHBoxLayout( 0, 0, 6, "Layout47"); 
00040 
00041     TextLabel4 = new QLabel( this, "TextLabel4" );
00042     TextLabel4->setMinimumSize( QSize( 80, 0 ) );
00043     TextLabel4->setMaximumSize( QSize( 80, 32767 ) );
00044     Layout47->addWidget( TextLabel4 );
00045 
00046     title = new QLineEdit( this, "title" );
00047     Layout47->addWidget( title );
00048     Layout59->addLayout( Layout47 );
00049 
00050     Splitter2 = new QSplitter( this, "Splitter2" );
00051     Splitter2->setOrientation( QSplitter::Horizontal );
00052 
00053     links = new LinkListBox( Splitter2, "links" );
00054     links->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, links->sizePolicy().hasHeightForWidth() ) );
00055 
00056     memo = new QTextEdit( Splitter2, "memo" );
00057     Layout59->addWidget( Splitter2 );
00058 
00059     Layout57 = new QHBoxLayout( 0, 0, 6, "Layout57"); 
00060     QSpacerItem* spacer = new QSpacerItem( 30, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
00061     Layout57->addItem( spacer );
00062 
00063     created = new QLabel( this, "created" );
00064     created->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, created->sizePolicy().hasHeightForWidth() ) );
00065     created->setMinimumSize( QSize( 100, 20 ) );
00066     created->setMaximumSize( QSize( 32767, 20 ) );
00067     Layout57->addWidget( created );
00068     QSpacerItem* spacer_2 = new QSpacerItem( 71, 16, QSizePolicy::Fixed, QSizePolicy::Minimum );
00069     Layout57->addItem( spacer_2 );
00070 
00071     modified = new QLabel( this, "modified" );
00072     modified->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, modified->sizePolicy().hasHeightForWidth() ) );
00073     modified->setMinimumSize( QSize( 100, 20 ) );
00074     modified->setMaximumSize( QSize( 32767, 20 ) );
00075     Layout57->addWidget( modified );
00076     Layout59->addLayout( Layout57 );
00077     NoteFormLayout->addLayout( Layout59 );
00078     languageChange();
00079     resize( QSize(480, 609).expandedTo(minimumSizeHint()) );
00080     clearWState( WState_Polished );
00081 }
00082 
00083 /*
00084  *  Destroys the object and frees any allocated resources
00085  */
00086 NoteForm::~NoteForm()
00087 {
00088     // no need to delete child widgets, Qt does it all for us
00089 }
00090 
00091 /*
00092  *  Sets the strings of the subwidgets using the current
00093  *  language.
00094  */
00095 void NoteForm::languageChange()
00096 {
00097     setCaption( tr2i18n( "Form2" ) );
00098     TextLabel4->setText( tr2i18n( "Title" ) );
00099     created->setText( tr2i18n( "Created" ) );
00100     modified->setText( tr2i18n( "Modified" ) );
00101 }
00102 
00103 #include "noteform.moc"

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