Commit c0774663 authored by Valentin Deniaud's avatar Valentin Deniaud Committed by Thomas Guillem

qt: add pitch shifting slider under new Advanced tab

Signed-off-by: Thomas Guillem's avatarThomas Guillem <thomas@gllm.fr>
parent 2adbdef3
......@@ -1310,6 +1310,19 @@ StereoWidener::StereoWidener( intf_thread_t *p_intf, QWidget *parent )
build();
}
/**********************************************************************
* Advanced
**********************************************************************/
PitchShifter::PitchShifter( intf_thread_t *p_intf, QWidget *parent )
: AudioFilterControlWidget( p_intf, parent, "pitch", "scaletempo" )
{
i_smallfont = -1;
controls.append( { "pitch-shift", N_("Adjust pitch"), "semitones",
-12.0, 12.0, 0.0, 0.25, 1.0 } );
build();
}
#include <QToolButton>
#include <QGridLayout>
......
......@@ -216,6 +216,14 @@ public:
StereoWidener( intf_thread_t *, QWidget * );
};
class PitchShifter: public AudioFilterControlWidget
{
Q_OBJECT
public:
PitchShifter( intf_thread_t *, QWidget * );
};
class SyncWidget : public QWidget
{
Q_OBJECT
......
......@@ -80,6 +80,19 @@ ExtendedDialog::ExtendedDialog( intf_thread_t *_p_intf )
audioTab->addTab( stereowiden, qtr( "Stereo Widener" ) );
audioLayout->addWidget( audioTab );
QWidget *advancedTab = new QWidget;
QGridLayout *advancedTabLayout = new QGridLayout;
PitchShifter *pitchshifter = new PitchShifter( p_intf, audioTab );
CONNECT( pitchshifter, configChanged(QString, QVariant), this, putAudioConfig(QString, QVariant) );
advancedTabLayout->setColumnStretch( 1, 10 );
advancedTabLayout->addWidget( pitchshifter );
advancedTab->setLayout( advancedTabLayout );
audioTab->addTab( advancedTab, qtr( "Advanced" ) );
audioLayout->addWidget( audioTab );
mainTabW->insertTab( AUDIO_TAB, audioWidget, qtr( "Audio Effects" ) );
/* Video Effects */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment