~ubuntu-branches/ubuntu/breezy/kdemultimedia/breezy

« back to all changes in this revision

Viewing changes to kmix/kmixdockwidget.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2005-03-24 04:48:58 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20050324044858-8ff88o9jxej6ii3d
Tags: 4:3.4.0-0ubuntu3
Add kubuntu_02_hide_arts_menu_entries.diff to hide artsbuilder and artscontrol k-menu entries

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 *
4
4
 *
5
5
 * Copyright (C) 2000 Stefan Schimanski <1Stein@gmx.de>
 
6
 * Copyright (C) 2003 Sven Leiber <s.leiber@web.de>
6
7
 *
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
16
17
 *
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.
20
21
 */
21
22
 
22
23
#ifndef KMIXDOCKWIDGET_H
23
24
#define KMIXDOCKWIDGET_H
24
25
 
25
26
#include <qwidget.h>
 
27
#include <qvbox.h>
26
28
#include <ksystemtray.h>
27
29
 
28
30
class Mixer;
29
31
class QFrame;
 
32
class KAudioPlayer;
 
33
class ViewDockAreaPopup;
 
34
class MixDeviceWidget;
 
35
class Volume;
30
36
 
31
37
class KMixDockWidget : public KSystemTray  {
32
38
   Q_OBJECT
33
39
 
34
40
   friend class KMixWindow;
35
41
 
36
 
 public: 
37
 
   KMixDockWidget(Mixer *, QWidget *parent=0, const char *name=0);
 
42
 public:
 
43
   KMixDockWidget(Mixer *, QWidget *parent=0, const char *name=0, bool volumePopup=true);
38
44
   ~KMixDockWidget();
39
45
 
40
 
 protected slots:  
41
 
   void setVolumeTip(int, Volume);
 
46
   void setErrorPixmap();
 
47
   void ignoreNextEvent();
 
48
   ViewDockAreaPopup* getDockAreaPopup();
 
49
 
 
50
        Mixer *m_mixer;
 
51
   ViewDockAreaPopup *_dockAreaPopup;
 
52
   KAudioPlayer *_audioPlayer;
 
53
 
 
54
 public slots:
 
55
   void setVolumeTip();
 
56
   void updatePixmap();
42
57
 
43
58
 protected:
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();
49
65
 
50
66
 private:
51
 
   Mixer *m_mixer;
52
 
   QFrame *masterVol;   
 
67
   bool _playBeepOnVolumeChange;
 
68
   bool _ignoreNextEvent;
 
69
   int  _oldToolTipValue;
 
70
   char _oldPixmapType;
 
71
   bool _volumePopup;
 
72
 private slots:
 
73
   void dockMute();
53
74
};
54
75
 
55
76
#endif