minor tweaks

This commit is contained in:
benfry
2004-07-17 00:10:14 +00:00
parent df45798d9c
commit 36660571fe
3 changed files with 7 additions and 22 deletions

View File

@@ -52,6 +52,7 @@ public class PdeBase {
static final int MACOSX = 3;
static final int LINUX = 4;
static final int IRIX = 5;
static final int UNKNOWN = 5;
static int platform;
static final String platforms[] = {
@@ -86,8 +87,8 @@ public class PdeBase {
platform = IRIX;
} else {
platform = WINDOWS; // probably safest
System.out.println("unhandled osname: \"" + osname + "\"");
platform = UNKNOWN;
//System.out.println("unhandled osname: \"" + osname + "\"");
}
}

View File

@@ -499,13 +499,8 @@ public class PdeSketch {
/**
* Sets the modified value for the code in the frontmost tab.
*/
//public void setCurrentModified(boolean what) {
//public void setModified(boolean what) {
public void setModified() {
//System.out.println("setting modified for " + current.program);
//modified = true;
current.modified = true;
//editor.header.repaint();
calcModified();
}
@@ -521,18 +516,6 @@ public class PdeSketch {
editor.header.repaint();
}
/**
* Return true if any of the items are modified.
*/
/*
public boolean isModified() {
for (int i = 0; i < codeCount; i++) {
if (code[i].modified) return true;
}
return false;
}
*/
/**
* Save all code in the current sketch.

View File

@@ -14,9 +14,10 @@ X moving p5 prefs on mac into documents? or inside sketchbook?
X Documents -> Processing -> preferences.txt
X do the same for windows, with sketchbook as a subfolder
_ don't exit p5 if platform is unknown
_ "save as" needs to update the editorheader
040716 evening
o don't exit p5 if platform is unknown
o "save as" needs to update the editorheader
X couldn't replicate this
_ make additional .pde files embed themselves into the main class