summaryrefslogtreecommitdiffstats
path: root/src/prefDVD.cpp
blob: 827d875a253d4c6e223eb2a841d64475e3df3196 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
#include <tdelocale.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"