summaryrefslogtreecommitdiffstats
path: root/src/k9prefdvd.cpp
blob: 03aca00f11181695f01a9c4b2a7eacc34831ec1a (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
//
// C++ Implementation: 
//
// Description: 
//
//
// Author: Jean-Michel PETIT <k9copy@free.fr>, (C) 2006
//
// Copyright: See COPYING file that comes with this distribution
//
//


#include "k9prefdvd.h"
#include "k9config.h"
#include <kstandarddirs.h>
#include <kurlrequester.h>
#include <tqcheckbox.h>
#include <tqspinbox.h>
#include <klocale.h>

k9prefDVD::k9prefDVD(TQWidget* parent, const char* name, WFlags fl)
: prefDVD(parent,name,fl)
{
    k9Config config;
    urOutput->setMode(2);
    urOutput->setURL(config.getPrefOutput());
    ckK3b->setChecked(config.getPrefK3b());

    ckAutoBurn->setChecked(config.getPrefAutoBurn());
    ckQuickScan->setChecked(config.getQuickScan());
    ckDvdAuthor->setChecked(config.getUseDvdAuthor());
    ckDelTmpFiles->setChecked(config.getPrefDelTmpFiles());
    sbSize->setValue(config.getPrefSize());
    sbSize->setSuffix(" "+ i18n("MB"));
}

k9prefDVD::~k9prefDVD()
{
}

/*$SPECIALIZATION$*/

void k9prefDVD::save() {
    k9Config config;
    config.setPrefOutput( urOutput->url());
    config.setPrefK3b(ckK3b->isChecked());
    config.setPrefAutoBurn( ckAutoBurn->isChecked());
    config.setPrefSize(sbSize->value());
    config.setQuickScan( ckQuickScan->isChecked());
    config.setUseDvdAuthor( ckDvdAuthor->isChecked());    
    config.setPrefDelTmpFiles(ckDelTmpFiles->isChecked());
    config.save();
}

#include "k9prefdvd.moc"