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/src/prefMencoder.cpp

427 lines
15 KiB

#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 <tqvariant.h>
#include <tqpushbutton.h>
#include <tqlabel.h>
#include <tqtabwidget.h>
#include <tqlistbox.h>
#include <kpushbutton.h>
#include <tqtextedit.h>
#include <tqlineedit.h>
#include <tqlayout.h>
#include <tqtooltip.h>
#include <tqwhatsthis.h>
#include "kpushbutton.h"
/*
* Constructs a prefMencoder as a child of 'parent', with the
* name 'name' and widget flags set to 'f'.
*/
prefMencoder::prefMencoder( TQWidget* parent, const char* name, WFlags fl )
: TQWidget( parent, name, fl )
{
if ( !name )
setName( "prefMencoder" );
prefMencoderLayout = new TQGridLayout( this, 1, 1, 11, 6, "prefMencoderLayout");
tqlayout2 = new TQGridLayout( 0, 1, 1, 0, 6, "tqlayout2");
textLabel2 = new TQLabel( this, "textLabel2" );
textLabel2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, textLabel2->sizePolicy().hasHeightForWidth() ) );
TQFont textLabel2_font( textLabel2->font() );
textLabel2_font.setBold( TRUE );
textLabel2->setFont( textLabel2_font );
tqlayout2->addWidget( textLabel2, 0, 0 );
textLabel2_2 = new TQLabel( this, "textLabel2_2" );
textLabel2_2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, textLabel2_2->sizePolicy().hasHeightForWidth() ) );
tqlayout2->addWidget( textLabel2_2, 0, 1 );
prefMencoderLayout->addLayout( tqlayout2, 2, 0 );
tabWidget2 = new TQTabWidget( this, "tabWidget2" );
tab = new TQWidget( tabWidget2, "tab" );
tabLayout = new TQGridLayout( tab, 1, 1, 11, 6, "tabLayout");
lbvCodecs = new TQListBox( tab, "lbvCodecs" );
tabLayout->addMultiCellWidget( lbvCodecs, 0, 4, 0, 1 );
btnDeleteV = new KPushButton( tab, "btnDeleteV" );
btnDeleteV->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, btnDeleteV->sizePolicy().hasHeightForWidth() ) );
btnDeleteV->setProperty( "stdItem", 28 );
tabLayout->addWidget( btnDeleteV, 5, 1 );
btnAddV = new KPushButton( tab, "btnAddV" );
btnAddV->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, btnAddV->sizePolicy().hasHeightForWidth() ) );
btnAddV->setProperty( "stdItem", 27 );
tabLayout->addWidget( btnAddV, 5, 0 );
textLabel1_3 = new TQLabel( tab, "textLabel1_3" );
tabLayout->addWidget( textLabel1_3, 0, 2 );
textLabel2_3 = new TQLabel( tab, "textLabel2_3" );
tabLayout->addWidget( textLabel2_3, 1, 2 );
textLabel1_2_3 = new TQLabel( tab, "textLabel1_2_3" );
tabLayout->addWidget( textLabel1_2_3, 3, 2 );
tqlayout9 = new TQGridLayout( 0, 1, 1, 0, 6, "tqlayout9");
teOpt2 = new TQTextEdit( tab, "teOpt2" );
teOpt2->setEnabled( TRUE );
tqlayout9->addMultiCellWidget( teOpt2, 0, 1, 0, 0 );
spacer5 = new TQSpacerItem( 20, 81, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
tqlayout9->addItem( spacer5, 1, 1 );
btnOpt2 = new KPushButton( tab, "btnOpt2" );
btnOpt2->setMinimumSize( TQSize( 22, 22 ) );
btnOpt2->setMaximumSize( TQSize( 22, 22 ) );
tqlayout9->addWidget( btnOpt2, 0, 1 );
tabLayout->addLayout( tqlayout9, 3, 3 );
tqlayout10 = new TQGridLayout( 0, 1, 1, 0, 6, "tqlayout10");
teOpt3 = new TQTextEdit( tab, "teOpt3" );
teOpt3->setEnabled( TRUE );
tqlayout10->addMultiCellWidget( teOpt3, 0, 1, 0, 0 );
btnOpt3 = new KPushButton( tab, "btnOpt3" );
btnOpt3->setMinimumSize( TQSize( 22, 22 ) );
btnOpt3->setMaximumSize( TQSize( 22, 22 ) );
tqlayout10->addWidget( btnOpt3, 0, 1 );
spacer6 = new TQSpacerItem( 20, 60, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
tqlayout10->addItem( spacer6, 1, 1 );
tabLayout->addMultiCellLayout( tqlayout10, 4, 5, 3, 3 );
textLabel1_2 = new TQLabel( tab, "textLabel1_2" );
tabLayout->addWidget( textLabel1_2, 2, 2 );
tqlayout8 = new TQGridLayout( 0, 1, 1, 0, 6, "tqlayout8");
spacer4 = new TQSpacerItem( 20, 90, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
tqlayout8->addItem( spacer4, 1, 1 );
teOpt1 = new TQTextEdit( tab, "teOpt1" );
teOpt1->setEnabled( TRUE );
teOpt1->setWordWrap( TQTextEdit::WidgetWidth );
tqlayout8->addMultiCellWidget( teOpt1, 0, 1, 0, 0 );
btnOpt1 = new KPushButton( tab, "btnOpt1" );
btnOpt1->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, btnOpt1->sizePolicy().hasHeightForWidth() ) );
btnOpt1->setMinimumSize( TQSize( 22, 22 ) );
btnOpt1->setMaximumSize( TQSize( 22, 22 ) );
tqlayout8->addWidget( btnOpt1, 0, 1 );
tabLayout->addLayout( tqlayout8, 2, 3 );
textLabel1_2_3_2 = new TQLabel( tab, "textLabel1_2_3_2" );
tabLayout->addMultiCellWidget( textLabel1_2_3_2, 4, 5, 2, 2 );
leFourcc = new TQLineEdit( tab, "leFourcc" );
tabLayout->addWidget( leFourcc, 1, 3 );
leVLabel = new TQLineEdit( tab, "leVLabel" );
leVLabel->setEnabled( TRUE );
tabLayout->addWidget( leVLabel, 0, 3 );
tabWidget2->insertTab( tab, TQString::fromLatin1("") );
tab_2 = new TQWidget( tabWidget2, "tab_2" );
tabLayout_2 = new TQGridLayout( tab_2, 1, 1, 11, 6, "tabLayout_2");
btnDeleteA = new KPushButton( tab_2, "btnDeleteA" );
btnDeleteA->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::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( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, btnAddA->sizePolicy().hasHeightForWidth() ) );
btnAddA->setProperty( "stdItem", 27 );
tabLayout_2->addWidget( btnAddA, 2, 0 );
lbaCodecs = new TQListBox( tab_2, "lbaCodecs" );
tabLayout_2->addMultiCellWidget( lbaCodecs, 0, 1, 0, 1 );
leALabel = new TQLineEdit( tab_2, "leALabel" );
tabLayout_2->addWidget( leALabel, 0, 3 );
textLabel3 = new TQLabel( tab_2, "textLabel3" );
tabLayout_2->addWidget( textLabel3, 0, 2 );
tqlayout11 = new TQGridLayout( 0, 1, 1, 0, 6, "tqlayout11");
teOptA = new TQTextEdit( tab_2, "teOptA" );
tqlayout11->addMultiCellWidget( teOptA, 0, 1, 0, 0 );
spacer4_2 = new TQSpacerItem( 20, 78, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
tqlayout11->addItem( spacer4_2, 1, 1 );
btnOptA = new KPushButton( tab_2, "btnOptA" );
btnOptA->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, btnOptA->sizePolicy().hasHeightForWidth() ) );
btnOptA->setMinimumSize( TQSize( 22, 22 ) );
btnOptA->setMaximumSize( TQSize( 22, 22 ) );
tqlayout11->addWidget( btnOptA, 0, 1 );
tabLayout_2->addMultiCellLayout( tqlayout11, 1, 2, 3, 3 );
textLabel1_2_2_2 = new TQLabel( tab_2, "textLabel1_2_2_2" );
textLabel1_2_2_2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::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, TQString::fromLatin1("") );
prefMencoderLayout->addMultiCellWidget( tabWidget2, 0, 0, 0, 2 );
textLabel1 = new TQLabel( this, "textLabel1" );
textLabel1->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, textLabel1->sizePolicy().hasHeightForWidth() ) );
TQFont textLabel1_font( textLabel1->font() );
textLabel1_font.setBold( TRUE );
textLabel1->setFont( textLabel1_font );
prefMencoderLayout->addWidget( textLabel1, 1, 0 );
bReset = new KPushButton( this, "bReset" );
bReset->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, bReset->sizePolicy().hasHeightForWidth() ) );
bReset->setProperty( "stdItem", 21 );
prefMencoderLayout->addMultiCellWidget( bReset, 1, 2, 2, 2 );
spacer5_2 = new TQSpacerItem( 121, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
prefMencoderLayout->addItem( spacer5_2, 1, 1 );
languageChange();
resize( TQSize(672, 587).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
// signals and slots connections
connect( lbvCodecs, TQT_SIGNAL( currentChanged(TQListBoxItem*) ), this, TQT_SLOT( lbvCodecsCurrentChanged(TQListBoxItem*) ) );
connect( teOpt1, TQT_SIGNAL( textChanged() ), this, TQT_SLOT( teOpt1TextChanged() ) );
connect( teOpt2, TQT_SIGNAL( textChanged() ), this, TQT_SLOT( teOpt2TextChanged() ) );
connect( leVLabel, TQT_SIGNAL( textChanged(const TQString&) ), this, TQT_SLOT( leVLabelTextChanged(const TQString&) ) );
connect( teOpt3, TQT_SIGNAL( textChanged() ), this, TQT_SLOT( teOpt3TextChanged() ) );
connect( lbaCodecs, TQT_SIGNAL( currentChanged(TQListBoxItem*) ), this, TQT_SLOT( lbaCodecsCurrentChanged(TQListBoxItem*) ) );
connect( teOptA, TQT_SIGNAL( textChanged() ), this, TQT_SLOT( teOptATextChanged() ) );
connect( leALabel, TQT_SIGNAL( textChanged(const TQString&) ), this, TQT_SLOT( leALabelTextChanged(const TQString&) ) );
connect( btnOpt1, TQT_SIGNAL( clicked() ), this, TQT_SLOT( btnOpt1Clicked() ) );
connect( btnOpt2, TQT_SIGNAL( clicked() ), this, TQT_SLOT( btnOpt2Clicked() ) );
connect( btnOpt3, TQT_SIGNAL( clicked() ), this, TQT_SLOT( btnOpt3Clicked() ) );
connect( btnOptA, TQT_SIGNAL( clicked() ), this, TQT_SLOT( btnOptAClicked() ) );
connect( btnAddA, TQT_SIGNAL( clicked() ), this, TQT_SLOT( btnAddAClicked() ) );
connect( btnAddV, TQT_SIGNAL( clicked() ), this, TQT_SLOT( btnAddVClicked() ) );
connect( btnDeleteA, TQT_SIGNAL( clicked() ), this, TQT_SLOT( btnDeleteAClicked() ) );
connect( btnDeleteV, TQT_SIGNAL( clicked() ), this, TQT_SLOT( btnDeleteVClicked() ) );
connect( leFourcc, TQT_SIGNAL( textChanged(const TQString&) ), this, TQT_SLOT( leFourccTextChanged(const TQString&) ) );
connect( bReset, TQT_SIGNAL( clicked() ), this, TQT_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, TQt 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( TQKeySequence( TQString() ) );
textLabel1_3->setText( tr2i18n( "label" ) );
textLabel2_3->setText( tr2i18n( "fourcc" ) );
textLabel1_2_3->setText( tr2i18n( "first pass" ) );
btnOpt2->setText( TQString() );
btnOpt3->setText( TQString() );
textLabel1_2->setText( tr2i18n( "one pass" ) );
teOpt1->setText( TQString() );
btnOpt1->setText( TQString() );
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( TQString() );
textLabel1_2_2_2->setText( tr2i18n( "options" ) );
tabWidget2->changeTab( tab_2, tr2i18n( "Audio codecs" ) );
textLabel1->setText( tr2i18n( "Available variables" ) );
}
void prefMencoder::lbvCodecsCurrentChanged(TQListBoxItem*)
{
qWarning( "prefMencoder::lbvCodecsCurrentChanged(TQListBoxItem*): 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 TQString&)
{
qWarning( "prefMencoder::leVLabelTextChanged(const TQString&): Not implemented yet" );
}
void prefMencoder::teOpt3TextChanged()
{
qWarning( "prefMencoder::teOpt3TextChanged(): Not implemented yet" );
}
void prefMencoder::lbaCodecsCurrentChanged(TQListBoxItem*)
{
qWarning( "prefMencoder::lbaCodecsCurrentChanged(TQListBoxItem*): Not implemented yet" );
}
void prefMencoder::teOptATextChanged()
{
qWarning( "prefMencoder::teOptATextChanged(): Not implemented yet" );
}
void prefMencoder::leALabelTextChanged(const TQString&)
{
qWarning( "prefMencoder::leALabelTextChanged(const TQString&): 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 TQString&)
{
qWarning( "prefMencoder::leFourccTextChanged(const TQString&): Not implemented yet" );
}
void prefMencoder::bResetClicked()
{
qWarning( "prefMencoder::bResetClicked(): Not implemented yet" );
}
#include "prefMencoder.moc"