X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fgui%2Fqt4%2Fcomponents%2Fextended_panels.hpp;h=a6a3e244de10b1598a26ccdb05072286c8b69b6a;hb=f7d3ec8c80d06ad49a38bdba7761547580cfe2fd;hp=3d8bb637b5238283a0607a160f435e8df9b04e2e;hpb=449fd28aaf007c6411251dae9d0dbfdc65b135d1;p=vlc diff --git a/modules/gui/qt4/components/extended_panels.hpp b/modules/gui/qt4/components/extended_panels.hpp index 3d8bb637b5..a6a3e244de 100644 --- a/modules/gui/qt4/components/extended_panels.hpp +++ b/modules/gui/qt4/components/extended_panels.hpp @@ -29,14 +29,14 @@ # include "config.h" #endif -#include -#include +#include #include "ui/equalizer.h" #include "ui/video_effects.h" #include "ui/v4l2.h" #include + #define BANDS 10 #define NUM_SP_CTRL 5 @@ -45,8 +45,9 @@ class QSignalMapper; class ExtVideo: public QObject { Q_OBJECT + friend class ExtendedDialog; public: - ExtVideo( intf_thread_t *, QTabWidget * ); + ExtVideo( struct intf_thread_t *, QTabWidget * ); virtual ~ExtVideo(); /*void gotoConf( QObject* );*/ private: @@ -56,7 +57,8 @@ private: vout_thread_t *p_vout; void initComboBoxItems( QObject* ); void setWidgetValue( QObject* ); - void ChangeVFiltersString( char *psz_name, bool b_add ); + void ChangeVFiltersString( const char *psz_name, bool b_add ); + void clean(); private slots: void updateFilters(); void updateFilterOptions(); @@ -86,11 +88,14 @@ private slots: class Equalizer: public QWidget { Q_OBJECT + friend class ExtendedDialog; public: Equalizer( intf_thread_t *, QWidget * ); virtual ~Equalizer(); QComboBox *presetsComboBox; + char * createValuesFromPreset( int i_preset ); + void updateUIFromCore(); private: Ui::EqualizerWidget ui; QSlider *bands[BANDS]; @@ -98,16 +103,17 @@ private: void delCallbacks( aout_instance_t * ); void addCallbacks( aout_instance_t * ); - void setValues( char *, float ); intf_thread_t *p_intf; + void clean(); private slots: void enable(bool); void enable(); void set2Pass(); void setPreamp(); - void setBand(); - void setPreset(int); + void setCoreBands(); + void setCorePreset(int); + void updateUISliderValues( int ); }; class Spatializer: public QWidget @@ -136,25 +142,10 @@ private slots: void setInitValues(); }; -class ExtendedControls: public QWidget -{ - Q_OBJECT -public: - ExtendedControls( intf_thread_t *, QWidget * ) {}; - virtual ~ExtendedControls() {}; - -private: - intf_thread_t *p_intf; -private slots: - void slower() {}; - void faster() {}; - void normal() {}; - void snapshot() {}; -}; - class SyncControls : public QWidget { Q_OBJECT + friend class ExtendedDialog; public: SyncControls( intf_thread_t *, QWidget * ); virtual ~SyncControls() {}; @@ -163,6 +154,10 @@ private: QDoubleSpinBox *AVSpin; QDoubleSpinBox *subsSpin; QDoubleSpinBox *subSpeedSpin; + + bool b_userAction; + + void clean(); public slots: void update(); private slots: