diff options
Diffstat (limited to 'src/app/volumeAction.h')
-rw-r--r-- | src/app/volumeAction.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/app/volumeAction.h b/src/app/volumeAction.h new file mode 100644 index 0000000..6c0c376 --- /dev/null +++ b/src/app/volumeAction.h @@ -0,0 +1,29 @@ +// (C) 2005 Max Howell ([email protected]) +// See COPYING file for licensing information + +#ifndef CODEINE_VOLUME_ACTION_H +#define CODEINE_VOLUME_ACTION_H + +#include <kactionclasses.h> + +class VolumeAction : public KToggleAction +{ + Q_OBJECT + + QWidget *m_anchor; + class VolumeSlider *m_widget; + + virtual bool eventFilter( QObject *o, QEvent *e ); + + virtual int plug( QWidget*, int ); + +private slots: + void toggled( bool ); + void sliderMoved( int ); + void sliderReleased() { setChecked( false ); toggled( false ); } + +public: + VolumeAction( KToolBar *anchor, KActionCollection *ac ); +}; + +#endif |