From 47125c979747edf726150f5d21ea49609bb7d2db Mon Sep 17 00:00:00 2001 From: Ben Fry Date: Wed, 30 Jul 2014 11:58:45 -0400 Subject: [PATCH] disable the OS X export button on Windows and Linux (fixes 2642) --- app/src/processing/mode/java/JavaEditor.java | 9 +++++++++ todo.txt | 6 +++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/app/src/processing/mode/java/JavaEditor.java b/app/src/processing/mode/java/JavaEditor.java index 70e083ea4..270209ef2 100644 --- a/app/src/processing/mode/java/JavaEditor.java +++ b/app/src/processing/mode/java/JavaEditor.java @@ -283,6 +283,11 @@ public class JavaEditor extends Editor { } }); + // Only possible to export OS X applications on OS X + if (!Base.isMacOS()) { + // Make sure they don't have a previous 'true' setting for this + Preferences.setBoolean("export.application.platform.macosx", false); + } final JCheckBox macosxButton = new JCheckBox("Mac OS X"); macosxButton.setSelected(Preferences.getBoolean("export.application.platform.macosx")); macosxButton.addItemListener(new ItemListener() { @@ -290,6 +295,10 @@ public class JavaEditor extends Editor { Preferences.setBoolean("export.application.platform.macosx", macosxButton.isSelected()); } }); + if (!Base.isMacOS()) { + macosxButton.setEnabled(false); + macosxButton.setToolTipText("Mac OS X export is only available on Mac OS X"); + } final JCheckBox linuxButton = new JCheckBox("Linux"); //linuxButton.setMnemonic(KeyEvent.VK_L); diff --git a/todo.txt b/todo.txt index 8ea0536a9..b1cb03c8a 100644 --- a/todo.txt +++ b/todo.txt @@ -18,6 +18,8 @@ X https://github.com/processing/processing/issues/2599 pulls X insert tabs properly when prefs set for tabs mode X https://github.com/processing/processing/pull/2607 +X improve look of Nimbus LAF +X https://github.com/processing/processing/pull/2671 earlier X maxHeapSize typo in the build scripts @@ -31,6 +33,7 @@ o https://github.com/processing/processing/issues/2639 X moving p5 examples to the web repo X remove reference.zip from main repo + _ add a new pref for the 3.0 sketchbook location _ fix the build scripts to include the examples _ https://github.com/processing/processing/issues/2652 @@ -47,12 +50,13 @@ _ OS X export button not disabled on other platforms _ https://github.com/processing/processing/issues/2642 _ look at the sound library https://github.com/wirsing/ProcessingSound +_ appears that sound is not yet supported on Windows _ try new syntax package _ possibility of libraries folder inside a particular sketch? _ incorporate new preproc _ https://github.com/fjenett/processing-preprocessor-antlr4 -_ glw? lwjgl? +_ glw? lwjgl? retina jogl? _ move sketchbook into its own window _ move recent into the sketchbook menu _ needs to recognize the p5 app folder