]> git.sesse.net Git - vlc/blob - share/lua/http/dialogs/mosaic
Mozilla : use \n
[vlc] / share / lua / http / dialogs / mosaic
1 <?vlc --[[
2 vim:syntax=html
3 <!--  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
4 <  mosaic: VLC media player web interface - mosaic wizard
5 < - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
6 <  Copyright (C) 2005-2006 the VideoLAN team
7 <  $Id$
8
9 <  Authors: Antoine Cellerier <dionoea -at- videolan -dot- org>
10
11 <  This program is free software; you can redistribute it and/or modify
12 <  it under the terms of the GNU General Public License as published by
13 <  the Free Software Foundation; either version 2 of the License, or
14 <  (at your option) any later version.
15
16 <  This program is distributed in the hope that it will be useful,
17 <  but WITHOUT ANY WARRANTY; without even the implied warranty of
18 <  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 <  GNU General Public License for more details.
20
21 <  You should have received a copy of the GNU General Public License
22 <  along with this program; if not, write to the Free Software
23 <  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
24 < - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
25
26 This dialog needs the following dialogs to be fully functional: input and
27 sout.
28 ]]?>
29
30 <div id="mosaic" class="dialog">
31   <div class="title">
32     VLC media player - Mosaic wizard
33     <button id="btn_toggle_text" onclick="toggle_btn_text();">
34       <img src="images/help.png" alt="Help" />
35       Help
36     </button>
37   </div>
38   <div class="controls">
39     <b>Mosaic dimensions:</b><br/>
40     <table style="text-align: right;">
41       <tr>
42         <td>
43           <label for="bg_width">Background width*:</label> <input class="mosaic_bg" type="text" id="bg_width" value="400" size="8" onchange="mosaic_size_change();" />
44         </td>
45         <td>
46           <label for="bg_height">Background height*:</label> <input class="mosaic_bg" type="text" id="bg_height" value="300" size="8" onchange="mosaic_size_change();" />
47         </td>
48       </tr>
49       <tr>
50         <td>
51           <label for="mosaic_width">Width:</label> <input class="mosaic_tbl" type="text" id="mosaic_width" value="200" size="8" onchange="mosaic_size_change();" />
52         </td>
53         <td>
54           <label for="mosaic_height">Height:</label> <input class="mosaic_tbl" type="text" id="mosaic_height" value="200" size="8" onchange="mosaic_size_change();" />
55         </td>
56       </tr>
57       <tr>
58         <td>
59           <label for="mosaic_xoffset">X offset (left):</label> <input class="mosaic_tbl" type="text" id="mosaic_xoffset" value="10" size="8" onchange="mosaic_size_change();" />
60         </td>
61         <td>
62           <label for="mosaic_yoffset">Y offset (top):</label> <input class="mosaic_tbl" type="text" id="mosaic_yoffset" value="10" size="8" onchange="mosaic_size_change();" />
63         </td>
64       </tr>
65       <tr>
66         <td>
67           <label for="mosaic_cols">Columns:</label> <input class="mosaic_itm" type="text" id="mosaic_cols" value="2" size="8" onchange="mosaic_size_change();" />
68         </td>
69         <td>
70           <label for="mosaic_rows">Rows:</label> <input class="mosaic_itm" type="text" id="mosaic_rows" value="2" size="8" onchange="mosaic_size_change();" />
71         </td>
72       </tr>
73       <tr>
74         <td>
75           <label for="mosaic_hborder">Horizontal border:</label> <input class="mosaic_itm" type="text" id="mosaic_hborder" value="10" size="8" onchange="mosaic_size_change();" />
76         </td>
77         <td>
78           <label for="mosaic_vborder">Vertical border:</label> <input class="mosaic_itm" type="text" id="mosaic_vborder" value="5" size="8" onchange="mosaic_size_change();" />
79         </td>
80       </tr>
81       <tr>
82         <td colspan="2">
83         *: these values aren't used by the mosaic code.<br/> They're only here to adapt the preview's size.
84         </td>
85       </tr>
86     </table>
87     <b>Background:</b><br/>
88     <label for="mosaic_bg_input">Input:<label> <input type="text" id="mosaic_bg_input" class="mosaic_bg" value="" size="60" onblur="mosaic_code_update();" /> <input type="button" value="Edit" onclick="vlm_input_edit( 'mosaic_bg_input' );" /><br/>
89     <b>Item:</b><br/>
90     <label for="mosaic_input_name">Name:</label> <input type="text" id="mosaic_input_name" value="" class="mosaic_itm" />
91     <label for="mosaic_input">Input:</label> <input type="text" id="mosaic_input" value="" class="mosaic_itm" /> <input type="button" value="Edit" onclick="vlm_input_edit( 'mosaic_input' );" /> <input type="button" value="Add to input list" onclick="mosaic_add_input();" /><br/>
92     <b>Stream:</b> (leave this empty to display locally)<br/>
93     <label for="mosaic_output">Output:</label> <input type="text" id="mosaic_output" value="" size="60" onblur="mosaic_code_update();" /> <input type="button" value="Edit" onclick="vlm_output_edit( 'mosaic_output' );" /><br/>
94     <div id="mosaic_feedback"></div>
95   </div>
96   <div  id="mosaic_list" class="popup">[<a href="javascript:hide('mosaic_list');">hide</a>] - Select a stream:<br/><div id="mosaic_list_content"></div></div>
97   <div class="controls">
98     Click on each of the cells to assign inputs. (<a href="javascript:document.getElementById('mosaic_list').value='';show('mosaic_list');">Show input list</a>)
99   </div>
100 </div>
101
102 <div id="mosaic_layout" class="mosaic_bg"></div>
103
104 <div class="dialog" style="overflow:visible;">
105   <div class="controls">
106     <input type="button" value="Let's go!" onclick="mosaic_batch(document.getElementById('mosaic_code').value);" />
107     <input type="button" value="Stop" onclick="mosaic_stop()" />
108     <input type="button" id="mosaic_code_show" value="Show VLM code" onclick="show('mosaic_code_div');hide('mosaic_code_show');showinline('mosaic_code_hide');" />
109     <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');" />
110     <br/><br/>
111   </div>
112   <div id="mosaic_code_div" style="display:none;" >
113     Edit the following VLM command batch if you want to fine tune your mosaic settings:
114   <textarea id="mosaic_code" cols="80" rows="30"></textarea>
115   </div>
116 </div>