diff --git a/processing/app/PdeEditor.java b/processing/app/PdeEditor.java index 6fc9843d7..e34fef2eb 100644 --- a/processing/app/PdeEditor.java +++ b/processing/app/PdeEditor.java @@ -702,6 +702,7 @@ implements MRJAboutHandler, MRJQuitHandler, MRJPrefsHandler item.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { textarea.cut(); + sketch.setModified(); } }); menu.add(item); @@ -718,6 +719,7 @@ implements MRJAboutHandler, MRJQuitHandler, MRJPrefsHandler item.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { textarea.paste(); + sketch.setModified(); } }); menu.add(item); @@ -1096,15 +1098,8 @@ implements MRJAboutHandler, MRJQuitHandler, MRJPrefsHandler * checkModified2() which will get on with business. */ protected void checkModified(int checkModifiedMode) { - //checkModified(checkModifiedMode, null, null); - //} - //protected void checkModified(int checkModifiedMode, String path, String name) { this.checkModifiedMode = checkModifiedMode; - //openingPath = path; - //openingName = name; - //if (!sketch.isModified()) { - //if (sketch.modified) checkModified2(); if (!sketch.modified) { checkModified2(); return; diff --git a/processing/app/PdeSketch.java b/processing/app/PdeSketch.java index 852d029d0..595d2d49b 100644 --- a/processing/app/PdeSketch.java +++ b/processing/app/PdeSketch.java @@ -267,6 +267,7 @@ public class PdeSketch { /** * This is called upon return from entering a new file name. + * (that is, from either newCode or renameCode after the prompt) * This code is almost identical for both the newCode and renameCode * cases, so they're kept merged except for right in the middle * where they diverge. diff --git a/processing/todo.txt b/processing/todo.txt index 0d4183a90..8134c0d15 100644 --- a/processing/todo.txt +++ b/processing/todo.txt @@ -19,22 +19,16 @@ o don't exit p5 if platform is unknown o "save as" needs to update the editorheader X couldn't replicate this X MAJOR: make .pde files embed themselves into the main class - -_ openStream returning 'null' really horked up the letters applet -_ no System.out was coming through -_ System.err was getting cut off before finishing - -_ "paste" isn't setting the "modified" bit for PdeEditor -_ i.e. cut -> new file -> paste doesn't mark any as changed +o readUntil() should do the proper thing if the data is not available +o i.e. either return null, or block until it's available? -> ret null +X "paste" isn't setting the "modified" bit for PdeEditor +X i.e. cut -> new file -> paste doesn't mark any as changed _ processing.net -> PClient, PServer _ change font api to not use leading() as a way to reset the leading _ don't change the size of a font when in screen space mode -_ readUntil() should do the proper thing if the data is not available -_ i.e. either return null, or block until it's available? -> ret null - _ "add library" menu item and submenu _ iterate through the 'library' folders _ dll and jnilib files have to be in the p5 folder (confirmed by amit) @@ -131,6 +125,9 @@ _ threading issues on casey's laptop _ odd error in System.err stream coming from running external _ dies after a while or goes weird _ make sure exceptions with .class work +_ openStream returning 'null' really horked up the letters applet +_ no System.out was coming through +_ System.err was getting cut off before finishing 0071 or later