2
* KMix -- KDE's full featured mini mixer
5
* Copyright (C) 2000 Stefan Schimanski <1Stein@gmx.de>
6
* Copyright (C) 2003 Sven Leiber <s.leiber@web.de>
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23
#ifndef KMIXDOCKWIDGET_H
24
#define KMIXDOCKWIDGET_H
29
#include <kstatusnotifieritem.h>
33
//class ViewDockAreaPopup;
41
class KMixDockWidget : public KStatusNotifierItem
45
friend class KMixWindow;
48
explicit KMixDockWidget(KMixWindow *parent, QWidget *referenceWidget, bool volumePopup);
51
void setErrorPixmap();
52
void ignoreNextEvent();
53
//ViewDockAreaPopup* getDockAreaPopup();
56
void newMasterSelected();
61
void activate(const QPoint &pos);
64
void createMasterVolWidget();
66
// void trayToolTipEvent(QHelpEvent *e );
67
void toggleMinimizeRestore();
70
QWidget *_referenceWidget;
71
Phonon::MediaObject *_audioPlayer;
72
bool _playBeepOnVolumeChange;
73
bool _ignoreNextEvent;
77
KMixWindow* _kmixMainWindow;
82
void trayWheelEvent(int delta);
83
//void kmixSystrayAction(QSystemTrayIcon::ActivationReason);
85
void handleNewMaster(QString& soundcard_id, QString& channel_id);
86
void contextMenuAboutToShow();