mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
thought this was checked in.. guess not
This commit is contained in:
@@ -521,6 +521,8 @@ public class KjcEngine extends at.dms.kjc.Main implements PdeEngine {
|
||||
}
|
||||
//System.out.println("got it " + s);
|
||||
}
|
||||
} else {
|
||||
System.out.println("message mode not set");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -567,7 +569,7 @@ public class KjcEngine extends at.dms.kjc.Main implements PdeEngine {
|
||||
int numero1 = (int) (Math.random() * 10000);
|
||||
int numero2 = (int) (Math.random() * 10000);
|
||||
tempClass = TEMP_CLASS + "_" + numero1 + "_" + numero2;
|
||||
//System.err.println("KjcEngine.started");
|
||||
//System.out.println("KjcEngine.started");
|
||||
writeJava(tempClass, true);
|
||||
//System.err.println("KjcEngine wrote java");
|
||||
//System.out.println("thread active count is " + Thread.activeCount());
|
||||
|
||||
@@ -378,7 +378,6 @@ public class PdeBase implements ActionListener {
|
||||
editor.doQuit();
|
||||
//editor.initiate(Editor.QUIT);
|
||||
|
||||
|
||||
} else if (command.equals("Run")) {
|
||||
editor.doRun(false);
|
||||
|
||||
|
||||
@@ -23,11 +23,11 @@ public class PdeEditorListener extends KeyAdapter implements FocusListener {
|
||||
public PdeEditorListener(PdeEditor editor) {
|
||||
this.editor = editor;
|
||||
|
||||
expandTabs = PdeBase.getBoolean("editor.expandTabs", true);
|
||||
tabSize = PdeBase.getInteger("editor.tabSize", 2);
|
||||
expandTabs = PdeBase.getBoolean("editor.expand_tabs", true);
|
||||
tabSize = PdeBase.getInteger("editor.tab_size", 2);
|
||||
tabString = spaces.substring(0, tabSize);
|
||||
autoIndent = PdeBase.getBoolean("editor.autoIndent", true);
|
||||
balanceParens = PdeBase.getBoolean("editor.balanceParens", true);
|
||||
autoIndent = PdeBase.getBoolean("editor.auto_indent", true);
|
||||
balanceParens = PdeBase.getBoolean("editor.balance_parens", false);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -192,10 +192,13 @@ public class PdeEditorStatus extends Panel
|
||||
cancelButton = new Button(PROMPT_CANCEL);
|
||||
okButton = new Button(PROMPT_OK);
|
||||
|
||||
yesButton.setBackground(bgcolor[PROMPT]);
|
||||
noButton.setBackground(bgcolor[PROMPT]);
|
||||
cancelButton.setBackground(bgcolor[PROMPT]);
|
||||
okButton.setBackground(bgcolor[PROMPT]);
|
||||
// !@#(* aqua #($*(( turtle-neck wearing #(** (#$@)(
|
||||
if (PdeBase.platform == PdeBase.MACOSX) {
|
||||
yesButton.setBackground(bgcolor[PROMPT]);
|
||||
noButton.setBackground(bgcolor[PROMPT]);
|
||||
cancelButton.setBackground(bgcolor[PROMPT]);
|
||||
okButton.setBackground(bgcolor[PROMPT]);
|
||||
}
|
||||
|
||||
setLayout(null);
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ import java.io.*;
|
||||
//import java.util.*;
|
||||
|
||||
|
||||
public class PdeRunner implements Runnable {
|
||||
public class PdeRunner /*implements Runnable*/ {
|
||||
//DbnGraphics graphics;
|
||||
//PdeEnvironment env;
|
||||
PdeEditor editor;
|
||||
@@ -55,9 +55,13 @@ public class PdeRunner implements Runnable {
|
||||
public void run() {
|
||||
state = RUNNER_STARTED;
|
||||
//graphics.reset(); // remove for pde
|
||||
//System.out.println("running");
|
||||
|
||||
try {
|
||||
if (program.length() == 0) {
|
||||
// hotspot vm or jikes 1.16 requires something
|
||||
// to be here.. bad code getting compiled somewhere
|
||||
System.out.println("no program");
|
||||
|
||||
/*
|
||||
} else if (program.indexOf('#') < 2) { //charAt(0) == '#') {
|
||||
@@ -97,6 +101,7 @@ public class PdeRunner implements Runnable {
|
||||
engine.start();
|
||||
forceStop = false;
|
||||
*/
|
||||
//System.out.println("over here");
|
||||
|
||||
//engine = new KjcEngine(program, "lib", editor);
|
||||
//this.buildPath = "lib" + File.separator + "build"; // TEMPORARY
|
||||
@@ -119,8 +124,11 @@ public class PdeRunner implements Runnable {
|
||||
System.out.println("out: " + cp2);
|
||||
System.setProperties(props);
|
||||
*/
|
||||
//System.out.println("over here2");
|
||||
|
||||
engine = new KjcEngine(program, buildPath, dataPath, editor);
|
||||
//System.out.println("over here3");
|
||||
|
||||
engine.start();
|
||||
|
||||
/*
|
||||
@@ -148,6 +156,7 @@ public class PdeRunner implements Runnable {
|
||||
state = RUNNER_ERROR;
|
||||
forceStop = false;
|
||||
this.stop();
|
||||
e.printStackTrace();
|
||||
editor.error(e);
|
||||
|
||||
} catch (Exception e) {
|
||||
|
||||
@@ -52,10 +52,10 @@
|
||||
# it will also be necessary to put processing in c:\
|
||||
#play.externalCommand = C:\\processing\\bin\\jre -cp c:\\processing\\lib;c:\\processing\\lib\\pde.jar;c:\\processing\\lib\\kjc.jar;c:\\processing\\lib\\comm.jar ProcessingAppletViewer
|
||||
|
||||
#editor.expandTabs=true
|
||||
#editor.tabSize=2
|
||||
#editor.autoIndent=true
|
||||
#editor.balanceParens=true
|
||||
#editor.expand_tabs=true
|
||||
#editor.tab_size=2
|
||||
#editor.auto_indent=true
|
||||
#editor.balance_parens=false
|
||||
|
||||
#update.enabled
|
||||
#update.url = http://acg.media.mit.edu/people/fry/processing/update/
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
#!/bin/sh
|
||||
cd work && ./java/bin/java -cp lib\;lib\\build\;lib\\pde.jar\;lib\\kjc.jar\;lib\\oro.jar PdeBase
|
||||
|
||||
+34
-26
@@ -6,6 +6,7 @@ X test build macos9 version with JDK13 flag turned off
|
||||
X make buttons taller by 4 pixels (looking bad on macos9/macosx)
|
||||
X change to uppercase (looks dumb on mac, and casey doesn't like)
|
||||
X set background color of buttons in EditorStatus
|
||||
X modify to only change it under aqua.. does screwy things for windows
|
||||
X check splash screen and icons into cvs
|
||||
X macosx.. editor.status.font needs to be size 12
|
||||
X same under windows, just wasn't being set properly before
|
||||
@@ -15,12 +16,23 @@ X tested to make sure it joins with the other pde.properties ok
|
||||
X setPixel(i, j, #99CC00);
|
||||
X not working anymore Syntax error: unexpected token: CC00
|
||||
X problem was substitute only worked along with =
|
||||
X perl should be ok to be cygwin perl.. try deinstalling activestate
|
||||
o should fix paren balancing bug..
|
||||
X just disable by default for alpha
|
||||
o background() not working
|
||||
X checked but couldn't duplicate
|
||||
X change editorlistener properties to use underscores
|
||||
X imageMode() was gone.. now replaced
|
||||
|
||||
_ get icon in macos9/macosx/windows formats
|
||||
_ check osname under win98 and linux
|
||||
_ should fix paren balancing bug.. or disable by default for alpha
|
||||
_ background() not working
|
||||
_ imageMode() is gone
|
||||
_ collapse pdeengine/pderunner/kjcengine
|
||||
_ remove 'extends' from kjcengine, make an instance of Main
|
||||
_ may need to subclass at.dms.kjc.Main to override the exit()
|
||||
_ make pdeengine a class
|
||||
_ remove pderunner, collapse into pdeengine
|
||||
|
||||
_ save window position (only during session) of sketch run window
|
||||
_ present mode should hide editor frame
|
||||
_ present mode doesn't work for draw()
|
||||
|
||||
_ mouse coords coming from window when outside applet.. bad!
|
||||
void setup() {
|
||||
@@ -48,23 +60,6 @@ _ box is not opaque
|
||||
> rotateY(0.5);
|
||||
> box(40);
|
||||
|
||||
_ size() not being called in setup is gonna cause lots of headaches
|
||||
|
||||
b _ option to delete current project
|
||||
_ save window position (only during session) of sketch run window
|
||||
_ present mode should hide editor frame
|
||||
_ present mode doesn't work for draw()
|
||||
|
||||
_ get macutils to build under cygwin. argh.
|
||||
_ get to build under macosx?
|
||||
|
||||
_ macos may be superior platform for building
|
||||
_ retain unix file permissions for linux
|
||||
_ resource fork goodness for the mac
|
||||
_ hhmmm
|
||||
_ for jgl version of bagel, jgl.jar needs to be in classpath
|
||||
_ perl should be ok to be cygwin perl.. try deinstalling activestate
|
||||
|
||||
bagel
|
||||
a _ fold simpleserial into BApplet
|
||||
a _ set serial properties inside bagel in kjcengine
|
||||
@@ -78,6 +73,7 @@ a _ serial works poorly for starting/stopping applets
|
||||
a _ this is behaving strangely
|
||||
a _ breaks on every 2nd run when using serial apps (or others?)
|
||||
a _ try calling gc on stop as well
|
||||
a _ size() not being called in setup is gonna cause lots of headaches
|
||||
|
||||
ui
|
||||
a _ saving to gzipped 'versions' file
|
||||
@@ -89,6 +85,7 @@ a _ console work
|
||||
a _ make scrollbar for console
|
||||
a _ convert tabs to 8 spaces
|
||||
a o line wrapping (but save info for resize? noo..)
|
||||
a _ option to delete current project
|
||||
|
||||
play
|
||||
a _ shouldn't substitute f's for: "Univers76.vlw.gz";
|
||||
@@ -124,6 +121,8 @@ a _ or maybe just background of the awt object it sits on
|
||||
a _ use type/creator Pde1
|
||||
a _ crashes when people click on help in top bar (same in DBN) [macos9]
|
||||
a _ use osx utilities to setfileinfo for .jar files etc
|
||||
a _ get macutils to build under cygwin. argh.
|
||||
a _ get to build under macosx?
|
||||
|
||||
macosx
|
||||
a _ how to make double-clickable version for osx
|
||||
@@ -156,8 +155,9 @@ a _ something that docks better to java serial api
|
||||
a _ check to see if lines for error messages are off
|
||||
|
||||
release
|
||||
a _ get icon in macos9/macosx/windows formats
|
||||
a _ check osname under win98 and linux
|
||||
a _ write message to people who signed up for p5 alpha
|
||||
a _ collapse pdeengine/pderunner/kjcengine a bit
|
||||
a _ figure out about distributing source
|
||||
a _ kjc is gnu, so source needs to be available
|
||||
a _ make it simpler to build the code..
|
||||
@@ -165,6 +165,9 @@ a _ buzz.pl actually no longer needed (no ifdefs)
|
||||
a _ use a regular makefile for everything
|
||||
a _ get all of casey's examples into the sketchbook
|
||||
a _ these should become the standard test cases for everything
|
||||
a _ faq on where the project is going
|
||||
a _ information on how to submit bugs to p5-bugs@proce55ing.net
|
||||
a _ include release number, platform, and a copy of the code
|
||||
|
||||
web
|
||||
a _ online discussion/talk system (gets people using the site too)
|
||||
@@ -374,6 +377,9 @@ b _ ability to include other code from sketchbook directory
|
||||
b _ compile entire sketchbook on startup, check for new files on compile?
|
||||
b _ Compiler.disable() message is weird and doesn't always work
|
||||
b _ probably just remove it for now
|
||||
b _ bug in paren balancing
|
||||
b _ paren problems comes from overusing parens (too many closing)
|
||||
b _ image[first[i], 0, 0) hitting last paren causes jump to top
|
||||
|
||||
cosmetic [lower priority]
|
||||
b _ run button can be highlighted to show how long thread is alive
|
||||
@@ -406,9 +412,6 @@ _ mode for when no full animation taking place
|
||||
_ otherwise machine is continually maxed out while app is running
|
||||
_ quicktime exporter or image sequence export
|
||||
_ fairly quick--just use code from dbn
|
||||
_ bug in paren balancing
|
||||
_ paren problems comes from overusing parens (too many closing)
|
||||
_ image[first[i], 0, 0) hitting last paren causes jump to top
|
||||
_ stop() method in applet should stop kjc environment
|
||||
_ should be able to call stop() to 'quit' an applet
|
||||
_ run java code besides processing applets
|
||||
@@ -660,3 +663,8 @@ dist directories contain only the files specific to that platform
|
||||
3) files are lf converted (i.e. notes.txt)
|
||||
_ comm.jar now needs to be in CLASSPATH for build environment
|
||||
|
||||
_ macos may be superior platform for building
|
||||
_ retain unix file permissions for linux
|
||||
_ resource fork goodness for the mac
|
||||
_ hhmmm
|
||||
_ for jgl version of bagel, jgl.jar needs to be in classpath
|
||||
|
||||
Reference in New Issue
Block a user