FormIt Plugin API  v23.0.0 (2023.0.0)
FormIt.UI API

Description

Functions

json FormIt.UI.LoadLangPack (filename)
 
json FormIt.UI.Getbcp47NameCode ()
 Get FormIt Locale name code Parameters: In: Out: QT Locale name string code. More...
 
json FormIt.UI.TranslationLookup (value)
 Translate lookup a English string Looks up an English string through all of the components from the current loaded language string files. More...
 
json FormIt.UI.AddorReplaceTranslation (Component, EnglishString, TranslatedString)
 Add or replace an English string to Translate lookup with its corresponding translation. More...
 
json FormIt.UI.CreatePanel (title, url)
 CreatePanel creates a dockable panel with the given name and displays the given URL. More...
 
json FormIt.UI.CreateToolbar (tbJSON, URL)
 CreateToolbar creates a toolbar with the structure given by the passed in JSON. More...
 
json FormIt.UI.ShowNotification (message, notificationType, nTimeout)
 ShowNotification displays a notification message to the user. More...
 
json FormIt.UI.CloseNotification (notificationHandle)
 CloseNotification closes notification message being displayed related to the notificationHandle passed as input parameter. More...
 

Function Documentation

json FormIt.UI.AddorReplaceTranslation ( Component  ,
EnglishString  ,
TranslatedString   
)

Add or replace an English string to Translate lookup with its corresponding translation.

Parameters: In: Translation component string (eg FormItUI, FormItCore, WSM or "") English string Translated string Out: translated string

Parameters
[in]ComponentString
[in]EnglishStringString
[in]TranslatedStringString
Returns
stringTrans
json FormIt.UI.CloseNotification ( notificationHandle  )

CloseNotification closes notification message being displayed related to the notificationHandle passed as input parameter.

Parameters: In: handle Out: JSON_UNDEFINED

Parameters
[in]notificationHandleFormIt.NotificationHandle
Returns
JSON_UNDEFINED, i.e. {}
json FormIt.UI.CreatePanel ( title  ,
url   
)

CreatePanel creates a dockable panel with the given name and displays the given URL.

Parameters: In: title, url Out: JSON_UNDEFINED FormIt.UI.CreatePanel("Hello Block!", "http://localhost:8000/hello_block.html");

Parameters
[in]titleString
[in]urlString
Returns
JSON_UNDEFINED, i.e. {}
json FormIt.UI.CreateToolbar ( tbJSON  ,
URL   
)

CreateToolbar creates a toolbar with the structure given by the passed in JSON.

Parameters: In: JSON description of toolbar Out: JSON_UNDEFINED

Parameters
[in]tbJSONString
[in]URLString
Returns
JSON_UNDEFINED, i.e. {}
json FormIt.UI.Getbcp47NameCode ( )

Get FormIt Locale name code Parameters: In: Out: QT Locale name string code.

Returns
{...}
json FormIt.UI.LoadLangPack ( filename  )
json FormIt.UI.ShowNotification ( message  ,
notificationType  ,
nTimeout   
)

ShowNotification displays a notification message to the user.

The nTimeout parameter is the time in ms that the notification should be displayed. A value of 0 means to use the default timeout. notificationType: FormIt.NotificationType.Unspecified FormIt.NotificationType.Information FormIt.NotificationType.Warning FormIt.NotificationType.Error FormIt.NotificationType.Success Parameters: In: message, notificationType, nTimeout (OPTIONAL) Out: NotificationHandle

Parameters
[in]messageString
[in]notificationTypeFormIt.NotificationType
[in]nTimeout(OPTIONAL, default = 0) int
Returns
notificationHandle
json FormIt.UI.TranslationLookup ( value  )

Translate lookup a English string Looks up an English string through all of the components from the current loaded language string files.

And returns the first matching string.

Parameters: In: English string Out: translated string

Parameters
[in]valueString
Returns
stringTrans