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

importpubl.cpp

Go to the documentation of this file.
00001 #include <klocale.h>
00002 /****************************************************************************
00003 ** Form implementation generated from reading ui file './importpubl.ui'
00004 **
00005 ** Created: Sa Mär 27 00:53:03 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 "importpubl.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 <qtable.h>
00020 #include <qlayout.h>
00021 #include <qtooltip.h>
00022 #include <qwhatsthis.h>
00023 #include <qimage.h>
00024 #include <qpixmap.h>
00025 
00026 #include "./importpubl.ui.h"
00027 /*
00028  *  Constructs a ImportPubl as a child of 'parent', with the
00029  *  name 'name' and widget flags set to 'f'.
00030  */
00031 ImportPubl::ImportPubl( QWidget* parent, const char* name, WFlags fl )
00032     : QWidget( parent, name, fl )
00033 {
00034     if ( !name )
00035         setName( "ImportPubl" );
00036     setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)4, (QSizePolicy::SizeType)4, 0, 0, sizePolicy().hasHeightForWidth() ) );
00037     ImportPublLayout = new QVBoxLayout( this, 11, 6, "ImportPublLayout"); 
00038 
00039     layout55 = new QVBoxLayout( 0, 0, 6, "layout55"); 
00040 
00041     layout53 = new QHBoxLayout( 0, 0, 6, "layout53"); 
00042 
00043     layout49 = new QVBoxLayout( 0, 0, 6, "layout49"); 
00044 
00045     layout13 = new QHBoxLayout( 0, 0, 6, "layout13"); 
00046 
00047     textLabel3 = new QLabel( this, "textLabel3" );
00048     textLabel3->setMinimumSize( QSize( 80, 0 ) );
00049     layout13->addWidget( textLabel3 );
00050 
00051     title = new QLineEdit( this, "title" );
00052     layout13->addWidget( title );
00053     layout49->addLayout( layout13 );
00054 
00055     layout31 = new QHBoxLayout( 0, 0, 6, "layout31"); 
00056 
00057     label = new QLabel( this, "label" );
00058     label->setMinimumSize( QSize( 80, 0 ) );
00059     layout31->addWidget( label );
00060 
00061     subtitle = new QLineEdit( this, "subtitle" );
00062     layout31->addWidget( subtitle );
00063     layout49->addLayout( layout31 );
00064 
00065     layout14 = new QHBoxLayout( 0, 0, 6, "layout14"); 
00066 
00067     textLabel4 = new QLabel( this, "textLabel4" );
00068     textLabel4->setMinimumSize( QSize( 80, 0 ) );
00069     layout14->addWidget( textLabel4 );
00070 
00071     year = new QLineEdit( this, "year" );
00072     layout14->addWidget( year );
00073     layout49->addLayout( layout14 );
00074 
00075     layout12 = new QHBoxLayout( 0, 0, 6, "layout12"); 
00076 
00077     textLabel6_2_2_3 = new QLabel( this, "textLabel6_2_2_3" );
00078     textLabel6_2_2_3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)5, 0, 0, textLabel6_2_2_3->sizePolicy().hasHeightForWidth() ) );
00079     textLabel6_2_2_3->setMinimumSize( QSize( 80, 0 ) );
00080     layout12->addWidget( textLabel6_2_2_3 );
00081 
00082     bibtex = new QComboBox( FALSE, this, "bibtex" );
00083     layout12->addWidget( bibtex );
00084     layout49->addLayout( layout12 );
00085 
00086     layout10 = new QHBoxLayout( 0, 0, 6, "layout10"); 
00087 
00088     textLabel6_2_2_2 = new QLabel( this, "textLabel6_2_2_2" );
00089     textLabel6_2_2_2->setMinimumSize( QSize( 80, 0 ) );
00090     layout10->addWidget( textLabel6_2_2_2 );
00091 
00092     journal = new QLineEdit( this, "journal" );
00093     layout10->addWidget( journal );
00094     QSpacerItem* spacer = new QSpacerItem( 21, 20, QSizePolicy::Fixed, QSizePolicy::Minimum );
00095     layout10->addItem( spacer );
00096 
00097     pushButton6_2 = new QPushButton( this, "pushButton6_2" );
00098     layout10->addWidget( pushButton6_2 );
00099     layout49->addLayout( layout10 );
00100 
00101     layout11 = new QHBoxLayout( 0, 0, 6, "layout11"); 
00102 
00103     textLabel6_2_2 = new QLabel( this, "textLabel6_2_2" );
00104     textLabel6_2_2->setMinimumSize( QSize( 80, 0 ) );
00105     layout11->addWidget( textLabel6_2_2 );
00106 
00107     publisher = new QLineEdit( this, "publisher" );
00108     layout11->addWidget( publisher );
00109     QSpacerItem* spacer_2 = new QSpacerItem( 21, 20, QSizePolicy::Fixed, QSizePolicy::Minimum );
00110     layout11->addItem( spacer_2 );
00111 
00112     pushButton6 = new QPushButton( this, "pushButton6" );
00113     layout11->addWidget( pushButton6 );
00114     layout49->addLayout( layout11 );
00115     layout53->addLayout( layout49 );
00116 
00117     layout50 = new QVBoxLayout( 0, 0, 6, "layout50"); 
00118 
00119     Layout20 = new QHBoxLayout( 0, 0, 6, "Layout20"); 
00120 
00121     TextLabel9 = new QLabel( this, "TextLabel9" );
00122     TextLabel9->setMinimumSize( QSize( 90, 0 ) );
00123     TextLabel9->setMaximumSize( QSize( 90, 32767 ) );
00124     Layout20->addWidget( TextLabel9 );
00125 
00126     translator = new QLineEdit( this, "translator" );
00127     Layout20->addWidget( translator );
00128     layout50->addLayout( Layout20 );
00129 
00130     Layout23 = new QHBoxLayout( 0, 0, 6, "Layout23"); 
00131 
00132     TextLabel10 = new QLabel( this, "TextLabel10" );
00133     TextLabel10->setMinimumSize( QSize( 90, 0 ) );
00134     TextLabel10->setMaximumSize( QSize( 90, 32767 ) );
00135     Layout23->addWidget( TextLabel10 );
00136 
00137     orgyear = new QLineEdit( this, "orgyear" );
00138     Layout23->addWidget( orgyear );
00139     layout50->addLayout( Layout23 );
00140 
00141     Layout24 = new QHBoxLayout( 0, 0, 6, "Layout24"); 
00142 
00143     TextLabel11 = new QLabel( this, "TextLabel11" );
00144     TextLabel11->setMinimumSize( QSize( 90, 0 ) );
00145     TextLabel11->setMaximumSize( QSize( 90, 32767 ) );
00146     Layout24->addWidget( TextLabel11 );
00147 
00148     orgpublisher = new QLabel( this, "orgpublisher" );
00149     Layout24->addWidget( orgpublisher );
00150 
00151     choose_org_publisher = new QPushButton( this, "choose_org_publisher" );
00152     Layout24->addWidget( choose_org_publisher );
00153     layout50->addLayout( Layout24 );
00154 
00155     Layout26 = new QHBoxLayout( 0, 0, 6, "Layout26"); 
00156 
00157     TextLabel13 = new QLabel( this, "TextLabel13" );
00158     TextLabel13->setMinimumSize( QSize( 90, 0 ) );
00159     TextLabel13->setMaximumSize( QSize( 90, 32767 ) );
00160     Layout26->addWidget( TextLabel13 );
00161 
00162     orgtitle = new QLineEdit( this, "orgtitle" );
00163     Layout26->addWidget( orgtitle );
00164     layout50->addLayout( Layout26 );
00165 
00166     Layout27 = new QHBoxLayout( 0, 0, 6, "Layout27"); 
00167 
00168     TextLabel14 = new QLabel( this, "TextLabel14" );
00169     TextLabel14->setMinimumSize( QSize( 90, 0 ) );
00170     TextLabel14->setMaximumSize( QSize( 90, 32767 ) );
00171     Layout27->addWidget( TextLabel14 );
00172 
00173     isbnissn = new QLineEdit( this, "isbnissn" );
00174     Layout27->addWidget( isbnissn );
00175     layout50->addLayout( Layout27 );
00176 
00177     Layout28 = new QHBoxLayout( 0, 0, 6, "Layout28"); 
00178 
00179     TextLabel15 = new QLabel( this, "TextLabel15" );
00180     TextLabel15->setMinimumSize( QSize( 90, 0 ) );
00181     TextLabel15->setMaximumSize( QSize( 90, 32767 ) );
00182     Layout28->addWidget( TextLabel15 );
00183 
00184     hidingplace = new QLineEdit( this, "hidingplace" );
00185     Layout28->addWidget( hidingplace );
00186     layout50->addLayout( Layout28 );
00187 
00188     layout60 = new QHBoxLayout( 0, 0, 6, "layout60"); 
00189 
00190     TextLabel16 = new QLabel( this, "TextLabel16" );
00191     TextLabel16->setMinimumSize( QSize( 90, 0 ) );
00192     TextLabel16->setMaximumSize( QSize( 90, 32767 ) );
00193     layout60->addWidget( TextLabel16 );
00194 
00195     pages = new QLineEdit( this, "pages" );
00196     layout60->addWidget( pages );
00197     layout50->addLayout( layout60 );
00198     layout53->addLayout( layout50 );
00199     layout55->addLayout( layout53 );
00200 
00201     layout54 = new QHBoxLayout( 0, 0, 6, "layout54"); 
00202 
00203     layout44 = new QVBoxLayout( 0, 0, 6, "layout44"); 
00204 
00205     Layout20_2 = new QHBoxLayout( 0, 0, 6, "Layout20_2"); 
00206 
00207     TextLabel9_2 = new QLabel( this, "TextLabel9_2" );
00208     TextLabel9_2->setMinimumSize( QSize( 90, 0 ) );
00209     TextLabel9_2->setMaximumSize( QSize( 90, 32767 ) );
00210     Layout20_2->addWidget( TextLabel9_2 );
00211 
00212     editor = new QLineEdit( this, "editor" );
00213     Layout20_2->addWidget( editor );
00214     layout44->addLayout( Layout20_2 );
00215 
00216     Layout23_2 = new QHBoxLayout( 0, 0, 6, "Layout23_2"); 
00217 
00218     TextLabel10_2 = new QLabel( this, "TextLabel10_2" );
00219     TextLabel10_2->setMinimumSize( QSize( 90, 0 ) );
00220     TextLabel10_2->setMaximumSize( QSize( 90, 32767 ) );
00221     Layout23_2->addWidget( TextLabel10_2 );
00222 
00223     type = new QLineEdit( this, "type" );
00224     Layout23_2->addWidget( type );
00225     layout44->addLayout( Layout23_2 );
00226 
00227     Layout23_2_2 = new QHBoxLayout( 0, 0, 6, "Layout23_2_2"); 
00228 
00229     TextLabel10_2_2 = new QLabel( this, "TextLabel10_2_2" );
00230     TextLabel10_2_2->setMinimumSize( QSize( 90, 0 ) );
00231     TextLabel10_2_2->setMaximumSize( QSize( 90, 32767 ) );
00232     Layout23_2_2->addWidget( TextLabel10_2_2 );
00233 
00234     howpublished = new QLineEdit( this, "howpublished" );
00235     Layout23_2_2->addWidget( howpublished );
00236     layout44->addLayout( Layout23_2_2 );
00237 
00238     Layout26_2 = new QHBoxLayout( 0, 0, 6, "Layout26_2"); 
00239 
00240     TextLabel13_2 = new QLabel( this, "TextLabel13_2" );
00241     TextLabel13_2->setMinimumSize( QSize( 90, 0 ) );
00242     TextLabel13_2->setMaximumSize( QSize( 90, 32767 ) );
00243     Layout26_2->addWidget( TextLabel13_2 );
00244 
00245     series = new QLineEdit( this, "series" );
00246     Layout26_2->addWidget( series );
00247     layout44->addLayout( Layout26_2 );
00248 
00249     Layout23_2_3 = new QHBoxLayout( 0, 0, 6, "Layout23_2_3"); 
00250 
00251     TextLabel10_2_3 = new QLabel( this, "TextLabel10_2_3" );
00252     TextLabel10_2_3->setMinimumSize( QSize( 90, 0 ) );
00253     TextLabel10_2_3->setMaximumSize( QSize( 90, 32767 ) );
00254     Layout23_2_3->addWidget( TextLabel10_2_3 );
00255 
00256     volume = new QLineEdit( this, "volume" );
00257     Layout23_2_3->addWidget( volume );
00258     layout44->addLayout( Layout23_2_3 );
00259 
00260     Layout27_2 = new QHBoxLayout( 0, 0, 6, "Layout27_2"); 
00261 
00262     TextLabel14_2 = new QLabel( this, "TextLabel14_2" );
00263     TextLabel14_2->setMinimumSize( QSize( 90, 0 ) );
00264     TextLabel14_2->setMaximumSize( QSize( 90, 32767 ) );
00265     Layout27_2->addWidget( TextLabel14_2 );
00266 
00267     number = new QLineEdit( this, "number" );
00268     Layout27_2->addWidget( number );
00269     layout44->addLayout( Layout27_2 );
00270 
00271     Layout28_2 = new QHBoxLayout( 0, 0, 6, "Layout28_2"); 
00272 
00273     TextLabel15_2 = new QLabel( this, "TextLabel15_2" );
00274     TextLabel15_2->setMinimumSize( QSize( 90, 0 ) );
00275     TextLabel15_2->setMaximumSize( QSize( 90, 32767 ) );
00276     Layout28_2->addWidget( TextLabel15_2 );
00277 
00278     month = new QLineEdit( this, "month" );
00279     Layout28_2->addWidget( month );
00280     layout44->addLayout( Layout28_2 );
00281 
00282     layout60_2 = new QHBoxLayout( 0, 0, 6, "layout60_2"); 
00283 
00284     TextLabel16_2 = new QLabel( this, "TextLabel16_2" );
00285     TextLabel16_2->setMinimumSize( QSize( 90, 0 ) );
00286     TextLabel16_2->setMaximumSize( QSize( 90, 32767 ) );
00287     layout60_2->addWidget( TextLabel16_2 );
00288 
00289     edition = new QLineEdit( this, "edition" );
00290     layout60_2->addWidget( edition );
00291     layout44->addLayout( layout60_2 );
00292 
00293     Layout23_2_4 = new QHBoxLayout( 0, 0, 6, "Layout23_2_4"); 
00294 
00295     TextLabel10_2_4 = new QLabel( this, "TextLabel10_2_4" );
00296     TextLabel10_2_4->setMinimumSize( QSize( 90, 0 ) );
00297     TextLabel10_2_4->setMaximumSize( QSize( 90, 32767 ) );
00298     Layout23_2_4->addWidget( TextLabel10_2_4 );
00299 
00300     organization = new QLineEdit( this, "organization" );
00301     Layout23_2_4->addWidget( organization );
00302     layout44->addLayout( Layout23_2_4 );
00303 
00304     Layout23_2_5 = new QHBoxLayout( 0, 0, 6, "Layout23_2_5"); 
00305 
00306     TextLabel10_2_5 = new QLabel( this, "TextLabel10_2_5" );
00307     TextLabel10_2_5->setMinimumSize( QSize( 90, 0 ) );
00308     TextLabel10_2_5->setMaximumSize( QSize( 90, 32767 ) );
00309     Layout23_2_5->addWidget( TextLabel10_2_5 );
00310 
00311     school = new QLineEdit( this, "school" );
00312     Layout23_2_5->addWidget( school );
00313     layout44->addLayout( Layout23_2_5 );
00314     layout54->addLayout( layout44 );
00315 
00316     layout51 = new QVBoxLayout( 0, 0, 6, "layout51"); 
00317 
00318     textLabel7 = new QLabel( this, "textLabel7" );
00319     layout51->addWidget( textLabel7 );
00320 
00321     memo = new QTextEdit( this, "memo" );
00322     layout51->addWidget( memo );
00323     layout54->addLayout( layout51 );
00324     layout55->addLayout( layout54 );
00325 
00326     authors = new QTable( this, "authors" );
00327     authors->setNumCols( authors->numCols() + 1 );
00328     authors->horizontalHeader()->setLabel( authors->numCols() - 1, tr2i18n( "First Name" ) );
00329     authors->setNumCols( authors->numCols() + 1 );
00330     authors->horizontalHeader()->setLabel( authors->numCols() - 1, tr2i18n( "Last Name" ) );
00331     authors->setNumCols( authors->numCols() + 1 );
00332     authors->horizontalHeader()->setLabel( authors->numCols() - 1, tr2i18n( "Existing Author" ) );
00333     authors->setNumCols( authors->numCols() + 1 );
00334     authors->horizontalHeader()->setLabel( authors->numCols() - 1, tr2i18n( "Insert Existing" ) );
00335     authors->setNumRows( 0 );
00336     authors->setNumCols( 4 );
00337     layout55->addWidget( authors );
00338     ImportPublLayout->addLayout( layout55 );
00339     languageChange();
00340     resize( QSize(638, 531).expandedTo(minimumSizeHint()) );
00341     clearWState( WState_Polished );
00342     init();
00343 }
00344 
00345 /*
00346  *  Destroys the object and frees any allocated resources
00347  */
00348 ImportPubl::~ImportPubl()
00349 {
00350     // no need to delete child widgets, Qt does it all for us
00351 }
00352 
00353 /*
00354  *  Sets the strings of the subwidgets using the current
00355  *  language.
00356  */
00357 void ImportPubl::languageChange()
00358 {
00359     setCaption( tr2i18n( "Form3" ) );
00360     textLabel3->setText( tr2i18n( "Title" ) );
00361     label->setText( tr2i18n( "Subtitle" ) );
00362     textLabel4->setText( tr2i18n( "Year" ) );
00363     textLabel6_2_2_3->setText( tr2i18n( "Type" ) );
00364     textLabel6_2_2_2->setText( tr2i18n( "Journal" ) );
00365     pushButton6_2->setText( tr2i18n( "Insert Publisher" ) );
00366     textLabel6_2_2->setText( tr2i18n( "Publisher" ) );
00367     pushButton6->setText( tr2i18n( "Insert Publisher" ) );
00368     TextLabel9->setText( tr2i18n( "Translator" ) );
00369     TextLabel10->setText( tr2i18n( "Org. Year" ) );
00370     TextLabel11->setText( tr2i18n( "Org. Publisher" ) );
00371     orgpublisher->setText( tr2i18n( "Publisher" ) );
00372     choose_org_publisher->setText( tr2i18n( "Choose" ) );
00373     TextLabel13->setText( tr2i18n( "Org. Title" ) );
00374     TextLabel14->setText( tr2i18n( "ISBN/ISSN" ) );
00375     TextLabel15->setText( tr2i18n( "Hidingplace" ) );
00376     TextLabel16->setText( tr2i18n( "Pages" ) );
00377     TextLabel9_2->setText( tr2i18n( "Editor" ) );
00378     TextLabel10_2->setText( tr2i18n( "Type" ) );
00379     TextLabel10_2_2->setText( tr2i18n( "How Published" ) );
00380     TextLabel13_2->setText( tr2i18n( "Series" ) );
00381     TextLabel10_2_3->setText( tr2i18n( "Volume" ) );
00382     TextLabel14_2->setText( tr2i18n( "Number" ) );
00383     TextLabel15_2->setText( tr2i18n( "Month" ) );
00384     TextLabel16_2->setText( tr2i18n( "Edition" ) );
00385     TextLabel10_2_4->setText( tr2i18n( "Organization" ) );
00386     TextLabel10_2_5->setText( tr2i18n( "School" ) );
00387     textLabel7->setText( tr2i18n( "Memo" ) );
00388     authors->horizontalHeader()->setLabel( 0, tr2i18n( "First Name" ) );
00389     authors->horizontalHeader()->setLabel( 1, tr2i18n( "Last Name" ) );
00390     authors->horizontalHeader()->setLabel( 2, tr2i18n( "Existing Author" ) );
00391     authors->horizontalHeader()->setLabel( 3, tr2i18n( "Insert Existing" ) );
00392 }
00393 
00394 #include "importpubl.moc"

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