mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2025-03-01 16:31:25 +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 Button editButton;
|
||||||
private Table fileTable;
|
private Table fileTable;
|
||||||
private Text addressText;
|
private Text addressText;
|
||||||
|
private Button rawCheckbox;
|
||||||
/**
|
/**
|
||||||
* Constructor for ImportSelectFilesWizardPane.
|
* Constructor for ImportSelectFilesWizardPane.
|
||||||
*/
|
*/
|
||||||
@ -254,6 +255,12 @@ public class ImportSelectFilesWizardPane extends WizardPane {
|
|||||||
wizard.getDisk().needsAddress(spec.getFiletype()));
|
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:
|
// Enable/disable the address component:
|
||||||
filetypes.addSelectionListener(new SelectionAdapter() {
|
filetypes.addSelectionListener(new SelectionAdapter() {
|
||||||
public void widgetSelected(SelectionEvent event) {
|
public void widgetSelected(SelectionEvent event) {
|
||||||
@ -279,6 +286,7 @@ public class ImportSelectFilesWizardPane extends WizardPane {
|
|||||||
filenameText.dispose();
|
filenameText.dispose();
|
||||||
filetypes.dispose();
|
filetypes.dispose();
|
||||||
addressText.dispose();
|
addressText.dispose();
|
||||||
|
rawCheckbox.dispose();
|
||||||
dialog.close();
|
dialog.close();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -293,9 +301,11 @@ public class ImportSelectFilesWizardPane extends WizardPane {
|
|||||||
filetypes.getSelectionIndex()));
|
filetypes.getSelectionIndex()));
|
||||||
spec.setAddress(AppleUtil.convertFormattedWord(
|
spec.setAddress(AppleUtil.convertFormattedWord(
|
||||||
addressText.getText()));
|
addressText.getText()));
|
||||||
|
spec.setRawFileImport(rawCheckbox.getSelection());
|
||||||
filenameText.dispose();
|
filenameText.dispose();
|
||||||
filetypes.dispose();
|
filetypes.dispose();
|
||||||
addressText.dispose();
|
addressText.dispose();
|
||||||
|
rawCheckbox.dispose();
|
||||||
dialog.close();
|
dialog.close();
|
||||||
refreshTable();
|
refreshTable();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user