3
* KMix -- KDE's full featured mini mixer
6
* Copyright (C) 2000 Stefan Schimanski <1Stein@gmx.de>
7
* 1996-2000 Christian Esken <esken@kde.org>
8
* Sven Fischer <herpes@kawo2.rwth-aachen.de>
10
* This program is free software; you can redistribute it and/or
11
* modify it under the terms of the GNU Library General Public
12
* License as published by the Free Software Foundation; either
13
* version 2 of the License, or (at your option) any later version.
15
* This program is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18
* Library General Public License for more details.
20
* You should have received a copy of the GNU Library General Public
21
* License along with this program; if not, write to the Free
22
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25
#ifndef MIXDEVICEWIDGET_H
26
#define MIXDEVICEWIDGET_H
35
class KActionCollection;
36
class KShortcutsDialog;
48
MixDeviceWidget( MixDevice* md,
49
bool small, Qt::Orientation orientation,
50
QWidget* parent = 0, ViewBase* mw = 0 );
53
void addActionToPopup( KAction *action );
55
virtual bool isDisabled() const;
56
MixDevice* mixDevice() { return m_mixdevice; }
58
virtual void setColors( QColor high, QColor low, QColor back );
59
virtual void setIcons( bool value );
60
virtual void setMutedColors( QColor high, QColor low, QColor back );
62
virtual bool isStereoLinked() const { return false; }
63
virtual void setStereoLinked( bool ) {}
64
virtual void setLabeled( bool );
65
virtual void setTicks( bool ) {}
66
const QString& iconName() const;
70
virtual void setDisabled( bool value );
71
virtual void defineKeys();
72
virtual void update();
73
virtual void showContextMenu();
76
void volumeChange( int );
77
virtual void setVolume( int channel, int volume );
78
virtual void setVolume( Volume volume );
81
MixDevice* m_mixdevice;
82
KActionCollection* _mdwActions;
83
KActionCollection* _mdwPopupActions;
86
Qt::Orientation _orientation;
88
KShortcutsDialog* m_shortcutsDialog;
92
void mousePressEvent( QMouseEvent *e );