1
/***************************************************************************
2
copyright : (C) 2003 by Arnold Krille
3
email : arnold@arnoldarts.de
4
***************************************************************************/
6
/***************************************************************************
8
* This program is free software; you can redistribute it and/or modify *
9
* it under the terms of the GNU General Public License as published by *
10
* the Free Software Foundation; version 2 of the License. *
12
***************************************************************************/
14
#include "krecconfig_files.h"
15
#include "krecconfig_files.moc"
17
#include "krecconfig_fileswidget.h"
19
#include <kgenericfactory.h>
22
#include <qbuttongroup.h>
23
#include <qradiobutton.h>
24
#include <qlineedit.h>
27
#include <kapplication.h>
31
typedef KGenericFactory<KRecConfigFiles, QWidget> KRecConfigFilesFactory;
32
K_EXPORT_COMPONENT_FACTORY( kcm_krec_files, KRecConfigFilesFactory( "krec_files" ) )
34
KRecConfigFiles::KRecConfigFiles( QWidget* p, const char*, const QStringList& s )
35
: KCModule( KRecConfigFilesFactory::instance(), p, s )
39
_layout = new QBoxLayout( this, QBoxLayout::TopToBottom );
41
_layout->addSpacing( 10 );
43
_filewidget = new KRecConfigFilesWidget( this );
44
connect( _filewidget, SIGNAL( sRateChanged( int ) ), this, SLOT( ratechanged( int ) ) );
45
connect( _filewidget, SIGNAL( sChannelsChanged( int ) ), this, SLOT( channelschanged( int ) ) );
46
connect( _filewidget, SIGNAL( sBitsChanged( int ) ), this, SLOT( bitschanged( int ) ) );
47
connect( _filewidget, SIGNAL( sUseDefaultsChanged( bool ) ), this, SLOT( usedefaultschanged( bool ) ) );
48
_layout->addWidget( _filewidget );
50
_layout->addStretch( 100 );
55
KRecConfigFiles::~KRecConfigFiles() {
58
void KRecConfigFiles::load() {
59
kdDebug( 60005 ) << k_funcinfo << endl;
64
void KRecConfigFiles::save() {
66
emit changed( false );
69
void KRecConfigFiles::defaults() {
70
_filewidget->defaults();
73
void KRecConfigFiles::ratechanged( int ) {
76
void KRecConfigFiles::channelschanged( int ) {
79
void KRecConfigFiles::bitschanged( int ) {
82
void KRecConfigFiles::usedefaultschanged( bool ) {