#include /**************************************************************************** ** Form implementation generated from reading ui file './mp4dlg.ui' ** ** Created: dim. oct. 26 08:55:59 2008 ** ** WARNING! All changes made in this file will be lost! ****************************************************************************/ #include "mp4dlg.h" #include #include #include #include #include #include #include #include #include #include "kprogress.h" #include "kpushbutton.h" /* * Constructs a MP4Dlg as a child of 'parent', with the * name 'name' and widget flags set to 'f'. */ MP4Dlg::MP4Dlg( QWidget* parent, const char* name, WFlags fl ) : QWidget( parent, name, fl ) { if ( !name ) setName( "MP4Dlg" ); setCursor( QCursor( 3 ) ); MP4DlgLayout = new QGridLayout( this, 1, 1, 11, 6, "MP4DlgLayout"); lblTitle = new QLabel( this, "lblTitle" ); lblTitle->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)4, (QSizePolicy::SizeType)4, 0, 0, lblTitle->sizePolicy().hasHeightForWidth() ) ); QFont lblTitle_font( lblTitle->font() ); lblTitle_font.setBold( TRUE ); lblTitle->setFont( lblTitle_font ); lblTitle->setCursor( QCursor( 3 ) ); MP4DlgLayout->addWidget( lblTitle, 0, 0 ); pbProgress = new KProgress( this, "pbProgress" ); pbProgress->setCursor( QCursor( 3 ) ); MP4DlgLayout->addMultiCellWidget( pbProgress, 3, 3, 0, 2 ); frame3 = new QFrame( this, "frame3" ); frame3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, frame3->sizePolicy().hasHeightForWidth() ) ); frame3->setCursor( QCursor( 3 ) ); frame3->setFrameShape( QFrame::NoFrame ); frame3->setFrameShadow( QFrame::Raised ); frame3Layout = new QGridLayout( frame3, 1, 1, 11, 6, "frame3Layout"); lblfps = new QLabel( frame3, "lblfps" ); lblfps->setCursor( QCursor( 3 ) ); lblfps->setAlignment( int( QLabel::AlignVCenter ) ); frame3Layout->addWidget( lblfps, 2, 1 ); lblRemain = new QLabel( frame3, "lblRemain" ); lblRemain->setCursor( QCursor( 3 ) ); lblRemain->setAlignment( int( QLabel::AlignVCenter ) ); frame3Layout->addWidget( lblRemain, 3, 1 ); lblsize = new QLabel( frame3, "lblsize" ); lblsize->setCursor( QCursor( 3 ) ); frame3Layout->addWidget( lblsize, 0, 1 ); lblbitrate = new QLabel( frame3, "lblbitrate" ); lblbitrate->setCursor( QCursor( 3 ) ); frame3Layout->addWidget( lblbitrate, 1, 1 ); textLabel2 = new QLabel( frame3, "textLabel2" ); textLabel2->setCursor( QCursor( 3 ) ); frame3Layout->addWidget( textLabel2, 2, 0 ); textLabel2_2 = new QLabel( frame3, "textLabel2_2" ); textLabel2_2->setCursor( QCursor( 3 ) ); frame3Layout->addWidget( textLabel2_2, 3, 0 ); textLabel1 = new QLabel( frame3, "textLabel1" ); textLabel1->setCursor( QCursor( 3 ) ); frame3Layout->addWidget( textLabel1, 1, 0 ); textLabel3 = new QLabel( frame3, "textLabel3" ); textLabel3->setCursor( QCursor( 3 ) ); frame3Layout->addWidget( textLabel3, 0, 0 ); MP4DlgLayout->addMultiCellWidget( frame3, 2, 2, 0, 2 ); bCancel = new KPushButton( this, "bCancel" ); bCancel->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, bCancel->sizePolicy().hasHeightForWidth() ) ); bCancel->setCursor( QCursor( 0 ) ); bCancel->setProperty( "stdItem", 26 ); MP4DlgLayout->addWidget( bCancel, 5, 2 ); spacer1 = new QSpacerItem( 225, 21, QSizePolicy::Expanding, QSizePolicy::Minimum ); MP4DlgLayout->addMultiCell( spacer1, 5, 5, 0, 1 ); spacer2 = new QSpacerItem( 20, 16, QSizePolicy::Minimum, QSizePolicy::Fixed ); MP4DlgLayout->addItem( spacer2, 4, 1 ); image = new QLabel( this, "image" ); image->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)7, 0, 0, image->sizePolicy().hasHeightForWidth() ) ); image->setMinimumSize( QSize( 0, 250 ) ); image->setPaletteBackgroundColor( QColor( 0, 0, 0 ) ); image->setCursor( QCursor( 3 ) ); image->setScaledContents( TRUE ); MP4DlgLayout->addMultiCellWidget( image, 1, 1, 0, 2 ); languageChange(); resize( QSize(416, 475).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections connect( bCancel, SIGNAL( clicked() ), this, SLOT( Cancel() ) ); } /* * Destroys the object and frees any allocated resources */ MP4Dlg::~MP4Dlg() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void MP4Dlg::languageChange() { setCaption( tr2i18n( "k9Copy - transcoding" ) ); lblTitle->setText( tr2i18n( "Encoding" ) ); lblfps->setText( QString::null ); lblRemain->setText( QString::null ); lblsize->setText( QString::null ); lblbitrate->setText( QString::null ); textLabel2->setText( tr2i18n( "fps" ) ); textLabel2_2->setText( tr2i18n( "Elapsed Time" ) ); textLabel1->setText( tr2i18n( "Bitrate" ) ); textLabel3->setText( tr2i18n( "Size" ) ); } void MP4Dlg::Cancel() { qWarning( "MP4Dlg::Cancel(): Not implemented yet" ); } #include "mp4dlg.moc"