summaryrefslogtreecommitdiffstats
path: root/src/prefMencoder.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/prefMencoder.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/prefMencoder.cpp')
-rw-r--r--src/prefMencoder.cpp426
1 files changed, 426 insertions, 0 deletions
diff --git a/src/prefMencoder.cpp b/src/prefMencoder.cpp
new file mode 100644
index 0000000..98a56ca
--- /dev/null
+++ b/src/prefMencoder.cpp
@@ -0,0 +1,426 @@
+#include <klocale.h>
+/****************************************************************************
+** Form implementation generated from reading ui file './prefMencoder.ui'
+**
+** Created: dim. oct. 26 08:57:36 2008
+**
+** WARNING! All changes made in this file will be lost!
+****************************************************************************/
+
+#include "prefMencoder.h"
+
+#include <qvariant.h>
+#include <qpushbutton.h>
+#include <qlabel.h>
+#include <qtabwidget.h>
+#include <qlistbox.h>
+#include <kpushbutton.h>
+#include <qtextedit.h>
+#include <qlineedit.h>
+#include <qlayout.h>
+#include <qtooltip.h>
+#include <qwhatsthis.h>
+#include "kpushbutton.h"
+
+/*
+ * Constructs a prefMencoder as a child of 'parent', with the
+ * name 'name' and widget flags set to 'f'.
+ */
+prefMencoder::prefMencoder( QWidget* parent, const char* name, WFlags fl )
+ : QWidget( parent, name, fl )
+{
+ if ( !name )
+ setName( "prefMencoder" );
+ prefMencoderLayout = new QGridLayout( this, 1, 1, 11, 6, "prefMencoderLayout");
+
+ layout2 = new QGridLayout( 0, 1, 1, 0, 6, "layout2");
+
+ textLabel2 = new QLabel( this, "textLabel2" );
+ textLabel2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, textLabel2->sizePolicy().hasHeightForWidth() ) );
+ QFont textLabel2_font( textLabel2->font() );
+ textLabel2_font.setBold( TRUE );
+ textLabel2->setFont( textLabel2_font );
+
+ layout2->addWidget( textLabel2, 0, 0 );
+
+ textLabel2_2 = new QLabel( this, "textLabel2_2" );
+ textLabel2_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, textLabel2_2->sizePolicy().hasHeightForWidth() ) );
+
+ layout2->addWidget( textLabel2_2, 0, 1 );
+
+ prefMencoderLayout->addLayout( layout2, 2, 0 );
+
+ tabWidget2 = new QTabWidget( this, "tabWidget2" );
+
+ tab = new QWidget( tabWidget2, "tab" );
+ tabLayout = new QGridLayout( tab, 1, 1, 11, 6, "tabLayout");
+
+ lbvCodecs = new QListBox( tab, "lbvCodecs" );
+
+ tabLayout->addMultiCellWidget( lbvCodecs, 0, 4, 0, 1 );
+
+ btnDeleteV = new KPushButton( tab, "btnDeleteV" );
+ btnDeleteV->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, btnDeleteV->sizePolicy().hasHeightForWidth() ) );
+ btnDeleteV->setProperty( "stdItem", 28 );
+
+ tabLayout->addWidget( btnDeleteV, 5, 1 );
+
+ btnAddV = new KPushButton( tab, "btnAddV" );
+ btnAddV->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, btnAddV->sizePolicy().hasHeightForWidth() ) );
+ btnAddV->setProperty( "stdItem", 27 );
+
+ tabLayout->addWidget( btnAddV, 5, 0 );
+
+ textLabel1_3 = new QLabel( tab, "textLabel1_3" );
+
+ tabLayout->addWidget( textLabel1_3, 0, 2 );
+
+ textLabel2_3 = new QLabel( tab, "textLabel2_3" );
+
+ tabLayout->addWidget( textLabel2_3, 1, 2 );
+
+ textLabel1_2_3 = new QLabel( tab, "textLabel1_2_3" );
+
+ tabLayout->addWidget( textLabel1_2_3, 3, 2 );
+
+ layout9 = new QGridLayout( 0, 1, 1, 0, 6, "layout9");
+
+ teOpt2 = new QTextEdit( tab, "teOpt2" );
+ teOpt2->setEnabled( TRUE );
+
+ layout9->addMultiCellWidget( teOpt2, 0, 1, 0, 0 );
+ spacer5 = new QSpacerItem( 20, 81, QSizePolicy::Minimum, QSizePolicy::Expanding );
+ layout9->addItem( spacer5, 1, 1 );
+
+ btnOpt2 = new KPushButton( tab, "btnOpt2" );
+ btnOpt2->setMinimumSize( QSize( 22, 22 ) );
+ btnOpt2->setMaximumSize( QSize( 22, 22 ) );
+
+ layout9->addWidget( btnOpt2, 0, 1 );
+
+ tabLayout->addLayout( layout9, 3, 3 );
+
+ layout10 = new QGridLayout( 0, 1, 1, 0, 6, "layout10");
+
+ teOpt3 = new QTextEdit( tab, "teOpt3" );
+ teOpt3->setEnabled( TRUE );
+
+ layout10->addMultiCellWidget( teOpt3, 0, 1, 0, 0 );
+
+ btnOpt3 = new KPushButton( tab, "btnOpt3" );
+ btnOpt3->setMinimumSize( QSize( 22, 22 ) );
+ btnOpt3->setMaximumSize( QSize( 22, 22 ) );
+
+ layout10->addWidget( btnOpt3, 0, 1 );
+ spacer6 = new QSpacerItem( 20, 60, QSizePolicy::Minimum, QSizePolicy::Expanding );
+ layout10->addItem( spacer6, 1, 1 );
+
+ tabLayout->addMultiCellLayout( layout10, 4, 5, 3, 3 );
+
+ textLabel1_2 = new QLabel( tab, "textLabel1_2" );
+
+ tabLayout->addWidget( textLabel1_2, 2, 2 );
+
+ layout8 = new QGridLayout( 0, 1, 1, 0, 6, "layout8");
+ spacer4 = new QSpacerItem( 20, 90, QSizePolicy::Minimum, QSizePolicy::Expanding );
+ layout8->addItem( spacer4, 1, 1 );
+
+ teOpt1 = new QTextEdit( tab, "teOpt1" );
+ teOpt1->setEnabled( TRUE );
+ teOpt1->setWordWrap( QTextEdit::WidgetWidth );
+
+ layout8->addMultiCellWidget( teOpt1, 0, 1, 0, 0 );
+
+ btnOpt1 = new KPushButton( tab, "btnOpt1" );
+ btnOpt1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, btnOpt1->sizePolicy().hasHeightForWidth() ) );
+ btnOpt1->setMinimumSize( QSize( 22, 22 ) );
+ btnOpt1->setMaximumSize( QSize( 22, 22 ) );
+
+ layout8->addWidget( btnOpt1, 0, 1 );
+
+ tabLayout->addLayout( layout8, 2, 3 );
+
+ textLabel1_2_3_2 = new QLabel( tab, "textLabel1_2_3_2" );
+
+ tabLayout->addMultiCellWidget( textLabel1_2_3_2, 4, 5, 2, 2 );
+
+ leFourcc = new QLineEdit( tab, "leFourcc" );
+
+ tabLayout->addWidget( leFourcc, 1, 3 );
+
+ leVLabel = new QLineEdit( tab, "leVLabel" );
+ leVLabel->setEnabled( TRUE );
+
+ tabLayout->addWidget( leVLabel, 0, 3 );
+ tabWidget2->insertTab( tab, QString::fromLatin1("") );
+
+ tab_2 = new QWidget( tabWidget2, "tab_2" );
+ tabLayout_2 = new QGridLayout( tab_2, 1, 1, 11, 6, "tabLayout_2");
+
+ btnDeleteA = new KPushButton( tab_2, "btnDeleteA" );
+ btnDeleteA->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, btnDeleteA->sizePolicy().hasHeightForWidth() ) );
+ btnDeleteA->setProperty( "stdItem", 28 );
+
+ tabLayout_2->addWidget( btnDeleteA, 2, 1 );
+
+ btnAddA = new KPushButton( tab_2, "btnAddA" );
+ btnAddA->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, btnAddA->sizePolicy().hasHeightForWidth() ) );
+ btnAddA->setProperty( "stdItem", 27 );
+
+ tabLayout_2->addWidget( btnAddA, 2, 0 );
+
+ lbaCodecs = new QListBox( tab_2, "lbaCodecs" );
+
+ tabLayout_2->addMultiCellWidget( lbaCodecs, 0, 1, 0, 1 );
+
+ leALabel = new QLineEdit( tab_2, "leALabel" );
+
+ tabLayout_2->addWidget( leALabel, 0, 3 );
+
+ textLabel3 = new QLabel( tab_2, "textLabel3" );
+
+ tabLayout_2->addWidget( textLabel3, 0, 2 );
+
+ layout11 = new QGridLayout( 0, 1, 1, 0, 6, "layout11");
+
+ teOptA = new QTextEdit( tab_2, "teOptA" );
+
+ layout11->addMultiCellWidget( teOptA, 0, 1, 0, 0 );
+ spacer4_2 = new QSpacerItem( 20, 78, QSizePolicy::Minimum, QSizePolicy::Expanding );
+ layout11->addItem( spacer4_2, 1, 1 );
+
+ btnOptA = new KPushButton( tab_2, "btnOptA" );
+ btnOptA->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, btnOptA->sizePolicy().hasHeightForWidth() ) );
+ btnOptA->setMinimumSize( QSize( 22, 22 ) );
+ btnOptA->setMaximumSize( QSize( 22, 22 ) );
+
+ layout11->addWidget( btnOptA, 0, 1 );
+
+ tabLayout_2->addMultiCellLayout( layout11, 1, 2, 3, 3 );
+
+ textLabel1_2_2_2 = new QLabel( tab_2, "textLabel1_2_2_2" );
+ textLabel1_2_2_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, textLabel1_2_2_2->sizePolicy().hasHeightForWidth() ) );
+
+ tabLayout_2->addMultiCellWidget( textLabel1_2_2_2, 1, 2, 2, 2 );
+ tabWidget2->insertTab( tab_2, QString::fromLatin1("") );
+
+ prefMencoderLayout->addMultiCellWidget( tabWidget2, 0, 0, 0, 2 );
+
+ textLabel1 = new QLabel( this, "textLabel1" );
+ textLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, textLabel1->sizePolicy().hasHeightForWidth() ) );
+ QFont textLabel1_font( textLabel1->font() );
+ textLabel1_font.setBold( TRUE );
+ textLabel1->setFont( textLabel1_font );
+
+ prefMencoderLayout->addWidget( textLabel1, 1, 0 );
+
+ bReset = new KPushButton( this, "bReset" );
+ bReset->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, bReset->sizePolicy().hasHeightForWidth() ) );
+ bReset->setProperty( "stdItem", 21 );
+
+ prefMencoderLayout->addMultiCellWidget( bReset, 1, 2, 2, 2 );
+ spacer5_2 = new QSpacerItem( 121, 21, QSizePolicy::Expanding, QSizePolicy::Minimum );
+ prefMencoderLayout->addItem( spacer5_2, 1, 1 );
+ languageChange();
+ resize( QSize(672, 587).expandedTo(minimumSizeHint()) );
+ clearWState( WState_Polished );
+
+ // signals and slots connections
+ connect( lbvCodecs, SIGNAL( currentChanged(QListBoxItem*) ), this, SLOT( lbvCodecsCurrentChanged(QListBoxItem*) ) );
+ connect( teOpt1, SIGNAL( textChanged() ), this, SLOT( teOpt1TextChanged() ) );
+ connect( teOpt2, SIGNAL( textChanged() ), this, SLOT( teOpt2TextChanged() ) );
+ connect( leVLabel, SIGNAL( textChanged(const QString&) ), this, SLOT( leVLabelTextChanged(const QString&) ) );
+ connect( teOpt3, SIGNAL( textChanged() ), this, SLOT( teOpt3TextChanged() ) );
+ connect( lbaCodecs, SIGNAL( currentChanged(QListBoxItem*) ), this, SLOT( lbaCodecsCurrentChanged(QListBoxItem*) ) );
+ connect( teOptA, SIGNAL( textChanged() ), this, SLOT( teOptATextChanged() ) );
+ connect( leALabel, SIGNAL( textChanged(const QString&) ), this, SLOT( leALabelTextChanged(const QString&) ) );
+ connect( btnOpt1, SIGNAL( clicked() ), this, SLOT( btnOpt1Clicked() ) );
+ connect( btnOpt2, SIGNAL( clicked() ), this, SLOT( btnOpt2Clicked() ) );
+ connect( btnOpt3, SIGNAL( clicked() ), this, SLOT( btnOpt3Clicked() ) );
+ connect( btnOptA, SIGNAL( clicked() ), this, SLOT( btnOptAClicked() ) );
+ connect( btnAddA, SIGNAL( clicked() ), this, SLOT( btnAddAClicked() ) );
+ connect( btnAddV, SIGNAL( clicked() ), this, SLOT( btnAddVClicked() ) );
+ connect( btnDeleteA, SIGNAL( clicked() ), this, SLOT( btnDeleteAClicked() ) );
+ connect( btnDeleteV, SIGNAL( clicked() ), this, SLOT( btnDeleteVClicked() ) );
+ connect( leFourcc, SIGNAL( textChanged(const QString&) ), this, SLOT( leFourccTextChanged(const QString&) ) );
+ connect( bReset, SIGNAL( clicked() ), this, SLOT( bResetClicked() ) );
+
+ // tab order
+ setTabOrder( lbvCodecs, leVLabel );
+ setTabOrder( leVLabel, leFourcc );
+ setTabOrder( leFourcc, teOpt1 );
+ setTabOrder( teOpt1, btnOpt1 );
+ setTabOrder( btnOpt1, teOpt2 );
+ setTabOrder( teOpt2, btnOpt2 );
+ setTabOrder( btnOpt2, teOpt3 );
+ setTabOrder( teOpt3, btnOpt3 );
+ setTabOrder( btnOpt3, btnAddV );
+ setTabOrder( btnAddV, btnDeleteV );
+ setTabOrder( btnDeleteV, lbaCodecs );
+ setTabOrder( lbaCodecs, leALabel );
+ setTabOrder( leALabel, teOptA );
+ setTabOrder( teOptA, btnOptA );
+ setTabOrder( btnOptA, btnAddA );
+ setTabOrder( btnAddA, btnDeleteA );
+ setTabOrder( btnDeleteA, tabWidget2 );
+
+ // buddies
+ textLabel1_3->setBuddy( leVLabel );
+ textLabel3->setBuddy( leALabel );
+}
+
+/*
+ * Destroys the object and frees any allocated resources
+ */
+prefMencoder::~prefMencoder()
+{
+ // no need to delete child widgets, Qt does it all for us
+}
+
+/*
+ * Sets the strings of the subwidgets using the current
+ * language.
+ */
+void prefMencoder::languageChange()
+{
+ setCaption( tr2i18n( "Form1" ) );
+ textLabel2->setText( tr2i18n( "$PASS\n"
+"$WIDTH\n"
+"$HEIGHT\n"
+"$VIDBR\n"
+"$AUDBR" ) );
+ textLabel2_2->setText( tr2i18n( "pass number\n"
+"video width\n"
+"video height\n"
+"video bitrate\n"
+"audio bitrate" ) );
+ lbvCodecs->clear();
+ lbvCodecs->insertItem( tr2i18n( "XviD" ) );
+ lbvCodecs->insertItem( tr2i18n( "x264" ) );
+ lbvCodecs->insertItem( tr2i18n( "MJPEG" ) );
+ lbvCodecs->insertItem( tr2i18n( "LJPEG" ) );
+ lbvCodecs->insertItem( tr2i18n( "H.261" ) );
+ lbvCodecs->insertItem( tr2i18n( "H.263" ) );
+ lbvCodecs->insertItem( tr2i18n( "MPEG-4 (DivX 4/5)" ) );
+ lbvCodecs->insertItem( tr2i18n( "DivX 3" ) );
+ lbvCodecs->insertItem( tr2i18n( "MS MPEG-4 v2" ) );
+ lbvCodecs->insertItem( tr2i18n( "WMV7" ) );
+ lbvCodecs->insertItem( tr2i18n( "WMV8" ) );
+ lbvCodecs->insertItem( tr2i18n( "RealVideo" ) );
+ lbvCodecs->insertItem( tr2i18n( "MPEG-1" ) );
+ lbvCodecs->insertItem( tr2i18n( "MPEG-2" ) );
+ lbvCodecs->insertItem( tr2i18n( "HuffYUV" ) );
+ lbvCodecs->insertItem( tr2i18n( "ffvHuff" ) );
+ lbvCodecs->insertItem( tr2i18n( "ASUS v1" ) );
+ lbvCodecs->insertItem( tr2i18n( "ASUS v2" ) );
+ btnDeleteV->setAccel( QKeySequence( QString::null ) );
+ textLabel1_3->setText( tr2i18n( "label" ) );
+ textLabel2_3->setText( tr2i18n( "fourcc" ) );
+ textLabel1_2_3->setText( tr2i18n( "first pass" ) );
+ btnOpt2->setText( QString::null );
+ btnOpt3->setText( QString::null );
+ textLabel1_2->setText( tr2i18n( "one pass" ) );
+ teOpt1->setText( QString::null );
+ btnOpt1->setText( QString::null );
+ textLabel1_2_3_2->setText( tr2i18n( "second pass" ) );
+ tabWidget2->changeTab( tab, tr2i18n( "Video codecs" ) );
+ lbaCodecs->clear();
+ lbaCodecs->insertItem( tr2i18n( "New Item" ) );
+ textLabel3->setText( tr2i18n( "label" ) );
+ btnOptA->setText( QString::null );
+ textLabel1_2_2_2->setText( tr2i18n( "options" ) );
+ tabWidget2->changeTab( tab_2, tr2i18n( "Audio codecs" ) );
+ textLabel1->setText( tr2i18n( "Available variables" ) );
+}
+
+void prefMencoder::lbvCodecsCurrentChanged(QListBoxItem*)
+{
+ qWarning( "prefMencoder::lbvCodecsCurrentChanged(QListBoxItem*): Not implemented yet" );
+}
+
+void prefMencoder::teOpt1TextChanged()
+{
+ qWarning( "prefMencoder::teOpt1TextChanged(): Not implemented yet" );
+}
+
+void prefMencoder::teOpt2TextChanged()
+{
+ qWarning( "prefMencoder::teOpt2TextChanged(): Not implemented yet" );
+}
+
+void prefMencoder::leVLabelTextChanged(const QString&)
+{
+ qWarning( "prefMencoder::leVLabelTextChanged(const QString&): Not implemented yet" );
+}
+
+void prefMencoder::teOpt3TextChanged()
+{
+ qWarning( "prefMencoder::teOpt3TextChanged(): Not implemented yet" );
+}
+
+void prefMencoder::lbaCodecsCurrentChanged(QListBoxItem*)
+{
+ qWarning( "prefMencoder::lbaCodecsCurrentChanged(QListBoxItem*): Not implemented yet" );
+}
+
+void prefMencoder::teOptATextChanged()
+{
+ qWarning( "prefMencoder::teOptATextChanged(): Not implemented yet" );
+}
+
+void prefMencoder::leALabelTextChanged(const QString&)
+{
+ qWarning( "prefMencoder::leALabelTextChanged(const QString&): Not implemented yet" );
+}
+
+void prefMencoder::btnOpt1Clicked()
+{
+ qWarning( "prefMencoder::btnOpt1Clicked(): Not implemented yet" );
+}
+
+void prefMencoder::btnOpt2Clicked()
+{
+ qWarning( "prefMencoder::btnOpt2Clicked(): Not implemented yet" );
+}
+
+void prefMencoder::btnOpt3Clicked()
+{
+ qWarning( "prefMencoder::btnOpt3Clicked(): Not implemented yet" );
+}
+
+void prefMencoder::btnOptAClicked()
+{
+ qWarning( "prefMencoder::btnOptAClicked(): Not implemented yet" );
+}
+
+void prefMencoder::btnAddVClicked()
+{
+ qWarning( "prefMencoder::btnAddVClicked(): Not implemented yet" );
+}
+
+void prefMencoder::btnDeleteVClicked()
+{
+ qWarning( "prefMencoder::btnDeleteVClicked(): Not implemented yet" );
+}
+
+void prefMencoder::btnAddAClicked()
+{
+ qWarning( "prefMencoder::btnAddAClicked(): Not implemented yet" );
+}
+
+void prefMencoder::btnDeleteAClicked()
+{
+ qWarning( "prefMencoder::btnDeleteAClicked(): Not implemented yet" );
+}
+
+void prefMencoder::leFourccTextChanged(const QString&)
+{
+ qWarning( "prefMencoder::leFourccTextChanged(const QString&): Not implemented yet" );
+}
+
+void prefMencoder::bResetClicked()
+{
+ qWarning( "prefMencoder::bResetClicked(): Not implemented yet" );
+}
+
+#include "prefMencoder.moc"