3
* KMix -- KDE's full featured mini mixer
6
* Copyright Chrisitan Esken <esken@kde.org>
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.
41
#include "mixdevicewidget.h"
43
class MDWSwitch : public MixDeviceWidget
48
MDWSwitch( MixDevice* md,
49
bool small, Qt::Orientation orientation,
50
QWidget* parent = 0, ViewBase* mw = 0);
53
void addActionToPopup( KAction *action );
54
QSizePolicy sizePolicy() const;
55
void setBackgroundRole(QPalette::ColorRole m);
56
bool eventFilter( QObject* obj, QEvent* e );
61
void setDisabled(bool);
65
void setSwitch(bool value);
68
virtual void showContextMenu();
74
VerticalText *_labelV;
75
KLedButton *_switchLED;