diff --git a/processing/app/PdeBase.java b/processing/app/PdeBase.java index 111bbeb36..6f3d81ef9 100644 --- a/processing/app/PdeBase.java +++ b/processing/app/PdeBase.java @@ -131,6 +131,8 @@ public class PdeBase { File phome = null; + // NOTE if this location changes, be sure to note the change + // in the default preferences.txt because it mentions this path if (PdeBase.platform == PdeBase.MACOSX) { // on macosx put the sketchbook in the "Documents" folder phome = new File(home, "Documents" + File.separator + "Processing"); diff --git a/processing/build/shared/lib/preferences.txt b/processing/build/shared/lib/preferences.txt index 37692d8fc..745bf1a6d 100755 --- a/processing/build/shared/lib/preferences.txt +++ b/processing/build/shared/lib/preferences.txt @@ -1,8 +1,10 @@ # !!!!!!!! UNLIKE PREVIOUS VERSIONS OF PROCESSING !!!!!!!!!! # DO NOT MODIFY THIS FILE, OR DELETE SETTINGS FROM THIS FILE -# These are the default preferences. They will be copied -# to your home folder into a file called "Processing Preferences.txt" +# These are the default preferences. They will be copied to: +# My Documents -> Processing -> preferences.txt (on windows) +# Documents -> Processing -> preferences.txt (on macosx) +# ~/.processing/preferences.txt (on linux) # where you can make changes for your machine. # You'll have problems running Processing if you incorrectly @@ -205,4 +207,4 @@ preproc.imports.jdk13 = javax.sound.midi,javax.sound.midi.spi,javax.sound.sample preproc.imports.jdk14 = javax.xml.parsers,javax.xml.transform,javax.xml.transform.dom,javax.xml.transform.sax,javax.xml.transform.stream,org.xml.sax,org.xml.sax.ext,org.xml.sax.helpers # set the browser to be used on linux -browser.linux = mozilla \ No newline at end of file +browser.linux = mozilla diff --git a/processing/core/todo.txt b/processing/core/todo.txt index ff5d90d8c..a1158260f 100644 --- a/processing/core/todo.txt +++ b/processing/core/todo.txt @@ -44,16 +44,52 @@ _ why is the first one failing? _ minimum texture size may be 64x64 _ might need to enforce it as a minimum +_ named colors.. have a method for a full color lookup table +_ addcolor("blah blah blah", colornum); +_ fill("blah blah blah"); +_ maybe this is bad practice--too slow, should use variables +_ text() with \n is semi-broken +_ font encoding issues +_ java seems to force straight windows encoding.. (problem for pi fonts) +_ opentype/cff fonts don't work with live loading from the app +_ many (all?) opentype fonts won't show up or aren't supported +_ this may be only cff fonts that have trouble +_ when encoding with something besides the standard encoding, problematic +_ so sonata otf and sonata don't seem to have any chars at all _ implement size(0, 0) -> just doesn't bother doing a frame.show(); _ implement fullscreen().. this takes over the screen as best it can _ really more like present mode.. _ that if applet is 500x500, centers on a 800x600 window +scripting +_ on exceptions, use die to just kill the applet +_ make the file i/o stuff work more cleanly +_ if people want to use their own file i/o they can do that too +_ how to make a long setup() sleep so that things don't lock way up +_ this could also be contributing to the hanging bug +_ make properly exit after things are finished +_ static applets need to be able to resize themselves on 'play' +_ figure out what to do with static apps exported as application +_ needs to just hang there +_ scripts (w/ no graphics) will need to call exit() explicitly +_ actually.. just override the default draw() to say exit() +_ may need a fileOutput() and fileInput() function +_ to take care of exception handling +_ or maybe scripts are just handled with a different method? (yech) +_ or maybe setup() can actually throw and Exception? +_ but that's inserted by the parser, and hidden from the user? + +_ beginFrame() around setup() +_ draw mode stuff happens inside setup.. +_ or maybe need to get better at size() inside of draw() ? + opengl documentation _ lights cannot be enabled/disabled throughout _ lighting will be based on what's left at endFrame() _ images should be a power of 2, or call modified() +_ need to make sure that components can be resized properly via size() +_ or that it properly responds to a setBounds() call _ also when drawing an image, sense whether drawn rotated _ if just rotate/translate, then can use SCREEN_SPACE for fonts @@ -95,10 +131,6 @@ _ email the beta@ list to see how people are using pmouseX _ need timer in as part of the api _ or at least include an example that uses it -_ beginFrame() around setup() -_ draw mode stuff happens inside setup.. -_ or maybe need to get better at size() inside of draw() ? - _ depth testing of lines vs text is problematic _ probably need to patch in an older version of the line code _ use depth()/noDepth() to handle depth test diff --git a/processing/todo.txt b/processing/todo.txt index 42755f145..e3621ebbf 100644 --- a/processing/todo.txt +++ b/processing/todo.txt @@ -14,6 +14,26 @@ X cosmetic fixes X is PdeEditorHeader one pixel too tall X move the tabs over just slightly +sketchbook/prefs location +_ read from registry key to get the proper name for these folders +_ also find some way to do this on the mac +_ on non-english windows (or at the broad) these will be named differently +_ http://support.microsoft.com/?kbid=221837&sd=RMVP +_ move to ~/Application Data/Processing for windows +_ and ~/Library/Processing for macosx +_ and ~/.processing for linux +_ if it can't write prefs here, try creating a subfolder inside p5 +_ and if that fails, then tell the user that they suck +_ prompt for sketchbook location on linux +_ or on mac/pc if it can't write anywhere else +_ creating sketchbook / lab situations +_ test to see if it's possible to write to "My Documents" +_ if not, should bring up a prompt asking where to put sketchbook +_ also put something in lib/preferences.txt for default location +_ this way a course admin can change the default location + +_ bring back "rename" ? + _ may need a progress bar for "save as" _ or just the file copy function in general _ since it may take a long time (i.e. 1000s of screen grabs) @@ -64,12 +84,6 @@ macosx _ resize box intrudes on the scroller for the console area _ horizontal scroller is always present -_ creating sketchbook / lab situations -_ test to see if it's possible to write to "My Documents" -_ if not, should bring up a prompt asking where to put sketchbook -_ also put something in lib/preferences.txt for default location -_ this way a course admin can change the default location - _ allow to use doubles on casting -- particularly for Math.cos() et al _ ctrl-tab to switch between tabs @@ -199,13 +213,6 @@ sure if related. same for PATH and CLASSPATH. the trouble. -static apps/scripts -_ static applets need to be able to resize themselves on 'play' -_ figure out what to do with static apps exported as application -_ needs to just hang there -_ scripts (w/ no graphics) will need to call exit() explicitly - - libraries _ compiling - main file is a .java not a .pde _ also where no root .pde file with the same name.. (i.e. video)