summaryrefslogtreecommitdiffstats
path: root/src/prefMPEG4.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-17 00:32:19 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-17 00:32:19 +0000
commit0d382a262c0638d0f572fc37193ccc5ed3dc895f (patch)
tree8578dcddfce4191f3f7a142a37769df7add48475 /src/prefMPEG4.cpp
downloadk9copy-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 'src/prefMPEG4.cpp')
-rw-r--r--src/prefMPEG4.cpp418
1 files changed, 418 insertions, 0 deletions
diff --git a/src/prefMPEG4.cpp b/src/prefMPEG4.cpp
new file mode 100644
index 0000000..9787413
--- /dev/null
+++ b/src/prefMPEG4.cpp
@@ -0,0 +1,418 @@
+#include <klocale.h>
+/****************************************************************************
+** Form implementation generated from reading ui file './prefMPEG4.ui'
+**
+** Created: dim. oct. 26 08:57:35 2008
+**
+** WARNING! All changes made in this file will be lost!
+****************************************************************************/
+
+#include "prefMPEG4.h"
+
+#include <qvariant.h>
+#include <qpushbutton.h>
+#include <qlabel.h>
+#include <qtabwidget.h>
+#include <qcheckbox.h>
+#include <qcombobox.h>
+#include <qlineedit.h>
+#include <qspinbox.h>
+#include <qbuttongroup.h>
+#include <qradiobutton.h>
+#include <qlayout.h>
+#include <qtooltip.h>
+#include <qwhatsthis.h>
+#include <qimage.h>
+#include <qpixmap.h>
+
+static const unsigned char img0_prefMPEG4[] = {
+ 0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d,
+ 0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x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92, 0x3c,
+ 0x09, 0x2e, 0x2a, 0x44, 0xe3, 0xb1, 0xa8, 0x94, 0x56, 0x28, 0x49, 0x46,
+ 0xc1, 0x80, 0x20, 0x05, 0xa4, 0x36, 0xdd, 0xa0, 0x89, 0x04, 0x0e, 0x0e,
+ 0xa3, 0xa0, 0x68, 0xa5, 0x1f, 0xdd, 0x37, 0x3a, 0x67, 0x85, 0xe3, 0x02,
+ 0x20, 0x9c, 0x36, 0x8b, 0x58, 0x7c, 0xe9, 0x98, 0xfc, 0xb1, 0xe4, 0xb1,
+ 0x65, 0x5e, 0xe3, 0x89, 0x4b, 0x23, 0x88, 0x13, 0xf8, 0xaf, 0xf6, 0x24,
+ 0xe1, 0x56, 0xfa, 0xc6, 0xcc, 0x9e, 0x99, 0x20, 0x13, 0x93, 0x82, 0x20,
+ 0xc4, 0xff, 0x97, 0x40, 0x4c, 0x91, 0xbe, 0x5d, 0x9c, 0xc9, 0xb3, 0xe2,
+ 0x9e, 0x65, 0x26, 0x76, 0xf2, 0x18, 0xc4, 0x33, 0x89, 0x67, 0x19, 0xa6,
+ 0xff, 0x9f, 0xca, 0xd0, 0xeb, 0x1b, 0x6a, 0x4d, 0x26, 0xd3, 0x65, 0xb5,
+ 0xba, 0x50, 0xbb, 0xbe, 0xbe, 0x4e, 0x04, 0x02, 0x3f, 0x7d, 0x66, 0xb3,
+ 0x79, 0x72, 0x67, 0x67, 0xdb, 0x06, 0x20, 0x91, 0xce, 0xfd, 0x03, 0xf3,
+ 0x98, 0x43, 0xeb, 0x06, 0xad, 0xb9, 0x96, 0x00, 0x00, 0x00, 0x00, 0x49,
+ 0x45, 0x4e, 0x44, 0xae, 0x42, 0x60, 0x82
+};
+
+
+/*
+ * Constructs a prefMPEG4 as a child of 'parent', with the
+ * name 'name' and widget flags set to 'f'.
+ */
+prefMPEG4::prefMPEG4( QWidget* parent, const char* name, WFlags fl )
+ : QWidget( parent, name, fl )
+{
+ QImage img;
+ img.loadFromData( img0_prefMPEG4, sizeof( img0_prefMPEG4 ), "PNG" );
+ image0 = img;
+ if ( !name )
+ setName( "prefMPEG4" );
+ setIcon( image0 );
+ prefMPEG4Layout = new QGridLayout( this, 1, 1, 5, 2, "prefMPEG4Layout");
+
+ lTitle = new QLabel( this, "lTitle" );
+ QFont lTitle_font( lTitle->font() );
+ lTitle_font.setBold( TRUE );
+ lTitle->setFont( lTitle_font );
+
+ prefMPEG4Layout->addWidget( lTitle, 0, 0 );
+
+ tabWidget = new QTabWidget( this, "tabWidget" );
+
+ tabVideo = new QWidget( tabWidget, "tabVideo" );
+ tabVideoLayout = new QGridLayout( tabVideo, 1, 1, 11, 6, "tabVideoLayout");
+
+ ck2passes = new QCheckBox( tabVideo, "ck2passes" );
+
+ tabVideoLayout->addMultiCellWidget( ck2passes, 0, 0, 3, 6 );
+
+ textLabel1_4 = new QLabel( tabVideo, "textLabel1_4" );
+
+ tabVideoLayout->addWidget( textLabel1_4, 0, 0 );
+
+ cbMp4Codec = new QComboBox( FALSE, tabVideo, "cbMp4Codec" );
+ cbMp4Codec->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, cbMp4Codec->sizePolicy().hasHeightForWidth() ) );
+
+ tabVideoLayout->addMultiCellWidget( cbMp4Codec, 0, 0, 1, 2 );
+
+ textLabel3_2 = new QLabel( tabVideo, "textLabel3_2" );
+
+ tabVideoLayout->addWidget( textLabel3_2, 1, 0 );
+
+ textLabel3_2_2 = new QLabel( tabVideo, "textLabel3_2_2" );
+
+ tabVideoLayout->addWidget( textLabel3_2_2, 2, 0 );
+
+ leMp4Width = new QLineEdit( tabVideo, "leMp4Width" );
+ leMp4Width->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, leMp4Width->sizePolicy().hasHeightForWidth() ) );
+ leMp4Width->setMinimumSize( QSize( 0, 0 ) );
+ leMp4Width->setMaximumSize( QSize( 70, 32767 ) );
+ leMp4Width->setMaxLength( 4 );
+ leMp4Width->setAlignment( int( QLineEdit::AlignAuto ) );
+
+ tabVideoLayout->addWidget( leMp4Width, 1, 1 );
+
+ ckMp4AspectRatio = new QCheckBox( tabVideo, "ckMp4AspectRatio" );
+ ckMp4AspectRatio->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, ckMp4AspectRatio->sizePolicy().hasHeightForWidth() ) );
+ ckMp4AspectRatio->setChecked( TRUE );
+
+ tabVideoLayout->addMultiCellWidget( ckMp4AspectRatio, 1, 1, 3, 6 );
+ spacer9 = new QSpacerItem( 380, 21, QSizePolicy::Expanding, QSizePolicy::Minimum );
+ tabVideoLayout->addMultiCell( spacer9, 2, 2, 2, 6 );
+
+ leMp4Height = new QLineEdit( tabVideo, "leMp4Height" );
+ leMp4Height->setEnabled( FALSE );
+ leMp4Height->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, leMp4Height->sizePolicy().hasHeightForWidth() ) );
+ leMp4Height->setMinimumSize( QSize( 0, 0 ) );
+ leMp4Height->setMaximumSize( QSize( 70, 32767 ) );
+ leMp4Height->setMaxLength( 4 );
+ leMp4Height->setAlignment( int( QLineEdit::AlignAuto ) );
+
+ tabVideoLayout->addWidget( leMp4Height, 2, 1 );
+ spacer8 = new QSpacerItem( 21, 110, QSizePolicy::Minimum, QSizePolicy::Expanding );
+ tabVideoLayout->addItem( spacer8, 4, 5 );
+
+ sbMp4NumberCD = new QSpinBox( tabVideo, "sbMp4NumberCD" );
+ sbMp4NumberCD->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, sbMp4NumberCD->sizePolicy().hasHeightForWidth() ) );
+ sbMp4NumberCD->setMaxValue( 9 );
+ sbMp4NumberCD->setMinValue( 1 );
+
+ tabVideoLayout->addWidget( sbMp4NumberCD, 3, 5 );
+
+ textLabel1 = new QLabel( tabVideo, "textLabel1" );
+ textLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, textLabel1->sizePolicy().hasHeightForWidth() ) );
+
+ tabVideoLayout->addWidget( textLabel1, 3, 4 );
+
+ buttonGroup1 = new QButtonGroup( tabVideo, "buttonGroup1" );
+ buttonGroup1->setFrameShape( QButtonGroup::NoFrame );
+ buttonGroup1->setColumnLayout(0, Qt::Vertical );
+ buttonGroup1->layout()->setSpacing( 6 );
+ buttonGroup1->layout()->setMargin( 2 );
+ buttonGroup1Layout = new QGridLayout( buttonGroup1->layout() );
+ buttonGroup1Layout->setAlignment( Qt::AlignTop );
+
+ rbSize = new QRadioButton( buttonGroup1, "rbSize" );
+
+ buttonGroup1Layout->addWidget( rbSize, 0, 0 );
+
+ sbMp4Size = new QSpinBox( buttonGroup1, "sbMp4Size" );
+ sbMp4Size->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, sbMp4Size->sizePolicy().hasHeightForWidth() ) );
+ sbMp4Size->setMinimumSize( QSize( 80, 0 ) );
+ sbMp4Size->setButtonSymbols( QSpinBox::UpDownArrows );
+ sbMp4Size->setMaxValue( 9999 );
+ sbMp4Size->setMinValue( 1 );
+ sbMp4Size->setLineStep( 10 );
+ sbMp4Size->setValue( 700 );
+
+ buttonGroup1Layout->addWidget( sbMp4Size, 0, 1 );
+
+ rbBitrate = new QRadioButton( buttonGroup1, "rbBitrate" );
+
+ buttonGroup1Layout->addWidget( rbBitrate, 1, 0 );
+ spacer6 = new QSpacerItem( 51, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
+ buttonGroup1Layout->addMultiCell( spacer6, 0, 1, 2, 2 );
+
+ leMp4VideoBitrate = new QLineEdit( buttonGroup1, "leMp4VideoBitrate" );
+ leMp4VideoBitrate->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, leMp4VideoBitrate->sizePolicy().hasHeightForWidth() ) );
+
+ buttonGroup1Layout->addWidget( leMp4VideoBitrate, 1, 1 );
+
+ tabVideoLayout->addMultiCellWidget( buttonGroup1, 3, 3, 0, 3 );
+ spacer3 = new QSpacerItem( 130, 21, QSizePolicy::Expanding, QSizePolicy::Minimum );
+ tabVideoLayout->addItem( spacer3, 3, 6 );
+ tabWidget->insertTab( tabVideo, QString::fromLatin1("") );
+
+ tabAudio = new QWidget( tabWidget, "tabAudio" );
+ tabAudioLayout = new QGridLayout( tabAudio, 1, 1, 11, 6, "tabAudioLayout");
+
+ textLabel1_4_2 = new QLabel( tabAudio, "textLabel1_4_2" );
+
+ tabAudioLayout->addWidget( textLabel1_4_2, 0, 0 );
+
+ cbMp4AudioCodec = new QComboBox( FALSE, tabAudio, "cbMp4AudioCodec" );
+ cbMp4AudioCodec->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, cbMp4AudioCodec->sizePolicy().hasHeightForWidth() ) );
+
+ tabAudioLayout->addMultiCellWidget( cbMp4AudioCodec, 0, 0, 1, 2 );
+
+ textLabel1_5 = new QLabel( tabAudio, "textLabel1_5" );
+
+ tabAudioLayout->addWidget( textLabel1_5, 1, 0 );
+
+ leMp4AudioBitrate = new QLineEdit( tabAudio, "leMp4AudioBitrate" );
+ leMp4AudioBitrate->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, leMp4AudioBitrate->sizePolicy().hasHeightForWidth() ) );
+ leMp4AudioBitrate->setMinimumSize( QSize( 0, 0 ) );
+ leMp4AudioBitrate->setMaximumSize( QSize( 70, 32767 ) );
+ leMp4AudioBitrate->setMaxLength( 3 );
+ leMp4AudioBitrate->setAlignment( int( QLineEdit::AlignAuto ) );
+
+ tabAudioLayout->addWidget( leMp4AudioBitrate, 1, 1 );
+ spacer4 = new QSpacerItem( 376, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
+ tabAudioLayout->addMultiCell( spacer4, 1, 1, 2, 3 );
+
+ sbAudioGain = new QSpinBox( tabAudio, "sbAudioGain" );
+ sbAudioGain->setMaxValue( 10 );
+ sbAudioGain->setMinValue( 1 );
+
+ tabAudioLayout->addWidget( sbAudioGain, 2, 1 );
+
+ textLabel1_2 = new QLabel( tabAudio, "textLabel1_2" );
+
+ tabAudioLayout->addWidget( textLabel1_2, 2, 0 );
+ spacer14 = new QSpacerItem( 20, 61, QSizePolicy::Minimum, QSizePolicy::Expanding );
+ tabAudioLayout->addItem( spacer14, 3, 3 );
+ tabWidget->insertTab( tabAudio, QString::fromLatin1("") );
+
+ prefMPEG4Layout->addWidget( tabWidget, 1, 0 );
+
+ ckUseCache = new QCheckBox( this, "ckUseCache" );
+
+ prefMPEG4Layout->addWidget( ckUseCache, 2, 0 );
+ languageChange();
+ resize( QSize(582, 460).expandedTo(minimumSizeHint()) );
+ clearWState( WState_Polished );
+
+ // signals and slots connections
+ connect( cbMp4AudioCodec, SIGNAL( activated(int) ), this, SLOT( cbMp4AudioCodecActivated(int) ) );
+ connect( cbMp4Codec, SIGNAL( activated(int) ), this, SLOT( cbMp4CodecActivated(int) ) );
+ connect( ck2passes, SIGNAL( clicked() ), this, SLOT( ck2passesClicked() ) );
+ connect( ckMp4AspectRatio, SIGNAL( clicked() ), this, SLOT( ckMp4AspectRatioClick() ) );
+ connect( rbBitrate, SIGNAL( clicked() ), this, SLOT( rgVideoSizeChanged() ) );
+ connect( rbSize, SIGNAL( clicked() ), this, SLOT( rgVideoSizeChanged() ) );
+ connect( leMp4Width, SIGNAL( textChanged(const QString&) ), this, SLOT( leMp4WidthTextChanged(const QString&) ) );
+ connect( leMp4Height, SIGNAL( textChanged(const QString&) ), this, SLOT( leMp4HeightTextChanged(const QString&) ) );
+ connect( sbMp4Size, SIGNAL( valueChanged(int) ), this, SLOT( sbMp4SizeValueChanged(int) ) );
+ connect( sbMp4NumberCD, SIGNAL( valueChanged(int) ), this, SLOT( sbMp4NumberCDValueChanged(int) ) );
+ connect( leMp4VideoBitrate, SIGNAL( textChanged(const QString&) ), this, SLOT( leMp4VideoBitrateTextChanged(const QString&) ) );
+ connect( sbAudioGain, SIGNAL( valueChanged(int) ), this, SLOT( sbAudioGainValueChanged(int) ) );
+ connect( leMp4AudioBitrate, SIGNAL( textChanged(const QString&) ), this, SLOT( leMp4AudioBitrateTextChanged(const QString&) ) );
+ connect( ckUseCache, SIGNAL( clicked() ), this, SLOT( ckUseCacheClick() ) );
+
+ // tab order
+ setTabOrder( tabWidget, cbMp4Codec );
+ setTabOrder( cbMp4Codec, ck2passes );
+ setTabOrder( ck2passes, leMp4Width );
+ setTabOrder( leMp4Width, ckMp4AspectRatio );
+ setTabOrder( ckMp4AspectRatio, leMp4Height );
+ setTabOrder( leMp4Height, rbSize );
+ setTabOrder( rbSize, rbBitrate );
+ setTabOrder( rbBitrate, sbMp4Size );
+ setTabOrder( sbMp4Size, leMp4VideoBitrate );
+ setTabOrder( leMp4VideoBitrate, sbMp4NumberCD );
+ setTabOrder( sbMp4NumberCD, cbMp4AudioCodec );
+ setTabOrder( cbMp4AudioCodec, leMp4AudioBitrate );
+ setTabOrder( leMp4AudioBitrate, sbAudioGain );
+}
+
+/*
+ * Destroys the object and frees any allocated resources
+ */
+prefMPEG4::~prefMPEG4()
+{
+ // no need to delete child widgets, Qt does it all for us
+}
+
+/*
+ * Sets the strings of the subwidgets using the current
+ * language.
+ */
+void prefMPEG4::languageChange()
+{
+ setCaption( tr2i18n( "Form1" ) );
+ lTitle->setText( QString::null );
+ ck2passes->setText( tr2i18n( "2 pass" ) );
+ ck2passes->setAccel( QKeySequence( tr2i18n( "Alt+2" ) ) );
+ textLabel1_4->setText( tr2i18n( "Codec" ) );
+ cbMp4Codec->clear();
+ cbMp4Codec->insertItem( tr2i18n( "XviD" ) );
+ cbMp4Codec->insertItem( tr2i18n( "lavc MPEG4" ) );
+ cbMp4Codec->insertItem( tr2i18n( "x264" ) );
+ cbMp4Codec->setCurrentItem( 1 );
+ textLabel3_2->setText( tr2i18n( "Width" ) );
+ textLabel3_2_2->setText( tr2i18n( "Height" ) );
+ leMp4Width->setText( tr2i18n( "640" ) );
+ leMp4Width->setInputMask( QString::null );
+ ckMp4AspectRatio->setText( tr2i18n( "&keep aspect ratio" ) );
+ ckMp4AspectRatio->setAccel( QKeySequence( tr2i18n( "Alt+K" ) ) );
+ leMp4Height->setInputMask( QString::null );
+ textLabel1->setText( tr2i18n( "X" ) );
+ buttonGroup1->setTitle( QString::null );
+ rbSize->setText( tr2i18n( "File size" ) );
+ rbSize->setAccel( QKeySequence( tr2i18n( "Alt+S" ) ) );
+ sbMp4Size->setSuffix( tr2i18n( " MB" ) );
+ rbBitrate->setText( tr2i18n( "Bitrate" ) );
+ rbBitrate->setAccel( QKeySequence( tr2i18n( "Alt+B" ) ) );
+ tabWidget->changeTab( tabVideo, tr2i18n( "Video" ) );
+ textLabel1_4_2->setText( tr2i18n( "Codec" ) );
+ cbMp4AudioCodec->clear();
+ cbMp4AudioCodec->insertItem( tr2i18n( "mp3" ) );
+ cbMp4AudioCodec->insertItem( tr2i18n( "faac" ) );
+ cbMp4AudioCodec->insertItem( tr2i18n( "mp2" ) );
+ cbMp4AudioCodec->insertItem( tr2i18n( "ac3" ) );
+ cbMp4AudioCodec->insertItem( tr2i18n( "adpcm ima" ) );
+ textLabel1_5->setText( tr2i18n( "Bitrate" ) );
+ leMp4AudioBitrate->setText( QString::null );
+ textLabel1_2->setText( tr2i18n( "Gain" ) );
+ tabWidget->changeTab( tabAudio, tr2i18n( "Audio" ) );
+ ckUseCache->setText( tr2i18n( "use cell cache" ) );
+}
+
+void prefMPEG4::ckMp4AspectRatioClick()
+{
+ qWarning( "prefMPEG4::ckMp4AspectRatioClick(): Not implemented yet" );
+}
+
+void prefMPEG4::cbMp4CodecActivated(int)
+{
+ qWarning( "prefMPEG4::cbMp4CodecActivated(int): Not implemented yet" );
+}
+
+void prefMPEG4::cbMp4AudioCodecActivated(int)
+{
+ qWarning( "prefMPEG4::cbMp4AudioCodecActivated(int): Not implemented yet" );
+}
+
+void prefMPEG4::ck2passesClicked()
+{
+ qWarning( "prefMPEG4::ck2passesClicked(): Not implemented yet" );
+}
+
+void prefMPEG4::sbMp4SizeValueChanged(int)
+{
+ qWarning( "prefMPEG4::sbMp4SizeValueChanged(int): Not implemented yet" );
+}
+
+void prefMPEG4::sbMp4NumberCDValueChanged(int)
+{
+ qWarning( "prefMPEG4::sbMp4NumberCDValueChanged(int): Not implemented yet" );
+}
+
+void prefMPEG4::leMp4WidthTextChanged(const QString&)
+{
+ qWarning( "prefMPEG4::leMp4WidthTextChanged(const QString&): Not implemented yet" );
+}
+
+void prefMPEG4::leMp4HeightTextChanged(const QString&)
+{
+ qWarning( "prefMPEG4::leMp4HeightTextChanged(const QString&): Not implemented yet" );
+}
+
+void prefMPEG4::leMp4AudioBitrateTextChanged(const QString&)
+{
+ qWarning( "prefMPEG4::leMp4AudioBitrateTextChanged(const QString&): Not implemented yet" );
+}
+
+void prefMPEG4::rgVideoSizeChanged()
+{
+ qWarning( "prefMPEG4::rgVideoSizeChanged(): Not implemented yet" );
+}
+
+void prefMPEG4::leMp4VideoBitrateTextChanged(const QString&)
+{
+ qWarning( "prefMPEG4::leMp4VideoBitrateTextChanged(const QString&): Not implemented yet" );
+}
+
+void prefMPEG4::sbAudioGainValueChanged(int)
+{
+ qWarning( "prefMPEG4::sbAudioGainValueChanged(int): Not implemented yet" );
+}
+
+void prefMPEG4::ckUseCacheClick()
+{
+ qWarning( "prefMPEG4::ckUseCacheClick(): Not implemented yet" );
+}
+
+#include "prefMPEG4.moc"