|
1 | 1 | <?xml version="1.0"?> |
2 | 2 | <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> |
3 | | -<?xml-stylesheet href="chrome://keysharky/skin/options.css" type="text/css"?> |
4 | | -<window id="keysharky-options" title="keySharky Options" |
| 3 | +<?xml-stylesheet href="chrome://keymazony/skin/options.css" type="text/css"?> |
| 4 | +<window id="keymazony-options" title="keyMazony Options" |
5 | 5 | xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> |
6 | | - |
| 6 | + |
7 | 7 | <script type="text/javascript"> |
8 | | - // Creating link between keysharky object in main window and option window |
9 | | - |
| 8 | + // Creating link between keymazony object in main window and option window |
| 9 | + |
10 | 10 | var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"] |
11 | 11 | .getService(Components.interfaces.nsIWindowMediator); |
12 | 12 | var mainWindow = wm.getMostRecentWindow("navigator:browser"); |
13 | | - |
| 13 | + |
14 | 14 | // Neat, right? |
15 | | - var keysharky = mainWindow.keysharky; |
16 | | - keysharky.optionsDoc = document; |
| 15 | + var keymazony = mainWindow.keymazony; |
| 16 | + keymazony.optionsDoc = document; |
17 | 17 | </script> |
18 | | - |
| 18 | + |
19 | 19 | <!-- Sadly there isn't oncommand for checkbox object, so ... --> |
20 | | - <command id="keysharky_cmd_toggleServerStartup" oncommand="keysharky.toggleServerStartup();" /> |
21 | | - |
| 20 | + <command id="keymazony_cmd_toggleServerStartup" oncommand="keymazony.toggleServerStartup();" /> |
| 21 | + |
22 | 22 | <vbox width="400"> |
23 | | - <groupbox id="keysharky-group-playback"> |
| 23 | + <groupbox id="keymazony-group-playback"> |
24 | 24 | <caption label="Playback control"/> |
25 | | - |
| 25 | + |
26 | 26 | <hbox align="center"> |
27 | | - <checkbox onclick="keysharky.toggleCombo('play');" id="keysharky-enabler-play" class="enabler" label="Play/Pause" /> |
| 27 | + <checkbox onclick="keymazony.toggleCombo('play');" id="keymazony-enabler-play" class="enabler" label="Play/Pause" /> |
28 | 28 | <spacer flex="1"/> |
29 | | - <textbox id="keysharky-toggle-play-shortcut" value="-" |
30 | | - onkeypress="keysharky.applyCombo(event, 'play')" readonly="true" /> |
| 29 | + <textbox id="keymazony-toggle-play-shortcut" value="-" |
| 30 | + onkeypress="keymazony.applyCombo(event, 'play')" readonly="true" /> |
31 | 31 | </hbox> |
32 | 32 | <hbox align="center"> |
33 | | - <checkbox onclick="keysharky.toggleCombo('stop');" id="keysharky-enabler-stop" class="enabler" label="Stop" /> |
| 33 | + <checkbox onclick="keymazony.toggleCombo('stop');" id="keymazony-enabler-stop" class="enabler" label="Stop" /> |
34 | 34 | <spacer flex="1"/> |
35 | | - <textbox id="keysharky-toggle-stop-shortcut" value="-" |
36 | | - onkeypress="keysharky.applyCombo(event, 'stop')" readonly="true" /> |
| 35 | + <textbox id="keymazony-toggle-stop-shortcut" value="-" |
| 36 | + onkeypress="keymazony.applyCombo(event, 'stop')" readonly="true" /> |
37 | 37 | </hbox> |
38 | 38 | <hbox align="center"> |
39 | | - <checkbox onclick="keysharky.toggleCombo('previous');" id="keysharky-enabler-previous" class="enabler" label="Previous song" /> |
| 39 | + <checkbox onclick="keymazony.toggleCombo('previous');" id="keymazony-enabler-previous" class="enabler" label="Previous song" /> |
40 | 40 | <spacer flex="1"/> |
41 | | - <textbox id="keysharky-toggle-previous-shortcut" value="-" |
42 | | - onkeypress="keysharky.applyCombo(event, 'previous')" readonly="true" /> |
| 41 | + <textbox id="keymazony-toggle-previous-shortcut" value="-" |
| 42 | + onkeypress="keymazony.applyCombo(event, 'previous')" readonly="true" /> |
43 | 43 | </hbox> |
44 | 44 | <hbox align="center"> |
45 | | - <checkbox onclick="keysharky.toggleCombo('next');" id="keysharky-enabler-next" class="enabler" label="Next song" /> |
| 45 | + <checkbox onclick="keymazony.toggleCombo('next');" id="keymazony-enabler-next" class="enabler" label="Next song" /> |
46 | 46 | <spacer flex="1"/> |
47 | | - <textbox id="keysharky-toggle-next-shortcut" value="-" |
48 | | - onkeypress="keysharky.applyCombo(event, 'next')" readonly="true" /> |
| 47 | + <textbox id="keymazony-toggle-next-shortcut" value="-" |
| 48 | + onkeypress="keymazony.applyCombo(event, 'next')" readonly="true" /> |
49 | 49 | </hbox> |
50 | | - |
| 50 | + |
51 | 51 | </groupbox> |
52 | | - |
53 | | - <groupbox id="keysharky-group-current"> |
| 52 | + |
| 53 | + <groupbox id="keymazony-group-current"> |
54 | 54 | <caption label="Current song"/> |
55 | | - |
| 55 | + |
56 | 56 | <hbox align="center"> |
57 | | - <checkbox onclick="keysharky.toggleCombo('favorite');" id="keysharky-enabler-favorite" class="enabler" label="Favorite" /> |
| 57 | + <checkbox onclick="keymazony.toggleCombo('favorite');" id="keymazony-enabler-favorite" class="enabler" label="Favorite" /> |
58 | 58 | <spacer flex="1"/> |
59 | | - <textbox id="keysharky-toggle-favorite-shortcut" value="-" |
60 | | - onkeypress="keysharky.applyCombo(event, 'favorite')" readonly="true" /> |
| 59 | + <textbox id="keymazony-toggle-favorite-shortcut" value="-" |
| 60 | + onkeypress="keymazony.applyCombo(event, 'favorite')" readonly="true" /> |
61 | 61 | </hbox> |
62 | | - |
| 62 | + |
63 | 63 | <hbox align="center"> |
64 | | - <checkbox onclick="keysharky.toggleCombo('voteup');" id="keysharky-enabler-voteup" class="enabler" label="Vote up :)" /> |
| 64 | + <checkbox onclick="keymazony.toggleCombo('voteup');" id="keymazony-enabler-voteup" class="enabler" label="Vote up :)" /> |
65 | 65 | <spacer flex="1"/> |
66 | | - <textbox id="keysharky-toggle-voteup-shortcut" value="-" |
67 | | - onkeypress="keysharky.applyCombo(event, 'voteup')" readonly="true" /> |
| 66 | + <textbox id="keymazony-toggle-voteup-shortcut" value="-" |
| 67 | + onkeypress="keymazony.applyCombo(event, 'voteup')" readonly="true" /> |
68 | 68 | </hbox> |
69 | | - |
| 69 | + |
70 | 70 | <hbox align="center"> |
71 | | - <checkbox onclick="keysharky.toggleCombo('votedown');" id="keysharky-enabler-votedown" class="enabler" label="Vote down :(" /> |
| 71 | + <checkbox onclick="keymazony.toggleCombo('votedown');" id="keymazony-enabler-votedown" class="enabler" label="Vote down :(" /> |
72 | 72 | <spacer flex="1"/> |
73 | | - <textbox id="keysharky-toggle-votedown-shortcut" value="-" |
74 | | - onkeypress="keysharky.applyCombo(event, 'votedown')" readonly="true" /> |
| 73 | + <textbox id="keymazony-toggle-votedown-shortcut" value="-" |
| 74 | + onkeypress="keymazony.applyCombo(event, 'votedown')" readonly="true" /> |
75 | 75 | </hbox> |
76 | | - |
| 76 | + |
77 | 77 | <hbox align="center"> |
78 | | - <checkbox onclick="keysharky.toggleCombo('voteclear');" id="keysharky-enabler-voteclear" class="enabler" label="Reset vote" /> |
| 78 | + <checkbox onclick="keymazony.toggleCombo('voteclear');" id="keymazony-enabler-voteclear" class="enabler" label="Reset vote" /> |
79 | 79 | <spacer flex="1"/> |
80 | | - <textbox id="keysharky-toggle-voteclear-shortcut" value="-" |
81 | | - onkeypress="keysharky.applyCombo(event, 'voteclear')" readonly="true" /> |
| 80 | + <textbox id="keymazony-toggle-voteclear-shortcut" value="-" |
| 81 | + onkeypress="keymazony.applyCombo(event, 'voteclear')" readonly="true" /> |
82 | 82 | </hbox> |
83 | 83 | </groupbox> |
84 | | - |
85 | | - <groupbox id="keysharky-group-sound"> |
| 84 | + |
| 85 | + <groupbox id="keymazony-group-sound"> |
86 | 86 | <caption label="Sound control"/> |
87 | | - |
| 87 | + |
88 | 88 | <hbox align="center"> |
89 | | - <checkbox onclick="keysharky.toggleCombo('mute');" id="keysharky-enabler-mute" class="enabler" label="Mute" /> |
| 89 | + <checkbox onclick="keymazony.toggleCombo('mute');" id="keymazony-enabler-mute" class="enabler" label="Mute" /> |
90 | 90 | <spacer flex="1"/> |
91 | | - <textbox id="keysharky-toggle-mute-shortcut" value="-" |
92 | | - onkeypress="keysharky.applyCombo(event, 'mute')" readonly="true" /> |
| 91 | + <textbox id="keymazony-toggle-mute-shortcut" value="-" |
| 92 | + onkeypress="keymazony.applyCombo(event, 'mute')" readonly="true" /> |
93 | 93 | </hbox> |
94 | | - |
| 94 | + |
95 | 95 | <hbox align="center"> |
96 | | - <checkbox onclick="keysharky.toggleCombo('volup');" id="keysharky-enabler-volup" class="enabler" label="Volume Up" /> |
| 96 | + <checkbox onclick="keymazony.toggleCombo('volup');" id="keymazony-enabler-volup" class="enabler" label="Volume Up" /> |
97 | 97 | <spacer flex="1"/> |
98 | | - <textbox id="keysharky-toggle-volup-shortcut" value="-" |
99 | | - onkeypress="keysharky.applyCombo(event, 'volup')" readonly="true" /> |
| 98 | + <textbox id="keymazony-toggle-volup-shortcut" value="-" |
| 99 | + onkeypress="keymazony.applyCombo(event, 'volup')" readonly="true" /> |
100 | 100 | </hbox> |
101 | | - |
| 101 | + |
102 | 102 | <hbox align="center"> |
103 | | - <checkbox onclick="keysharky.toggleCombo('voldown');" id="keysharky-enabler-voldown" class="enabler" label="Volume Down" /> |
| 103 | + <checkbox onclick="keymazony.toggleCombo('voldown');" id="keymazony-enabler-voldown" class="enabler" label="Volume Down" /> |
104 | 104 | <spacer flex="1"/> |
105 | | - <textbox id="keysharky-toggle-voldown-shortcut" value="-" |
106 | | - onkeypress="keysharky.applyCombo(event, 'voldown')" readonly="true" /> |
| 105 | + <textbox id="keymazony-toggle-voldown-shortcut" value="-" |
| 106 | + onkeypress="keymazony.applyCombo(event, 'voldown')" readonly="true" /> |
107 | 107 | </hbox> |
108 | 108 | </groupbox> |
109 | | - |
110 | | - <groupbox id="keysharky-group-api-server"> |
| 109 | + |
| 110 | + <groupbox id="keymazony-group-api-server"> |
111 | 111 | <caption label="API server"/> |
112 | | - |
| 112 | + |
113 | 113 | <hbox align="center"> |
114 | | - <label control="keysharky-toggleServerPort" value="Port"/> |
115 | | - <textbox |
116 | | - id="keysharky-toggleServerPort" |
117 | | - onchange = "keysharky.toggleServerPort();" |
118 | | - max="65535" |
119 | | - min="1024" |
120 | | - maxLength="5" |
121 | | - size="5" |
| 114 | + <label control="keymazony-toggleServerPort" value="Port"/> |
| 115 | + <textbox |
| 116 | + id="keymazony-toggleServerPort" |
| 117 | + onchange = "keymazony.toggleServerPort();" |
| 118 | + max="65535" |
| 119 | + min="1024" |
| 120 | + maxLength="5" |
| 121 | + size="5" |
122 | 122 | type="number" /> |
123 | | - |
| 123 | + |
124 | 124 | <spacer flex="1"/> |
125 | | - |
126 | | - <checkbox |
127 | | - id="keysharky-toggleServerStartup" |
128 | | - command="keysharky_cmd_toggleServerStartup" |
| 125 | + |
| 126 | + <checkbox |
| 127 | + id="keymazony-toggleServerStartup" |
| 128 | + command="keymazony_cmd_toggleServerStartup" |
129 | 129 | checked="false"/> |
130 | 130 | </hbox> |
131 | | - |
| 131 | + |
132 | 132 | <hbox align="center"> |
133 | 133 | <spacer flex="1"/> |
134 | | - <button id="keysharky-toggleServer" oncommand="keysharky.toggleServer();" label="Start" /> |
| 134 | + <button id="keymazony-toggleServer" oncommand="keymazony.toggleServer();" label="Start" /> |
135 | 135 | <spacer flex="1"/> |
136 | 136 | </hbox> |
137 | 137 | </groupbox> |
138 | | - |
139 | | - <hbox align="center" id="keysharky-group-readme"> |
140 | | - <spacer flex="1"/><description id="keysharky_readme" onclick="keysharky.readme()">With great power comes great responsibility. Read before do.</description><spacer flex="1"/> |
| 138 | + |
| 139 | + <hbox align="center" id="keymazony-group-readme"> |
| 140 | + <spacer flex="1"/><description id="keymazony_readme" onclick="keymazony.readme()">With great power comes great responsibility. Read before do.</description><spacer flex="1"/> |
141 | 141 | </hbox> |
142 | 142 | </vbox> |
143 | | - |
| 143 | + |
144 | 144 | <script type="text/javascript"> |
145 | | - window.addEventListener("load", function(e) { keysharky.uiOptions(e); }, false); |
146 | | - window.addEventListener("unload", function(e) { keysharky.toggleServerPort(); }, false); |
| 145 | + window.addEventListener("load", function(e) { keymazony.uiOptions(e); }, false); |
| 146 | + window.addEventListener("unload", function(e) { keymazony.toggleServerPort(); }, false); |
147 | 147 | </script> |
148 | 148 | </window> |
149 | 149 |
|
0 commit comments