From 74833939ab36b778a8fe9b7c1c3c8489bc69690c Mon Sep 17 00:00:00 2001 From: benfry Date: Mon, 2 May 2005 01:23:28 +0000 Subject: [PATCH] more fixes to sketch, and enforce file name length limit --- processing/app/Sketchbook.java | 14 +++++++++----- processing/todo.txt | 35 ++++++++++++++++++---------------- 2 files changed, 28 insertions(+), 21 deletions(-) diff --git a/processing/app/Sketchbook.java b/processing/app/Sketchbook.java index f134b41b7..4d24a435d 100644 --- a/processing/app/Sketchbook.java +++ b/processing/app/Sketchbook.java @@ -230,10 +230,11 @@ public class Sketchbook { if (!newName.equals(origName)) { Base.showMessage("Naming issue", - "The sketch name had to be modified.\n" + - "You can only use basic letters and numbers\n" + - "to name a sketch (ascii only and no spaces,\n" + - "and it can't start with a number)"); + "The sketch name had to be modified.\n" + + "You can only use basic letters and numbers\n" + + "to name a sketch (ascii only and no spaces,\n" + + "it can't start with a number, and should be\n" + + "less than 64 characters long)"); } return newName; } @@ -263,7 +264,10 @@ public class Sketchbook { buffer.append('_'); } } - //return buffer.toString(); + // let's not be ridiculous about the length of filenames + if (buffer.length() > 63) { + buffer.setLength(63); + } return buffer.toString(); } diff --git a/processing/todo.txt b/processing/todo.txt index a010a40b5..84d1395eb 100644 --- a/processing/todo.txt +++ b/processing/todo.txt @@ -32,8 +32,6 @@ X http://processing.org/discourse/yabb_beta/YaBB.cgi?board=Suggestions;action= X maintain tab scroll and caret positions X save caret position when switching tabs -_ when holding down shift, show the alt behavior for EditorHeader - _ make simple tool for casey to rebuild all the examples at once _ need to rebuild with this release because of 1.3/1.4 issues @@ -572,6 +570,11 @@ PDE / Find & Replace 1 _ only enable "find next" in menu after a find has happened +PDE / Editor Buttons + + 1 _ when holding down shift, show the alt behavior for EditorHeader + + PDE / Editor Header 1 _ make some fancy extendo things because the tabs get too big @@ -579,6 +582,20 @@ PDE / Editor Header 1 _ ctrl-tab to switch between tabs +PDE / Editor Status + + 1 _ error messages run off the edge and go invisible + 1 _ http://processing.org/discourse/yabb/YaBB.cgi?board=Proce55ing_software_bugs;action=display;num=1074894329 + 1 _ multi-line errors a mess in jikes + 1 _ maybe a dropdown list thing, with the first just shown? + 1 _ move to modal dialog showError/Message/Warning/Prompt design + 1 _ nicely design dialog boxes to go with visual of p5 + 1 _ maybe something that shows stack trace? + 1 _ with an 'email this' button? (include source code too?) + 1 _ also need a "prompt" dialog for asking filenames, etc + 1 _ implement and remove PdeEditorStatus stuff + + PDE / Sketch & Sketchbook 1 _ transparently convert spaces to underscores (?) @@ -653,20 +670,6 @@ TOOLS / Create Font 1 _ create font with user-specified charsets -PDE / Editor Status - - 1 _ error messages run off the edge and go invisible - 1 _ http://processing.org/discourse/yabb/YaBB.cgi?board=Proce55ing_software_bugs;action=display;num=1074894329 - 1 _ multi-line errors a mess in jikes - 1 _ maybe a dropdown list thing, with the first just shown? - 1 _ move to modal dialog showError/Message/Warning/Prompt design - 1 _ nicely design dialog boxes to go with visual of p5 - 1 _ maybe something that shows stack trace? - 1 _ with an 'email this' button? (include source code too?) - 1 _ also need a "prompt" dialog for asking filenames, etc - 1 _ implement and remove PdeEditorStatus stuff - - //////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////