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/prefDVD.cpp

115 lines
4.0 KiB

#include <klocale.h>
/****************************************************************************
** Form implementation generated from reading ui file './prefDVD.ui'
**
** Created: dim. oct. 26 08:57:35 2008
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "prefDVD.h"
#include <tqvariant.h>
#include <tqlabel.h>
#include <kurlrequester.h>
#include <tqcheckbox.h>
#include <tqspinbox.h>
#include <tqlayout.h>
#include <tqtooltip.h>
#include <tqwhatsthis.h>
#include "kurlrequester.h"
#include "klineedit.h"
#include "kpushbutton.h"
/*
* Constructs a prefDVD as a child of 'parent', with the
* name 'name' and widget flags set to 'f'.
*/
prefDVD::prefDVD( TQWidget* parent, const char* name, WFlags fl )
: TQWidget( parent, name, fl )
{
if ( !name )
setName( "prefDVD" );
prefDVDLayout = new TQGridLayout( this, 1, 1, 11, 6, "prefDVDLayout");
lblworkDir = new TQLabel( this, "lblworkDir" );
lblworkDir->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)5, 0, 0, lblworkDir->sizePolicy().hasHeightForWidth() ) );
prefDVDLayout->addWidget( lblworkDir, 0, 0 );
urOutput = new KURLRequester( this, "urOutput" );
urOutput->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, urOutput->sizePolicy().hasHeightForWidth() ) );
prefDVDLayout->addMultiCellWidget( urOutput, 0, 0, 1, 2 );
ckK3b = new TQCheckBox( this, "ckK3b" );
prefDVDLayout->addMultiCellWidget( ckK3b, 2, 2, 0, 2 );
ckAutoBurn = new TQCheckBox( this, "ckAutoBurn" );
ckAutoBurn->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, ckAutoBurn->sizePolicy().hasHeightForWidth() ) );
prefDVDLayout->addMultiCellWidget( ckAutoBurn, 3, 3, 0, 2 );
textLabel1_2 = new TQLabel( this, "textLabel1_2" );
prefDVDLayout->addWidget( textLabel1_2, 1, 0 );
sbSize = new TQSpinBox( this, "sbSize" );
sbSize->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, sbSize->sizePolicy().hasHeightForWidth() ) );
sbSize->setMinimumSize( TQSize( 80, 0 ) );
sbSize->setMaxValue( 9000 );
sbSize->setLineStep( 100 );
sbSize->setValue( 4400 );
prefDVDLayout->addWidget( sbSize, 1, 1 );
ckQuickScan = new TQCheckBox( this, "ckQuickScan" );
prefDVDLayout->addMultiCellWidget( ckQuickScan, 4, 4, 0, 2 );
spacer1 = new TQSpacerItem( 21, 110, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
prefDVDLayout->addItem( spacer1, 7, 2 );
ckDvdAuthor = new TQCheckBox( this, "ckDvdAuthor" );
prefDVDLayout->addMultiCellWidget( ckDvdAuthor, 5, 5, 0, 2 );
ckDelTmpFiles = new TQCheckBox( this, "ckDelTmpFiles" );
prefDVDLayout->addMultiCellWidget( ckDelTmpFiles, 6, 6, 0, 2 );
languageChange();
resize( TQSize(600, 347).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
}
/*
* Destroys the object and frees any allocated resources
*/
prefDVD::~prefDVD()
{
// no need to delete child widgets, TQt does it all for us
}
/*
* Sets the strings of the subwidgets using the current
* language.
*/
void prefDVD::languageChange()
{
setCaption( tr2i18n( "prefDVD" ) );
lblworkDir->setText( tr2i18n( "Output directory" ) );
ckK3b->setText( tr2i18n( "Burn with k3b" ) );
ckK3b->setAccel( TQKeySequence( tr2i18n( "Alt+B" ) ) );
ckAutoBurn->setText( tr2i18n( "Auto burn" ) );
ckAutoBurn->setAccel( TQKeySequence( tr2i18n( "Alt+T" ) ) );
textLabel1_2->setText( tr2i18n( "DVD size" ) );
ckQuickScan->setText( tr2i18n( "Quick scan" ) );
ckQuickScan->setAccel( TQKeySequence( tr2i18n( "Alt+Q" ) ) );
ckDvdAuthor->setText( tr2i18n( "use dvdAuthor for copy without menus" ) );
ckDvdAuthor->setAccel( TQKeySequence( tr2i18n( "Alt+D" ) ) );
ckDelTmpFiles->setText( tr2i18n( "Clear output directory on exit" ) );
ckDelTmpFiles->setAccel( TQKeySequence( tr2i18n( "Alt+Y" ) ) );
}
#include "prefDVD.moc"