Commit 6f85cf97 authored by Jean-Philippe Andre's avatar Jean-Philippe Andre

Qt: sorry guys, record works very fine actually...

parent b5e274fa
...@@ -350,13 +350,11 @@ AdvControlsWidget::AdvControlsWidget( intf_thread_t *_p_i, bool b_fsCreation = f ...@@ -350,13 +350,11 @@ 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;
...@@ -376,19 +374,16 @@ void AdvControlsWidget::enableInput( bool enable ) ...@@ -376,19 +374,16 @@ 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 ) )
{ {
...@@ -469,7 +464,6 @@ void AdvControlsWidget::AtoBLoop( float f_pos, int i_time, int i_length ) ...@@ -469,7 +464,6 @@ 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,10 +133,7 @@ public: ...@@ -133,10 +133,7 @@ public:
private: private:
intf_thread_t *p_intf; intf_thread_t *p_intf;
#if 0 QPushButton *recordButton, *ABButton;
QPushButton *recordButton;
#endif
QPushButton *ABButton;
QPushButton *snapshotButton, *frameButton; QPushButton *snapshotButton, *frameButton;
static mtime_t timeA, timeB; static mtime_t timeA, timeB;
......
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