PackageTop Level
Classpublic class Global

The functions and objects of this special class are accessible from anywhere in Lua. They are usually an access point to the application objects or to certain utility functions.



Public Properties
 PropertyDefined by
  appetizer : Application
The application object
Global
  dialogs : Dialogs
The dialogs object that can be used to show different kind of dialog boxes
Global
  optionPanel : OptionPanel
The option panel where the option buttons are displayed
Global
  plugin : Plugin
The current plugin object.
Global
  preferences : Preferences
The preference registry.
Global
  system : System
The system object may be used to access various system functions
Global
Public Methods
 MethodDefined by
  
_(string:String):String
Makes the wrapped string localizable.
Global
  
trace(s1:String = "", s2:String = "", etc:String = ""):void
Debug function used to display a message in the debug window.
Global
Property detail
appetizerproperty
public var appetizer:Application

The application object

dialogsproperty 
public var dialogs:Dialogs

The dialogs object that can be used to show different kind of dialog boxes

optionPanelproperty 
public var optionPanel:OptionPanel

The option panel where the option buttons are displayed

pluginproperty 
public var plugin:Plugin

The current plugin object. May be used to access functions and properties related to the plugin itself

preferencesproperty 
public var preferences:Preferences

The preference registry. Can be used to get or set preference values

systemproperty 
public var system:System

The system object may be used to access various system functions

Method detail
_()method
public function _(string:String):String

Makes the wrapped string localizable. See Securizer plugin for an example.

Parameters
string:String — string The string to tag for localization

Returns
String — String The localized string
trace()method 
public function trace(s1:String = "", s2:String = "", etc:String = ""):void

Debug function used to display a message in the debug window. Any number of parameters can be specified.

Parameters
s1:String (default = "")
 
s2:String (default = "")
 
etc:String (default = "")

Example
The following code displays some debugging messages in the log window:
  trace("The app visibility is ", appetizer:isVisible(), " and its orientation is ", appetizer:getOrientation())
  trace("Is the option panel open? ", optionPanel:isOpen())