diff --git a/processing/app/PdeBase.java b/processing/app/PdeBase.java index 170628cdb..55a921a74 100644 --- a/processing/app/PdeBase.java +++ b/processing/app/PdeBase.java @@ -58,6 +58,8 @@ public class PdeBase extends Frame , MRJPrefsHandler #endif { + static final String VERSION = "0065 Alpha"; + static Properties properties; static Properties keywords; // keyword -> reference html lookup @@ -1032,6 +1034,17 @@ public class PdeBase extends Frame final Window window = new Window(this) { public void paint(Graphics g) { g.drawImage(image, 0, 0, null); + + /* + // does nothing.. + Graphics2D g2 = (Graphics2D) g; + g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, + RenderingHints.VALUE_ANTIALIAS_OFF); + */ + + g.setFont(new Font("SansSerif", Font.PLAIN, 11)); + g.setColor(Color.white); + g.drawString(VERSION, 50, 30); } }; window.addMouseListener(new MouseAdapter() { diff --git a/processing/app/PdeEditor.java b/processing/app/PdeEditor.java index b15aee7ce..861dd2b12 100644 --- a/processing/app/PdeEditor.java +++ b/processing/app/PdeEditor.java @@ -1833,7 +1833,21 @@ public class PdeEditor extends JPanel { gotBlankLine = false; } } + + // save current (rough) selection point + int selectionEnd = textarea.getSelectionEnd(); + + // replace with new bootiful text changeText(buffer.toString(), false); + + // make sure the caret would be past the end of the text + if (buffer.length() < selectionEnd - 1) { + selectionEnd = buffer.length() - 1; + } + + // at least in the neighborhood + textarea.select(selectionEnd, selectionEnd); + setSketchModified(true); buttons.clear(); } diff --git a/processing/app/PdeEditorButtons.java b/processing/app/PdeEditorButtons.java index 33dbb12c9..89dd8eb93 100644 --- a/processing/app/PdeEditorButtons.java +++ b/processing/app/PdeEditorButtons.java @@ -243,6 +243,9 @@ public class PdeEditorButtons extends JPanel implements MouseInputListener { } public void mouseMoved(MouseEvent e) { + // mouse events before paint(); + if (state == null) return; + if (state[OPEN] != INACTIVE) { // avoid flicker, since there will probably be an update event setState(OPEN, INACTIVE, false); diff --git a/processing/build/shared/bugs.txt b/processing/build/shared/bugs.txt index 9b51cae6e..8de0e3e39 100644 --- a/processing/build/shared/bugs.txt +++ b/processing/build/shared/bugs.txt @@ -37,6 +37,9 @@ KNOWN BUGS the real deal, keeping us awake at night +- beautify doesn't retain the *exact* position of the caret within the + text. + - java mode in rev 63 and higher only works if you have java available in your path--meaning that you've installed it yourself under windows or linux, or this will always be the case for macosx. diff --git a/processing/build/shared/revisions.txt b/processing/build/shared/revisions.txt index cd0ff9fe0..6ec4ce7f8 100644 --- a/processing/build/shared/revisions.txt +++ b/processing/build/shared/revisions.txt @@ -3,6 +3,38 @@ general reference of how to use processing, because the information for older releases will be super crusty. caution: the beverage you're about to enjoy is extremely hot. +. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + + +ABOUT REV 0065 - 30 september 2003 + +one major bug fix that repairs nastiness in drawing text that showed +up starting with rev 60. and some other tiny tidbits. + + +[ bug fixes ] + +- fonts have been return to their previous state, fixing some real + ugliness that appeared starting with release 60. + http://proce55ing.net/discourse/yabb/YaBB.cgi?board=Proce55ing_software_bugs;action=display;num=1064722202 + +- beautify does a better job of retaining the caret position, rather + than jumping back to the beginning of your code. it's not perfect + yet, but perfection will happen post-beta. + http://proce55ing.net/discourse/yabb/YaBB.cgi?board=Proce55ing_software_bugs;action=display;num=1064220242;start=0 + + +[ additions ] + +- hint(DISABLE_TEXT_SMOOTH) has been added at arielm's request. the + previous hint SMOOTH_IMAGES is now always enabled for text, + +- the about box now includes the current release number + http://proce55ing.net/discourse/yabb/YaBB.cgi?board=Proce55ing_software_bugs;action=display;num=1064220242 + + +. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + ABOUT REV 0064 - 29 september 2003 diff --git a/processing/done.txt b/processing/done.txt index 42a3ef74a..abbb57c0e 100644 --- a/processing/done.txt +++ b/processing/done.txt @@ -1,3 +1,11 @@ +0064 +X re-enable (bad) thick line code since it was completely shut off +X set default filename for the font +X line 6:1: unexpected char: 0xA0 +X clicking cancel on 'save changes' doesn't cancel, but still quits +X removed the cancel button + + 0063 X beautify menu became disabled when moved X BImage(int width, int height) constructor diff --git a/processing/todo.txt b/processing/todo.txt index 318c28177..f177bf8c2 100644 --- a/processing/todo.txt +++ b/processing/todo.txt @@ -1,29 +1,27 @@ -0064 -X re-enable (bad) thick line code since it was completely shut off -X set default filename for the font -X line 6:1: unexpected char: 0xA0 -X clicking cancel on 'save changes' doesn't cancel, but still quits -X removed the cancel button +0065 +X fix SMOOTH_IMAGES problem with how text had been modified +X include version number in the about box +X http://proce55ing.net/discourse/yabb/YaBB.cgi?board=Proce55ing_software_bugs;action=display;num=1064220242 +X Ctrl-B will beautify the code and send the cursor back to the +X beginning of the the text. Then you have to scroll back to +X where you were... ok, so maybe I am a heavy user of Ctrl-B. +X http://proce55ing.net/discourse/yabb/YaBB.cgi?board=Proce55ing_software_bugs;action=display;num=1064220242;start=0 -_ figure out how to cancel 'save changes' on macosx and windows -_ http://proce55ing.net/discourse/yabb/YaBB.cgi?board=Proce55ing_software_bugs;action=display;num=1064732330;start=0 -_ set PATH to include java (!) -_ history could be gzipped and appended to history.dat -_ along with another file that is actually a table of offsets -_ no need to make the thing a gzip stream -_ checkbox on menu for 'record history' ? -_ history converter option? -_ jikes errors are missing newline/linefeed ? -_ using run-expert.bat on 62 causes NullPointerException weirdness -_ network/shared_canvas, network/value has old code -_ write script to remove .DS_Store and CVS folders from dist -_ include version number in the about box -_ http://proce55ing.net/discourse/yabb/YaBB.cgi?board=Proce55ing_software_bugs;action=display;num=1064220242 -_ change run.bat, run-expert.bat to use 128m +DEVELOPERS +_ try ariel's Thread.yield() suggestion +_ set default framerate of 24? 30? +_ BImage.replicate for straight 1:1 copy, blend() for blended version +_ remove the blendMode function because it's confusing MEDIUM +_ set PATH to include java (!) +_ jikes errors are missing newline/linefeed ? +_ using run-expert.bat on 62 causes NullPointerException weirdness (?) +_ network/shared_canvas, network/value has old code +_ write script to remove .DS_Store and CVS folders from dist +_ change run.bat, run-expert.bat to use 128m _ ability to include other .java and .pde code from sketchbook folder _ 'add files' for .java or .pde pulls into the folder _ light(x, y, z, c1, c2, c3, TYPE) @@ -105,8 +103,12 @@ bf b _ http://proce55ing.net/discourse/yabb/YaBB.cgi?board=Proce55ing_software history -_ history causing trouble -_ super slow with a huge sketch +_ history causing trouble - super slow with a huge sketch +_ could instead be gzipped and appended to history.dat +_ along with another file that is actually a table of offsets +_ no need to make the thing a gzip stream +_ checkbox on menu for 'record history' ? +_ history converter option? multiple files / java mode @@ -169,7 +171,12 @@ leonhard@rathner.com LOWER (post beta tweaks, non-structural) - +_ Ctrl-Z will undo, but the window will not scroll to where the +_ "undoing" is happening. This can lead the user to assume that +_ actually nothing is happening and overundo. +_ http://proce55ing.net/discourse/yabb/YaBB.cgi?board=Proce55ing_software_bugs;action=display;num=1064220242;start=0 +_ figure out how to cancel 'save changes' on macosx and windows +_ http://proce55ing.net/discourse/yabb/YaBB.cgi?board=Proce55ing_software_bugs;action=display;num=1064732330;start=0 _ error if you try to hit export twice on a sketch _ "C:/ProgramFiles/proce55ing/processing-0060/sketchbook/default/double_export_tesuble_export_test.java:1:625:7:2: Semantic Error: Unable to write file _ "C:/ProgramFiles/proce55ing/processing-0060/sketchbook/default/double_export_tesuble_export_test.class"." @@ -221,6 +228,7 @@ _ because it just quit without finishing _ macosx handleQuit forces termination (at least on 1.3) _ figure out how to prevent it, and add the 'cancel' button back _ drag & drop implementation to add files to sketch +_ do a better job of maintaining cursor during beautify thesis / acg