summaryrefslogtreecommitdiffstats
path: root/src/app/volumeAction.h
blob: 26453554748254fda20e375ca2fe56c9407cd505 (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
// (C) 2005 Max Howell ([email protected])
// See COPYING file for licensing information

#ifndef CODEINE_VOLUME_ACTION_H
#define CODEINE_VOLUME_ACTION_H

#include <tdeactionclasses.h>

class VolumeAction : public TDEToggleAction
{
   TQ_OBJECT

   TQWidget *m_anchor;
   class VolumeSlider *m_widget;

   virtual bool eventFilter( TQObject *o, TQEvent *e );

   virtual int plug( TQWidget*, int );

public slots:
   // Update Slider and Label to \a volume
   void setVolume(int volume);

private slots:
   void toggled( bool );
   void sliderMoved(int);

public:
   VolumeAction( TDEToolBar *anchor, TDEActionCollection *ac );
};

#endif