From 3d30e720e6f012f2d9996b136154dd551844998a Mon Sep 17 00:00:00 2001 From: Normand Briere <nbriere@noware.ca> Date: Wed, 25 Dec 2019 16:54:14 -0500 Subject: [PATCH] Conditional key pressed to support print screen. --- GroupEditor.java | 17 +++++++++++------ 1 files changed, 11 insertions(+), 6 deletions(-) diff --git a/GroupEditor.java b/GroupEditor.java index 1cbbe20..558a072 100644 --- a/GroupEditor.java +++ b/GroupEditor.java @@ -1119,13 +1119,17 @@ antialiasCB.setToolTipText("Final render"); antialiasCB.addItemListener(this); + oe.toolbarPanel.add(restoreCameraButton = GetButton("icons/eye.png", !Globals.NIMBUSLAF)); //, oe.aConstraints); + restoreCameraButton.setToolTipText("Restore viewpoint"); + restoreCameraButton.addActionListener(this); + oe.toolbarPanel.add(screenfitButton = GetButton("icons/fit.png", !Globals.NIMBUSLAF)); //, oe.aConstraints); screenfitButton.setToolTipText("Screen fit"); screenfitButton.addActionListener(this); - oe.toolbarPanel.add(restoreCameraButton = GetButton("icons/eye.png", !Globals.NIMBUSLAF)); //, oe.aConstraints); - restoreCameraButton.setToolTipText("Restore viewpoint"); - restoreCameraButton.addActionListener(this); + oe.toolbarPanel.add(flashSelectionButton = GetButton("icons/flash-light.png", !Globals.NIMBUSLAF)); //, oe.aConstraints); + flashSelectionButton.setToolTipText("Highlight selection"); + flashSelectionButton.addActionListener(this); versionManagerPanel.add(saveVersionButton = GetButton("icons/down_arrow.png", !Globals.NIMBUSLAF)); //, oe.aConstraints); saveVersionButton.setToolTipText("Duplicate current version"); @@ -1314,9 +1318,9 @@ //unselectButton.setToolTipText("Unselect"); //unselectButton.addActionListener(this); - editCommandsPanel.add(flashSelectionButton = GetButton("icons/flash-light.png", !Globals.NIMBUSLAF)); //, oe.aConstraints); - flashSelectionButton.setToolTipText("Highlight selection"); - flashSelectionButton.addActionListener(this); +// editCommandsPanel.add(flashSelectionButton = GetButton("icons/flash-light.png", !Globals.NIMBUSLAF)); //, oe.aConstraints); +// flashSelectionButton.setToolTipText("Highlight selection"); +// flashSelectionButton.addActionListener(this); editCommandsPanel.preferredHeight = 1; @@ -5587,6 +5591,7 @@ editButton.setEnabled(enabled); uneditButton.setEnabled(enabled); //unselectButton.setEnabled(enabled); + screenfitButton.setEnabled(enabled); flashSelectionButton.setEnabled(enabled); clearPanelButton.setEnabled(!listUI.isEmpty()); -- Gitblit v1.6.2