summaryrefslogtreecommitdiff
path: root/src/ui/alsa/alsatray.h
blob: 8f518fa1c437983ddfe42053785eb080c1424556 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#pragma once

#include <ksystemtray.h>

class AlsaModel;
class AlsaDevice;
class AlsaMixerWindow;
class AlsaPopup;

class AlsaTray : public KSystemTray
{
    TQ_OBJECT
public:
    AlsaTray( AlsaModel *model, AlsaMixerWindow *win, TQWidget *parent = 0 );

public slots:
    void updateIcon();

protected:
    void mousePressEvent( TQMouseEvent *e );
    void wheelEvent( TQWheelEvent *e );
    void contextMenuAboutToShow( TDEPopupMenu *menu );

private slots:
    void onPreferredChanged( AlsaDevice *dev );

private:
    void middleClickMute();

private:
    AlsaModel       *m_model;
    AlsaMixerWindow *m_win;
    AlsaDevice      *m_output;
    AlsaPopup       *m_popup;
};