~ubuntu-branches/ubuntu/hoary/kdemultimedia/hoary

« back to all changes in this revision

Viewing changes to kmix/kmixprefdlg.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Martin Schulze
  • Date: 2003-01-22 15:00:51 UTC
  • Revision ID: james.westby@ubuntu.com-20030122150051-uihwkdoxf15mi1tn
Tags: upstream-2.2.2
ImportĀ upstreamĀ versionĀ 2.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * KMix -- KDE's full featured mini mixer
 
3
 *
 
4
 *
 
5
 * Copyright (C) 2000 Stefan Schimanski <1Stein@gmx.de>
 
6
 * Copyright (C) 2001 Preston Brown <pbrown@kde.org>
 
7
 *
 
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.
 
12
 *
 
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.
 
17
 *
 
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.
 
21
 */
 
22
 
 
23
#include <iostream.h>
 
24
 
 
25
#include <qwidget.h>
 
26
#include <qtabdialog.h>
 
27
#include <qlayout.h>
 
28
#include <qwhatsthis.h>
 
29
 
 
30
#include <klocale.h>
 
31
#include <kdialog.h>
 
32
 
 
33
#include "kmix.h"
 
34
#include "kmixprefdlg.h"
 
35
#include "kmixerwidget.h"
 
36
#include "kmixprefdlg.h"
 
37
 
 
38
 
 
39
KMixPrefDlg::KMixPrefDlg()
 
40
{
 
41
   setCaption( i18n("KMix Preferences") );
 
42
 
 
43
   // general buttons
 
44
   m_generalTab = new QWidget( this );
 
45
   QBoxLayout *layout = new QVBoxLayout( m_generalTab );
 
46
     layout->setSpacing( KDialog::spacingHint() );
 
47
    layout->setMargin( KDialog::marginHint() );
 
48
 
 
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"));
 
52
 
 
53
   m_volumeChk = new QCheckBox(i18n("Enable System Tray &volume control"),
 
54
                               m_generalTab);
 
55
   layout->addWidget(m_volumeChk);
 
56
 
 
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 );
 
60
 
 
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"));
 
64
 
 
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"));
 
68
 
 
69
   addTab( m_generalTab, i18n("&General") );
 
70
 
 
71
   // dialog buttons
 
72
   setCancelButton( i18n("&Cancel") );
 
73
   setOkButton( i18n("&OK") );
 
74
   setApplyButton( i18n("&Apply") );
 
75
 
 
76
   connect( this, SIGNAL(applyButtonPressed()), this, SLOT(apply()) );
 
77
}
 
78
 
 
79
KMixPrefDlg::~KMixPrefDlg()
 
80
{
 
81
}
 
82
 
 
83
void KMixPrefDlg::apply()
 
84
{
 
85
   cerr << "KMixPrefDlg::apply()" << endl;
 
86
   emit signalApplied( this );
 
87
}
 
88
 
 
89
#include "kmixprefdlg.moc"