From bb508a53823c42845a38f4dfd6ec13f56d3bf355 Mon Sep 17 00:00:00 2001 From: benfry Date: Tue, 29 Nov 2005 20:07:59 +0000 Subject: [PATCH] shift-click on export will export as application --- app/EditorButtons.java | 23 +++++++++++++++++++---- todo.txt | 13 ++++++++++--- 2 files changed, 29 insertions(+), 7 deletions(-) diff --git a/app/EditorButtons.java b/app/EditorButtons.java index 1a67707e5..3dd9d766b 100644 --- a/app/EditorButtons.java +++ b/app/EditorButtons.java @@ -332,10 +332,25 @@ public class EditorButtons extends JComponent implements MouseInputListener { } break; - case OPEN: setState(OPEN, INACTIVE, true); break; - case NEW: editor.handleNew(e.isShiftDown()); break; - case SAVE: editor.handleSave(); break; - case EXPORT: editor.handleExport(); break; + case OPEN: + setState(OPEN, INACTIVE, true); + break; + + case NEW: + editor.handleNew(e.isShiftDown()); + break; + + case SAVE: + editor.handleSave(); + break; + + case EXPORT: + if (e.isShiftDown()) { + editor.handleExportApplication(); + } else { + editor.handleExport(); + } + break; } currentSelection = -1; } diff --git a/todo.txt b/todo.txt index 147a14a2b..4688e9651 100644 --- a/todo.txt +++ b/todo.txt @@ -21,14 +21,21 @@ o or even PApplet.main(new String[] { getClass().getName() }); X save code before export, otherwise .pde exported is empty X ask user ok or cancel to save code before exporting X http://dev.processing.org/bugs/show_bug.cgi?id=157 +X can macosx jnilib files be placed in the resources dir? +X shift-export should export as application +_ write support for linux export +_ need per-platform settings for exports +_ opengl needs to export .jnilib for macosx, but no dll and so files +_ if nothing available for that platform, uses "application" setting +_ if no application setting or export.txt file, then export everything _ documentation _ people using "java" mode must create their own main _ another function named main() is a no-no.. it'll confuse the preproc _ how to handle qtjava in exports? -_ need per-platform settings for exports -_ opengl needs to export .jnilib for macosx, but no dll and so files -_ can macosx jnilib files be placed in the resources dir? +_ problem because on export, the qtjava import happens before the lib import +_ why is this different between compiling and exporting? +_ write code for selecting the output platform . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .