~ubuntu-branches/ubuntu/hoary/kdemultimedia/hoary

« back to all changes in this revision

Viewing changes to kmix/kledbutton.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Schulze
  • Date: 2003-01-22 15:00:51 UTC
  • Revision ID: james.westby@ubuntu.com-20030122150051-uihwkdoxf15mi1tn
Tags: upstream-2.2.2
ImportĀ upstreamĀ versionĀ 2.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * KMix -- KDE's full featured mini mixer
 
3
 *
 
4
 *
 
5
 * Copyright (C) 2000 Stefan Schimanski <1Stein@gmx.de>
 
6
 *
 
7
 * This program is free software; you can redistribute it and/or
 
8
 * modify it under the terms of the GNU Library General Public
 
9
 * License as published by the Free Software Foundation; either
 
10
 * version 2 of the License, or (at your option) any later version.
 
11
 *
 
12
 * This program is distributed in the hope that it will be useful,
 
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
15
 * Library General Public License for more details.
 
16
 *
 
17
 * You should have received a copy of the GNU Library General Public
 
18
 * License along with this program; if not, write to the Free
 
19
 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
20
 */
 
21
 
 
22
#ifndef KLEDBUTTON_H
 
23
#define KLEDBUTTON_H
 
24
 
 
25
#include <qwidget.h>
 
26
#include <kled.h>
 
27
 
 
28
/**
 
29
  *@author Stefan Schimanski
 
30
  */
 
31
 
 
32
class KLedButton : public KLed  {
 
33
   Q_OBJECT
 
34
  public: 
 
35
   KLedButton(const QColor &col=Qt::green, QWidget *parent=0, const char *name=0);
 
36
   KLedButton(const QColor& col, KLed::State st, KLed::Look look, KLed::Shape shape,
 
37
              QWidget *parent=0, const char *name=0);
 
38
   ~KLedButton();       
 
39
 
 
40
  signals:
 
41
   void stateChanged( bool newState );
 
42
 
 
43
  protected:    
 
44
   void mousePressEvent ( QMouseEvent *e );
 
45
};
 
46
 
 
47
#endif