summaryrefslogtreecommitdiffstats
path: root/devtools/client/webide/content/prefs.xhtml
blob: 726ca772cbb64e1a546a5404142e1648ac5be616 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<?xml version="1.0" encoding="UTF-8"?>

<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<!DOCTYPE html [
  <!ENTITY % webideDTD SYSTEM "chrome://devtools/locale/webide.dtd" >
  %webideDTD;
]>

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta charset="utf8"/>
    <link rel="stylesheet" href="chrome://webide/skin/deck.css" type="text/css"/>
    <script type="application/javascript;version=1.8" src="chrome://webide/content/prefs.js"></script>
  </head>
  <body>

    <div id="controls">
      <a id="restore">&prefs_restore;</a>
      <a id="manageComponents">&prefs_manage_components;</a>
      <a id="close">&deck_close;</a>
    </div>

    <h1>&prefs_title;</h1>

    <h2>&prefs_general_title;</h2>

    <ul>
      <li>
        <label title="&prefs_options_showeditor_tooltip;">
          <input type="checkbox" data-pref="devtools.webide.showProjectEditor"/>
          <span>&prefs_options_showeditor;</span>
        </label>
      </li>
      <li>
        <label title="&prefs_options_rememberlastproject_tooltip;">
          <input type="checkbox" data-pref="devtools.webide.restoreLastProject"/>
          <span>&prefs_options_rememberlastproject;</span>
        </label>
      </li>
      <li>
        <label title="&prefs_options_autoconnectruntime_tooltip;">
          <input type="checkbox" data-pref="devtools.webide.autoConnectRuntime"/>
          <span>&prefs_options_autoconnectruntime;</span>
        </label>
      </li>
      <li>
        <label class="text-input" title="&prefs_options_templatesurl_tooltip;">
          <span>&prefs_options_templatesurl;</span>
          <input data-pref="devtools.webide.templatesURL"/>
        </label>
      </li>
    </ul>

    <h2>&prefs_editor_title;</h2>

    <ul>
      <li>
        <label><span>&prefs_options_tabsize;</span>
          <select data-pref="devtools.editor.tabsize">
            <option value="2">2</option>
            <option value="4">4</option>
            <option value="8">8</option>
          </select>
        </label>
      </li>
      <li>
        <label title="&prefs_options_expandtab_tooltip;">
          <input type="checkbox" data-pref="devtools.editor.expandtab"/>
          <span>&prefs_options_expandtab;</span>
        </label>
      </li>
      <li>
        <label title="&prefs_options_detectindentation_tooltip;">
          <input type="checkbox" data-pref="devtools.editor.detectindentation"/>
          <span>&prefs_options_detectindentation;</span>
        </label>
      </li>
      <li>
        <label title="&prefs_options_autocomplete_tooltip;">
          <input type="checkbox" data-pref="devtools.editor.autocomplete"/>
          <span>&prefs_options_autocomplete;</span>
        </label>
      </li>
      <li>
        <label title="&prefs_options_autoclosebrackets_tooltip;">
          <input type="checkbox" data-pref="devtools.editor.autoclosebrackets"/>
          <span>&prefs_options_autoclosebrackets;</span>
        </label>
      </li>
      <li>
        <label title="&prefs_options_autosavefiles_tooltip;">
          <input type="checkbox" data-pref="devtools.webide.autosaveFiles"/>
          <span>&prefs_options_autosavefiles;</span>
        </label>
      </li>
      <li>
        <label><span>&prefs_options_keybindings;</span>
          <select data-pref="devtools.editor.keymap">
            <option value="default">&prefs_options_keybindings_default;</option>
            <option value="vim">Vim</option>
            <option value="emacs">Emacs</option>
            <option value="sublime">Sublime</option>
          </select>
        </label>
      </li>
    </ul>

  </body>
</html>