Commit b5e274fa authored by Jean-Philippe Andre's avatar Jean-Philippe Andre

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...
parent 7c9a664e
...@@ -350,11 +350,13 @@ AdvControlsWidget::AdvControlsWidget( intf_thread_t *_p_i, bool b_fsCreation = f ...@@ -350,11 +350,13 @@ AdvControlsWidget::AdvControlsWidget( intf_thread_t *_p_i, bool b_fsCreation = f
#endif #endif
/* Record Button */ /* Record Button */
#if 0
recordButton = new QPushButton; recordButton = new QPushButton;
setupSmallButton( recordButton ); setupSmallButton( recordButton );
advLayout->addWidget( recordButton ); advLayout->addWidget( recordButton );
BUTTON_SET_ACT_I( recordButton, "", record, BUTTON_SET_ACT_I( recordButton, "", record,
qtr( "Record" ), record() ); qtr( "Record" ), record() );
#endif
/* Snapshot Button */ /* Snapshot Button */
snapshotButton = new QPushButton; snapshotButton = new QPushButton;
...@@ -374,16 +376,19 @@ void AdvControlsWidget::enableInput( bool enable ) ...@@ -374,16 +376,19 @@ void AdvControlsWidget::enableInput( bool enable )
{ {
input_item_t *p_item = input_GetItem( THEMIM->getInput() ); input_item_t *p_item = input_GetItem( THEMIM->getInput() );
i_input_id = p_item->i_id; i_input_id = p_item->i_id;
#if 0
recordButton->setVisible( var_GetBool( THEMIM->getInput(), "can-record" ) ); recordButton->setVisible( var_GetBool( THEMIM->getInput(), "can-record" ) );
} }
else else
{ {
recordButton->setVisible( false ); recordButton->setVisible( false );
#endif
} }
ABButton->setEnabled( enable ); ABButton->setEnabled( enable );
#if 0
recordButton->setEnabled( enable ); recordButton->setEnabled( enable );
#endif
if( enable && ( i_last_input_id != i_input_id ) ) 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 ) ...@@ -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() void AdvControlsWidget::record()
{ {
input_thread_t *p_input = THEMIM->getInput(); input_thread_t *p_input = THEMIM->getInput();
......
...@@ -133,7 +133,10 @@ public: ...@@ -133,7 +133,10 @@ public:
private: private:
intf_thread_t *p_intf; intf_thread_t *p_intf;
QPushButton *recordButton, *ABButton; #if 0
QPushButton *recordButton;
#endif
QPushButton *ABButton;
QPushButton *snapshotButton, *frameButton; QPushButton *snapshotButton, *frameButton;
static mtime_t timeA, timeB; static mtime_t timeA, timeB;
......
...@@ -389,10 +389,8 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -389,10 +389,8 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
free( psz ); free( psz );
ui.timeshiftBox->setChecked( qs_filter.contains( "timeshift" ) ); ui.timeshiftBox->setChecked( qs_filter.contains( "timeshift" ) );
ui.dumpBox->setChecked( qs_filter.contains( "dump" ) ); ui.dumpBox->setChecked( qs_filter.contains( "dump" ) );
ui.recordBox->setChecked( qs_filter.contains( "record" ) );
ui.bandwidthBox->setChecked( qs_filter.contains( "bandwidth" ) ); ui.bandwidthBox->setChecked( qs_filter.contains( "bandwidth" ) );
optionWidgets.append( ui.recordBox );
optionWidgets.append( ui.dumpBox ); optionWidgets.append( ui.dumpBox );
optionWidgets.append( ui.bandwidthBox ); optionWidgets.append( ui.bandwidthBox );
optionWidgets.append( ui.timeshiftBox ); optionWidgets.append( ui.timeshiftBox );
...@@ -619,7 +617,6 @@ void SPrefsPanel::apply() ...@@ -619,7 +617,6 @@ void SPrefsPanel::apply()
bool b_first = true; bool b_first = true;
qs_filter.clear(); qs_filter.clear();
saveBox( "record", qobject_cast<QCheckBox *>(optionWidgets[recordChB]) );
saveBox( "dump", qobject_cast<QCheckBox *>(optionWidgets[dumpChB]) ); saveBox( "dump", qobject_cast<QCheckBox *>(optionWidgets[dumpChB]) );
saveBox( "timeshift", qobject_cast<QCheckBox *>(optionWidgets[timeshiftChB]) ); saveBox( "timeshift", qobject_cast<QCheckBox *>(optionWidgets[timeshiftChB]) );
saveBox( "bandwidth", qobject_cast<QCheckBox *>(optionWidgets[bandwidthChB] ) ); saveBox( "bandwidth", qobject_cast<QCheckBox *>(optionWidgets[bandwidthChB] ) );
......
...@@ -72,7 +72,7 @@ enum { ...@@ -72,7 +72,7 @@ enum {
audioOutCoB, audioOutCoB,
normalizerChB, normalizerChB,
volLW }; volLW };
enum { recordChB, dumpChB, bandwidthChB, timeshiftChB, inputLE, cachingCoB }; enum { dumpChB, bandwidthChB, timeshiftChB, inputLE, cachingCoB };
enum { skinRB, qtRB }; enum { skinRB, qtRB };
class ConfigControl; class ConfigControl;
......
...@@ -188,13 +188,6 @@ ...@@ -188,13 +188,6 @@
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="QCheckBox" name="recordBox" >
<property name="text" >
<string>_("Record")</string>
</property>
</widget>
</item>
<item> <item>
<widget class="QCheckBox" name="dumpBox" > <widget class="QCheckBox" name="dumpBox" >
<property name="text" > <property name="text" >
...@@ -225,7 +218,6 @@ ...@@ -225,7 +218,6 @@
<tabstop>RTSP_TCPBox</tabstop> <tabstop>RTSP_TCPBox</tabstop>
<tabstop>systemCodecBox</tabstop> <tabstop>systemCodecBox</tabstop>
<tabstop>timeshiftBox</tabstop> <tabstop>timeshiftBox</tabstop>
<tabstop>recordBox</tabstop>
<tabstop>dumpBox</tabstop> <tabstop>dumpBox</tabstop>
<tabstop>bandwidthBox</tabstop> <tabstop>bandwidthBox</tabstop>
</tabstops> </tabstops>
......
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