5
5
* Copyright (C) 2000 Stefan Schimanski <1Stein@gmx.de>
6
* Copyright (C) 2003 Sven Leiber <s.leiber@web.de>
7
8
* This program is free software; you can redistribute it and/or
8
9
* modify it under the terms of the GNU Library General Public
17
18
* You should have received a copy of the GNU Library General Public
18
19
* License along with this program; if not, write to the Free
19
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20
* Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22
23
#ifndef KMIXDOCKWIDGET_H
23
24
#define KMIXDOCKWIDGET_H
25
26
#include <qwidget.h>
26
28
#include <ksystemtray.h>
33
class ViewDockAreaPopup;
34
class MixDeviceWidget;
31
37
class KMixDockWidget : public KSystemTray {
34
40
friend class KMixWindow;
37
KMixDockWidget(Mixer *, QWidget *parent=0, const char *name=0);
43
KMixDockWidget(Mixer *, QWidget *parent=0, const char *name=0, bool volumePopup=true);
41
void setVolumeTip(int, Volume);
46
void setErrorPixmap();
47
void ignoreNextEvent();
48
ViewDockAreaPopup* getDockAreaPopup();
51
ViewDockAreaPopup *_dockAreaPopup;
52
KAudioPlayer *_audioPlayer;
44
59
void createMasterVolWidget();
45
60
void mousePressEvent(QMouseEvent *);
46
61
void mouseReleaseEvent(QMouseEvent *);
47
void mouseDoubleClickEvent(QMouseEvent *);
62
void wheelEvent(QWheelEvent *);
48
63
void contextMenuAboutToShow( KPopupMenu* menu );
64
void toggleMinimizeRestore();
67
bool _playBeepOnVolumeChange;
68
bool _ignoreNextEvent;