mirror of
https://github.com/processing/processing4.git
synced 2026-02-11 17:40:48 +01:00
working on libraries and menu layout
This commit is contained in:
@@ -51,6 +51,8 @@ public class PdeSketch {
|
||||
// true if any of the files have been modified
|
||||
boolean modified;
|
||||
|
||||
boolean library; // true if it's a library
|
||||
|
||||
File folder; //sketchFolder;
|
||||
File dataFolder;
|
||||
File codeFolder;
|
||||
@@ -114,6 +116,11 @@ public class PdeSketch {
|
||||
codeFolder = new File(folder, "code");
|
||||
dataFolder = new File(folder, "data");
|
||||
|
||||
File libraryFolder = new File(folder, "library");
|
||||
if (libraryFolder.exists()) {
|
||||
library = true;
|
||||
}
|
||||
|
||||
load();
|
||||
}
|
||||
|
||||
@@ -497,6 +504,14 @@ public class PdeSketch {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Return true if this sketch is a library.
|
||||
*/
|
||||
public boolean isLibrary() {
|
||||
return library;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the modified value for the code in the frontmost tab.
|
||||
*/
|
||||
@@ -1242,12 +1257,13 @@ public class PdeSketch {
|
||||
* + +
|
||||
* +-------------------------------------------------------+
|
||||
*/
|
||||
public boolean export() throws Exception {
|
||||
return exportApplet(true);
|
||||
}
|
||||
//public boolean export() throws Exception {
|
||||
//return exportApplet(true);
|
||||
//}
|
||||
|
||||
|
||||
public boolean exportApplet(boolean replaceHtml) throws Exception {
|
||||
public boolean exportApplet(/*boolean replaceHtml*/) throws Exception {
|
||||
boolean replaceHtml = true;
|
||||
//File appletDir, String exportSketchName, File dataDir) {
|
||||
//String program = textarea.getText();
|
||||
|
||||
@@ -1505,6 +1521,16 @@ public class PdeSketch {
|
||||
}
|
||||
|
||||
|
||||
public boolean exportApplication() {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
public boolean exportLibrary() {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Slurps up .class files from a colon (or semicolon on windows)
|
||||
* separated list of paths and adds them to a ZipOutputStream.
|
||||
|
||||
Reference in New Issue
Block a user