Skip to content

Commit

Permalink
contextmenu for dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
jogibear9988 committed Feb 4, 2024
1 parent 7fcac08 commit fe43f00
Show file tree
Hide file tree
Showing 14 changed files with 177 additions and 159 deletions.
2 changes: 1 addition & 1 deletion lib/es5/dock-spawn-ts.js

Large diffs are not rendered by default.

11 changes: 9 additions & 2 deletions lib/js/Dialog.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { PanelContainer } from "./PanelContainer.js";
import { DraggableContainer } from "./DraggableContainer.js";
import { ResizableContainer } from "./ResizableContainer.js";
import { EventHandler } from "./EventHandler.js";
import { DockNode } from "./DockNode.js";
export declare class Dialog {
elementDialog: HTMLDivElement & {
floatingDialog: Dialog;
Expand All @@ -16,21 +17,23 @@ export declare class Dialog {
resizable: ResizableContainer;
disableResize: boolean;
mouseDownHandler: any;
touchDownHandler: any;
onKeyPressBound: any;
noDocking: boolean;
isHidden: boolean;
keyPressHandler: EventHandler;
focusHandler: EventHandler;
grayoutParent: PanelContainer;
contextmenuHandler: EventHandler;
_ctxMenu: HTMLDivElement;
_windowsContextMenuCloseBound: any;
constructor(panel: PanelContainer, dockManager: DockManager, grayoutParent?: PanelContainer, disableResize?: boolean);
saveState(x: number, y: number): void;
static fromElement(id: string, dockManager: DockManager): Dialog;
_initialize(): void;
setPosition(x: number, y: number): void;
getPosition(): Point;
onFocus(): void;
onMouseDown(): void;
onMouseDown(e: PointerEvent): void;
destroy(): void;
resize(width: number, height: number): void;
setTitle(title: string): void;
Expand All @@ -40,4 +43,8 @@ export declare class Dialog {
close(): void;
remove(): void;
show(): void;
static createContextMenuContentCallback: (dialog: Dialog, contextMenuContainer: HTMLDivElement, documentMangerNodes: DockNode[]) => boolean;
oncontextMenuClicked(e: MouseEvent): void;
closeContextMenu(): void;
windowsContextMenuClose(e: Event): void;
}
70 changes: 62 additions & 8 deletions lib/js/Dialog.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit fe43f00

Please sign in to comment.