// ==UserScript==
// @name        OSpell External Preferences File
// @author      Sombria (additional coding by diz)
// @version     1003
// @namespace   http://my.opera.com/Sombria/blog/userjs-orangoo-spell-check
// @modified    2007-04-10
// ==/UserScript==

/*
Make sure that this file is read before main OSpell script.
Keeping original name should be enough.
*/
var OSExtPref = {

	// spell checking engine to use. 0 - GMail (requires to be logged in), 1 - Orangoo, 2 - fearphage
	ENGINE: 2,

	// shows specified languages only (define only one to disable language selector)
	// remove two slashes "//" to enable
	//ENABLED_LANGS: ['en','pl'],

	// enables support for following elements
	ENABLED_ELEMS: { textarea: true, input: false },

	// sets language that should be the default (regardless of last used one)
	defaultLang: '',

	// navbar type: 0-disabled, 1-normal (default), 2-without background
	navbarType: 1,

	// shows full language names or two letter language code only
	longLangNames: true,

	// align navbar: 0-left, 1-middle, 2-right (default)
	alignNavbar: 2,

	// will ask for confirmation when cancelling OSpell window
	confirmCancel: false,

	// enables and defines keyboard shortcuts
	enableShortcuts: true,
	// shortcut for starting spell checker (CTRL+comma by default)
	shortcutCheck: {keyCode: 44, ctrlKey: true, altKey: false, shiftKey: false},
	// shortcut for confirming changes (CTRL+Enter by default)
	shortcutOK: {keyCode: 13, ctrlKey: true, altKey: false, shiftKey: false},
	// shortcut for cancelling changes (CTRL+'	by default)
	shortcutCancel: {keyCode: 39, ctrlKey: true, altKey: false, shiftKey: false},
	// shortcut for cycling languages (CTRL+L by default)
	shortcutChangeLang: {keyCode: 76, ctrlKey: true, altKey: false, shiftKey: false},

	// do not remove
	lastDummyItem: false

};