]> git.sesse.net Git - vlc/commitdiff
mosaic wizard: change layout & make VLM command batch display optional.
authorAntoine Cellerier <dionoea@videolan.org>
Mon, 20 Mar 2006 01:51:45 +0000 (01:51 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Mon, 20 Mar 2006 01:51:45 +0000 (01:51 +0000)
share/http/dialogs/mosaic
share/http/js/functions.js

index 215e2a0e0a5fad40c435cccf7d43bdd14ec10766..5260be767831276f371141d7ff3cd469af140cde 100644 (file)
@@ -27,7 +27,7 @@ This dialog needs the following dialogs to be fully functional: input and
 sout.
 <vlc id="end" />
 
-<div id="mosaic" class="dialog" style="overflow:visible;">
+<div id="mosaic" class="dialog">
   <div class="title">
     VLC media player - Mosaic wizard
     <button id="btn_toggle_text" onclick="toggle_btn_text();">
@@ -97,12 +97,20 @@ sout.
   <div class="controls">
     Click on each of the cells to assign inputs. (<a href="javascript:document.getElementById('mosaic_list').value='';show('mosaic_list');">Show input list</a>)
   </div>
-  <div id="mosaic_layout" class="mosaic_bg"></div>
+</div>
+
+<div id="mosaic_layout" class="mosaic_bg"></div>
+
+<div class="dialog" style="overflow:visible;">
   <div class="controls">
     <input type="button" value="Let's go!" onclick="mosaic_batch(document.getElementById('mosaic_code').value);" />
     <input type="button" value="Stop" onclick="mosaic_stop()" />
+    <input type="button" id="mosaic_code_show" value="Show VLM code" onclick="show('mosaic_code_div');hide('mosaic_code_show');showinline('mosaic_code_hide');" />
+    <input type="button" id="mosaic_code_hide" style="display:none" value="Hide VLM code" onclick="hide('mosaic_code_div');hide('mosaic_code_hide');showinline('mosaic_code_show');" />
     <br/><br/>
-    Edit the following VLM command batch if you want to fine tune your mosaic settings:
   </div>
+  <div id="mosaic_code_div" style="display:none;" >
+    Edit the following VLM command batch if you want to fine tune your mosaic settings:
   <textarea id="mosaic_code" cols="80" rows="30"></textarea>
+  </div>
 </div>
index fe767914753a2c8dffcc3152572eb7da7d1d797f..485287556592108b2c8a44ab32c8483d9f435c37 100644 (file)
@@ -197,6 +197,7 @@ function toggle_show_node( id )
 }
 
 function show( id ){ document.getElementById( id ).style.display = 'block'; }
+function showinline( id ){ document.getElementById( id ).style.display = 'inline'; }
 
 function hide( id ){ document.getElementById( id ).style.display = 'none'; }