}
}
+void ExtVideo::clean()
+{
+ ui.cropTopPx->setValue( 0 );
+ ui.cropBotPx->setValue( 0 );
+ ui.cropLeftPx->setValue( 0 );
+ ui.cropRightPx->setValue( 0 );
+}
+
void ExtVideo::ChangeVFiltersString( char *psz_name, bool b_add )
{
char *psz_parser, *psz_string;
{
}
+void Equalizer::clean()
+{
+ ui.enableCheck->setChecked( false );
+ enable();
+}
/* Write down initial values */
void Equalizer::updateUIFromCore()
{
update();
}
+void SyncControls::clean()
+{
+ AVSpin->setValue( 0.0 );
+ subsSpin->setValue( 0.0 );
+ subSpeedSpin->setValue( 1.0 );
+}
+
void SyncControls::update()
{
int64_t i_delay;
class ExtVideo: public QObject
{
Q_OBJECT
+ friend class ExtendedDialog;
public:
ExtVideo( intf_thread_t *, QTabWidget * );
virtual ~ExtVideo();
void initComboBoxItems( QObject* );
void setWidgetValue( QObject* );
void ChangeVFiltersString( char *psz_name, bool b_add );
+ void clean();
private slots:
void updateFilters();
void updateFilterOptions();
class Equalizer: public QWidget
{
Q_OBJECT
+ friend class ExtendedDialog;
public:
Equalizer( intf_thread_t *, QWidget * );
virtual ~Equalizer();
void addCallbacks( aout_instance_t * );
intf_thread_t *p_intf;
+ void clean();
private slots:
void enable(bool);
void enable();
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() {};
QDoubleSpinBox *AVSpin;
QDoubleSpinBox *subsSpin;
QDoubleSpinBox *subSpeedSpin;
+ void clean();
public slots:
void update();
private slots:
#include "dialogs/extended.hpp"
#include "dialogs_provider.hpp"
-#include "components/extended_panels.hpp"
-
#include "main_interface.hpp"
+#include "input_manager.hpp"
+
#include <QTabWidget>
#include <QGridLayout>
QHBoxLayout *audioLayout = new QHBoxLayout( audioWidget );
QTabWidget *audioTab = new QTabWidget( audioWidget );
- Equalizer *equal = new Equalizer( p_intf, audioTab );
+ equal = new Equalizer( p_intf, audioTab );
audioTab->addTab( equal, qtr( "Graphic Equalizer" ) );
Spatializer *spatial = new Spatializer( p_intf, audioTab );
QHBoxLayout *videoLayout = new QHBoxLayout( videoWidget );
QTabWidget *videoTab = new QTabWidget( videoWidget );
- ExtVideo *videoEffect = new ExtVideo( p_intf, videoTab );
+ videoEffect = new ExtVideo( p_intf, videoTab );
videoLayout->addWidget( videoTab );
videoTab->setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Maximum );
mainTabW->addTab( videoWidget, qtr( "Video Effects" ) );
- SyncControls *syncW = new SyncControls( p_intf, videoTab );
+ syncW = new SyncControls( p_intf, videoTab );
mainTabW->addTab( syncW, qtr( "Synchronization" ) );
if( module_Exists( p_intf, "v4l2" ) )
startPoint.setY( p_mi->y() + p_mi->frameGeometry().height() );
}
readSettings( "EPanel", QSize( 400, 280 ), startPoint );
+
+ CONNECT( THEMIM->getIM(), statusChanged( int ), this, changedItem( int ) );
+
}
ExtendedDialog::~ExtendedDialog()
writeSettings( "EPanel" );
}
+void ExtendedDialog::changedItem( int i_status )
+{
+ if( i_status != END_S ) return;
+ syncW->clean();
+ videoEffect->clean();
+ equal->clean();
+}
#include "util/qvlcframe.hpp"
+#include "components/extended_panels.hpp"
+
class ExtendedDialog : public QVLCFrame
{
Q_OBJECT;
private:
ExtendedDialog( intf_thread_t * );
static ExtendedDialog *instance;
+ SyncControls *syncW;
+ ExtVideo *videoEffect;
+ Equalizer *equal;
+private slots:
+ void changedItem( int );
};
#endif
+