From 9cbc1a79f47a9b7ec03b3f70790c3bf59596b544 Mon Sep 17 00:00:00 2001 From: Ben Fry Date: Sun, 20 Sep 2015 15:46:30 -0400 Subject: [PATCH] show hover text when the mouse is over the 'debug' button --- app/src/processing/app/ui/EditorToolbar.java | 4 ++-- java/src/processing/mode/java/JavaToolbar.java | 5 ++++- todo.txt | 6 +++--- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/app/src/processing/app/ui/EditorToolbar.java b/app/src/processing/app/ui/EditorToolbar.java index 2b36d3fe5..d015da1ba 100644 --- a/app/src/processing/app/ui/EditorToolbar.java +++ b/app/src/processing/app/ui/EditorToolbar.java @@ -112,7 +112,7 @@ abstract public class EditorToolbar extends JPanel { // stopButton.setRolloverLabel(label); box.add(Box.createHorizontalGlue()); - addModeButtons(box); + addModeButtons(box, label); // Component items = createModeButtons(); // if (items != null) { // box.add(items); @@ -165,7 +165,7 @@ abstract public class EditorToolbar extends JPanel { } - public void addModeButtons(Box box) { + public void addModeButtons(Box box, JLabel label) { } diff --git a/java/src/processing/mode/java/JavaToolbar.java b/java/src/processing/mode/java/JavaToolbar.java index 257685698..d3fbad831 100644 --- a/java/src/processing/mode/java/JavaToolbar.java +++ b/java/src/processing/mode/java/JavaToolbar.java @@ -27,6 +27,7 @@ import java.util.ArrayList; import java.util.List; import javax.swing.Box; +import javax.swing.JLabel; import processing.app.Language; import processing.app.ui.Editor; @@ -109,7 +110,8 @@ public class JavaToolbar extends EditorToolbar { } - public void addModeButtons(Box box) { + @Override + public void addModeButtons(Box box, JLabel label) { EditorButton debugButton = new EditorButton(mode, "/lib/toolbar/debug", Language.text("toolbar.debug")) { @@ -122,6 +124,7 @@ public class JavaToolbar extends EditorToolbar { if (((JavaEditor) editor).isDebuggerEnabled()) { debugButton.setSelected(true); } + debugButton.setRolloverLabel(label); box.add(debugButton); addGap(box); } diff --git a/todo.txt b/todo.txt index fed3e46e4..555965b36 100644 --- a/todo.txt +++ b/todo.txt @@ -23,6 +23,8 @@ X change the Tool API after all, since none of the tools have been updated X https://github.com/processing/processing/wiki/Tool-Basics X items still show up in "Recent" if they no longer exist (on startup) X checked code and this seems to be fine / can't reproduce +X show hover text when the mouse is over the 'debug' button +_ update EditorButton rollover label when pressing shift or alt jna problems X UnsatisfiedLinkError on startup "Access is denied" on Windows 10 @@ -108,7 +110,7 @@ _ remove the dated releases from download.processing.org sketch modified externally (3.0 final) X sketch modified externally with FAT32 volumes on OS X X https://github.com/processing/processing/issues/3387 -_ might have this fixed with the larger time window +X might have this fixed with the larger time window _ need to check if "save as" thing is causing trouble X "Your sketch has been modified externally" with encrypted OS X volumes X https://github.com/processing/processing/issues/3650 @@ -133,7 +135,6 @@ _ https://github.com/processing/processing/issues/3665 gui / 3.0 final -_ show hover text when the mouse is over the 'debug' button _ show number of updates available in the footer _ https://github.com/processing/processing/issues/3518 _ finish the gui @@ -154,7 +155,6 @@ _ could do rollover as well, but do other apps use them? _ iTunes has no rollover state but has a 'down' state _ swaps to stop after release _ deactivate step, continue, stop when not running? -_ update EditorButton rollover label when pressing shift or alt _ disable the debug toggle menu while running _ otherwise could run in one mode, then try to stop in another _ recent menu gets huge with other p5 versions on osx