diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-02-17 00:32:19 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-02-17 00:32:19 +0000 |
commit | 0d382a262c0638d0f572fc37193ccc5ed3dc895f (patch) | |
tree | 8578dcddfce4191f3f7a142a37769df7add48475 /libk9copy/mp4dlg.cpp | |
download | k9copy-0d382a262c0638d0f572fc37193ccc5ed3dc895f.tar.gz k9copy-0d382a262c0638d0f572fc37193ccc5ed3dc895f.zip |
Added old abandoned version of k9copy
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k9copy@1091546 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libk9copy/mp4dlg.cpp')
-rw-r--r-- | libk9copy/mp4dlg.cpp | 159 |
1 files changed, 159 insertions, 0 deletions
diff --git a/libk9copy/mp4dlg.cpp b/libk9copy/mp4dlg.cpp new file mode 100644 index 0000000..a5854d7 --- /dev/null +++ b/libk9copy/mp4dlg.cpp @@ -0,0 +1,159 @@ +#include <klocale.h> +/**************************************************************************** +** 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 <qvariant.h> +#include <qpushbutton.h> +#include <qlabel.h> +#include <kprogress.h> +#include <qframe.h> +#include <kpushbutton.h> +#include <qlayout.h> +#include <qtooltip.h> +#include <qwhatsthis.h> +#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" |