smooth polygons fix, fix url opening, fix history menu

This commit is contained in:
benfry
2003-10-18 21:32:57 +00:00
parent 872264b6d0
commit 0ce80f3266
4 changed files with 35 additions and 30 deletions
+23 -2
View File
@@ -1188,7 +1188,28 @@ public class PdeBase extends Frame
#ifdef MACOS
} else if (platform == MACOSX) {
//com.apple.eio.FileManager.openURL(url);
if (!url.startsWith("http://")) url = "file://" + url;
if (!url.startsWith("http://")) {
// prepend file:// on this guy since it's a file
url = "file://" + url;
// replace spaces with %20 for the file url
// otherwise the mac doesn't like to open it
// can't just use URLEncoder, since that makes slashes into
// %2F characters, which is no good. some might say "useless"
if (url.indexOf(' ') != -1) {
StringBuffer sb = new StringBuffer();
char c[] = url.toCharArray();
for (int i = 0; i < c.length; i++) {
if (c[i] == ' ') {
sb.append("%20");
} else {
sb.append(c[i]);
}
}
url = sb.toString();
}
}
//System.out.println("trying to open " + url);
com.apple.mrj.MRJFileUtils.openURL(url);
@@ -1235,7 +1256,7 @@ public class PdeBase extends Frame
#ifdef MACOS
} else if (platform == MACOSX) {
com.apple.mrj.MRJFileUtils.openURL("file://" + folder);
openURL(folder); // handles char replacement, etc
#endif
}
+1 -1
View File
@@ -461,7 +461,7 @@ public class PdeEditor extends JPanel {
//JMenuItem menuItem = new JMenuItem(modeStr + " - " + readableDate);
MenuItem menuItem = new MenuItem(modeStr + " - " + readableDate);
menuItem.addActionListener(base.historyMenuListener);
base.historyMenu.insert(menuItem, 0);
base.historyMenu.insert(menuItem, 2);
historyWriter.flush();
historyWriter.close();
+2 -1
View File
@@ -130,10 +130,11 @@ public class PdeRuntime implements PdeMessageConsumer {
// until it's finished rendering, otherwise the width/height
// may not have been properly set.
if (drawMode) {
//System.out.println("draw mode");
while ((applet.frame != 1) && (!applet.finished)) {
try {
//System.out.println("waiting to complete drawing");
Thread.sleep(5);
Thread.sleep(100);
} catch (InterruptedException e) { }
}
}
+9 -26
View File
@@ -30,23 +30,22 @@ X http://proce55ing.net/discourse/yabb/YaBB.cgi?board=BugFixes;action=display;
X semicolons bug in preproc
X http://proce55ing.net/discourse/yabb/YaBB.cgi?board=BugFixes;action=display;num=1066499812;start=0
X http://proce55ing.net/discourse/yabb/YaBB.cgi?board=BugFixes;action=display;num=1066498153;start=0
_ placement in the history menu of new items doesn't work
_ the clear history thing gets in the way
_ http://proce55ing.net/discourse/yabb/YaBB.cgi?board=Proce55ing_software_bugs;action=display;num=1065493721
_ macosx open sketch folder problems.. spaces in filename problem?
_ also seems to be problem for reference?
X placement in the history menu of new items doesn't work
X the clear history thing gets in the way
X http://proce55ing.net/discourse/yabb/YaBB.cgi?board=BugFixes;action=display;num=1066501376;start=0
X stroke on smoothed polygons was drawing at 8x
X macosx open sketch folder problems.. spaces in filename problem?
X also seems to be problem for reference?
_ new html code for eolas patent case
_ move html to external file in the lib folder
_ included code is not packaged in the outgoing jar file on export
_ http://proce55ing.net/discourse/yabb/YaBB.cgi?board=Proce55ing_software_bugs;action=display;num=1066008067;start=0
_ after hitting replace, dim the replace button
_ otherwise it causes another replace to happen
_ included code is not packaged in the outgoing jar file on export
_ http://proce55ing.net/discourse/yabb/YaBB.cgi?board=Proce55ing_software_bugs;action=display;num=1066008067;start=0
................
// Rect is not getting it's stroke color set
@@ -66,22 +65,6 @@ line(width, height, width-mouseX, height-mouseX);
rect(mouseX, mouseY, 200, 200);
}
................
there's also a strange bug with smooth() and ellipse:
// Funny bug with smooth and ellipse
// put mouse in upper-left to see the issue
void setup() {
size(400, 400);
smooth();
}
void loop() {
background(102);
ellipse(mouseX, mouseY, 20, 20);
}
................