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

createhtml.cpp

Go to the documentation of this file.
00001 #include <klocale.h>
00002 /****************************************************************************
00003 ** Form implementation generated from reading ui file './createhtml.ui'
00004 **
00005 ** Created: Sa Mär 27 00:52:32 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 "createhtml.h"
00012 
00013 #include <qvariant.h>
00014 #include <qpushbutton.h>
00015 #include <qlabel.h>
00016 #include <qlineedit.h>
00017 #include <qcheckbox.h>
00018 #include <qprogressbar.h>
00019 #include <qlayout.h>
00020 #include <qtooltip.h>
00021 #include <qwhatsthis.h>
00022 #include <qimage.h>
00023 #include <qpixmap.h>
00024 
00025 #include "./createhtml.ui.h"
00026 /*
00027  *  Constructs a CreateHtml as a child of 'parent', with the
00028  *  name 'name' and widget flags set to 'f'.
00029  */
00030 CreateHtml::CreateHtml( QWidget* parent, const char* name, WFlags fl )
00031     : QWidget( parent, name, fl )
00032 {
00033     if ( !name )
00034         setName( "CreateHtml" );
00035     CreateHtmlLayout = new QVBoxLayout( this, 11, 6, "CreateHtmlLayout"); 
00036 
00037     layout14 = new QVBoxLayout( 0, 0, 6, "layout14"); 
00038 
00039     layout4 = new QVBoxLayout( 0, 0, 6, "layout4"); 
00040 
00041     layout2 = new QHBoxLayout( 0, 0, 6, "layout2"); 
00042 
00043     textLabel1 = new QLabel( this, "textLabel1" );
00044     layout2->addWidget( textLabel1 );
00045 
00046     title = new QLineEdit( this, "title" );
00047     layout2->addWidget( title );
00048     layout4->addLayout( layout2 );
00049 
00050     layout3 = new QHBoxLayout( 0, 0, 6, "layout3"); 
00051 
00052     textLabel2 = new QLabel( this, "textLabel2" );
00053     layout3->addWidget( textLabel2 );
00054 
00055     dir = new QLabel( this, "dir" );
00056     layout3->addWidget( dir );
00057 
00058     pushButton1 = new QPushButton( this, "pushButton1" );
00059     layout3->addWidget( pushButton1 );
00060     layout4->addLayout( layout3 );
00061 
00062     inclfiles = new QCheckBox( this, "inclfiles" );
00063     layout4->addWidget( inclfiles );
00064     layout14->addLayout( layout4 );
00065     QSpacerItem* spacer = new QSpacerItem( 20, 45, QSizePolicy::Minimum, QSizePolicy::Expanding );
00066     layout14->addItem( spacer );
00067 
00068     layout13 = new QHBoxLayout( 0, 0, 6, "layout13"); 
00069     QSpacerItem* spacer_2 = new QSpacerItem( 70, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00070     layout13->addItem( spacer_2 );
00071 
00072     pushButton2 = new QPushButton( this, "pushButton2" );
00073     layout13->addWidget( pushButton2 );
00074     QSpacerItem* spacer_3 = new QSpacerItem( 70, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00075     layout13->addItem( spacer_3 );
00076 
00077     pushButton5 = new QPushButton( this, "pushButton5" );
00078     layout13->addWidget( pushButton5 );
00079     QSpacerItem* spacer_4 = new QSpacerItem( 80, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00080     layout13->addItem( spacer_4 );
00081     layout14->addLayout( layout13 );
00082     QSpacerItem* spacer_5 = new QSpacerItem( 20, 46, QSizePolicy::Minimum, QSizePolicy::Expanding );
00083     layout14->addItem( spacer_5 );
00084 
00085     textLabel4 = new QLabel( this, "textLabel4" );
00086     layout14->addWidget( textLabel4 );
00087 
00088     progr_author = new QProgressBar( this, "progr_author" );
00089     layout14->addWidget( progr_author );
00090 
00091     textLabel4_2 = new QLabel( this, "textLabel4_2" );
00092     layout14->addWidget( textLabel4_2 );
00093 
00094     progr_notes = new QProgressBar( this, "progr_notes" );
00095     layout14->addWidget( progr_notes );
00096 
00097     textLabel4_3 = new QLabel( this, "textLabel4_3" );
00098     layout14->addWidget( textLabel4_3 );
00099 
00100     progr_publ = new QProgressBar( this, "progr_publ" );
00101     layout14->addWidget( progr_publ );
00102 
00103     textLabel4_4 = new QLabel( this, "textLabel4_4" );
00104     layout14->addWidget( textLabel4_4 );
00105 
00106     progr_parts = new QProgressBar( this, "progr_parts" );
00107     layout14->addWidget( progr_parts );
00108 
00109     textLabel4_5 = new QLabel( this, "textLabel4_5" );
00110     layout14->addWidget( textLabel4_5 );
00111 
00112     progr_files = new QProgressBar( this, "progr_files" );
00113     layout14->addWidget( progr_files );
00114     QSpacerItem* spacer_6 = new QSpacerItem( 20, 45, QSizePolicy::Minimum, QSizePolicy::Expanding );
00115     layout14->addItem( spacer_6 );
00116 
00117     layout10 = new QHBoxLayout( 0, 0, 6, "layout10"); 
00118     QSpacerItem* spacer_7 = new QSpacerItem( 173, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00119     layout10->addItem( spacer_7 );
00120 
00121     pushButton3 = new QPushButton( this, "pushButton3" );
00122     layout10->addWidget( pushButton3 );
00123     QSpacerItem* spacer_8 = new QSpacerItem( 173, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00124     layout10->addItem( spacer_8 );
00125     layout14->addLayout( layout10 );
00126     CreateHtmlLayout->addLayout( layout14 );
00127     languageChange();
00128     resize( QSize(547, 590).expandedTo(minimumSizeHint()) );
00129     clearWState( WState_Polished );
00130 
00131     // signals and slots connections
00132     connect( pushButton3, SIGNAL( clicked() ), this, SLOT( close() ) );
00133     connect( pushButton2, SIGNAL( clicked() ), this, SLOT( start() ) );
00134     connect( pushButton1, SIGNAL( clicked() ), this, SLOT( chooseDir() ) );
00135     connect( pushButton5, SIGNAL( clicked() ), this, SLOT( stop() ) );
00136     init();
00137 }
00138 
00139 /*
00140  *  Destroys the object and frees any allocated resources
00141  */
00142 CreateHtml::~CreateHtml()
00143 {
00144     // no need to delete child widgets, Qt does it all for us
00145 }
00146 
00147 /*
00148  *  Sets the strings of the subwidgets using the current
00149  *  language.
00150  */
00151 void CreateHtml::languageChange()
00152 {
00153     setCaption( tr2i18n( "Form2" ) );
00154     textLabel1->setText( tr2i18n( "Title" ) );
00155     textLabel2->setText( tr2i18n( "Directory" ) );
00156     dir->setText( tr2i18n( "/tmp/" ) );
00157     pushButton1->setText( tr2i18n( "Choose Directory" ) );
00158     inclfiles->setText( tr2i18n( "Include Files" ) );
00159     pushButton2->setText( tr2i18n( "Create HTML" ) );
00160     pushButton5->setText( tr2i18n( "Stop" ) );
00161     textLabel4->setText( tr2i18n( "Creating Authors" ) );
00162     textLabel4_2->setText( tr2i18n( "Creating Notes" ) );
00163     textLabel4_3->setText( tr2i18n( "Creating Publications" ) );
00164     textLabel4_4->setText( tr2i18n( "Creating Parts" ) );
00165     textLabel4_5->setText( tr2i18n( "Creating Files" ) );
00166     pushButton3->setText( tr2i18n( "Close" ) );
00167 }
00168 
00169 #include "createhtml.moc"

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