2
* KMix -- KDE's full featured mini mixer
5
* Copyright (C) 2000 Stefan Schimanski <1Stein@gmx.de>
6
* Copyright (C) 2001 Preston Brown <pbrown@kde.org>
8
* This program is free software; you can redistribute it and/or
9
* modify it under the terms of the GNU Library General Public
10
* License as published by the Free Software Foundation; either
11
* version 2 of the License, or (at your option) any later version.
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
* Library General Public License for more details.
18
* You should have received a copy of the GNU Library General Public
19
* License along with this program; if not, write to the Free
20
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26
#include <qtabdialog.h>
28
#include <qwhatsthis.h>
34
#include "kmixprefdlg.h"
35
#include "kmixerwidget.h"
36
#include "kmixprefdlg.h"
39
KMixPrefDlg::KMixPrefDlg()
41
setCaption( i18n("KMix Preferences") );
44
m_generalTab = new QWidget( this );
45
QBoxLayout *layout = new QVBoxLayout( m_generalTab );
46
layout->setSpacing( KDialog::spacingHint() );
47
layout->setMargin( KDialog::marginHint() );
49
m_dockingChk = new QCheckBox( i18n("&Dock into panel"), m_generalTab );
50
layout->addWidget( m_dockingChk );
51
QWhatsThis::add(m_dockingChk, i18n("Docks the mixer into the KDE panel"));
53
m_volumeChk = new QCheckBox(i18n("Enable System Tray &volume control"),
55
layout->addWidget(m_volumeChk);
57
// commented this out. From the usability point of view, this option makes absolutely no sense. nolden
58
// m_hideOnCloseChk = new QCheckBox( i18n("Only &hide window with close button"), m_generalTab );
59
// layout->addWidget( m_hideOnCloseChk );
61
m_showTicks = new QCheckBox( i18n("Show &tickmarks"), m_generalTab );
62
layout->addWidget( m_showTicks );
63
QWhatsThis::add(m_showTicks, i18n("Enable/disable tickmark scales on the sliders"));
65
m_showLabels = new QCheckBox( i18n("Show &labels"), m_generalTab );
66
layout->addWidget( m_showLabels );
67
QWhatsThis::add(m_showLabels, i18n("Enables/disables description labels above the sliders"));
69
addTab( m_generalTab, i18n("&General") );
72
setCancelButton( i18n("&Cancel") );
73
setOkButton( i18n("&OK") );
74
setApplyButton( i18n("&Apply") );
76
connect( this, SIGNAL(applyButtonPressed()), this, SLOT(apply()) );
79
KMixPrefDlg::~KMixPrefDlg()
83
void KMixPrefDlg::apply()
85
cerr << "KMixPrefDlg::apply()" << endl;
86
emit signalApplied( this );
89
#include "kmixprefdlg.moc"