// Path: src/ch/jbead/BeadSymbols.java
// public class BeadSymbols {
// 
//     public static final String MIDDLE_DOT = "\u00b7";
//     public static final String DEFAULT_SYMBOLS = MIDDLE_DOT + "abcdefghijklmnopqrstuvwxyz+-/\\*";
//     public static String SYMBOLS = DEFAULT_SYMBOLS;
//     public static String SAVED_SYMBOLS = DEFAULT_SYMBOLS;
// 
//     static {
//         reloadSymbols();
//     }
// 
//     public static void restoreDefaults() {
//         SYMBOLS = DEFAULT_SYMBOLS;
//     }
// 
//     public static void reloadSymbols() {
//         Settings settings = new Settings();
//         settings.setCategory("view");
//         SAVED_SYMBOLS = settings.loadString("symbols", DEFAULT_SYMBOLS);
//         SYMBOLS = SAVED_SYMBOLS;
//     }
// 
//     public static String get(byte index) {
//         if (index >= SYMBOLS.length()) return " ";
//         return SYMBOLS.substring(index, index + 1);
//     }
// 
// }
// 
// Path: src/ch/jbead/Localization.java
// public interface Localization {
// 
//     public ResourceBundle getBundle();
//     public String getString(String key);
//     public int getMnemonic(String key);
//     public KeyStroke getKeyStroke(String key);
// 
// }
// 
// Path: src/ch/jbead/Settings.java
// public class Settings {
// 
// 	private static final String BASE = "brunoldsoft/jbead";
// 
// 	private Preferences preferences = Preferences.userRoot().node(BASE);
// 	private String category = "general";
// 
// 	public Settings() {
// 		category = "general";
// 	}
// 
// 	public void setCategory(String category) {
// 		this.category = category;
// 	}
// 
// 	public String category() {
// 		return category;
// 	}
// 
// 	public boolean hasSetting(String name) {
// 	    return preferences.node(category).get(name, null) != null;
// 	}
// 
// 	public int loadInt(String name) {
// 		return loadInt(name, 0);
// 	}
// 
// 	public int loadInt(String name, int defaultvalue) {
// 		return preferences.node(category).getInt(name, defaultvalue);
// 	}
// 
//     public long loadLong(String name) {
//         return loadLong(name, 0);
//     }
// 
//     public long loadLong(String name, long defaultvalue) {
//         return preferences.node(category).getLong(name, defaultvalue);
//     }
// 
//     public boolean loadBoolean(String name) {
//         return loadBoolean(name, false);
//     }
// 
//     public boolean loadBoolean(String name, boolean defaultvalue) {
//         return preferences.node(category).getBoolean(name, defaultvalue);
//     }
// 
// 	public String loadString(String name) {
// 		return loadString(name, "");
// 	}
// 
// 	public String loadString(String name, String defaultvalue) {
// 		return preferences.node(category).get(name, defaultvalue);
// 	}
// 
// 	public void saveInt(String name, int value) {
// 		preferences.node(category).putInt(name, value);
// 	}
// 
//     public void saveLong(String name, long value) {
//         preferences.node(category).putLong(name, value);
//     }
// 
//     public void saveBoolean(String name, boolean value) {
//         preferences.node(category).putBoolean(name, value);
//     }
// 
// 	public void saveString(String name, String value) {
// 		preferences.node(category).put(name, value);
// 	}
// 
//     public void remove(String name) {
//         preferences.node(category).remove(name);
//     }
// 
// 	public void flush() throws BackingStoreException {
// 		preferences.flush();
// 	}
// 
// }
// 
// Path: src/ch/jbead/View.java
// public interface View {
// 
//     public void addListener(ViewListener listener);
// 
//     public boolean drawColors();
//     public boolean drawSymbols();
// 
//     public boolean isDraftVisible();
//     public boolean isCorrectedVisible();
//     public boolean isSimulationVisible();
//     public boolean isReportVisible();
// 
//     public String getSelectedTool();
//     public boolean isDragging();
//     public void setDragging(boolean dragging);
//     public Selection getSelection();
//     public void selectColor(byte colorIndex);
// 
//     public void refresh();
// }


import javax.swing.JTextField;
import ch.jbead.BeadSymbols;
import ch.jbead.Localization;
import ch.jbead.Model;
import ch.jbead.Settings;
import ch.jbead.View;
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JPanel;
/** jbead - http://www.jbead.ch
    Copyright (C) 2001-2012  Damian Brunold

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    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, see <http://www.gnu.org/licenses/>.
 */

package ch.jbead.dialog;




public class PreferencesDialog extends JDialog {
    private static final long serialVersionUID = 1L;

    private JTextField author;
    private JTextField organization;
    private JTextField symbols;
    private JCheckBox disablestartcheck;

// Path: src/ch/jbead/BeadSymbols.java
// public class BeadSymbols {
// 
//     public static final String MIDDLE_DOT = "\u00b7";
//     public static final String DEFAULT_SYMBOLS = MIDDLE_DOT + "abcdefghijklmnopqrstuvwxyz+-/\\*";
//     public static String SYMBOLS = DEFAULT_SYMBOLS;
//     public static String SAVED_SYMBOLS = DEFAULT_SYMBOLS;
// 
//     static {
//         reloadSymbols();
//     }
// 
//     public static void restoreDefaults() {
//         SYMBOLS = DEFAULT_SYMBOLS;
//     }
// 
//     public static void reloadSymbols() {
//         Settings settings = new Settings();
//         settings.setCategory("view");
//         SAVED_SYMBOLS = settings.loadString("symbols", DEFAULT_SYMBOLS);
//         SYMBOLS = SAVED_SYMBOLS;
//     }
// 
//     public static String get(byte index) {
//         if (index >= SYMBOLS.length()) return " ";
//         return SYMBOLS.substring(index, index + 1);
//     }
// 
// }
// 
// Path: src/ch/jbead/Localization.java
// public interface Localization {
// 
//     public ResourceBundle getBundle();
//     public String getString(String key);
//     public int getMnemonic(String key);
//     public KeyStroke getKeyStroke(String key);
// 
// }
// 
// Path: src/ch/jbead/Settings.java
// public class Settings {
// 
// 	private static final String BASE = "brunoldsoft/jbead";
// 
// 	private Preferences preferences = Preferences.userRoot().node(BASE);
// 	private String category = "general";
// 
// 	public Settings() {
// 		category = "general";
// 	}
// 
// 	public void setCategory(String category) {
// 		this.category = category;
// 	}
// 
// 	public String category() {
// 		return category;
// 	}
// 
// 	public boolean hasSetting(String name) {
// 	    return preferences.node(category).get(name, null) != null;
// 	}
// 
// 	public int loadInt(String name) {
// 		return loadInt(name, 0);
// 	}
// 
// 	public int loadInt(String name, int defaultvalue) {
// 		return preferences.node(category).getInt(name, defaultvalue);
// 	}
// 
//     public long loadLong(String name) {
//         return loadLong(name, 0);
//     }
// 
//     public long loadLong(String name, long defaultvalue) {
//         return preferences.node(category).getLong(name, defaultvalue);
//     }
// 
//     public boolean loadBoolean(String name) {
//         return loadBoolean(name, false);
//     }
// 
//     public boolean loadBoolean(String name, boolean defaultvalue) {
//         return preferences.node(category).getBoolean(name, defaultvalue);
//     }
// 
// 	public String loadString(String name) {
// 		return loadString(name, "");
// 	}
// 
// 	public String loadString(String name, String defaultvalue) {
// 		return preferences.node(category).get(name, defaultvalue);
// 	}
// 
// 	public void saveInt(String name, int value) {
// 		preferences.node(category).putInt(name, value);
// 	}
// 
//     public void saveLong(String name, long value) {
//         preferences.node(category).putLong(name, value);
//     }
// 
//     public void saveBoolean(String name, boolean value) {
//         preferences.node(category).putBoolean(name, value);
//     }
// 
// 	public void saveString(String name, String value) {
// 		preferences.node(category).put(name, value);
// 	}
// 
//     public void remove(String name) {
//         preferences.node(category).remove(name);
//     }
// 
// 	public void flush() throws BackingStoreException {
// 		preferences.flush();
// 	}
// 
// }
// 
// Path: src/ch/jbead/View.java
// public interface View {
// 
//     public void addListener(ViewListener listener);
// 
//     public boolean drawColors();
//     public boolean drawSymbols();
// 
//     public boolean isDraftVisible();
//     public boolean isCorrectedVisible();
//     public boolean isSimulationVisible();
//     public boolean isReportVisible();
// 
//     public String getSelectedTool();
//     public boolean isDragging();
//     public void setDragging(boolean dragging);
//     public Selection getSelection();
//     public void selectColor(byte colorIndex);
// 
//     public void refresh();
// }


// Path: src/ch/jbead/dialog/PreferencesDialog.java
import javax.swing.JTextField;
import ch.jbead.BeadSymbols;
import ch.jbead.Localization;
import ch.jbead.Model;
import ch.jbead.Settings;
import ch.jbead.View;
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JPanel;

/** jbead - http://www.jbead.ch
    Copyright (C) 2001-2012  Damian Brunold

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    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, see <http://www.gnu.org/licenses/>.
 */

package ch.jbead.dialog;




public class PreferencesDialog extends JDialog {
    private static final long serialVersionUID = 1L;

    private JTextField author;
    private JTextField organization;
    private JTextField symbols;
    private JCheckBox disablestartcheck;

    public PreferencesDialog(Localization localization, final Model model, final View view) {