mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2025-03-01 00:30:17 +00:00
Added raw file import checkbox.
This commit is contained in:
parent
f47c2c8ffd
commit
8519134bb1
@ -42,6 +42,7 @@ public class ImportSelectFilesWizardPane extends WizardPane {
|
||||
private Button editButton;
|
||||
private Table fileTable;
|
||||
private Text addressText;
|
||||
private Button rawCheckbox;
|
||||
/**
|
||||
* Constructor for ImportSelectFilesWizardPane.
|
||||
*/
|
||||
@ -254,6 +255,12 @@ public class ImportSelectFilesWizardPane extends WizardPane {
|
||||
wizard.getDisk().needsAddress(spec.getFiletype()));
|
||||
}
|
||||
|
||||
// RAW file image: (probably only used for DOS 3.3)
|
||||
label = new Label(dialog, SWT.NONE);
|
||||
label.setText("RAW binary?");
|
||||
rawCheckbox = new Button(dialog, SWT.CHECK);
|
||||
rawCheckbox.setSelection(spec.isRawFileImport());
|
||||
|
||||
// Enable/disable the address component:
|
||||
filetypes.addSelectionListener(new SelectionAdapter() {
|
||||
public void widgetSelected(SelectionEvent event) {
|
||||
@ -279,6 +286,7 @@ public class ImportSelectFilesWizardPane extends WizardPane {
|
||||
filenameText.dispose();
|
||||
filetypes.dispose();
|
||||
addressText.dispose();
|
||||
rawCheckbox.dispose();
|
||||
dialog.close();
|
||||
}
|
||||
});
|
||||
@ -293,9 +301,11 @@ public class ImportSelectFilesWizardPane extends WizardPane {
|
||||
filetypes.getSelectionIndex()));
|
||||
spec.setAddress(AppleUtil.convertFormattedWord(
|
||||
addressText.getText()));
|
||||
spec.setRawFileImport(rawCheckbox.getSelection());
|
||||
filenameText.dispose();
|
||||
filetypes.dispose();
|
||||
addressText.dispose();
|
||||
rawCheckbox.dispose();
|
||||
dialog.close();
|
||||
refreshTable();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user