X much reworking for run/present modes

X   run/present modes are getting confused
X   [esc] to exit presentation mode
X remove 'edit' menu because it's worthless
This commit is contained in:
benfry
2002-08-01 01:45:54 +00:00
parent 3a40992cf1
commit eb81224937
8 changed files with 322 additions and 385 deletions

View File

@@ -342,14 +342,22 @@ public class PdeEditorButtons extends Panel /*implements ActionListener*/ {
switch (currentSelection) {
case RUN:
if (e.shiftDown()) {
editor.doPresent();
} else {
editor.doRun(false);
}
editor.doRun(e.shiftDown());
//if (e.shiftDown()) {
//editor.doPresent();
//} else {
//editor.doRun(false);
//}
break;
case STOP: setState(RUN, INACTIVE, true); editor.doStop(); break;
case STOP:
setState(RUN, INACTIVE, true);
if (editor.presenting) {
editor.doClose();
} else {
editor.doStop();
}
break;
//case CLOSE: editor.doClose(); break;
//case OPEN: editor.doOpen(); break;