Added Opening ABC file format (*.abc)

This commit is contained in:
Jindra Petřík
2022-11-20 22:12:19 +01:00
parent dd63487dd8
commit 344bdfa6ea
70 changed files with 1576 additions and 906 deletions
@@ -78,7 +78,7 @@ public class SearchDialog extends AppDialog {
}
}
public SearchDialog(Window owner, boolean replace, String selection, boolean selectionFirst) {
public SearchDialog(Window owner, boolean replace, String selection, boolean selectionFirst, boolean currentAbc) {
super(owner);
setDefaultCloseOperation(JDialog.HIDE_ON_CLOSE);
ignoreCaseCheckBox.setSelected(true);
@@ -111,7 +111,7 @@ public class SearchDialog extends AppDialog {
if (selection != null) {
scopeItems.add(translate("scope.selection").replace("%selection%", selection));
}
scopeItems.add(translate("scope.currentFile"));
scopeItems.add(translate(currentAbc ? "scope.currentFile.abc" : "scope.currentFile"));
scopeItems.add(translate("scope.allFiles"));
panField.add(new JLabel(translate("label.scope")));
scopeComboBox = new JComboBox<>(scopeItems.toArray(new String[scopeItems.size()]));