defuze.me
Client
|
00001 /************************************************************************** 00002 ** defuze.me Epitech Innovative Project 00003 ** 00004 ** Copyright 2010-2011 00005 ** Athena Calmettes - Jocelyn De La Rosa - Francois Gaillard 00006 ** Adrien Jarthon - Alexandre Moore - Luc Peres - Arnaud Sellier 00007 ** 00008 ** All rights reserved. 00009 **************************************************************************/ 00010 00011 #ifndef AUDIOEFFECTVOLUMEWIDGET_HPP 00012 #define AUDIOEFFECTVOLUMEWIDGET_HPP 00013 00014 #include "ui_audioeffectvolumewidget.h" 00015 #include "audioeffectwidget.hpp" 00016 #include "audioeffectvolume.hpp" 00017 00018 class AudioEffectVolumeWidget : public AudioEffectWidget, private Ui::AudioEffectVolumeWidget 00019 { 00020 Q_OBJECT 00021 00022 public: 00023 explicit AudioEffectVolumeWidget(Audio::AudioEffectVolume *effect, QWidget *parent = 0); 00024 void setLevels(double left, double right); 00025 signals: 00026 void volumeSlider_moved(int position); 00027 public slots: 00028 void setVolume(int volume); 00029 private slots: 00030 void on_muteButton_clicked(); 00031 void on_volumeSlider_valueChanged(int position); 00032 00033 private: 00034 bool _isMuted; 00035 }; 00036 00037 #endif // AUDIOEFFECTVOLUMEWIDGET_HPP