]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/components/controller_widget.hpp
Qt: various string fixes and consistencies in the ui
[vlc] / modules / gui / qt4 / components / controller_widget.hpp
index 38bb76f386a7ca235bedf0964f39fe0129d5eae1..b43c1aeb33c5c7218606750a12d371410b101e8f 100644 (file)
 #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;
@@ -61,52 +60,26 @@ private slots:
     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