~ubuntu-branches/ubuntu/natty/kdemultimedia/natty-proposed

« back to all changes in this revision

Viewing changes to kmix/gui/kmixdockwidget.h

  • Committer: Bazaar Package Importer
  • Author(s): Debian Qt/KDE Maintainers
  • Date: 2011-05-26 02:41:36 UTC
  • mfrom: (0.2.3 upstream)
  • mto: This revision was merged to the branch mainline in revision 108.
  • Revision ID: james.westby@ubuntu.com-20110526024136-jjwsigfy402jhupm
Tags: upstream-4.6.3
ImportĀ upstreamĀ versionĀ 4.6.3

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
 * Copyright (C) 2003 Sven Leiber <s.leiber@web.de>
 
7
 *
 
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.
 
12
 *
 
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.
 
17
 *
 
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.
 
21
 */
 
22
 
 
23
#ifndef KMIXDOCKWIDGET_H
 
24
#define KMIXDOCKWIDGET_H
 
25
 
 
26
class QString;
 
27
#include <QWidget>
 
28
 
 
29
#include <kstatusnotifieritem.h>
 
30
 
 
31
class KMixWindow;
 
32
class Mixer;
 
33
class ViewDockAreaPopup;
 
34
class Volume;
 
35
 
 
36
namespace Phonon
 
37
{
 
38
    class MediaObject;
 
39
}
 
40
 
 
41
class KMixDockWidget : public KStatusNotifierItem
 
42
{
 
43
   Q_OBJECT
 
44
 
 
45
   friend class KMixWindow;
 
46
 
 
47
 public:
 
48
   explicit KMixDockWidget(KMixWindow *parent,bool volumePopup);
 
49
   ~KMixDockWidget();
 
50
 
 
51
   void setErrorPixmap();
 
52
   void ignoreNextEvent();
 
53
   //ViewDockAreaPopup* getDockAreaPopup();
 
54
 
 
55
 signals:
 
56
   void newMasterSelected();
 
57
 
 
58
 public slots:
 
59
   void setVolumeTip();
 
60
   void updatePixmap();
 
61
   void activate(const QPoint &pos);
 
62
 
 
63
 protected:
 
64
   void createMasterVolWidget();
 
65
   void createActions();
 
66
//    void trayToolTipEvent(QHelpEvent *e );
 
67
   void toggleMinimizeRestore();
 
68
 
 
69
 private:
 
70
   //ViewDockAreaPopup *_referenceWidget;
 
71
   KMenu *_referenceWidget;
 
72
   QWidgetAction *_volWA;
 
73
   Phonon::MediaObject *_audioPlayer;
 
74
   bool _playBeepOnVolumeChange;
 
75
   bool _ignoreNextEvent;
 
76
   int  _oldToolTipValue;
 
77
   char _oldPixmapType;
 
78
   bool _volumePopup;
 
79
   KMixWindow* _kmixMainWindow;
 
80
   Mixer *m_mixer;
 
81
 
 
82
   bool _contextMenuWasOpen;
 
83
 
 
84
 
 
85
 private slots:
 
86
   void dockMute();
 
87
   void trayWheelEvent(int delta);
 
88
   //void kmixSystrayAction(QSystemTrayIcon::ActivationReason);
 
89
   void selectMaster();
 
90
   void handleNewMaster(QString& soundcard_id, QString& channel_id);
 
91
   void contextMenuAboutToShow();
 
92
   void activateMenuOrWindow(bool, const QPoint &);
 
93
};
 
94
 
 
95
#endif