00001 #include <klocale.h>
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #include "publicationform.h"
00012
00013 #include <qvariant.h>
00014 #include <qpushbutton.h>
00015 #include <qlabel.h>
00016 #include <qlineedit.h>
00017 #include <qcombobox.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 #include "authorlinklistbox.h"
00027 #include "./publicationform.ui.h"
00028
00029
00030
00031
00032 PublicationForm::PublicationForm( QWidget* parent, const char* name, WFlags fl )
00033 : QWidget( parent, name, fl )
00034 {
00035 if ( !name )
00036 setName( "PublicationForm" );
00037 PublicationFormLayout = new QHBoxLayout( this, 11, 6, "PublicationFormLayout");
00038
00039 layout15 = new QVBoxLayout( 0, 0, 6, "layout15");
00040
00041 layout14 = new QHBoxLayout( 0, 0, 6, "layout14");
00042
00043 layout12 = new QVBoxLayout( 0, 0, 6, "layout12");
00044
00045 Layout21 = new QHBoxLayout( 0, 0, 6, "Layout21");
00046
00047 TextLabel1 = new QLabel( this, "TextLabel1" );
00048 TextLabel1->setMinimumSize( QSize( 80, 20 ) );
00049 TextLabel1->setMaximumSize( QSize( 80, 20 ) );
00050 Layout21->addWidget( TextLabel1 );
00051
00052 title = new QLineEdit( this, "title" );
00053 Layout21->addWidget( title );
00054 layout12->addLayout( Layout21 );
00055
00056 Layout22 = new QHBoxLayout( 0, 0, 6, "Layout22");
00057
00058 TextLabel1_2 = new QLabel( this, "TextLabel1_2" );
00059 TextLabel1_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, TextLabel1_2->sizePolicy().hasHeightForWidth() ) );
00060 TextLabel1_2->setMinimumSize( QSize( 80, 20 ) );
00061 TextLabel1_2->setMaximumSize( QSize( 80, 20 ) );
00062 Layout22->addWidget( TextLabel1_2 );
00063
00064 year = new QLineEdit( this, "year" );
00065 Layout22->addWidget( year );
00066 layout12->addLayout( Layout22 );
00067
00068 Layout23 = new QHBoxLayout( 0, 0, 6, "Layout23");
00069
00070 TextLabel1_3 = new QLabel( this, "TextLabel1_3" );
00071 TextLabel1_3->setMinimumSize( QSize( 80, 20 ) );
00072 TextLabel1_3->setMaximumSize( QSize( 80, 20 ) );
00073 Layout23->addWidget( TextLabel1_3 );
00074
00075 publisher = new QLabel( this, "publisher" );
00076 Layout23->addWidget( publisher );
00077
00078 choosePublisher = new QPushButton( this, "choosePublisher" );
00079 choosePublisher->setMinimumSize( QSize( 80, 20 ) );
00080 choosePublisher->setMaximumSize( QSize( 80, 20 ) );
00081 Layout23->addWidget( choosePublisher );
00082 layout12->addLayout( Layout23 );
00083
00084 Layout24 = new QHBoxLayout( 0, 0, 6, "Layout24");
00085
00086 TextLabel1_3_2 = new QLabel( this, "TextLabel1_3_2" );
00087 TextLabel1_3_2->setMinimumSize( QSize( 80, 20 ) );
00088 TextLabel1_3_2->setMaximumSize( QSize( 80, 20 ) );
00089 Layout24->addWidget( TextLabel1_3_2 );
00090
00091 journal = new QLabel( this, "journal" );
00092 Layout24->addWidget( journal );
00093
00094 chooseJournal = new QPushButton( this, "chooseJournal" );
00095 chooseJournal->setMinimumSize( QSize( 80, 20 ) );
00096 chooseJournal->setMaximumSize( QSize( 80, 20 ) );
00097 Layout24->addWidget( chooseJournal );
00098 layout12->addLayout( Layout24 );
00099
00100 Layout25 = new QHBoxLayout( 0, 0, 6, "Layout25");
00101
00102 TextLabel1_2_2 = new QLabel( this, "TextLabel1_2_2" );
00103 TextLabel1_2_2->setMinimumSize( QSize( 80, 20 ) );
00104 TextLabel1_2_2->setMaximumSize( QSize( 80, 20 ) );
00105 Layout25->addWidget( TextLabel1_2_2 );
00106
00107 bibtype = new QComboBox( FALSE, this, "bibtype" );
00108 Layout25->addWidget( bibtype );
00109 layout12->addLayout( Layout25 );
00110
00111 TextLabel2_2_3 = new QLabel( this, "TextLabel2_2_3" );
00112 layout12->addWidget( TextLabel2_2_3 );
00113
00114 memo = new QTextEdit( this, "memo" );
00115 layout12->addWidget( memo );
00116
00117 links = new LinkListBox( this, "links" );
00118 links->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, links->sizePolicy().hasHeightForWidth() ) );
00119 layout12->addWidget( links );
00120 layout14->addLayout( layout12 );
00121
00122 layout13 = new QVBoxLayout( 0, 0, 6, "layout13");
00123
00124 authors = new AuthorLinkListBox( this, "authors" );
00125 layout13->addWidget( authors );
00126
00127 parts = new LinkListBox( this, "parts" );
00128 parts->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, parts->sizePolicy().hasHeightForWidth() ) );
00129 layout13->addWidget( parts );
00130 layout14->addLayout( layout13 );
00131 layout15->addLayout( layout14 );
00132
00133 Layout43 = new QHBoxLayout( 0, 0, 6, "Layout43");
00134 QSpacerItem* spacer = new QSpacerItem( 30, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
00135 Layout43->addItem( spacer );
00136
00137 created = new QLabel( this, "created" );
00138 created->setMinimumSize( QSize( 100, 0 ) );
00139 Layout43->addWidget( created );
00140 QSpacerItem* spacer_2 = new QSpacerItem( 71, 16, QSizePolicy::Fixed, QSizePolicy::Minimum );
00141 Layout43->addItem( spacer_2 );
00142
00143 modified = new QLabel( this, "modified" );
00144 modified->setMinimumSize( QSize( 100, 0 ) );
00145 Layout43->addWidget( modified );
00146 layout15->addLayout( Layout43 );
00147 PublicationFormLayout->addLayout( layout15 );
00148 languageChange();
00149 resize( QSize(498, 590).expandedTo(minimumSizeHint()) );
00150 clearWState( WState_Polished );
00151 init();
00152 }
00153
00154
00155
00156
00157 PublicationForm::~PublicationForm()
00158 {
00159
00160 }
00161
00162
00163
00164
00165
00166 void PublicationForm::languageChange()
00167 {
00168 setCaption( tr2i18n( "Form1" ) );
00169 TextLabel1->setText( tr2i18n( "Title" ) );
00170 TextLabel1_2->setText( tr2i18n( "Year" ) );
00171 TextLabel1_3->setText( tr2i18n( "Publisher" ) );
00172 publisher->setText( tr2i18n( "Publisher" ) );
00173 choosePublisher->setText( tr2i18n( "Choose" ) );
00174 TextLabel1_3_2->setText( tr2i18n( "Journal" ) );
00175 journal->setText( tr2i18n( "Journal" ) );
00176 chooseJournal->setText( tr2i18n( "Choose" ) );
00177 TextLabel1_2_2->setText( tr2i18n( "Type" ) );
00178 TextLabel2_2_3->setText( tr2i18n( "Memo" ) );
00179 created->setText( tr2i18n( "Created" ) );
00180 modified->setText( tr2i18n( "Modified" ) );
00181 }
00182
00183 #include "publicationform.moc"