| showtext.js | |
| Functions | |
| onLoad | This function is called when the showtext.xul form is show. |
| openf | Open a file a display it into the editor. |
| savef | Save the current data in the editor to a file |
| crypt | Encrypt the current data of the editor. |
| symcrypt | Symetricaly encrypt the current data of the editor. |
| cryptandsign | Encrypt and sign the current data of the editor. |
| dcrypt | Decrypt the current data of the editor. |
| sign | Sign the current data of the editor. |
| signUnClear | Sign the current data of the editor (unclear) |
| verify | Verfiy signs of the current data of the editor. |
| getSelectedText | Return the current selected text of the editor. |
| setSeletedText | Remplace the current selected text of the editor with the text in parameter. |
function onLoad( win )
This function is called when the showtext.xul form is show. It’s init the differents objets (like the translated strings).
| win | The form herself. |
| windows.arguments[0].title | The title of the window. |
| windows.arguments[0].text | The text to put in the editor. |
| windows.arguments[0].description | The description to show. |
| windows.arguments[0].doShowButtons | Optional. Set this to true to disable buttons (encrypt, ...) |
| windows.arguments[0].validSign | Optional. The text to display in the validSign label. |
This function is called when the showtext.xul form is show.
function onLoad( win )
Open a file a display it into the editor.
function openf()
Save the current data in the editor to a file
function savef()
Encrypt the current data of the editor.
function crypt()
Symetricaly encrypt the current data of the editor.
function symcrypt()
Encrypt and sign the current data of the editor.
function cryptandsign()
Decrypt the current data of the editor.
function dcrypt()
Sign the current data of the editor.
function sign()
Sign the current data of the editor (unclear)
function signUnClear()
Verfiy signs of the current data of the editor.
function verify()
Return the current selected text of the editor.
function getSelectedText()
Remplace the current selected text of the editor with the text in parameter.
function setSeletedText( text )