X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fgui%2Fqt4%2Fcomponents%2Fextended_panels.hpp;h=3d498c7dca0dc79ff6c277e01ea4611e6e3e1f75;hb=3439c052ecb9de8319e6ff0d3036fadc37d81b72;hp=60a2fd42506ff74798cdab0e95faada86341dd7b;hpb=2257a1a255effdc64412d2246f5e7804fc909ffe;p=vlc diff --git a/modules/gui/qt4/components/extended_panels.hpp b/modules/gui/qt4/components/extended_panels.hpp index 60a2fd4250..3d498c7dca 100644 --- a/modules/gui/qt4/components/extended_panels.hpp +++ b/modules/gui/qt4/components/extended_panels.hpp @@ -29,7 +29,7 @@ # include "config.h" #endif -#include +#include #include #include "ui/equalizer.h" @@ -37,6 +37,7 @@ #include "ui/v4l2.h" #include + #define BANDS 10 #define NUM_SP_CTRL 5 @@ -45,6 +46,7 @@ class QSignalMapper; class ExtVideo: public QObject { Q_OBJECT + friend class ExtendedDialog; public: ExtVideo( intf_thread_t *, QTabWidget * ); virtual ~ExtVideo(); @@ -53,12 +55,15 @@ private: Ui::ExtVideoWidget ui; QSignalMapper* filterMapper; intf_thread_t *p_intf; + vout_thread_t *p_vout; void initComboBoxItems( QObject* ); void setWidgetValue( QObject* ); - void ChangeVFiltersString( char *psz_name, vlc_bool_t b_add ); + void ChangeVFiltersString( const char *psz_name, bool b_add ); + void clean(); private slots: void updateFilters(); void updateFilterOptions(); + void cropChange(); }; class ExtV4l2 : public QWidget @@ -84,11 +89,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]; @@ -96,16 +104,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 @@ -134,25 +143,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() {}; @@ -161,6 +155,10 @@ private: QDoubleSpinBox *AVSpin; QDoubleSpinBox *subsSpin; QDoubleSpinBox *subSpeedSpin; + + bool b_userAction; + + void clean(); public slots: void update(); private slots: