diff --git a/java/src/processing/mode/java/DebugToolbar.java b/java/src/processing/mode/java/DebugToolbar.java deleted file mode 100644 index f43e52257..000000000 --- a/java/src/processing/mode/java/DebugToolbar.java +++ /dev/null @@ -1,939 +0,0 @@ -/* -*- mode: java; c-basic-offset: 2; indent-tabs-mode: nil -*- */ - -/* -Part of the Processing project - http://processing.org -Copyright (c) 2012-15 The Processing Foundation - -This program is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License version 2 -as published by the Free Software Foundation. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software Foundation, Inc. -51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -*/ - -package processing.mode.java; - -import java.awt.event.ActionEvent; -import java.util.logging.Level; -import java.util.logging.Logger; - -import javax.swing.Box; -import javax.swing.JLabel; -import javax.swing.JPanel; - -import processing.app.Base; -import processing.app.EditorButton; -import processing.app.Language; -import processing.app.Mode; - - -/** Toolbar for the top of the DebugTray */ -public class DebugToolbar extends JPanel { //Component implements MouseInputListener, KeyListener { - static public final int GAP = 13; - - // preserve original button id's, but re-define so they are accessible - // (they are used by DebugEditor, so they want to be public) - -// static final int BUTTON_GAP = 13; -// static final int BUTTON_DIM = 46; - -// static protected final int RUN = 100; // change this, to be able to get it's name via getTitle() -// static protected final int DEBUG = JavaToolbar.RUN; - -// static protected final int CONTINUE = 101; -// static protected final int STEP = 102; -// static protected final int BREAKPOINT = 103; -// static protected final int TOGGLE_VAR_INSPECTOR = 104; -// static protected final int STOP = JavaToolbar.STOP; - -// static protected final int NEW = JavaToolbar.NEW; -// static protected final int OPEN = JavaToolbar.OPEN; -// static protected final int SAVE = JavaToolbar.SAVE; -// static protected final int EXPORT = JavaToolbar.EXPORT; - -// enum DebugButton { -// CONTINUE, STEP, BREAKPOINT; -// -// String getTitle(boolean shift) { -// if (this == CONTINUE) { -// return Language.text("toolbar.debug.continue"); -// } else if (this == BREAKPOINT) { -// return Language.text("toolbar.debug.toggle_breakpoints"); -// } else if (this == STEP) { -// if (shift) { -// return Language.text("toolbar.debug.step_into"); -// } else { -// return Language.text("toolbar.debug.step"); -// } -// } -// } -// -// String getFilename() { -// if (this == CONTINUE) { -// return "debug-continue"; -// } else if (this == STEP) { -// return "debug-step"; -// } else if (this == BREAKPOINT) { -// return "debug-breakpoint"; -// } -// throw new IllegalStateException("How did you get here?"); -// } -// } - -// // the sequence of button ids. (this maps button position = index to button ids) -// static protected final int[] buttonSequence = { -// CONTINUE, STEP, BREAKPOINT -//// DEBUG, CONTINUE, STEP, STOP, TOGGLE_BREAKPOINT, TOGGLE_VAR_INSPECTOR -//// NEW, OPEN, SAVE, EXPORT -// }; - - -// /** Width of each toolbar button. */ -// static final int BUTTON_WIDTH = 27; -// /** Height of each toolbar button. */ -//// static final int BUTTON_HEIGHT = 32; -// /** The amount of space between groups of buttons on the toolbar. */ -// static final int BUTTON_GAP = 5; -// /** Size (both width and height) of the buttons in the source image. */ -// static final int BUTTON_IMAGE_SIZE = 33; - - // DISABLED, ENABLED, SELECTED, ROLLOVER, PRESSED - // if no selected available, defaults to pressed (or vice versa?) - -// static final int INACTIVE = 0; -// static final int ROLLOVER = 1; -// static final int ACTIVE = 2; - -// protected Base base; -// protected Editor editor; -// protected Mode mode; -// -// Image offscreen; -// int width, height; -// -// Color bgColor; -// -// protected Button rollover; -// -// Font statusFont; -// int statusAscent; -// Color statusColor; -// -// boolean shiftPressed; - -// // what the mode indicator looks like -// Color modeButtonColor; -// Font modeTextFont; -// int modeTextAscent; -// Color modeTextColor; -// String modeTitle; -// int modeX1, modeY1; -// int modeX2, modeY2; -// JMenu modeMenu; - -// protected List