summaryrefslogtreecommitdiffstats
path: root/krec/krecconfig_fileswidget.h
blob: 2095ce339b6fc574492621fd3350af0442b93521 (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
/***************************************************************************
                          krecconfig_fileswidget.h  -  description
                             -------------------
    copyright            : (C) 2003 by Arnold Krille
    email                : arnold@arnoldarts.de
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; version 2 of the License.               *
 *                                                                         *
 ***************************************************************************/

#ifndef KREC_CONFIGURE_FILESWIDGET_H
#define KREC_CONFIGURE_FILESWIDGET_H

#include <qhbox.h>
#include <qvbox.h>
#include <qstringlist.h>
#include <qstring.h>

class QRadioButton;
class QCheckBox;
class QButtonGroup;
class QLineEdit;
class QLabel;

class KRecConfigFilesWidget : public QVBox {
   Q_OBJECT
public:
	KRecConfigFilesWidget( QWidget*, const char* =0 );
	~KRecConfigFilesWidget();

	void load();
	void save();
	void defaults();
signals:
	void sRateChanged( int );
	void sChannelsChanged( int );
	void sBitsChanged( int );
	void sUseDefaultsChanged( bool );
private slots:
	void ratechanged( int );
	void rateotherchanged( const QString& );
	void channelschanged( int );
	void bitschanged( int );
	void usedefaultschanged( bool );

private:
	QHBox *_hbox;
	QButtonGroup *_ratebox, *_channelsbox, *_bitsbox;
	QRadioButton *_rate48, *_rate44, *_rate22, *_rate11, *_rateother;
	QHBox *_rateotherbox;
	QLabel *_rateotherlabel;
	QLineEdit *_rateotherline;
	QRadioButton *_channels2, *_channels1;
	QRadioButton *_bits16, *_bits8;

	QCheckBox *_usedefaults;

	int _samplingRate, _channels, _bits;
};

#endif

// vim:sw=4:ts=4