ElectronApp
Constructor Summary
| Public Constructor | ||
| public |
|
|
Member Summary
| Public Members | ||
| public |
appIcon: * |
|
| public |
appName: * |
|
| public |
editorWindow: * |
|
| Private Members | ||
| private |
|
|
| private |
_defaultWindowBounds: {"width": number, "height": number} |
|
| private |
|
|
| private |
_log: * |
|
| private |
_npm: * |
|
| private |
_unsavedContentLeave: boolean |
|
Method Summary
| Public Methods | ||
| public |
async addOpPackage(targetDir: *, opPackageLocation: *): * |
|
| public |
|
|
| public |
async exportProjectFileDialog(exportName: *): * |
|
| public |
init() |
|
| public |
async installPackages(targetDir: *, packageNames: *, opName: undefined): * |
|
| public |
isDocumentEdited(): * |
|
| public |
openFile(patchFile: *) |
|
| public |
async openPatch(patchFile: *, rebuildCache: boolean) |
|
| public |
async pickDirDialog(defaultPath: undefined): * |
|
| public |
async pickFileDialog(filePath: *, asUrl: boolean, filter: *[]): * |
|
| public |
async pickOpDirDialog(): * |
|
| public |
async pickProjectFileDialog(): * |
|
| public |
reload() |
|
| public |
async saveFileDialog(defaultPath: *, title: undefined, properties: *[], filters: *[]): * |
|
| public |
async saveProjectFileDialog(defaultPath: *): * |
|
| public |
sendTalkerMessage(cmd: *, data: *) |
|
| public |
setDocumentEdited(edited: *) |
|
| public |
|
|
| Private Methods | ||
| private |
|
|
| private |
|
|
| private |
_dirDialog(title: *, properties: *, defaultPath: undefined): * |
|
| private |
_fileDialog(title: *, filePath: undefined, asUrl: boolean, extensions: string[], properties: undefined): * |
|
| private |
_handleError(title: *, error: *) |
|
| private |
_initCaches(cb: *) |
|
| private |
|
|
| private |
async _installNpmPackages(packageNames: *, targetDir: *, opName: undefined): * |
|
| private |
_loadNpm(cb: undefined) |
|
| private |
_projectFileDialog(title: *, properties: *): * |
|
| private |
|
|
| private |
|
|
| private |
|
|
| private |
|
|
| private |
|
|
| private |
|
|
| private |
|
|
| private |
|
|
| private |
_zoomIn() |
|
| private |
_zoomOut() |
|
Public Constructors
public constructor() source
Public Members
public appIcon: * source
public appName: * source
public editorWindow: * source
Private Members
private _contentChanged: * source
private _defaultWindowBounds: {"width": number, "height": number} source
private _initialPatchFile: * source
private _log: * source
private _npm: * source
private _unsavedContentLeave: boolean source
Public Methods
public async addOpPackage(targetDir: *, opPackageLocation: *): * source
Params:
| Name | Type | Attribute | Description |
| targetDir | * | ||
| opPackageLocation | * |
Return:
| * |
public cycleFullscreen() source
public async exportProjectFileDialog(exportName: *): * source
Params:
| Name | Type | Attribute | Description |
| exportName | * |
Return:
| * |
public init() source
public async installPackages(targetDir: *, packageNames: *, opName: undefined): * source
Params:
| Name | Type | Attribute | Description |
| targetDir | * | ||
| packageNames | * | ||
| opName | undefined |
|
Return:
| * |
public openFile(patchFile: *) source
Params:
| Name | Type | Attribute | Description |
| patchFile | * |
public async openPatch(patchFile: *, rebuildCache: boolean) source
Params:
| Name | Type | Attribute | Description |
| patchFile | * | ||
| rebuildCache | boolean |
|
public async pickDirDialog(defaultPath: undefined): * source
Params:
| Name | Type | Attribute | Description |
| defaultPath | undefined |
|
Return:
| * |
public async pickFileDialog(filePath: *, asUrl: boolean, filter: *[]): * source
Params:
| Name | Type | Attribute | Description |
| filePath | * | ||
| asUrl | boolean |
|
|
| filter | *[] |
|
Return:
| * |
public reload() source
public async saveFileDialog(defaultPath: *, title: undefined, properties: *[], filters: *[]): * source
Params:
| Name | Type | Attribute | Description |
| defaultPath | * | ||
| title | undefined |
|
|
| properties | *[] |
|
|
| filters | *[] |
|
Return:
| * |
public async saveProjectFileDialog(defaultPath: *): * source
Params:
| Name | Type | Attribute | Description |
| defaultPath | * |
Return:
| * |
public sendTalkerMessage(cmd: *, data: *) source
Params:
| Name | Type | Attribute | Description |
| cmd | * | ||
| data | * |
public setDocumentEdited(edited: *) source
Params:
| Name | Type | Attribute | Description |
| edited | * |
public updateTitle() source
Private Methods
private _createMenu() source
private _createWindow() source
private _dirDialog(title: *, properties: *, defaultPath: undefined): * source
Params:
| Name | Type | Attribute | Description |
| title | * | ||
| properties | * | ||
| defaultPath | undefined |
|
Return:
| * |
private _fileDialog(title: *, filePath: undefined, asUrl: boolean, extensions: string[], properties: undefined): * source
Params:
| Name | Type | Attribute | Description |
| title | * | ||
| filePath | undefined |
|
|
| asUrl | boolean |
|
|
| extensions | string[] |
|
|
| properties | undefined |
|
Return:
| * |
private _handleError(title: *, error: *) source
Params:
| Name | Type | Attribute | Description |
| title | * | ||
| error | * |
private _initCaches(cb: *) source
Params:
| Name | Type | Attribute | Description |
| cb | * |
private _inspectElements() source
private async _installNpmPackages(packageNames: *, targetDir: *, opName: undefined): * source
Params:
| Name | Type | Attribute | Description |
| packageNames | * | ||
| targetDir | * | ||
| opName | undefined |
|
Return:
| * |
private _loadNpm(cb: undefined) source
Params:
| Name | Type | Attribute | Description |
| cb | undefined |
|
private _projectFileDialog(title: *, properties: *): * source
Params:
| Name | Type | Attribute | Description |
| title | * | ||
| properties | * |
Return:
| * |