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

Qt4 - Sout: add a function to toggleVisibility of StreamOut widgets... Yes I will need it :D

parent 74e74a96
...@@ -110,6 +110,20 @@ void SoutDialog::fileBrowse() ...@@ -110,6 +110,20 @@ void SoutDialog::fileBrowse()
updateMRL(); updateMRL();
} }
void SoutDialog::toggleSout()
{
#define TGV(x) { \
if( (x->isHidden()) ) \
x->show(); \
else x->hide();\
}
TGV( ui.HTTPOutput ) ; TGV( ui.UDPOutput ) ; TGV( ui.MMSHOutput ) ;
TGV( ui.HTTPEdit ) ; TGV( ui.UDPEdit ) ; TGV( ui.MMSHEdit ) ;
TGV( ui.HTTPLabel ) ; TGV( ui.UDPLabel ) ; TGV( ui.MMSHLabel ) ;
TGV( ui.HTTPPortLabel ) ; TGV( ui.UDPPortLabel ) ; TGV( ui.MMSHPortLabel ) ;
TGV( ui.HTTPPort ) ; TGV( ui.UDPPort ) ; TGV( ui.MMSHPort ) ;
}
void SoutDialog::ok() void SoutDialog::ok()
{ {
mrl = ui.mrlEdit->text(); mrl = ui.mrlEdit->text();
......
...@@ -46,6 +46,7 @@ public slots: ...@@ -46,6 +46,7 @@ public slots:
void cancel(); void cancel();
void updateMRL(); void updateMRL();
void fileBrowse(); void fileBrowse();
void toggleSout();
}; };
#endif #endif
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