From f247ba190e00a0137da64d1bb8980eaf57401b43 Mon Sep 17 00:00:00 2001 From: benfry Date: Sat, 16 Aug 2008 18:04:01 +0000 Subject: [PATCH] finalizing release 0146 --- build/shared/revisions.txt | 54 +++++++++++++++++++++++++++ core/src/processing/core/PApplet.java | 20 +++++----- todo.txt | 14 +++---- 3 files changed, 71 insertions(+), 17 deletions(-) diff --git a/build/shared/revisions.txt b/build/shared/revisions.txt index 752b836a7..738f58860 100644 --- a/build/shared/revisions.txt +++ b/build/shared/revisions.txt @@ -7,6 +7,60 @@ releases will be super crusty. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . +ABOUT REV 0146 - 16 August 2008 + +Bug fixes, regression repair, and fun features. + +* RELEASES SINCE 0135 CONTAIN MANY SIGNIFICANT CHANGES, PLEASE READ * +* THE NOTES IN THIS FILE FOR ANY RELEASE THAT YOU'VE NOT YET USED. * + +[ bug fixes ] + ++ get() and set() sometimes not honoring imageMode() setting with + the JAVA2D renderer setting. + ++ Fix problem with comment/uncomment and indent/outdent in cases + where no selection is active. + ++ When un-commenting lines, first ensure that *all* the lines are + commented out, otherwise default to adding comment markers to them. + ++ Fix (semi-major) regression in 145 (as compared to 0144) where exception + lines were not highlighting properly. + http://dev.processing.org/bugs/show_bug.cgi?id=877 + ++ Improve exception error messages (regression since 0135) by including + their full message rather than just their type. + ++ Fix problem with 3D geometry drawing multiple times in P3D. + http://dev.processing.org/bugs/show_bug.cgi?id=737 + +[ changes ] + ++ Added imageMode(CENTER). Or rather, brought it back from the 0070s. + ++ Greatly improve exception handling and parsing through the use of a + proper implementation and the removal of a large amount of duct tape. + ++ Fix and finalize previously unannounced, unmentioned (untouchable) + functions that prompt the user for a file to open, a location to save + a file, or select a folder. The functions each return a String object + (or null for no selection) and are called selectInput(), selectOutput(), + and selectFolder(). No parameters are necessary, but an optional + parameter allows you to specify the user prompt. For instance: + String loadPath = selectInput("What file ya want?"); + String savePath = selectOutput("Save this masterpiece as..."); + String folderPath = selectFolder("Which folder has the good stuff?"); + ++ Use actual sketch name when running instead of Temporary_NNNN_NNNN. + ++ Make the Processing icon show up in external windows (Windows and Linux). + Also set the window title (and dock title on OS X) for sketches. + + +. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + + ABOUT REV 0145 - 15 August 2008 This release contains several changes to fix issues related to timing diff --git a/core/src/processing/core/PApplet.java b/core/src/processing/core/PApplet.java index ffb2f3208..5c0d21d03 100644 --- a/core/src/processing/core/PApplet.java +++ b/core/src/processing/core/PApplet.java @@ -3546,7 +3546,7 @@ public class PApplet extends Applet // FILE/FOLDER SELECTION - protected File selectedFile; + public File selectedFile; protected Frame parentFrame; @@ -3568,27 +3568,27 @@ public class PApplet extends Applet } - public File selectInput() { + public String selectInput() { return selectInput("Select a file..."); } - public File selectInput(final String prompt) { + public String selectInput(final String prompt) { return selectFileImpl(prompt, FileDialog.LOAD); } - public File selectOutput() { + public String selectOutput() { return selectOutput("Save as..."); } - public File selectOutput(String prompt) { + public String selectOutput(String prompt) { return selectFileImpl(prompt, FileDialog.SAVE); } - protected File selectFileImpl(final String prompt, final int mode) { + protected String selectFileImpl(final String prompt, final int mode) { checkParentFrame(); try { @@ -3603,7 +3603,7 @@ public class PApplet extends Applet (filename == null) ? null : new File(directory, filename); } }); - return selectedFile; + return selectedFile.getAbsolutePath(); } catch (Exception e) { e.printStackTrace(); @@ -3612,12 +3612,12 @@ public class PApplet extends Applet } - public File selectFolder() { + public String selectFolder() { return selectFolder("Select a folder..."); } - public File selectFolder(final String prompt) { + public String selectFolder(final String prompt) { checkParentFrame(); try { @@ -3644,7 +3644,7 @@ public class PApplet extends Applet } } }); - return selectedFile; + return selectedFile.getAbsolutePath(); } catch (Exception e) { e.printStackTrace(); diff --git a/todo.txt b/todo.txt index 6a6ff5286..075aa929e 100644 --- a/todo.txt +++ b/todo.txt @@ -634,6 +634,13 @@ _ sketch marked as modified too aggressively _ http://dev.processing.org/bugs/show_bug.cgi?id=328 _ not remembering window size/placement preferences _ http://dev.processing.org/bugs/show_bug.cgi?id=837 +_ saved window positions.. if displays has changed, becomes a problem +_ record the display that it was on? +_ GraphicsDevice gd = frame.getGraphicsConfiguration().getDevice(); +_ make sure that the application is within the bounds of the current display? +_ (from 0, 0 to width, height) +_ messy since some displays have negative coords +_ http://dev.processing.org/bugs/show_bug.cgi?id=72 _ Closing the last window doesn't cause PDE to save its position/contents/etc _ http://dev.processing.org/bugs/show_bug.cgi?id=835 _ [LaunchRunner Error] processing.app.Base.main(String[]) threw an exception @@ -838,13 +845,6 @@ PDE / Preferences _ prefs window not visible on windows taskbar _ http://dev.processing.org/bugs/show_bug.cgi?id=438 -_ saved window positions.. if displays has changed, becomes a problem -_ record the display that it was on? -_ GraphicsDevice gd = frame.getGraphicsConfiguration().getDevice(); -_ make sure that the application is within the bounds of the current display? -_ (from 0, 0 to width, height) -_ messy since some displays have negative coords -_ http://dev.processing.org/bugs/show_bug.cgi?id=72 _ split Preferences and PreferencesFrame? _ http://dev.processing.org/bugs/show_bug.cgi?id=74 _ preferences window has been hit with the ugly stick