00001 #include <klocale.h>
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #include "bibliographyform.h"
00012
00013 #include <qvariant.h>
00014 #include <qpushbutton.h>
00015 #include <qlabel.h>
00016 #include <qlineedit.h>
00017 #include <qtextedit.h>
00018 #include <qframe.h>
00019 #include <qlayout.h>
00020 #include <qtooltip.h>
00021 #include <qwhatsthis.h>
00022 #include <qimage.h>
00023 #include <qpixmap.h>
00024
00025
00026
00027
00028
00029 BibliographyForm::BibliographyForm( QWidget* parent, const char* name, WFlags fl )
00030 : QWidget( parent, name, fl )
00031 {
00032 if ( !name )
00033 setName( "BibliographyForm" );
00034 BibliographyFormLayout = new QVBoxLayout( this, 11, 6, "BibliographyFormLayout");
00035
00036 layout63 = new QVBoxLayout( 0, 0, 6, "layout63");
00037
00038 Layout35 = new QVBoxLayout( 0, 0, 6, "Layout35");
00039
00040 title = new QLabel( this, "title" );
00041 Layout35->addWidget( title );
00042
00043 Layout34 = new QHBoxLayout( 0, 0, 6, "Layout34");
00044
00045 label = new QLabel( this, "label" );
00046 Layout34->addWidget( label );
00047
00048 subtitle = new QLineEdit( this, "subtitle" );
00049 Layout34->addWidget( subtitle );
00050 Layout35->addLayout( Layout34 );
00051 layout63->addLayout( Layout35 );
00052
00053 layout62 = new QHBoxLayout( 0, 0, 6, "layout62");
00054
00055 Layout31 = new QVBoxLayout( 0, 0, 6, "Layout31");
00056
00057 TextLabel7 = new QLabel( this, "TextLabel7" );
00058 Layout31->addWidget( TextLabel7 );
00059
00060 bibtex = new QTextEdit( this, "bibtex" );
00061 bibtex->setTextFormat( QTextEdit::PlainText );
00062 Layout31->addWidget( bibtex );
00063
00064 genbibtex = new QPushButton( this, "genbibtex" );
00065 Layout31->addWidget( genbibtex );
00066 layout62->addLayout( Layout31 );
00067
00068 layout61 = new QVBoxLayout( 0, 0, 6, "layout61");
00069
00070 bibtextype = new QLabel( this, "bibtextype" );
00071 layout61->addWidget( bibtextype );
00072
00073 Layout20 = new QHBoxLayout( 0, 0, 6, "Layout20");
00074
00075 TextLabel9 = new QLabel( this, "TextLabel9" );
00076 TextLabel9->setMinimumSize( QSize( 90, 0 ) );
00077 TextLabel9->setMaximumSize( QSize( 90, 32767 ) );
00078 Layout20->addWidget( TextLabel9 );
00079
00080 translator = new QLineEdit( this, "translator" );
00081 Layout20->addWidget( translator );
00082 layout61->addLayout( Layout20 );
00083
00084 Layout23 = new QHBoxLayout( 0, 0, 6, "Layout23");
00085
00086 TextLabel10 = new QLabel( this, "TextLabel10" );
00087 TextLabel10->setMinimumSize( QSize( 90, 0 ) );
00088 TextLabel10->setMaximumSize( QSize( 90, 32767 ) );
00089 Layout23->addWidget( TextLabel10 );
00090
00091 orgyear = new QLineEdit( this, "orgyear" );
00092 Layout23->addWidget( orgyear );
00093 layout61->addLayout( Layout23 );
00094
00095 Layout24 = new QHBoxLayout( 0, 0, 6, "Layout24");
00096
00097 TextLabel11 = new QLabel( this, "TextLabel11" );
00098 TextLabel11->setMinimumSize( QSize( 90, 0 ) );
00099 TextLabel11->setMaximumSize( QSize( 90, 32767 ) );
00100 Layout24->addWidget( TextLabel11 );
00101
00102 orgpublisher = new QLabel( this, "orgpublisher" );
00103 Layout24->addWidget( orgpublisher );
00104
00105 choose_org_publisher = new QPushButton( this, "choose_org_publisher" );
00106 Layout24->addWidget( choose_org_publisher );
00107 layout61->addLayout( Layout24 );
00108
00109 Layout26 = new QHBoxLayout( 0, 0, 6, "Layout26");
00110
00111 TextLabel13 = new QLabel( this, "TextLabel13" );
00112 TextLabel13->setMinimumSize( QSize( 90, 0 ) );
00113 TextLabel13->setMaximumSize( QSize( 90, 32767 ) );
00114 Layout26->addWidget( TextLabel13 );
00115
00116 orgtitle = new QLineEdit( this, "orgtitle" );
00117 Layout26->addWidget( orgtitle );
00118 layout61->addLayout( Layout26 );
00119
00120 Layout27 = new QHBoxLayout( 0, 0, 6, "Layout27");
00121
00122 TextLabel14 = new QLabel( this, "TextLabel14" );
00123 TextLabel14->setMinimumSize( QSize( 90, 0 ) );
00124 TextLabel14->setMaximumSize( QSize( 90, 32767 ) );
00125 Layout27->addWidget( TextLabel14 );
00126
00127 isbn = new QLineEdit( this, "isbn" );
00128 Layout27->addWidget( isbn );
00129 layout61->addLayout( Layout27 );
00130
00131 Layout28 = new QHBoxLayout( 0, 0, 6, "Layout28");
00132
00133 TextLabel15 = new QLabel( this, "TextLabel15" );
00134 TextLabel15->setMinimumSize( QSize( 90, 0 ) );
00135 TextLabel15->setMaximumSize( QSize( 90, 32767 ) );
00136 Layout28->addWidget( TextLabel15 );
00137
00138 hidingplace = new QLineEdit( this, "hidingplace" );
00139 Layout28->addWidget( hidingplace );
00140 layout61->addLayout( Layout28 );
00141
00142 layout60 = new QHBoxLayout( 0, 0, 6, "layout60");
00143
00144 TextLabel16 = new QLabel( this, "TextLabel16" );
00145 TextLabel16->setMinimumSize( QSize( 90, 0 ) );
00146 TextLabel16->setMaximumSize( QSize( 90, 32767 ) );
00147 layout60->addWidget( TextLabel16 );
00148
00149 pages = new QLineEdit( this, "pages" );
00150 layout60->addWidget( pages );
00151 layout61->addLayout( layout60 );
00152 QSpacerItem* spacer = new QSpacerItem( 20, 16, QSizePolicy::Minimum, QSizePolicy::Expanding );
00153 layout61->addItem( spacer );
00154 layout62->addLayout( layout61 );
00155 layout63->addLayout( layout62 );
00156 QSpacerItem* spacer_2 = new QSpacerItem( 20, 16, QSizePolicy::Minimum, QSizePolicy::Fixed );
00157 layout63->addItem( spacer_2 );
00158
00159 frame = new QFrame( this, "frame" );
00160 frame->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, 0, 0, frame->sizePolicy().hasHeightForWidth() ) );
00161 frame->setMinimumSize( QSize( 0, 0 ) );
00162 frame->setBackgroundOrigin( QFrame::WidgetOrigin );
00163 frame->setFrameShape( QFrame::NoFrame );
00164 frame->setFrameShadow( QFrame::Plain );
00165 frame->setMargin( 5 );
00166 layout63->addWidget( frame );
00167
00168 Layout18 = new QHBoxLayout( 0, 0, 6, "Layout18");
00169 QSpacerItem* spacer_3 = new QSpacerItem( 285, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
00170 Layout18->addItem( spacer_3 );
00171
00172 created = new QLabel( this, "created" );
00173 created->setMinimumSize( QSize( 100, 0 ) );
00174 Layout18->addWidget( created );
00175 QSpacerItem* spacer_4 = new QSpacerItem( 71, 16, QSizePolicy::Fixed, QSizePolicy::Minimum );
00176 Layout18->addItem( spacer_4 );
00177
00178 modified = new QLabel( this, "modified" );
00179 modified->setMinimumSize( QSize( 100, 0 ) );
00180 Layout18->addWidget( modified );
00181 layout63->addLayout( Layout18 );
00182 BibliographyFormLayout->addLayout( layout63 );
00183 languageChange();
00184 resize( QSize(447, 440).expandedTo(minimumSizeHint()) );
00185 clearWState( WState_Polished );
00186 }
00187
00188
00189
00190
00191 BibliographyForm::~BibliographyForm()
00192 {
00193
00194 }
00195
00196
00197
00198
00199
00200 void BibliographyForm::languageChange()
00201 {
00202 setCaption( tr2i18n( "ReadWriteFormBaseForm" ) );
00203 title->setText( tr2i18n( "Title" ) );
00204 label->setText( tr2i18n( "Subtitle" ) );
00205 TextLabel7->setText( tr2i18n( "BibTex" ) );
00206 genbibtex->setText( tr2i18n( "Generate BibTex" ) );
00207 bibtextype->setText( tr2i18n( "BibTexType" ) );
00208 TextLabel9->setText( tr2i18n( "Translator" ) );
00209 TextLabel10->setText( tr2i18n( "Org. Year" ) );
00210 TextLabel11->setText( tr2i18n( "Org. Publisher" ) );
00211 orgpublisher->setText( tr2i18n( "Publisher" ) );
00212 choose_org_publisher->setText( tr2i18n( "Choose" ) );
00213 TextLabel13->setText( tr2i18n( "Org. Title" ) );
00214 TextLabel14->setText( tr2i18n( "ISBN/ISSN" ) );
00215 TextLabel15->setText( tr2i18n( "Hidingplace" ) );
00216 TextLabel16->setText( tr2i18n( "Pages" ) );
00217 created->setText( tr2i18n( "Created" ) );
00218 modified->setText( tr2i18n( "Modified" ) );
00219 }
00220
00221 #include "bibliographyform.moc"