options.js

Summary
options.js
Functions
onChangeGPGPathCheckboxCalled when change-gpg-path-checkbox is checked/unchecked to enable/disable some elements in the options interface.
privateKeySelectedThis function is called when a private key is selected.
onLoadThis function is called when the options.xul form is show.
autoWrapRemoveMySelfRemove an auto action for autowrap
apiRemoveMySelfRemove an auth key of the api
fileSelectorOpen the file selected and return the choosen file.
chooseGPGPathChoose a gpg executable and set the values of the options.
showWarningsShow warnings if use try to disable updates because it’s bad ^^.
showAssistantShow the assistant

Functions

onChangeGPGPathCheckbox

function onChangeGPGPathCheckbox(checkbox,
focus_textbox)

Called when change-gpg-path-checkbox is checked/unchecked to enable/disable some elements in the options interface.

Parameters

checkboxOptional.  The checkbox value.  If not set, use the current value.
focus_textboxOptional.  Set it to true to fucus the text field

privateKeySelected

function privateKeySelected(listbox)

This function is called when a private key is selected.  It’s update the hidden field.

onLoad

function onLoad(win)

This function is called when the options.xul form is show.  It’s init the differents objects (like the translated strings, the keys lists, and the special values).

Parameters

winThe form herself.

autoWrapRemoveMySelf

function autoWrapRemoveMySelf(item)

Remove an auto action for autowrap

apiRemoveMySelf

function apiRemoveMySelf(item)

Remove an auth key of the api

fileSelector

function fileSelector()

Open the file selected and return the choosen file.  If no file is selected, null is returned.

chooseGPGPath

function chooseGPGPath()

Choose a gpg executable and set the values of the options.

showWarnings

function showWarnings()

Show warnings if use try to disable updates because it’s bad ^^.

showAssistant

function showAssistant()

Show the assistant

function onChangeGPGPathCheckbox(checkbox,
focus_textbox)
Called when change-gpg-path-checkbox is checked/unchecked to enable/disable some elements in the options interface.
function privateKeySelected(listbox)
This function is called when a private key is selected.
function onLoad(win)
This function is called when the options.xul form is show.
function autoWrapRemoveMySelf(item)
Remove an auto action for autowrap
function apiRemoveMySelf(item)
Remove an auth key of the api
function fileSelector()
Open the file selected and return the choosen file.
function chooseGPGPath()
Choose a gpg executable and set the values of the options.
function showWarnings()
Show warnings if use try to disable updates because it’s bad ^^.
function showAssistant()
Show the assistant
Close