diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-02-17 00:32:19 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-02-17 00:32:19 +0000 |
commit | 0d382a262c0638d0f572fc37193ccc5ed3dc895f (patch) | |
tree | 8578dcddfce4191f3f7a142a37769df7add48475 /src/k9prefdvd.cpp | |
download | k9copy-0d382a262c0638d0f572fc37193ccc5ed3dc895f.tar.gz k9copy-0d382a262c0638d0f572fc37193ccc5ed3dc895f.zip |
Added old abandoned version of k9copy
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k9copy@1091546 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/k9prefdvd.cpp')
-rw-r--r-- | src/k9prefdvd.cpp | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/src/k9prefdvd.cpp b/src/k9prefdvd.cpp new file mode 100644 index 0000000..8238b1c --- /dev/null +++ b/src/k9prefdvd.cpp @@ -0,0 +1,57 @@ +// +// C++ Implementation: +// +// Description: +// +// +// Author: Jean-Michel PETIT <[email protected]>, (C) 2006 +// +// Copyright: See COPYING file that comes with this distribution +// +// + + +#include "k9prefdvd.h" +#include "k9config.h" +#include <kstandarddirs.h> +#include <kurlrequester.h> +#include <qcheckbox.h> +#include <qspinbox.h> +#include <klocale.h> + +k9prefDVD::k9prefDVD(QWidget* 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" + |