| 59 | | The key to save image(default: 'i'). |
| | 69 | The key to save image(default: 'M'). |
| | 70 | :image_extender_zoom_in_key: |
| | 71 | The key to zoom in image(default: 'i'). |
| | 72 | :image_extender_zoom_out_key: |
| | 73 | The key to zoom out image(default: 'x'). |
| | 74 | :image_extender_zoom_reset_key: |
| | 75 | The key to zoom reset image(default: 'X'). |
| | 76 | :image_extender_zoom_fit_key: |
| | 77 | The key to zoom fit image(default: 'z'). |
| | 78 | :image_extender_zoom_custom_key: |
| | 79 | The key to custom zoom image(default: 'Z'). |
| 90 | | 画像を保存するキーです (デフォルト: 'i') 。 |
| | 119 | 画像を保存するキーです (デフォルト: 'M') 。 |
| | 120 | :image_extender_zoom_in_key: |
| | 121 | 画像を拡大するキーです (デフォルト: 'i') 。 |
| | 122 | :image_extender_zoom_out_key: |
| | 123 | 画像を縮小するキーです (デフォルト: 'x') 。 |
| | 124 | :image_extender_zoom_reset_key: |
| | 125 | 画像の拡大縮小を元に戻すキーです (デフォルト: 'X') 。 |
| | 126 | :image_extender_zoom_fit_key: |
| | 127 | 画像を画面にあわせて拡大縮小するキーです (デフォルト: 'z') 。 |
| | 128 | :image_extender_zoom_custom_key: |
| | 129 | 画像をカスタムズームさせるキーです (デフォルト: 'Z') 。 |
| 113 | | const yankKey = liberator.globalVariables.image_extender_yank_key || 'm'; |
| 114 | | const saveKey = liberator.globalVariables.image_extender_save_key || 'i'; |
| | 152 | const yankKey = liberator.globalVariables.image_extender_yank_key || 'm'; |
| | 153 | const saveKey = liberator.globalVariables.image_extender_save_key || 'M'; |
| | 154 | const zoomInKey = liberator.globalVariables.image_extender_zoom_in_key || 'i'; |
| | 155 | const zoomOutKey = liberator.globalVariables.image_extender_zoom_out_key || 'x'; |
| | 156 | const zoomResetKey = liberator.globalVariables.image_extender_zoom_reset_key || 'X'; |
| | 157 | const zoomFitKey = liberator.globalVariables.image_extender_zoom_fit_key || 'z'; |
| | 158 | const zoomCustomKey = liberator.globalVariables.image_extender_zoom_custom_key || 'Z'; |
| | 184 | if (window.izImage) { |
| | 185 | // to zoom in image |
| | 186 | hints.addMode( |
| | 187 | zoomInKey, |
| | 188 | 'Zoom in image', |
| | 189 | function (element) { |
| | 190 | var oizImage = new izImage(element); |
| | 191 | oizImage.zoom(nsIPrefBranchObj.getIntPref("zoomvalue")/100); |
| | 192 | reportStatus(oizImage); |
| | 193 | }, |
| | 194 | function () query |
| | 195 | ); |
| | 196 | // to zoom out image |
| | 197 | hints.addMode( |
| | 198 | zoomOutKey, |
| | 199 | 'Zoom out image', |
| | 200 | function (element) { |
| | 201 | var oizImage = new izImage(element); |
| | 202 | oizImage.zoom(100/nsIPrefBranchObj.getIntPref("zoomvalue")); |
| | 203 | reportStatus(oizImage); |
| | 204 | }, |
| | 205 | function () query |
| | 206 | ); |
| | 207 | // to zoom reset image |
| | 208 | hints.addMode( |
| | 209 | zoomResetKey, |
| | 210 | 'Zoom reset image', |
| | 211 | function (element) { |
| | 212 | var oizImage = new izImage(element); |
| | 213 | oizImage.setZoom(100); |
| | 214 | reportStatus(oizImage); |
| | 215 | }, |
| | 216 | function () query |
| | 217 | ); |
| | 218 | // to zoom fit image |
| | 219 | hints.addMode( |
| | 220 | zoomFitKey, |
| | 221 | 'Zoom fit image', |
| | 222 | function (element) { |
| | 223 | var oizImage = new izImage(element); |
| | 224 | oizImage.fit(nsIPrefBranchObj.getBoolPref("autocenter")); |
| | 225 | reportStatus(oizImage); |
| | 226 | }, |
| | 227 | function () query |
| | 228 | ); |
| | 229 | // to custom zoom image |
| | 230 | hints.addMode( |
| | 231 | zoomCustomKey, |
| | 232 | 'Custom zoom image', |
| | 233 | function (element) { |
| | 234 | var oizImage = new izImage(element); |
| | 235 | openDialog("chrome://imagezoom/content/customzoom.xul", "", "chrome,modal,centerscreen", "Image", oizImage); |
| | 236 | reportStatus(oizImage); |
| | 237 | }, |
| | 238 | function () query |
| | 239 | ); |
| | 240 | } |