From: Jean-Philippe Andre Date: Sat, 13 Sep 2008 19:31:00 +0000 (-0400) Subject: Qt: Access-filter 'record' does not exist anymore. X-Git-Tag: 1.0.0-pre1~3288 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=b5e274fa1b9a78af525e0b10f80ab3936ab0b97d;p=vlc Qt: Access-filter 'record' does not exist anymore. We need to reimplement an on-the-fly option to record streams. I know this commit is crappy... --- diff --git a/modules/gui/qt4/components/interface_widgets.cpp b/modules/gui/qt4/components/interface_widgets.cpp index 4edc1271f9..f99a660991 100644 --- a/modules/gui/qt4/components/interface_widgets.cpp +++ b/modules/gui/qt4/components/interface_widgets.cpp @@ -350,11 +350,13 @@ AdvControlsWidget::AdvControlsWidget( intf_thread_t *_p_i, bool b_fsCreation = f #endif /* Record Button */ +#if 0 recordButton = new QPushButton; setupSmallButton( recordButton ); advLayout->addWidget( recordButton ); BUTTON_SET_ACT_I( recordButton, "", record, qtr( "Record" ), record() ); +#endif /* Snapshot Button */ snapshotButton = new QPushButton; @@ -374,16 +376,19 @@ void AdvControlsWidget::enableInput( bool enable ) { input_item_t *p_item = input_GetItem( THEMIM->getInput() ); i_input_id = p_item->i_id; - +#if 0 recordButton->setVisible( var_GetBool( THEMIM->getInput(), "can-record" ) ); } else { recordButton->setVisible( false ); +#endif } ABButton->setEnabled( enable ); +#if 0 recordButton->setEnabled( enable ); +#endif if( enable && ( i_last_input_id != i_input_id ) ) { @@ -464,6 +469,7 @@ void AdvControlsWidget::AtoBLoop( float f_pos, int i_time, int i_length ) } } +// TODO: On-the-fly record needs to be reimplemented void AdvControlsWidget::record() { input_thread_t *p_input = THEMIM->getInput(); diff --git a/modules/gui/qt4/components/interface_widgets.hpp b/modules/gui/qt4/components/interface_widgets.hpp index 85d50e1ce8..9894185dd1 100644 --- a/modules/gui/qt4/components/interface_widgets.hpp +++ b/modules/gui/qt4/components/interface_widgets.hpp @@ -133,7 +133,10 @@ public: private: intf_thread_t *p_intf; - QPushButton *recordButton, *ABButton; +#if 0 + QPushButton *recordButton; +#endif + QPushButton *ABButton; QPushButton *snapshotButton, *frameButton; static mtime_t timeA, timeB; diff --git a/modules/gui/qt4/components/simple_preferences.cpp b/modules/gui/qt4/components/simple_preferences.cpp index e7c9e10781..9b7fcaaa3e 100644 --- a/modules/gui/qt4/components/simple_preferences.cpp +++ b/modules/gui/qt4/components/simple_preferences.cpp @@ -389,10 +389,8 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, free( psz ); ui.timeshiftBox->setChecked( qs_filter.contains( "timeshift" ) ); ui.dumpBox->setChecked( qs_filter.contains( "dump" ) ); - ui.recordBox->setChecked( qs_filter.contains( "record" ) ); ui.bandwidthBox->setChecked( qs_filter.contains( "bandwidth" ) ); - optionWidgets.append( ui.recordBox ); optionWidgets.append( ui.dumpBox ); optionWidgets.append( ui.bandwidthBox ); optionWidgets.append( ui.timeshiftBox ); @@ -619,7 +617,6 @@ void SPrefsPanel::apply() bool b_first = true; qs_filter.clear(); - saveBox( "record", qobject_cast(optionWidgets[recordChB]) ); saveBox( "dump", qobject_cast(optionWidgets[dumpChB]) ); saveBox( "timeshift", qobject_cast(optionWidgets[timeshiftChB]) ); saveBox( "bandwidth", qobject_cast(optionWidgets[bandwidthChB] ) ); diff --git a/modules/gui/qt4/components/simple_preferences.hpp b/modules/gui/qt4/components/simple_preferences.hpp index afff9f4bee..e3414ab7cc 100644 --- a/modules/gui/qt4/components/simple_preferences.hpp +++ b/modules/gui/qt4/components/simple_preferences.hpp @@ -72,7 +72,7 @@ enum { audioOutCoB, normalizerChB, volLW }; -enum { recordChB, dumpChB, bandwidthChB, timeshiftChB, inputLE, cachingCoB }; +enum { dumpChB, bandwidthChB, timeshiftChB, inputLE, cachingCoB }; enum { skinRB, qtRB }; class ConfigControl; diff --git a/modules/gui/qt4/ui/sprefs_input.ui b/modules/gui/qt4/ui/sprefs_input.ui index 235d7a6382..835b06581a 100644 --- a/modules/gui/qt4/ui/sprefs_input.ui +++ b/modules/gui/qt4/ui/sprefs_input.ui @@ -188,13 +188,6 @@ - - - - _("Record") - - - @@ -225,7 +218,6 @@ RTSP_TCPBox systemCodecBox timeshiftBox - recordBox dumpBox bandwidthBox