00001 #include <klocale.h>
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #include "journalform.h"
00012
00013 #include <qvariant.h>
00014 #include <qpushbutton.h>
00015 #include <qlabel.h>
00016 #include <qlineedit.h>
00017 #include <qlayout.h>
00018 #include <qtooltip.h>
00019 #include <qwhatsthis.h>
00020 #include <qimage.h>
00021 #include <qpixmap.h>
00022
00023 #include "linklistbox.h"
00024
00025
00026
00027
00028 JournalForm::JournalForm( QWidget* parent, const char* name, WFlags fl )
00029 : QWidget( parent, name, fl )
00030 {
00031 if ( !name )
00032 setName( "JournalForm" );
00033 setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, sizePolicy().hasHeightForWidth() ) );
00034 JournalFormLayout = new QHBoxLayout( this, 11, 6, "JournalFormLayout");
00035
00036 layout8 = new QVBoxLayout( 0, 0, 6, "layout8");
00037
00038 layout37 = new QHBoxLayout( 0, 0, 6, "layout37");
00039
00040 textLabel1 = new QLabel( this, "textLabel1" );
00041 textLabel1->setMinimumSize( QSize( 90, 0 ) );
00042 textLabel1->setMaximumSize( QSize( 90, 32767 ) );
00043 layout37->addWidget( textLabel1 );
00044
00045 jname = new QLineEdit( this, "jname" );
00046 layout37->addWidget( jname );
00047 layout8->addLayout( layout37 );
00048
00049 layout7 = new QHBoxLayout( 0, 0, 6, "layout7");
00050
00051 label = new QLabel( this, "label" );
00052 label->setMinimumSize( QSize( 65, 0 ) );
00053 label->setMaximumSize( QSize( 90, 32767 ) );
00054 layout7->addWidget( label );
00055
00056 pname = new QLabel( this, "pname" );
00057 layout7->addWidget( pname );
00058
00059 choosePublisher = new QPushButton( this, "choosePublisher" );
00060 choosePublisher->setMaximumSize( QSize( 100, 32767 ) );
00061 layout7->addWidget( choosePublisher );
00062 layout8->addLayout( layout7 );
00063
00064 publications = new LinkListBox( this, "publications" );
00065 publications->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, publications->sizePolicy().hasHeightForWidth() ) );
00066 layout8->addWidget( publications );
00067
00068 layout36 = new QHBoxLayout( 0, 0, 6, "layout36");
00069
00070 created = new QLabel( this, "created" );
00071 created->setMinimumSize( QSize( 100, 20 ) );
00072 created->setMaximumSize( QSize( 32767, 20 ) );
00073 layout36->addWidget( created );
00074 QSpacerItem* spacer = new QSpacerItem( 71, 16, QSizePolicy::Fixed, QSizePolicy::Minimum );
00075 layout36->addItem( spacer );
00076
00077 modified = new QLabel( this, "modified" );
00078 modified->setMinimumSize( QSize( 100, 20 ) );
00079 modified->setMaximumSize( QSize( 32767, 20 ) );
00080 layout36->addWidget( modified );
00081 layout8->addLayout( layout36 );
00082 JournalFormLayout->addLayout( layout8 );
00083 languageChange();
00084 resize( QSize(381, 487).expandedTo(minimumSizeHint()) );
00085 clearWState( WState_Polished );
00086 }
00087
00088
00089
00090
00091 JournalForm::~JournalForm()
00092 {
00093
00094 }
00095
00096
00097
00098
00099
00100 void JournalForm::languageChange()
00101 {
00102 setCaption( tr2i18n( "Form2" ) );
00103 textLabel1->setText( tr2i18n( "Name" ) );
00104 label->setText( tr2i18n( "Publisher" ) );
00105 pname->setText( QString::null );
00106 choosePublisher->setText( tr2i18n( "Choose" ) );
00107 created->setText( tr2i18n( "Created" ) );
00108 modified->setText( tr2i18n( "Modified" ) );
00109 }
00110
00111 #include "journalform.moc"