PDFedit
PDF editor pro UNIX / PDF editor for UNIX

Wiki : CallbackQs

HomePage :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register
This is an old revision of CallbackQs from 2006-09-14 07:47:56.

callback.qs


This script file contain callback functions and some helper functions used by these functions.

onChangeRevision()
This function is called after active revision of document is changed
Just prints message into console about revision change

onEmptyFile()
This function is called after the editor is opened without specifying any document on commandline (without opening any file) or if the current file is closed.
onLoad()
This function is called after document is opened
onLoadUser()
This function is called after document is opened (after onLoad() is called)
It is empty, it is up to user to override this function with own one

onLoadError()
This function is called after an error occured while trying to load a document.
It print out warning in console and show a messagebox with the warning text.

onPageChange()
This function is called after changing to another page in the preview window.
It will update available fonts in the font selection box

onPageDelete()
This function is called after pressing "delete" key while in preview window
onPageRightClick()
This function is called after clicking with right mouse button in window with page preview.
onTreeLeftClick()
This function is called after clicking with left mouse button on any item in tree window.
onTreeRightClick()
This function is called after clicking with right mouse button on any item in tree window.
onTreeMiddleClick()
This function is called after clicking with middle mouse button on any item in tree window.
onTreeDoubleClick()
This function is called after doubleclicking with left mouse button on any item in tree window.
onTreeSelectionChange()
This function is called after selection in tree changes.
onValueChange(name)
This function is called after some of special tools change its value because of interaction. Parameter is name of the special tool. Color selection tool calls this after user select some color in it, edit tool calls this after user presses enter or leaves the control, number tool calls this after user presses enter or selects some of predefined numbers, select tool calls this after changing the selection.

onConsoleStart()
This function is called in commandline mode after calling all scripts specified in commanline parameters - unless some of the scripts exit the application prematurely, for example by calling exit().

There are no comments on this page. [Add comment]