![]() |
FormIt Plugin API
v23.0.0 (2023.0.0)
|
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... | |
| 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
| [in] | Component | String |
| [in] | EnglishString | String |
| [in] | TranslatedString | String |
| 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
| [in] | notificationHandle | FormIt.NotificationHandle |
| 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");
| [in] | title | String |
| [in] | url | String |
| 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
| [in] | tbJSON | String |
| [in] | URL | String |
| json FormIt.UI.Getbcp47NameCode | ( | ) |
Get FormIt Locale name code Parameters: In: Out: QT Locale name string code.
| 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
| [in] | message | String |
| [in] | notificationType | FormIt.NotificationType |
| [in] | nTimeout | (OPTIONAL, default = 0) int |
| 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
| [in] | value | String |