#include "qt4.hpp"
#include <QWidget>
+#include <QFrame>
#include <QToolButton>
-#define I_PLAY_TOOLTIP N_("Play\nIf the playlist is empty, open a media")
-
class QLabel;
class QSpinBox;
class QAbstractSlider;
void setIcons( bool, bool );
};
-class TeletextController : public QWidget
-{
- Q_OBJECT
- friend class AbstractController;
-private:
- QToolButton *telexTransparent, *telexOn;
- QSpinBox *telexPage;
-
-private slots:
- void enableTeletextButtons( bool );
- void toggleTeletextTransparency( bool );
-};
-
#define VOLUME_MAX 200
-class VolumeClickHandler;
-
class SoundWidget : public QWidget
{
Q_OBJECT
- friend class VolumeClickHandler;
public:
- SoundWidget( QWidget *parent, intf_thread_t *_p_i, bool );
+ SoundWidget( QWidget *parent, intf_thread_t *_p_i, bool,
+ bool b_special = false );
private:
intf_thread_t *p_intf;
QLabel *volMuteLabel;
QAbstractSlider *volumeSlider;
- VolumeClickHandler *hVolLabel;
bool b_my_volume;
-
+ QMenu *volumeMenu;
+ virtual bool eventFilter( QObject *obj, QEvent *e );
protected slots:
void updateVolume( int );
void updateVolume( void );
-};
-
-class VolumeClickHandler : public QObject
-{
-public:
- VolumeClickHandler( intf_thread_t *_p_intf, SoundWidget *_m ) : QObject(_m)
- {m = _m; p_intf = _p_intf; }
- virtual ~VolumeClickHandler() {};
- virtual bool eventFilter( QObject *obj, QEvent *e );
-private:
- SoundWidget *m;
- intf_thread_t *p_intf;
+ void showVolumeMenu( QPoint pos );
};
#endif