X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fjbgui%2FGPreferences.java;h=90053f5ff39370b7ac49a04ab5d5cb87f8d6bc0a;hb=refs%2Fheads%2Freleases%2FRelease_2_10_0_Branch;hp=12303735debbdf23220ea8d2b965e57efa4b79cc;hpb=865a855a4ca87eadb3e5ff284ed32ed307d9c34b;p=jalview.git
diff --git a/src/jalview/jbgui/GPreferences.java b/src/jalview/jbgui/GPreferences.java
index 1230373..90053f5 100755
--- a/src/jalview/jbgui/GPreferences.java
+++ b/src/jalview/jbgui/GPreferences.java
@@ -1,170 +1,207 @@
/*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.0b1)
- * Copyright (C) 2014 The Jalview Authors
+ * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
+ * Copyright (C) $$Year-Rel$$ The Jalview Authors
*
* This file is part of Jalview.
*
* Jalview 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.
+ * as published by the Free Software Foundation, either version 3
+ * of the License, or (at your option) any later version.
*
* Jalview 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 Jalview. If not, see .
+ * You should have received a copy of the GNU General Public License
+ * along with Jalview. If not, see .
* The Jalview Authors are detailed in the 'AUTHORS' file.
*/
package jalview.jbgui;
+import jalview.fts.core.FTSDataColumnPreferences;
+import jalview.fts.core.FTSDataColumnPreferences.PreferenceSource;
+import jalview.fts.service.pdb.PDBFTSRestClient;
import jalview.gui.JvSwingUtils;
-
-import java.awt.*;
-import java.awt.event.*;
-
-import javax.swing.*;
-import javax.swing.border.*;
-import javax.swing.event.*;
+import jalview.gui.StructureViewer.ViewerType;
+import jalview.util.MessageManager;
+
+import java.awt.BorderLayout;
+import java.awt.Color;
+import java.awt.Component;
+import java.awt.Dimension;
+import java.awt.FlowLayout;
+import java.awt.Font;
+import java.awt.GridBagConstraints;
+import java.awt.GridBagLayout;
+import java.awt.GridLayout;
+import java.awt.Insets;
import java.awt.Rectangle;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+import java.awt.event.FocusEvent;
+import java.awt.event.KeyEvent;
+import java.awt.event.MouseAdapter;
+import java.awt.event.MouseEvent;
+
+import javax.swing.BorderFactory;
+import javax.swing.ButtonGroup;
+import javax.swing.DefaultListCellRenderer;
+import javax.swing.JButton;
+import javax.swing.JCheckBox;
+import javax.swing.JComboBox;
+import javax.swing.JFileChooser;
+import javax.swing.JLabel;
+import javax.swing.JList;
+import javax.swing.JPanel;
+import javax.swing.JRadioButton;
+import javax.swing.JScrollPane;
+import javax.swing.JTabbedPane;
+import javax.swing.JTextField;
+import javax.swing.ListSelectionModel;
+import javax.swing.SwingConstants;
+import javax.swing.border.Border;
+import javax.swing.border.EmptyBorder;
+import javax.swing.border.EtchedBorder;
+import javax.swing.border.TitledBorder;
+import javax.swing.event.ChangeEvent;
+import javax.swing.event.ChangeListener;
+import javax.swing.event.ListSelectionEvent;
+import javax.swing.event.ListSelectionListener;
/**
- * DOCUMENT ME!
+ * Base class for the Preferences panel.
*
* @author $author$
* @version $Revision$
*/
public class GPreferences extends JPanel
{
- JTabbedPane tabbedPane = new JTabbedPane();
-
- JButton ok = new JButton();
-
- JButton cancel = new JButton();
-
- JPanel okCancelPanel = new JPanel();
-
- BorderLayout borderLayout1 = new BorderLayout();
-
- protected JCheckBox quality = new JCheckBox();
+ private static final Font LABEL_FONT = JvSwingUtils.getLabelFont();
- JPanel visualTab = new JPanel();
-
- JPanel visual2Tab = new JPanel();
+ private static final Font LABEL_FONT_ITALIC = JvSwingUtils.getLabelFont(
+ false, true);
+ /*
+ * Visual tab components
+ */
protected JCheckBox fullScreen = new JCheckBox();
- protected JCheckBox conservation = new JCheckBox();
+ protected JCheckBox openoverv = new JCheckBox();
- protected JCheckBox identity = new JCheckBox();
+ protected JCheckBox seqLimit = new JCheckBox();
- protected JCheckBox annotations = new JCheckBox();
+ protected JCheckBox rightAlign = new JCheckBox();
- protected JPanel minColour = new JPanel();
+ protected JComboBox fontSizeCB = new JComboBox();
- JLabel mincolourLabel = new JLabel();
+ protected JComboBox fontStyleCB = new JComboBox();
- protected JPanel maxColour = new JPanel();
+ protected JComboBox fontNameCB = new JComboBox();
- JLabel maxcolourLabel = new JLabel();
+ protected JCheckBox showUnconserved = new JCheckBox();
- JLabel gapLabel = new JLabel();
+ protected JCheckBox idItalics = new JCheckBox();
- protected JComboBox colour = new JComboBox();
+ protected JCheckBox smoothFont = new JCheckBox();
- JLabel colourLabel = new JLabel();
+ protected JCheckBox scaleProteinToCdna = new JCheckBox();
- JLabel fontLabel = new JLabel();
+ protected JComboBox gapSymbolCB = new JComboBox();
- protected JComboBox fontSizeCB = new JComboBox();
+ protected JCheckBox wrap = new JCheckBox();
- protected JComboBox fontStyleCB = new JComboBox();
+ protected JComboBox sortby = new JComboBox();
- protected JComboBox fontNameCB = new JComboBox();
+ protected JComboBox sortAnnBy = new JComboBox();
- protected JComboBox gapSymbolCB = new JComboBox();
+ protected JComboBox sortAutocalc = new JComboBox();
protected JCheckBox startupCheckbox = new JCheckBox();
protected JTextField startupFileTextfield = new JTextField();
- JPanel connectTab = new JPanel();
-
- JLabel serverLabel = new JLabel();
-
- protected JList linkURLList = new JList();
-
- protected JTextField proxyServerTB = new JTextField();
-
- protected JTextField proxyPortTB = new JTextField();
-
- JLabel portLabel = new JLabel();
+ // below are in the 'second column'
+ protected JCheckBox annotations = new JCheckBox();
- JLabel browserLabel = new JLabel();
+ protected JCheckBox quality = new JCheckBox();
- protected JTextField defaultBrowser = new JTextField();
+ protected JCheckBox conservation = new JCheckBox();
- JButton newLink = new JButton();
+ protected JCheckBox identity = new JCheckBox();
- JButton editLink = new JButton();
+ protected JCheckBox showGroupConsensus = new JCheckBox();
- JButton deleteLink = new JButton();
+ protected JCheckBox showGroupConservation = new JCheckBox();
- JScrollPane linkScrollPane = new JScrollPane();
+ protected JCheckBox showConsensHistogram = new JCheckBox();
- JPanel linkPanel = new JPanel();
+ protected JCheckBox showConsensLogo = new JCheckBox();
- BorderLayout borderLayout2 = new BorderLayout();
+ protected JCheckBox showDbRefTooltip = new JCheckBox();
- JPanel editLinkButtons = new JPanel();
+ protected JCheckBox showNpTooltip = new JCheckBox();
- GridLayout gridLayout1 = new GridLayout();
+ /*
+ * Structure tab and components
+ */
+ protected JPanel structureTab;
- protected JList linkNameList = new JList();
+ protected JCheckBox structFromPdb = new JCheckBox();
- JPanel linkPanel2 = new JPanel();
+ protected JCheckBox useRnaView = new JCheckBox();
- BorderLayout borderLayout3 = new BorderLayout();
+ protected JCheckBox addSecondaryStructure = new JCheckBox();
- protected JCheckBox useProxy = new JCheckBox();
+ protected JCheckBox addTempFactor = new JCheckBox();
- JPanel jPanel1 = new JPanel();
+ protected JComboBox structViewer = new JComboBox();
- TitledBorder titledBorder1 = new TitledBorder("Proxy Server");
+ protected JTextField chimeraPath = new JTextField();
- TitledBorder titledBorder2 = new TitledBorder("File Output");
+ protected ButtonGroup mappingMethod = new ButtonGroup();
- GridBagLayout gridBagLayout2 = new GridBagLayout();
+ protected JRadioButton siftsMapping = new JRadioButton();
- GridBagLayout gridBagLayout1 = new GridBagLayout();
+ protected JRadioButton nwMapping = new JRadioButton();
- GridBagLayout gridBagLayout3 = new GridBagLayout();
+ /*
+ * Colours tab components
+ */
+ protected JPanel minColour = new JPanel();
- protected JComboBox sortby = new JComboBox();
+ protected JPanel maxColour = new JPanel();
- JLabel sortLabel = new JLabel();
+ protected JComboBox protColour = new JComboBox();
- JPanel jPanel2 = new JPanel();
+ protected JComboBox nucColour = new JComboBox();
- JPanel visual2panel = new JPanel();
+ /*
+ * Connections tab components
+ */
+ protected JList linkURLList = new JList();
- GridLayout gridLayout2 = new GridLayout();
+ protected JTextField proxyServerTB = new JTextField();
- GridLayout gridLayout4 = new GridLayout();
+ protected JTextField proxyPortTB = new JTextField();
- JPanel annsettingsPanel = new JPanel();
+ protected JTextField defaultBrowser = new JTextField();
- JPanel autoAnnotSettings1 = new JPanel();
+ protected JList linkNameList = new JList();
- JPanel autoAnnotSettings2 = new JPanel();
+ protected JCheckBox useProxy = new JCheckBox();
- JPanel autoAnnotSettings3 = new JPanel();
+ protected JCheckBox usagestats = new JCheckBox();
- JPanel exportTab = new JPanel();
+ protected JCheckBox questionnaire = new JCheckBox();
- JLabel epsLabel = new JLabel();
+ protected JCheckBox versioncheck = new JCheckBox();
- protected JComboBox epsRendering = new JComboBox();
+ /*
+ * Output tab components
+ */
+ protected JComboBox