File Source: InstructionsPanel.java
/*
P/P * Method: com.dmdirc.addons.mediasource_vlc.InstructionsPanel__static_init
*/
1 /*
2 * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a copy
5 * of this software and associated documentation files (the "Software"), to deal
6 * in the Software without restriction, including without limitation the rights
7 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 * copies of the Software, and to permit persons to whom the Software is
9 * furnished to do so, subject to the following conditions:
10 *
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
13 *
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20 * SOFTWARE.
21 */
22
23 package com.dmdirc.addons.mediasource_vlc;
24
25 import com.dmdirc.config.prefs.PreferencesInterface;
26 import com.dmdirc.addons.ui_swing.components.text.TextLabel;
27
28 import javax.swing.JPanel;
29
30 import net.miginfocom.swing.MigLayout;
31
32 /**
33 * Shows installation instructions for the VLC media source.
34 *
35 * @author chris
36 */
37 class InstructionsPanel extends JPanel implements PreferencesInterface {
38
39 private static final long serialVersionUID = 1;
40
/*
P/P * Method: void com.dmdirc.addons.mediasource_vlc.InstructionsPanel()
*/
41 public InstructionsPanel() {
42 setLayout(new MigLayout());
43 final TextLabel instructions = new TextLabel("<html><p>"
44 + "The VLC media source requires that VLC's web interface is" +
45 " enabled. To do this, follow the steps below:</p>"
46 + "<ol style='margin-left: 20px; padding-left: 0px;'>" +
47 "<li>Open VLC's preferences dialog (found in the 'Settings' menu)" +
48 "<li>Expand the 'Interface' category by clicking on the arrow next to it" +
49 "<li>Select the 'Main interfaces' category" +
50 "<li>Check the box next to 'HTTP remote control interface'" +
51 "<li>Expand the 'Main interfaces' category" +
52 "<li>Select the 'HTTP' category" +
53 "<li>Check the box next to 'Advanced options'" +
54 "<li>In the 'Host address' field, enter 'localhost:8082'" +
55 "<li>In the 'Source directory' field enter the path to VLC's" +
56 " http directory<ul style='margin-left: 5px; padding-left: 0px;" +
57 "list-style-type: none;'>" +
58 "<li style='padding-bottom: 5px'>For Linux users this may be /usr/share/vlc/http/" +
59 "<li>For Windows users this will be under the main VLC directory, e.g. " +
60 "C:\\Program Files\\VLC\\http</ul><li>Click 'Save'<li>Restart VLC</ol></html>");
61 add(instructions);
62 }
63
64 /** {@inheritDpc} */
65 @Override
66 public void save() {
67 // Do nothing
/*
P/P * Method: void save()
*/
68 }
69
70 }
SofCheck Inspector Build Version : 2.17854
| InstructionsPanel.java |
2009-Jun-25 01:54:24 |
| InstructionsPanel.class |
2009-Sep-02 17:04:15 |