set sketch modified when using the edit menu to cut/paste

This commit is contained in:
benfry
2004-07-17 02:04:39 +00:00
parent af961ba2c8
commit e823eb65f4
3 changed files with 10 additions and 17 deletions
+2 -7
View File
@@ -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;
+1
View File
@@ -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.
+7 -10
View File
@@ -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