System

System is a special object, of which there is only one instance. It provides access to some global functions in eboxy. The System object has a section in the XML, but no attributes.

Properties

The System object has the following properties:

PropertyDescriptionScript
nameThe name of the object (always "System")Read-only
screenwidthWidth of the eboxy screenRead-only
screenheightHeight of the eboxy screenRead-only
currentfileCurrently loaded XML skin fileRead-only
versioneboxy version string (eg. 0.4.0)Read-only
pagecountNumber of loaded pagesRead-only

Methods

The following methods are supported by the system object:

MethodDescription
focusnext()Jumps to the next widget
focusprevious()Jumps to the previous widget
performaction(actionname)Perform the specified action. Accepts the same actions as for used for key bindings.
printpluginlist()Prints out a list of loaded plugins to the console
quit()Quits eboxy
getpage(index)Gets the name of the page at the specified index in the list (0 to system.pagecount)
gotopage(pagename)Jumps to the specified page. Alternative to the page command for instances where you already have a string with the page name to go to.
selectfocused()Presses the focused button/chooses the selected item in a listbox

Events

The following events are triggered by the system object:

EventDescription
OnLoadOccurs just after system plugins are initialised
OnShowOccurs just after the first page has been displayed, and after eboxy is unhidden
OnHideOccurs just before eboxy is hidden (with the exechide script command)
OnUnloadOccurs just before eboxy is unloaded