summaryrefslogtreecommitdiffstats
path: root/src/prefDVD.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/prefDVD.cpp')
-rw-r--r--src/prefDVD.cpp114
1 files changed, 114 insertions, 0 deletions
diff --git a/src/prefDVD.cpp b/src/prefDVD.cpp
new file mode 100644
index 0000000..d0aef30
--- /dev/null
+++ b/src/prefDVD.cpp
@@ -0,0 +1,114 @@
+#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 <qvariant.h>
+#include <qlabel.h>
+#include <kurlrequester.h>
+#include <qcheckbox.h>
+#include <qspinbox.h>
+#include <qlayout.h>
+#include <qtooltip.h>
+#include <qwhatsthis.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( QWidget* parent, const char* name, WFlags fl )
+ : QWidget( parent, name, fl )
+{
+ if ( !name )
+ setName( "prefDVD" );
+ prefDVDLayout = new QGridLayout( this, 1, 1, 11, 6, "prefDVDLayout");
+
+ lblworkDir = new QLabel( this, "lblworkDir" );
+ lblworkDir->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)5, 0, 0, lblworkDir->sizePolicy().hasHeightForWidth() ) );
+
+ prefDVDLayout->addWidget( lblworkDir, 0, 0 );
+
+ urOutput = new KURLRequester( this, "urOutput" );
+ urOutput->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, urOutput->sizePolicy().hasHeightForWidth() ) );
+
+ prefDVDLayout->addMultiCellWidget( urOutput, 0, 0, 1, 2 );
+
+ ckK3b = new QCheckBox( this, "ckK3b" );
+
+ prefDVDLayout->addMultiCellWidget( ckK3b, 2, 2, 0, 2 );
+
+ ckAutoBurn = new QCheckBox( this, "ckAutoBurn" );
+ ckAutoBurn->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, ckAutoBurn->sizePolicy().hasHeightForWidth() ) );
+
+ prefDVDLayout->addMultiCellWidget( ckAutoBurn, 3, 3, 0, 2 );
+
+ textLabel1_2 = new QLabel( this, "textLabel1_2" );
+
+ prefDVDLayout->addWidget( textLabel1_2, 1, 0 );
+
+ sbSize = new QSpinBox( this, "sbSize" );
+ sbSize->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, sbSize->sizePolicy().hasHeightForWidth() ) );
+ sbSize->setMinimumSize( QSize( 80, 0 ) );
+ sbSize->setMaxValue( 9000 );
+ sbSize->setLineStep( 100 );
+ sbSize->setValue( 4400 );
+
+ prefDVDLayout->addWidget( sbSize, 1, 1 );
+
+ ckQuickScan = new QCheckBox( this, "ckQuickScan" );
+
+ prefDVDLayout->addMultiCellWidget( ckQuickScan, 4, 4, 0, 2 );
+ spacer1 = new QSpacerItem( 21, 110, QSizePolicy::Minimum, QSizePolicy::Expanding );
+ prefDVDLayout->addItem( spacer1, 7, 2 );
+
+ ckDvdAuthor = new QCheckBox( this, "ckDvdAuthor" );
+
+ prefDVDLayout->addMultiCellWidget( ckDvdAuthor, 5, 5, 0, 2 );
+
+ ckDelTmpFiles = new QCheckBox( this, "ckDelTmpFiles" );
+
+ prefDVDLayout->addMultiCellWidget( ckDelTmpFiles, 6, 6, 0, 2 );
+ languageChange();
+ resize( QSize(600, 347).expandedTo(minimumSizeHint()) );
+ clearWState( WState_Polished );
+}
+
+/*
+ * Destroys the object and frees any allocated resources
+ */
+prefDVD::~prefDVD()
+{
+ // no need to delete child widgets, Qt 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( QKeySequence( tr2i18n( "Alt+B" ) ) );
+ ckAutoBurn->setText( tr2i18n( "Auto burn" ) );
+ ckAutoBurn->setAccel( QKeySequence( tr2i18n( "Alt+T" ) ) );
+ textLabel1_2->setText( tr2i18n( "DVD size" ) );
+ ckQuickScan->setText( tr2i18n( "Quick scan" ) );
+ ckQuickScan->setAccel( QKeySequence( tr2i18n( "Alt+Q" ) ) );
+ ckDvdAuthor->setText( tr2i18n( "use dvdAuthor for copy without menus" ) );
+ ckDvdAuthor->setAccel( QKeySequence( tr2i18n( "Alt+D" ) ) );
+ ckDelTmpFiles->setText( tr2i18n( "Clear output directory on exit" ) );
+ ckDelTmpFiles->setAccel( QKeySequence( tr2i18n( "Alt+Y" ) ) );
+}
+
+#include "prefDVD.moc"