added 'show overview' preference.
authorjprocter <Jim Procter>
Fri, 9 Feb 2007 17:50:33 +0000 (17:50 +0000)
committerjprocter <Jim Procter>
Fri, 9 Feb 2007 17:50:33 +0000 (17:50 +0000)
src/jalview/gui/AlignFrame.java
src/jalview/gui/Preferences.java
src/jalview/jbgui/GPreferences.java

index b281767..b2d41e8 100755 (executable)
@@ -145,6 +145,11 @@ public class AlignFrame
       wrapMenuItem_actionPerformed(null);
     }
 
+    if (jalview.bin.Cache.getDefault("SHOW_OVERVIEW",false))
+    {
+      this.overviewMenuItem_actionPerformed(null);
+    }
+
     addKeyListener();
 
   }
index e16aa42..e69492c 100755 (executable)
@@ -99,6 +99,7 @@ public class Preferences
     conservation.setSelected(Cache.getDefault("SHOW_CONSERVATION", true));\r
     quality.setSelected(Cache.getDefault("SHOW_QUALITY", true));\r
     identity.setSelected(Cache.getDefault("SHOW_IDENTITY", true));\r
+    openoverv.setSelected(Cache.getDefault("SHOW_OVERVIEW", false));\r
 \r
     for (int i = 0; i < 13; i++)\r
     {\r
@@ -218,7 +219,9 @@ public class Preferences
     Cache.applicationProperties.setProperty("SHOW_FULLSCREEN",\r
                                             Boolean.toString(fullScreen.\r
         isSelected()));\r
-\r
+    Cache.applicationProperties.setProperty("SHOW_OVERVIEW",\r
+                                            Boolean.toString(openoverv.\r
+        isSelected()));\r
     Cache.applicationProperties.setProperty("SHOW_ANNOTATIONS",\r
                                             Boolean.\r
                                             toString(annotations.isSelected()));\r
index f5e6604..dad0f7f 100755 (executable)
@@ -112,6 +112,7 @@ public class GPreferences
   protected JCheckBox wrap = new JCheckBox();\r
   protected JCheckBox rightAlign = new JCheckBox();\r
   protected JCheckBox idItalics = new JCheckBox();\r
+  protected JCheckBox openoverv = new JCheckBox();\r
   /**\r
    * Creates a new GPreferences object.\r
    */\r
@@ -394,6 +395,12 @@ public class GPreferences
     idItalics.setHorizontalAlignment(SwingConstants.RIGHT);\r
     idItalics.setHorizontalTextPosition(SwingConstants.LEADING);\r
     idItalics.setText("Sequence Name Italics");\r
+    openoverv.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11));\r
+    openoverv.setActionCommand("Open Overview");\r
+    openoverv.setHorizontalAlignment(SwingConstants.RIGHT);\r
+    openoverv.setHorizontalTextPosition(SwingConstants.LEADING);\r
+    openoverv.setText("Open Overview Window");\r
+    openoverv.setBounds(new Rectangle(169, 17, 152, 23));\r
     jPanel2.add(fullScreen);\r
     jPanel2.add(annotations);\r
     jPanel2.add(seqLimit);\r
@@ -406,6 +413,7 @@ public class GPreferences
     jPanel2.add(colourLabel);\r
     jPanel2.add(sortLabel);\r
     jPanel2.add(startupCheckbox);\r
+    visualTab.add(openoverv);\r
     visualTab.add(startupFileTextfield);\r
     visualTab.add(sortby);\r
     visualTab.add(colour);\r