mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 21:59:20 +01:00
minor tweaks
This commit is contained in:
@@ -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 + "\"");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
7
todo.txt
7
todo.txt
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user