mirror of
https://github.com/antos-rde/antosdk-apps.git
synced 2024-12-25 11:48:21 +01:00
update core API to sdk
This commit is contained in:
parent
ed38552cd8
commit
43b72f3043
112
libantosdk/core/ts/antos.d.ts
vendored
112
libantosdk/core/ts/antos.d.ts
vendored
@ -710,6 +710,20 @@ declare namespace OS {
|
|||||||
* @param {boolean} force force to clear the system theme before applying the new one
|
* @param {boolean} force force to clear the system theme before applying the new one
|
||||||
*/
|
*/
|
||||||
function loadTheme(name: string, force: boolean): void;
|
function loadTheme(name: string, force: boolean): void;
|
||||||
|
/**
|
||||||
|
* Get the system dock tag
|
||||||
|
*
|
||||||
|
* @export
|
||||||
|
* @return {*} {GUI.tag.AppDockTag}
|
||||||
|
*/
|
||||||
|
function systemDock(): GUI.tag.AppDockTag;
|
||||||
|
/**
|
||||||
|
* Get the current virtual desktop
|
||||||
|
*
|
||||||
|
* @export
|
||||||
|
* @return {*} {GUI.tag.DesktopTag}
|
||||||
|
*/
|
||||||
|
function desktop(): GUI.tag.DesktopTag;
|
||||||
/**
|
/**
|
||||||
* Open a system dialog.
|
* Open a system dialog.
|
||||||
*
|
*
|
||||||
@ -3225,12 +3239,11 @@ declare namespace OS {
|
|||||||
* Update the application local from the system
|
* Update the application local from the system
|
||||||
* locale or application specific locale configuration
|
* locale or application specific locale configuration
|
||||||
*
|
*
|
||||||
* @private
|
|
||||||
* @param {string} name locale name e.g. `en_GB`
|
* @param {string} name locale name e.g. `en_GB`
|
||||||
* @returns {void}
|
* @returns {void}
|
||||||
* @memberof BaseApplication
|
* @memberof BaseApplication
|
||||||
*/
|
*/
|
||||||
protected updateLocale(name: string): void;
|
updateLocale(name: string): void;
|
||||||
/**
|
/**
|
||||||
* Execute the callback subscribed to a
|
* Execute the callback subscribed to a
|
||||||
* keyboard shortcut
|
* keyboard shortcut
|
||||||
@ -4464,10 +4477,10 @@ declare namespace OS {
|
|||||||
* The HTML element ID of the virtual desktop
|
* The HTML element ID of the virtual desktop
|
||||||
*
|
*
|
||||||
* @protected
|
* @protected
|
||||||
* @type {string}
|
* @type {HTMLElement}
|
||||||
* @memberof BaseModel
|
* @memberof BaseModel
|
||||||
*/
|
*/
|
||||||
protected host: string;
|
protected host: HTMLElement;
|
||||||
/**
|
/**
|
||||||
* The process number of the current model.
|
* The process number of the current model.
|
||||||
* For sub-window this number is the number
|
* For sub-window this number is the number
|
||||||
@ -4559,11 +4572,10 @@ declare namespace OS {
|
|||||||
/**
|
/**
|
||||||
* Update the model locale
|
* Update the model locale
|
||||||
*
|
*
|
||||||
* @protected
|
|
||||||
* @param {string} name
|
* @param {string} name
|
||||||
* @memberof BaseModel
|
* @memberof BaseModel
|
||||||
*/
|
*/
|
||||||
protected updateLocale(name: string): void;
|
updateLocale(name: string): void;
|
||||||
/**
|
/**
|
||||||
* Render the model's UI
|
* Render the model's UI
|
||||||
*
|
*
|
||||||
@ -4704,7 +4716,6 @@ declare namespace OS {
|
|||||||
/**
|
/**
|
||||||
* trigger a local event
|
* trigger a local event
|
||||||
*
|
*
|
||||||
* @protected
|
|
||||||
* @param {string} e event name
|
* @param {string} e event name
|
||||||
* @param {*} [d] event data
|
* @param {*} [d] event data
|
||||||
* @returns {void}
|
* @returns {void}
|
||||||
@ -5528,6 +5539,89 @@ declare namespace OS {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
declare namespace OS {
|
||||||
|
namespace GUI {
|
||||||
|
namespace tag {
|
||||||
|
/**
|
||||||
|
* Meta tag that represents the virtual desktop environment.
|
||||||
|
* In near future, we may have multiple virtual desktop environments.
|
||||||
|
* Each desktop environment has a simple file manager and a window
|
||||||
|
* manager that render the window in a specific order.
|
||||||
|
*
|
||||||
|
* @export
|
||||||
|
* @class DesktopTag
|
||||||
|
* @extends {FloatListTag}
|
||||||
|
*/
|
||||||
|
class DesktopTag extends FloatListTag {
|
||||||
|
/**
|
||||||
|
* internal handle to the desktop file location
|
||||||
|
*
|
||||||
|
* @private
|
||||||
|
* @type {API.VFS.BaseFileHandle}
|
||||||
|
* @memberof DesktopTag
|
||||||
|
*/
|
||||||
|
private file;
|
||||||
|
/**
|
||||||
|
* local observer that detect if a new child element is
|
||||||
|
* added or removed
|
||||||
|
*
|
||||||
|
* @private
|
||||||
|
* @type {MutationObserver}
|
||||||
|
* @memberof DesktopTag
|
||||||
|
*/
|
||||||
|
private observer;
|
||||||
|
/**
|
||||||
|
* Internal list of the current opened window
|
||||||
|
*
|
||||||
|
* @private
|
||||||
|
* @type {Set<WindowTag>}
|
||||||
|
* @memberof DesktopTag
|
||||||
|
*/
|
||||||
|
private window_list;
|
||||||
|
/**
|
||||||
|
* Creates an instance of DesktopTag.
|
||||||
|
* @memberof DesktopTag
|
||||||
|
*/
|
||||||
|
constructor();
|
||||||
|
/**
|
||||||
|
* Mount the virtual desktop to the DOM tree
|
||||||
|
*
|
||||||
|
* @protected
|
||||||
|
* @memberof DesktopTag
|
||||||
|
*/
|
||||||
|
protected mount(): void;
|
||||||
|
/**
|
||||||
|
* Display all files and folders in the specific desktop location
|
||||||
|
*
|
||||||
|
* @return {*} {Promise<any>}
|
||||||
|
* @memberof DesktopTag
|
||||||
|
*/
|
||||||
|
refresh(): Promise<any>;
|
||||||
|
/**
|
||||||
|
* Remove this element from its parent
|
||||||
|
*
|
||||||
|
* @memberof DesktopTag
|
||||||
|
*/
|
||||||
|
remove(): void;
|
||||||
|
/**
|
||||||
|
* Active a window above all other windows
|
||||||
|
*
|
||||||
|
* @private
|
||||||
|
* @param {WindowTag} win
|
||||||
|
* @memberof DesktopTag
|
||||||
|
*/
|
||||||
|
private selectWindow;
|
||||||
|
/**
|
||||||
|
* Render all windows in order from bottom to top
|
||||||
|
*
|
||||||
|
* @private
|
||||||
|
* @memberof DesktopTag
|
||||||
|
*/
|
||||||
|
private render;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
declare namespace OS {
|
declare namespace OS {
|
||||||
namespace GUI {
|
namespace GUI {
|
||||||
namespace tag {
|
namespace tag {
|
||||||
@ -7990,10 +8084,6 @@ declare namespace OS {
|
|||||||
* Tag event callback type
|
* Tag event callback type
|
||||||
*/
|
*/
|
||||||
type TagEventCallback<T> = (e: TagEventType<T>) => void;
|
type TagEventCallback<T> = (e: TagEventType<T>) => void;
|
||||||
/**
|
|
||||||
* Top most element z index value, start by 10
|
|
||||||
*/
|
|
||||||
var zindex: number;
|
|
||||||
/**
|
/**
|
||||||
* Base abstract class for tag implementation, any AFX tag should be
|
* Base abstract class for tag implementation, any AFX tag should be
|
||||||
* subclass of this class
|
* subclass of this class
|
||||||
|
Loading…
Reference in New Issue
Block a user