From: Antoine Cellerier Date: Sat, 18 Mar 2006 17:42:37 +0000 (+0000) Subject: add some help and feedback X-Git-Tag: 0.9.0-test0~11858 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=34c5a4951de47dd539b13519e92a8565c122f30d;p=vlc add some help and feedback --- diff --git a/share/http/dialogs/input b/share/http/dialogs/input index 9975633462..e9100a7a12 100644 --- a/share/http/dialogs/input +++ b/share/http/dialogs/input @@ -36,6 +36,7 @@ This dialog needs the following dialogs to be fully functional: browse + diff --git a/share/http/dialogs/mosaic b/share/http/dialogs/mosaic index f53ea0a8c6..fe63718693 100644 --- a/share/http/dialogs/mosaic +++ b/share/http/dialogs/mosaic @@ -89,12 +89,18 @@ sout. Item:

- Stream:
- + Stream: (leave this empty to display locally)
+
+
+
+ Click on each of the cells to asign inputs. (Show input list) +
- - +
+ + +
diff --git a/share/http/dialogs/sout b/share/http/dialogs/sout index d5f14d1b0c..bf5e34155f 100644 --- a/share/http/dialogs/sout +++ b/share/http/dialogs/sout @@ -37,12 +37,13 @@ Note that the sout chain is used and sent to VLC by the input dialog
- + +
- + diff --git a/share/http/js/mosaic.js b/share/http/js/mosaic.js index ed135a8009..52e009571c 100644 --- a/share/http/js/mosaic.js +++ b/share/http/js/mosaic.js @@ -134,6 +134,8 @@ function mosaic_add_input() streams[ addunderscores( value('mosaic_input_name') ) ] = value('mosaic_input'); + mosaic_feedback( addunderscores( value('mosaic_input_name') ) + " ( " + value('mosaic_input') + " ) added to input list.", true ); + var mlist = document.getElementById( "mosaic_list_content" ); while( mlist.hasChildNodes() ) mlist.removeChild( mlist.firstChild ); @@ -146,12 +148,12 @@ function mosaic_add_input() minput.setAttribute( 'href', 'javascript:mosaic_elt_select(\''+name+'\');'); minput.setAttribute( 'id', name ); minput.setAttribute( 'value', mrl ); - minput.setAttribute( 'title', mrl ); var minputtxt = document.createTextNode( name ); minput.appendChild( minputtxt ); mlist.appendChild( minput ); + mlist.appendChild( document.createTextNode( " ( "+mrl+" )" ) ); mlist.appendChild( document.createElement( 'br' ) ); } } @@ -159,9 +161,13 @@ function mosaic_add_input() function mosaic_elt_select( id ) { hide( 'mosaic_list' ); - document.getElementById( document.getElementById( 'mosaic_list' ).value ).value = id; - cells[ document.getElementById( 'mosaic_list' ).value ] = id; - mosaic_code_update(); + var ml = document.getElementById( 'mosaic_list' ).value; + if( ml ) + { + document.getElementById( ml ).value = id; + cells[ ml ] = id; + mosaic_code_update(); + } } function mosaic_elt_choose( id ) @@ -305,4 +311,21 @@ function mosaic_stop() } } mosaic_batch( cmd ); -} +} + +function mosaic_feedback( msg, ok ) +{ + var f = document.getElementById( "mosaic_feedback" ); + while( f.hasChildNodes() ) + f.removeChild( f.firstChild ); + + f.style.fontWeight = "bold"; + if( ok ) + f.style.color = "#0f0"; + else + f.style.color = "#f00"; + + var t = document.createTextNode( ( ok ? "Info: " : "Error: " ) + msg ); + f.appendChild( t ); + +}