showQuality = Cache.getDefault("SHOW_QUALITY", true);\r
showIdentity = Cache.getDefault("SHOW_IDENTITY", true);\r
\r
+ autoCalculateConsensus = Cache.getDefault("AUTO_CALC_CONSENSUS", true);\r
+\r
String fontName = Cache.getDefault("FONT_NAME", "SansSerif");\r
String fontStyle = Cache.getDefault("FONT_STYLE", Font.PLAIN + "") ;\r
String fontSize = Cache.getDefault("FONT_SIZE", "10");\r
pileupjv.setSelected( Cache.getDefault("PILEUP_JVSUFFIX", true) );\r
pirjv.setSelected( Cache.getDefault("PIR_JVSUFFIX", true) );\r
\r
+ autoCalculateConsCheck.setSelected( Cache.getDefault("AUTO_CALC_CONSENSUS", true));\r
+\r
/****************************************************\r
* Set up Connections\r
*/\r
Cache.applicationProperties.setProperty("PILEUP_JVSUFFIX", Boolean.toString(pileupjv.isSelected()) );\r
Cache.applicationProperties.setProperty("PIR_JVSUFFIX", Boolean.toString(pirjv.isSelected()) );\r
\r
+ Cache.applicationProperties.setProperty("AUTO_CALC_CONSENSUS",\r
+ Boolean.toString(autoCalculateConsCheck.isSelected()));\r
\r
Cache.saveProperties();\r
try\r
}\r
});\r
autoCalculate.setText("Autocalculate Consensus");\r
- autoCalculate.setState(true);\r
+ autoCalculate.setState( jalview.bin.Cache.getDefault("AUTO_CALC_CONSENSUS", true));\r
autoCalculate.addActionListener(new ActionListener()\r
{\r
public void actionPerformed(ActionEvent e)\r
protected JCheckBox seqLimit = new JCheckBox();\r
GridLayout gridLayout3 = new GridLayout();\r
protected JCheckBox smoothFont = new JCheckBox();\r
+ JPanel calcTab = new JPanel();\r
+ protected JCheckBox autoCalculateConsCheck = new JCheckBox();\r
/**\r
* Creates a new GPreferences object.\r
*/\r
smoothFont.setHorizontalAlignment(SwingConstants.RIGHT);\r
smoothFont.setHorizontalTextPosition(SwingConstants.LEADING);\r
smoothFont.setText("Smooth Font");\r
+ calcTab.setLayout(null);\r
+ autoCalculateConsCheck.setText("AutoCalculate Consensus");\r
+ autoCalculateConsCheck.setBounds(new Rectangle(16, 29, 209, 23));\r
jPanel2.add(fullScreen);\r
\r
jPanel2.add(annotations);\r
jPanel11.add(pfamjv);\r
jPanel11.add(pileupjv);\r
jPanel11.add(pirjv);\r
+ tabbedPane.add(calcTab, "Calculations");\r
+ calcTab.add(autoCalculateConsCheck);\r
\r
exportTab.add(epsLabel);\r
exportTab.add(epsRendering);\r