*/
protected static final String VIEWS_LOCAL_PDB = "VIEWS_LOCAL_PDB";
+ protected JPanel actionsPanel;
+
protected JPanel statusPanel = new JPanel();
public JLabel statusBar = new JLabel();
protected StringBuilder errorWarning = new StringBuilder();
+ protected JButton btn_cancel;
+
protected JButton btn_add;
protected JButton btn_newView;
protected JComboBox<StructureImportSettings.TFType> combo_tempFacAs = new JComboBox<>();
+ protected boolean tempFacAsChanged = false;
+
protected JButton btn_paeMatrixFile = new JButton();
protected JLabel lbl_paeFile = new JLabel();
}
});
- JButton btn_cancel = new JButton(
- MessageManager.getString("action.cancel"));
+ btn_cancel = new JButton(MessageManager.getString("action.cancel"));
btn_cancel.setFont(VERDANA_12);
btn_cancel.addActionListener(new ActionListener()
{
lbl_pdbFile.setFont(VERDANA_10);
lbl_chooseTempFacType.setFont(VERDANA_12);
- lbl_chooseTempFacType.setText(new StringBuilder()
- .append(MessageManager.getString("label.choose_tempfac_type"))
- .append(" ").append(MessageManager.getString("label.optional"))
- .toString());
+ lbl_chooseTempFacType.setText(
+ MessageManager.getString("label.interpret_tempfac_as"));
combo_tempFacAs.setFont(VERDANA_12);
for (TFType t : TFType.values())
{
combo_tempFacAs.addItem(t);
}
+ combo_tempFacAs.addItemListener(new ItemListener()
+ {
+ @Override
+ public void itemStateChanged(ItemEvent e)
+ {
+ // used to determine if we should guess pLDDT or leave a user-choice
+ tempFacAsChanged = true;
+ }
+ });
btn_paeMatrixFile.setFont(VERDANA_12);
- btn_paeMatrixFile.setText(new StringBuilder()
- .append(MessageManager.getString("label.add_pae_matrix_file"))
- .append(" ").append(MessageManager.getString("label.optional"))
- .toString());
+ btn_paeMatrixFile
+ .setText(MessageManager.getString("label.add_pae_matrix_file"));
btn_paeMatrixFile.addActionListener(new ActionListener()
{
@Override
targetView.setVisible(false);
- JPanel actionsPanel = new JPanel(new MigLayout());
+ actionsPanel = new JPanel(new MigLayout());
actionsPanel.add(targetView, "left");
actionsPanel.add(btn_add, "wrap");
actionsPanel.add(chk_superpose, "left");
gbc.insets = new Insets(0, 0, 18, 0);
pnl_fileOptions.add(lbl_pdbFile, gbc);
gbc.gridy++;
+
gbc.insets = new Insets(0, 0, 2, 0);
+ pnl_fileOptions.add(new JLabel(
+ MessageManager.getString("label.structure_import_options")),
+ gbc);
+ gbc.gridy++;
+
+ gbc.insets = new Insets(0, 0, 6, 0);
pnl_fileOptions.add(lbl_chooseTempFacType, gbc);
gbc.gridy++;
gbc.insets = new Insets(0, 0, 18, 0);
pnl_fileOptions.add(combo_tempFacAs, gbc);
gbc.gridy++;
- gbc.insets = new Insets(0, 0, 2, 0);
+ gbc.insets = new Insets(0, 0, 6, 0);
pnl_fileOptions.add(btn_paeMatrixFile, gbc);
gbc.gridy++;
+ gbc.insets = new Insets(0, 0, 2, 0);
gbc.weighty = 1.0;
pnl_fileOptions.add(lbl_paeFile, gbc);
lbl_chooseTempFacType.setEnabled(b);
combo_tempFacAs.setEnabled(b);
btn_paeMatrixFile.setEnabled(b);
+ lbl_paeFile.setEnabled(b);
}
}