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., 675 Mass Ave, Cambridge, MA 02139, USA.
25
#ifndef MIXDEVICEWIDGET_H
26
#define MIXDEVICEWIDGET_H
28
#include <kpanelapplet.h>
34
#include <qrangecontrol.h>
41
class KActionCollection;
54
MixDeviceWidget( Mixer *mixer, MixDevice* md,
55
bool showMuteLED, bool showRecordLED,
56
bool small, KPanelApplet::Direction dir,
57
QWidget* parent = 0, const char* name = 0);
63
bool isStereoLinked() { return m_linked; };
66
void setStereoLinked( bool value );
67
void setLabeled( bool value );
68
void setTicks( bool ticks );
69
void setIcons( bool value );
70
void setColors( QColor high, QColor low, QColor back );
71
void setMutedColors( QColor high, QColor low, QColor back );
73
KGlobalAccel *keys(void);
78
void toggleStereoLinked();
80
void setDisabled() { setDisabled( true ); };
81
void setDisabled( bool value );
85
void newVolume( int num, Volume volume );
86
void newRecsrc( int num, bool on );
88
void rightMouseClick();
91
void setRecsrc( bool value );
92
void setMuted( bool value );
93
void setUnmuted( bool value) { setMuted( !value ); };
94
void setVolume( int channel, int volume );
95
void setVolume( Volume volume );
98
void volumeChange( int );
100
void increaseVolume();
101
void decreaseVolume();
103
QPixmap getIcon( int icon );
104
void setIcon( int icontype );
106
void mousePressEvent( QMouseEvent *e );
107
bool eventFilter( QObject*, QEvent* );
109
void createWidgets( bool showMuteLED, bool showRecordLED );
112
MixDevice *m_mixdevice;
113
QTimer *m_updateTimer;
114
QList<QWidget> m_sliders;
115
KActionCollection *m_actions;
116
KGlobalAccel *m_keys;
120
KPanelApplet::Direction m_direction;
124
KLedButton *m_muteLED;
125
KLedButton *m_recordLED;