Commit f681b223 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: implement previous button and make an introduction text to the sout...

Good ideas to improve the layout and the text are MORE than needed.
parent 2b00e2dd
...@@ -97,6 +97,11 @@ SoutDialog::SoutDialog( QWidget *parent, intf_thread_t *_p_intf, QString inputMR ...@@ -97,6 +97,11 @@ SoutDialog::SoutDialog( QWidget *parent, intf_thread_t *_p_intf, QString inputMR
/* UI stuff */ /* UI stuff */
ui.setupUi( this ); ui.setupUi( this );
ui.inputBox->setMRL( inputMRL ); ui.inputBox->setMRL( inputMRL );
ui.helpEdit->setPlainText( "This dialog will allow you to stream or convert "
"your media, locally, on your private network or on the "
"Internet.\n"
"You should start by checking that your input matches what you "
"want and go on with the \"Next\" button.\n" );
changeUDPandRTPmess( false ); changeUDPandRTPmess( false );
...@@ -154,6 +159,8 @@ SoutDialog::SoutDialog( QWidget *parent, intf_thread_t *_p_intf, QString inputMR ...@@ -154,6 +159,8 @@ SoutDialog::SoutDialog( QWidget *parent, intf_thread_t *_p_intf, QString inputMR
BUTTONACT( ui.nextButton, next() ); BUTTONACT( ui.nextButton, next() );
BUTTONACT( ui.nextButton2, next() ); BUTTONACT( ui.nextButton2, next() );
BUTTONACT( ui.prevButton, prev() );
BUTTONACT( ui.prevButton2, prev() );
} }
void SoutDialog::next() void SoutDialog::next()
...@@ -161,6 +168,12 @@ void SoutDialog::next() ...@@ -161,6 +168,12 @@ void SoutDialog::next()
ui.toolBox->setCurrentIndex( ui.toolBox->currentIndex() + 1 ); ui.toolBox->setCurrentIndex( ui.toolBox->currentIndex() + 1 );
} }
void SoutDialog::prev()
{
ui.toolBox->setCurrentIndex( ui.toolBox->currentIndex() - 1 );
}
void SoutDialog::fileBrowse() void SoutDialog::fileBrowse()
{ {
QString fileName = QFileDialog::getSaveFileName( this, qtr( "Save file..." ), QString fileName = QFileDialog::getSaveFileName( this, qtr( "Save file..." ),
......
...@@ -148,6 +148,7 @@ private slots: ...@@ -148,6 +148,7 @@ private slots:
void changeUDPandRTPmess( bool ); void changeUDPandRTPmess( bool );
void RTPtoggled( bool ); void RTPtoggled( bool );
void next(); void next();
void prev();
}; };
#endif #endif
This diff is collapsed.
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