From 0f776460b9c329938542dcf112c6997b2f4a8565 Mon Sep 17 00:00:00 2001 From: Tres Finocchiaro Date: Thu, 17 Nov 2022 02:33:44 -0500 Subject: [PATCH] Remove menu code, add initial control dialog --- js/qz-tray.js | 9 +-- sample.html | 2 +- src/qz/common/TrayManager.java | 109 +++++++++++++++++++++++----- src/qz/ui/BasicDialog.java | 8 +- src/qz/ui/GatewayDialog.java | 2 +- src/qz/ui/tray/AWTMenuWrapper.java | 3 + src/qz/ui/tray/TaskbarTrayIcon.java | 4 - src/qz/ui/tray/TrayType.java | 45 ------------ src/qz/utils/MacUtilities.java | 4 +- src/qz/utils/SystemUtilities.java | 14 ++-- src/qz/ws/PrintSocketClient.java | 9 +-- src/qz/ws/SocketMethod.java | 2 +- 12 files changed, 112 insertions(+), 99 deletions(-) diff --git a/js/qz-tray.js b/js/qz-tray.js index 4ca410bd8..5217477f0 100644 --- a/js/qz-tray.js +++ b/js/qz-tray.js @@ -2658,16 +2658,11 @@ var qz = (function() { */ gui: { /** - * Show the System Tray menu + * Show the the actions/options menu * @memberof qz.gui */ showMenu: function(event) { - var position = event ? { x: event.screenX, y: event.screenY } : null; - if(position) { - return _qz.websocket.dataPromise('gui.showMenu', position); - } else { - _qz.log.warn("Menu requires a MouseEvent"); - } + return _qz.websocket.dataPromise('gui.showMenu'); }, /** diff --git a/sample.html b/sample.html index 4dbfde178..3f2ee1ef3 100755 --- a/sample.html +++ b/sample.html @@ -53,7 +53,7 @@

QZ Tray v0

-