You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
k9copy/libk9copy/mp4dlg.cpp

160 lines
5.3 KiB

#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 <tqvariant.h>
#include <tqpushbutton.h>
#include <tqlabel.h>
#include <kprogress.h>
#include <tqframe.h>
#include <kpushbutton.h>
#include <tqlayout.h>
#include <tqtooltip.h>
#include <tqwhatsthis.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( TQWidget* parent, const char* name, WFlags fl )
: TQWidget( parent, name, fl )
{
if ( !name )
setName( "MP4Dlg" );
setCursor( TQCursor( 3 ) );
MP4DlgLayout = new TQGridLayout( this, 1, 1, 11, 6, "MP4DlgLayout");
lblTitle = new TQLabel( this, "lblTitle" );
lblTitle->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)4, (TQSizePolicy::SizeType)4, 0, 0, lblTitle->sizePolicy().hasHeightForWidth() ) );
TQFont lblTitle_font( lblTitle->font() );
lblTitle_font.setBold( TRUE );
lblTitle->setFont( lblTitle_font );
lblTitle->setCursor( TQCursor( 3 ) );
MP4DlgLayout->addWidget( lblTitle, 0, 0 );
pbProgress = new KProgress( this, "pbProgress" );
pbProgress->setCursor( TQCursor( 3 ) );
MP4DlgLayout->addMultiCellWidget( pbProgress, 3, 3, 0, 2 );
frame3 = new TQFrame( this, "frame3" );
frame3->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, frame3->sizePolicy().hasHeightForWidth() ) );
frame3->setCursor( TQCursor( 3 ) );
frame3->setFrameShape( TQFrame::NoFrame );
frame3->setFrameShadow( TQFrame::Raised );
frame3Layout = new TQGridLayout( frame3, 1, 1, 11, 6, "frame3Layout");
lblfps = new TQLabel( frame3, "lblfps" );
lblfps->setCursor( TQCursor( 3 ) );
lblfps->setAlignment( int( TQLabel::AlignVCenter ) );
frame3Layout->addWidget( lblfps, 2, 1 );
lblRemain = new TQLabel( frame3, "lblRemain" );
lblRemain->setCursor( TQCursor( 3 ) );
lblRemain->setAlignment( int( TQLabel::AlignVCenter ) );
frame3Layout->addWidget( lblRemain, 3, 1 );
lblsize = new TQLabel( frame3, "lblsize" );
lblsize->setCursor( TQCursor( 3 ) );
frame3Layout->addWidget( lblsize, 0, 1 );
lblbitrate = new TQLabel( frame3, "lblbitrate" );
lblbitrate->setCursor( TQCursor( 3 ) );
frame3Layout->addWidget( lblbitrate, 1, 1 );
textLabel2 = new TQLabel( frame3, "textLabel2" );
textLabel2->setCursor( TQCursor( 3 ) );
frame3Layout->addWidget( textLabel2, 2, 0 );
textLabel2_2 = new TQLabel( frame3, "textLabel2_2" );
textLabel2_2->setCursor( TQCursor( 3 ) );
frame3Layout->addWidget( textLabel2_2, 3, 0 );
textLabel1 = new TQLabel( frame3, "textLabel1" );
textLabel1->setCursor( TQCursor( 3 ) );
frame3Layout->addWidget( textLabel1, 1, 0 );
textLabel3 = new TQLabel( frame3, "textLabel3" );
textLabel3->setCursor( TQCursor( 3 ) );
frame3Layout->addWidget( textLabel3, 0, 0 );
MP4DlgLayout->addMultiCellWidget( frame3, 2, 2, 0, 2 );
bCancel = new KPushButton( this, "bCancel" );
bCancel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, bCancel->sizePolicy().hasHeightForWidth() ) );
bCancel->setCursor( TQCursor( 0 ) );
bCancel->setProperty( "stdItem", 26 );
MP4DlgLayout->addWidget( bCancel, 5, 2 );
spacer1 = new TQSpacerItem( 225, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
MP4DlgLayout->addMultiCell( spacer1, 5, 5, 0, 1 );
spacer2 = new TQSpacerItem( 20, 16, TQSizePolicy::Minimum, TQSizePolicy::Fixed );
MP4DlgLayout->addItem( spacer2, 4, 1 );
image = new TQLabel( this, "image" );
image->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)7, 0, 0, image->sizePolicy().hasHeightForWidth() ) );
image->setMinimumSize( TQSize( 0, 250 ) );
image->setPaletteBackgroundColor( TQColor( 0, 0, 0 ) );
image->setCursor( TQCursor( 3 ) );
image->setScaledContents( TRUE );
MP4DlgLayout->addMultiCellWidget( image, 1, 1, 0, 2 );
languageChange();
resize( TQSize(416, 475).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
// signals and slots connections
connect( bCancel, TQT_SIGNAL( clicked() ), this, TQT_SLOT( Cancel() ) );
}
/*
* Destroys the object and frees any allocated resources
*/
MP4Dlg::~MP4Dlg()
{
// no need to delete child widgets, TQt 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( TQString() );
lblRemain->setText( TQString() );
lblsize->setText( TQString() );
lblbitrate->setText( TQString() );
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"