mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2024-12-11 11:49:19 +00:00
Went through and did a pass on spell checking. #36
This commit is contained in:
parent
711df891a9
commit
2699b3cea6
4
TODO
4
TODO
@ -2,10 +2,6 @@ THINGS TO DO
|
||||
============
|
||||
This is the internal list of items that need to be done.
|
||||
|
||||
-- 1.4.0 --
|
||||
* Migration to GitHub
|
||||
* Update SWT libraries
|
||||
|
||||
--- FUTURE ---
|
||||
o Create subdirectories as appropriate (ProDOS).
|
||||
o Create reusable show dialog messages (they're scattered all over right now) to clean
|
||||
|
15
VERSIONS
15
VERSIONS
@ -1,9 +1,12 @@
|
||||
1.4.0 (March 2018) and later are posted on GitHub under releases:
|
||||
https://github.com/AppleCommander/AppleCommander/releases
|
||||
|
||||
1.3.4 (2007-03-31)
|
||||
* Started using the SWT S-Leak application to test for application resource leakage.
|
||||
* Reports of a few issues with 800K images. UniDOS in particular doesn't appear to be
|
||||
recognized appropriately. This was due to a mix-up in setting the the image ordering.
|
||||
* Fixed the bug where the import of a binary file does not set the address for DOS images.
|
||||
* Fixed bug that where a file cound not be exported as raw binary. (Crashed AppleCommander.)
|
||||
* Fixed bug that where a file could not be exported as raw binary. (Crashed AppleCommander.)
|
||||
* Raw binary files may now be imported - just check the raw image checkbox in the import
|
||||
wizard.
|
||||
* Prepare for internationalization (I18N). Started as a simplification process but it
|
||||
@ -129,7 +132,7 @@
|
||||
- CTRL+C = Copy to clipboard (only text formats)
|
||||
- CTRL+P = Print
|
||||
* Printing is available from the file preview.
|
||||
* Copy is avilable from file preview except for images.
|
||||
* Copy is available from file preview except for images.
|
||||
* Opening an invalid disk image (or a file that is not a disk image) no longer
|
||||
crashes AppleCommander.
|
||||
* Provide a command-line interface - John Matthews "ac" is now supplied as part
|
||||
@ -253,7 +256,7 @@
|
||||
* Files can be deleted.
|
||||
* Any changes to a disk image can be saved. Please be careful! It's
|
||||
easy enough to keep a backup copy of your work these days.
|
||||
* Two new DOS derivitaves are available: UniDOS and OzDOS (both are
|
||||
* Two new DOS derivatives are available: UniDOS and OzDOS (both are
|
||||
800K formats).
|
||||
* Import from right-click menu needs to be enabled.
|
||||
|
||||
@ -292,7 +295,7 @@
|
||||
* Extract Applesoft files by converting tokens to strings.
|
||||
* Extract Integer Basic files by converting tokens to strings.
|
||||
* RDOS files are not being read correctly; maybe this is an issue with
|
||||
the sector skew? Resolved that RDOS images are apprantly 13 sectors.
|
||||
the sector skew? Resolved that RDOS images are apparently 13 sectors.
|
||||
Updated accordingly.
|
||||
* Fixed bug in DOS Applesoft and Binary file length calculations.
|
||||
Deleted file entries were (a) not being detected correctly which
|
||||
@ -301,7 +304,7 @@
|
||||
* Updated FileFilter to suggest an appropriate file name.
|
||||
* Extracting black & white or color (user selected) HGR file format to
|
||||
PNG/JPEG (user selected). GIF is not a part of ImageIO for writing
|
||||
(apparantly is avilable for reading).
|
||||
(apparently is available for reading).
|
||||
* Fixed issue in determining DOS format disks. Originally was only
|
||||
checking 3 bytes of the VTOC for valid values. Extended to check for 8
|
||||
valid values in the VTOC. Fixed known problem with Crisis Mountain.
|
||||
@ -355,7 +358,7 @@ Website (2002-10-28)
|
||||
* Add sorting to file table.
|
||||
|
||||
0.92 (2002-10-24)
|
||||
* Fix icon transparency. Needed to change from PNG to GIF; apparantly SWT
|
||||
* Fix icon transparency. Needed to change from PNG to GIF; apparently SWT
|
||||
does not do PNG transparency.
|
||||
* Don't use large font in disk usage map; on some displays, the words are
|
||||
cut off and the legend doesn't fit in the window.
|
||||
|
@ -23,7 +23,7 @@ import com.webcodepro.applecommander.util.TextBundle;
|
||||
|
||||
/**
|
||||
* Manage the compiler-specific ResourceBundle. Inheritance is used to
|
||||
* allow logical groupings of ResourceBundles and to reuse the common metods.
|
||||
* allow logical groupings of ResourceBundles and to reuse the common methods.
|
||||
*
|
||||
* @author Rob Greene
|
||||
*/
|
||||
|
@ -103,7 +103,7 @@ public class Disk {
|
||||
|
||||
/**
|
||||
* Get the supported file filters supported by the Disk interface.
|
||||
* This is due to the fact that FilenameFilter is an innerclass of Disk -
|
||||
* This is due to the fact that FilenameFilter is an inner class of Disk -
|
||||
* without an instance of the class, the filters cannot be created.
|
||||
*/
|
||||
public static FilenameFilter[] getFilenameFilters() {
|
||||
|
@ -21,7 +21,7 @@ package com.webcodepro.applecommander.storage;
|
||||
|
||||
/**
|
||||
* A DiskCorruptException is thrown during the disk's data structures are corrupted
|
||||
* beyound hope of automatic recovering.
|
||||
* beyond hope of automatic recovering.
|
||||
* <br>
|
||||
* Created on Nov 30, 2017.
|
||||
* @author Lisias Toledo
|
||||
|
@ -45,21 +45,13 @@ public class FileEntryComparator implements Comparator<FileEntry> {
|
||||
* Compare two FileEntry objects.
|
||||
* @see java.util.Comparator#compare(Object, Object)
|
||||
*/
|
||||
public int compare(FileEntry o1, FileEntry o2) {
|
||||
// FIXME?: This safety check is safe to remove now?
|
||||
if (!(o1 instanceof FileEntry) || !(o2 instanceof FileEntry)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (o1 == null || o2 == null) {
|
||||
return ((o1 == null) ? -1 : 0) + ((o2 == null) ? 1 : 0);
|
||||
public int compare(FileEntry entry1, FileEntry entry2) {
|
||||
if (entry1 == null || entry2 == null) {
|
||||
return ((entry1 == null) ? -1 : 0) + ((entry2 == null) ? 1 : 0);
|
||||
}
|
||||
|
||||
FileEntry entry1 = (FileEntry) o1;
|
||||
FileEntry entry2 = (FileEntry) o2;
|
||||
|
||||
String column1 = (String) entry1.getFileColumnData(displayMode).get(columnIndex);
|
||||
String column2 = (String) entry2.getFileColumnData(displayMode).get(columnIndex);
|
||||
String column1 = entry1.getFileColumnData(displayMode).get(columnIndex);
|
||||
String column2 = entry2.getFileColumnData(displayMode).get(columnIndex);
|
||||
|
||||
if (isAllDigits(column1) && isAllDigits(column2)) {
|
||||
int int1 = toInt(column1);
|
||||
|
@ -21,7 +21,7 @@ package com.webcodepro.applecommander.storage;
|
||||
|
||||
|
||||
/**
|
||||
* A file filter taks a buffer of bytes and filters or converts the bytes
|
||||
* A file filter takes a buffer of bytes and filters or converts the bytes
|
||||
* into another format. An example would be to filter Apple text by
|
||||
* removing the high bit from each byte and stripping out all $00 values,
|
||||
* as that signified either the end of a file or filler space.
|
||||
|
@ -366,7 +366,7 @@ public abstract class FormattedDisk extends Disk implements DirectoryEntry {
|
||||
}
|
||||
|
||||
/**
|
||||
* Resize the disk image to be its full size. Only invole this
|
||||
* Resize the disk image to be its full size. Only invoke this
|
||||
* method if a size does not match exception is thrown.
|
||||
*/
|
||||
public void resizeDiskImage() {
|
||||
|
@ -68,7 +68,7 @@ public class AppleWorksDataBaseFileFilter implements FileFilter {
|
||||
*/
|
||||
private static final int HEADER_REPORTS_BYTE = 38;
|
||||
/**
|
||||
* DBMinVers. Ths minimum version of AppleWorks needed
|
||||
* DBMinVers. The minimum version of AppleWorks needed
|
||||
* to read this file. This will be $0 unless there are
|
||||
* more than 8 report formats; it will then contain the
|
||||
* version number 30 ($1E) or greater.
|
||||
|
@ -39,7 +39,7 @@ import com.webcodepro.applecommander.util.AppleUtil;
|
||||
*/
|
||||
public class AppleWorksSpreadSheetFileFilter implements FileFilter {
|
||||
/**
|
||||
* SSMinVers. Ths minimum version of AppleWorks needed
|
||||
* SSMinVers. The minimum version of AppleWorks needed
|
||||
* to read this file. If this file contains version 3.0-
|
||||
* specific functions (such as calculated labels or new
|
||||
* functions), this byte will contain the version number
|
||||
|
@ -34,10 +34,10 @@ import com.webcodepro.applecommander.util.AppleUtil;
|
||||
* <p>
|
||||
* Address for Apple2 HGR/DHR address is calculated from an observation of a pattern:<br>
|
||||
* line number bits: 87654321<br>
|
||||
* 87 are multipled by 0x0028<br>
|
||||
* 65 are multipled by 0x0100<br>
|
||||
* 87 are multiplied by 0x0028<br>
|
||||
* 65 are multiplied by 0x0100<br>
|
||||
* 4 is multiplied by 0x0080<br>
|
||||
* 321 are multipled by 0x0400
|
||||
* 321 are multiplied by 0x0400
|
||||
* <p>
|
||||
* HGR bit values ignore the high bit, as that switches the "palette", and for B&W mode,
|
||||
* the bit does nothing. The other 7 bits simply toggle the pixel on or off. Double hires
|
||||
@ -45,8 +45,8 @@ import com.webcodepro.applecommander.util.AppleUtil;
|
||||
* graphics (hence, the 560 instead of 640 resolution).
|
||||
* <p>
|
||||
* SHR has been implemented in "16 color" mode as well as 3200 color mode. Note that
|
||||
* 16 color mode is really 16 pallettes of 16 colors while 3200 color mode is 200
|
||||
* pallettes of 16 colors (one pallette per line).
|
||||
* 16 color mode is really 16 palettes of 16 colors while 3200 color mode is 200
|
||||
* palettes of 16 colors (one palette per line).
|
||||
* <p>
|
||||
* NOTE: The design is feeling kludgy. There are 6 distinct variations - possibly a
|
||||
* subclass is needed to interpret the various graphic image or some such redesign.
|
||||
@ -197,7 +197,7 @@ public class GraphicsFileFilter implements FileFilter {
|
||||
* HGR color is two bits to determine color - essentially resolution is
|
||||
* 140 horizontally, but it indicates the color for two pixels.
|
||||
* <p>
|
||||
* The names of pixles is a bit confusion - pixel0 is really the left-most
|
||||
* The names of pixels is a bit confusion - pixel0 is really the left-most
|
||||
* pixel (not the low-value bit).
|
||||
* To alleviate my bad naming, here is a color table to assist:<br>
|
||||
* <pre>
|
||||
@ -235,7 +235,7 @@ public class GraphicsFileFilter implements FileFilter {
|
||||
if (pixel0 && highbit) {
|
||||
color = 0x0000ff; // blue
|
||||
} else if (pixel0 && !highbit) {
|
||||
color = 0xff00ff; // voilet
|
||||
color = 0xff00ff; // violet
|
||||
} else if (pixel1 && !highbit) {
|
||||
color = 0x00ff00; // green
|
||||
} else { // pixel1 && highbit
|
||||
@ -305,7 +305,7 @@ public class GraphicsFileFilter implements FileFilter {
|
||||
int[] colorValues = {
|
||||
0x000000, 0xff0000, 0x800000, 0xff8000, // black, magenta, brown, orange
|
||||
0x008000, 0x808080, 0x00ff00, 0xffff00, // dark green, grey1, green, yellow
|
||||
0x000080, 0xff00ff, 0x808080, 0xff80c0, // dark blue, voilet, grey2, pink
|
||||
0x000080, 0xff00ff, 0x808080, 0xff80c0, // dark blue, violet, grey2, pink
|
||||
0x0000a0, 0x0000ff, 0x00c080, 0xffffff // medium blue, light blue, aqua, white
|
||||
};
|
||||
for (int x=0; x<560; x+=4) {
|
||||
@ -454,7 +454,7 @@ public class GraphicsFileFilter implements FileFilter {
|
||||
int[] colors = { // this is a wild guess, by the way!
|
||||
0x000000, 0xff0000, 0x800000, 0xff8000, // black, magenta, brown, orange
|
||||
0x008000, 0x808080, 0x00ff00, 0xffff00, // dark green, grey1, green, yellow
|
||||
0x000080, 0xff00ff, 0x808080, 0xff80c0, // dark blue, voilet, grey2, pink
|
||||
0x000080, 0xff00ff, 0x808080, 0xff80c0, // dark blue, violet, grey2, pink
|
||||
0x0000a0, 0x0000ff, 0x00c080, 0xffffff // medium blue, light blue, aqua, white
|
||||
};
|
||||
int[] grays = { // a logical guess...
|
||||
|
@ -38,10 +38,10 @@ import com.webcodepro.applecommander.storage.FileFilter;
|
||||
* by all portions of the system. When a user program opens a text file,
|
||||
* and REWRITEs or RESETs it with a title ending in .TEXT, the I/O
|
||||
* subsystem will create and skip over the initial header page. This is
|
||||
* done to faciliatie users editing their input and/or output data. The
|
||||
* file-handler wil transfer the header page only on a disk-to-disk
|
||||
* done to facilitate users editing their input and/or output data. The
|
||||
* file-handler will transfer the header page only on a disk-to-disk
|
||||
* transfer, and will omit it on a transfer to a serial device (thus
|
||||
* transfers to PRINTER: abd CONSOLE: will omit the header page).
|
||||
* transfers to PRINTER: and CONSOLE: will omit the header page).
|
||||
* <p>
|
||||
* Following the initial header page, the text itself appears in
|
||||
* subsequent 1024-byte text pages (two block each, on diskette),
|
||||
|
@ -342,7 +342,7 @@ public class CpmFileEntry implements FileEntry {
|
||||
/**
|
||||
* Return the user number (UU). 0-15 on Apple CP/M (can range to 31
|
||||
* on some systems). The user number allows multiple files with the
|
||||
* same name to coexist on the disk. Apparantly, this is used in
|
||||
* same name to coexist on the disk. Apparently, this is used in
|
||||
* conjunction with deleted files.
|
||||
*/
|
||||
public int getUserNumber(int entryNumber) {
|
||||
|
@ -115,7 +115,7 @@ public class CpmFormatDisk extends FormattedDisk {
|
||||
}
|
||||
|
||||
/**
|
||||
* There apparantly is no corresponding CP/M disk name.
|
||||
* There apparently is no corresponding CP/M disk name.
|
||||
* @see com.webcodepro.applecommander.storage.FormattedDisk#getDiskName()
|
||||
*/
|
||||
public String getDiskName() {
|
||||
@ -515,7 +515,7 @@ public class CpmFormatDisk extends FormattedDisk {
|
||||
|
||||
/**
|
||||
* Change to a different ImageOrder. Remains in CP/M format but
|
||||
* the underlying order can chage.
|
||||
* the underlying order can change.
|
||||
* @see ImageOrder
|
||||
*/
|
||||
public void changeImageOrder(ImageOrder imageOrder) {
|
||||
|
@ -76,7 +76,7 @@ public class DosFormatDisk extends FormattedDisk {
|
||||
|
||||
/**
|
||||
* Use this inner interface for managing the disk usage data.
|
||||
* This offloads format-specific implementation to the implementing class.
|
||||
* This off-loads format-specific implementation to the implementing class.
|
||||
*/
|
||||
private class DosDiskUsage implements DiskUsage {
|
||||
private int[] location = null;
|
||||
@ -206,7 +206,7 @@ public class DosFormatDisk extends FormattedDisk {
|
||||
|
||||
/**
|
||||
* Indicates if this disk image can create a file.
|
||||
* If not, the reason may be as simple as it has not beem implemented
|
||||
* If not, the reason may be as simple as it has not been implemented
|
||||
* to something specific about the disk.
|
||||
*/
|
||||
public boolean canCreateFile() {
|
||||
@ -224,7 +224,7 @@ public class DosFormatDisk extends FormattedDisk {
|
||||
}
|
||||
|
||||
/**
|
||||
* Comput the number of free sectors available on the disk.
|
||||
* Compute the number of free sectors available on the disk.
|
||||
*/
|
||||
public int getFreeSectors() {
|
||||
byte[] vtoc = readVtoc();
|
||||
@ -579,7 +579,7 @@ public class DosFormatDisk extends FormattedDisk {
|
||||
}
|
||||
|
||||
/**
|
||||
* Format the disk as DOS 3.3 given the dymanic parameters.
|
||||
* Format the disk as DOS 3.3 given the dynamic parameters.
|
||||
* (Used for UniDOS and OzDOS.)
|
||||
*/
|
||||
protected void format(int firstCatalogSector, int tracksPerDisk,
|
||||
@ -748,7 +748,7 @@ public class DosFormatDisk extends FormattedDisk {
|
||||
|
||||
/**
|
||||
* Change to a different ImageOrder. Remains in DOS 3.3 format but
|
||||
* the underlying order can chage.
|
||||
* the underlying order can change.
|
||||
* @see ImageOrder
|
||||
*/
|
||||
public void changeImageOrder(ImageOrder imageOrder) {
|
||||
|
@ -68,7 +68,7 @@ public class GutenbergFormatDisk extends FormattedDisk {
|
||||
|
||||
/**
|
||||
* Use this inner interface for managing the disk usage data.
|
||||
* This offloads format-specific implementation to the implementing class.
|
||||
* This off-loads format-specific implementation to the implementing class.
|
||||
*/
|
||||
private class WPDiskUsage implements DiskUsage {
|
||||
private int[] location = null;
|
||||
@ -189,7 +189,7 @@ public class GutenbergFormatDisk extends FormattedDisk {
|
||||
|
||||
/**
|
||||
* Indicates if this disk image can create a file.
|
||||
* If not, the reason may be as simple as it has not beem implemented
|
||||
* If not, the reason may be as simple as it has not been implemented
|
||||
* to something specific about the disk.
|
||||
*/
|
||||
public boolean canCreateFile() {
|
||||
@ -510,30 +510,6 @@ public class GutenbergFormatDisk extends FormattedDisk {
|
||||
writeVtoc(vtoc);
|
||||
}
|
||||
|
||||
/**
|
||||
* Free sectors used by a GutenbergFileEntry.
|
||||
*/
|
||||
/*
|
||||
protected void freeSectors(GutenbergFileEntry GutenbergFileEntry) {
|
||||
byte[] vtoc = readVtoc();
|
||||
int track = GutenbergFileEntry.getTrack();
|
||||
if (track == 255) return;
|
||||
int sector = GutenbergFileEntry.getSector();
|
||||
while (track != 0) {
|
||||
setSectorFree(track,sector,vtoc);
|
||||
byte[] trackSectorList = readSector(track, sector);
|
||||
track = AppleUtil.getUnsignedByte(trackSectorList[0x01]);
|
||||
sector = AppleUtil.getUnsignedByte(trackSectorList[0x02]);
|
||||
for (int i=0x0c; i<0x100; i+=2) {
|
||||
int t = AppleUtil.getUnsignedByte(trackSectorList[i]);
|
||||
if (t == 0) break;
|
||||
int s = AppleUtil.getUnsignedByte(trackSectorList[i+1]);
|
||||
setSectorFree(t,s,vtoc);
|
||||
}
|
||||
}
|
||||
writeVtoc(vtoc);
|
||||
}
|
||||
*/
|
||||
/**
|
||||
* Format the disk as DOS 3.3.
|
||||
* @see com.webcodepro.applecommander.storage.FormattedDisk#format()
|
||||
@ -703,7 +679,7 @@ public class GutenbergFormatDisk extends FormattedDisk {
|
||||
|
||||
/**
|
||||
* Change to a different ImageOrder. Remains in DOS 3.3 format but
|
||||
* the underlying order can chage.
|
||||
* the underlying order can change.
|
||||
* @see ImageOrder
|
||||
*/
|
||||
public void changeImageOrder(ImageOrder imageOrder) {
|
||||
|
@ -73,7 +73,7 @@ public class NakedosFormatDisk extends FormattedDisk {
|
||||
private static final int[] sectorTranslate = {0, 7, 14, 6, 13, 5, 12, 4, 11, 3, 10, 2, 9, 1, 8, 15};
|
||||
/**
|
||||
* Use this inner interface for managing the disk usage data.
|
||||
* This offloads format-specific implementation to the implementing class.
|
||||
* This off-loads format-specific implementation to the implementing class.
|
||||
*/
|
||||
private class WPDiskUsage implements DiskUsage {
|
||||
private int[] location = null;
|
||||
|
@ -488,7 +488,7 @@ public class PascalFileEntry implements FileEntry {
|
||||
|
||||
/**
|
||||
* Get the byte[] associated with this FileEntry.
|
||||
* This is need to manipuate the directory as a whole.
|
||||
* This is need to manipulate the directory as a whole.
|
||||
*/
|
||||
public byte[] toBytes() {
|
||||
return fileEntry;
|
||||
|
@ -69,7 +69,7 @@ public class PascalFormatDisk extends FormattedDisk {
|
||||
|
||||
/**
|
||||
* Use this inner interface for managing the disk usage data.
|
||||
* This offloads format-specific implementation to the implementing class.
|
||||
* This off-loads format-specific implementation to the implementing class.
|
||||
* A BitSet is used to track all blocks, as Pascal disks do not have a
|
||||
* bitmap stored on the disk. This is safe since we know the number of blocks
|
||||
* that exist. (BitSet length is of last set bit - unset bits at the end are
|
||||
@ -337,7 +337,7 @@ public class PascalFormatDisk extends FormattedDisk {
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the fisrt block.
|
||||
* Return the first block.
|
||||
*/
|
||||
public int getFirstBlock() {
|
||||
return AppleUtil.getWordValue(getVolumeEntry(), 18);
|
||||
|
@ -86,7 +86,7 @@ public class ProdosDirectoryEntry extends ProdosFileEntry implements DirectoryEn
|
||||
|
||||
/**
|
||||
* Indicates if this disk image can create a file.
|
||||
* If not, the reason may be as simple as it has not beem implemented
|
||||
* If not, the reason may be as simple as it has not been implemented
|
||||
* to something specific about the disk.
|
||||
*/
|
||||
public boolean canCreateFile() {
|
||||
|
@ -61,7 +61,7 @@ public class ProdosFileEntry extends ProdosCommonEntry implements FileEntry {
|
||||
/**
|
||||
* Return the name of this file.
|
||||
* This handles normal files, deleted files, and AppleWorks files - which use
|
||||
* the AUXTYPE attribute to indicate upper/lower-case in the filename.
|
||||
* the AUXTYPE attribute to indicate upper/lowercase in the filename.
|
||||
*/
|
||||
public String getFilename() {
|
||||
String fileName;
|
||||
@ -85,7 +85,7 @@ public class ProdosFileEntry extends ProdosCommonEntry implements FileEntry {
|
||||
StringBuffer mixedCase = new StringBuffer(fileName);
|
||||
// the highest bit of the least significant byte is the first
|
||||
// character through the 2nd bit of the most significant byte
|
||||
// being the 15th character. Bit is on indicates lowercase or
|
||||
// being the 15th character. Bit is on indicates lower-case or
|
||||
// a space if a "." is present.
|
||||
for (int i=0; i<16 && i<fileName.length(); i++) {
|
||||
boolean lowerCase;
|
||||
|
@ -72,7 +72,7 @@ public class ProdosFormatDisk extends FormattedDisk {
|
||||
*/
|
||||
private static ProdosFileType[] fileTypes;
|
||||
/**
|
||||
* This array of strings conains all filetypes. This is lazy
|
||||
* This array of strings contains all filetypes. This is lazy
|
||||
* initialized by getFiletypes.
|
||||
*/
|
||||
private static String[] filetypeStrings;
|
||||
@ -111,7 +111,7 @@ public class ProdosFormatDisk extends FormattedDisk {
|
||||
|
||||
/**
|
||||
* Use this inner interface for managing the disk usage data.
|
||||
* This offloads format-specific implementation to the implementing class.
|
||||
* This off-loads format-specific implementation to the implementing class.
|
||||
*/
|
||||
private class ProdosDiskUsage implements DiskUsage {
|
||||
private int location = -1;
|
||||
@ -1320,7 +1320,7 @@ public class ProdosFormatDisk extends FormattedDisk {
|
||||
|
||||
/**
|
||||
* Change to a different ImageOrder. Remains in ProDOS format but
|
||||
* the underlying order can chage.
|
||||
* the underlying order can change.
|
||||
* @see ImageOrder
|
||||
*/
|
||||
public void changeImageOrder(ImageOrder imageOrder) {
|
||||
|
@ -76,7 +76,7 @@ public class RdosFormatDisk extends FormattedDisk {
|
||||
|
||||
/**
|
||||
* Use this inner interface for managing the disk usage data.
|
||||
* This offloads format-specific implementation to the implementing class.
|
||||
* This off-loads format-specific implementation to the implementing class.
|
||||
* A BitSet is used to track all blocks, as RDOS disks do not have a
|
||||
* bitmap stored on the disk. This is safe since we know the number of blocks
|
||||
* that exist. (BitSet length is of last set bit - unset bits at the end are
|
||||
@ -215,7 +215,7 @@ public class RdosFormatDisk extends FormattedDisk {
|
||||
|
||||
/**
|
||||
* Indicates if this disk image can create a file.
|
||||
* If not, the reason may be as simple as it has not beem implemented
|
||||
* If not, the reason may be as simple as it has not been implemented
|
||||
* to something specific about the disk.
|
||||
*/
|
||||
public boolean canCreateFile() {
|
||||
@ -264,7 +264,7 @@ public class RdosFormatDisk extends FormattedDisk {
|
||||
|
||||
/**
|
||||
* Get suggested dimensions for display of bitmap.
|
||||
* Since RDOS uses blocks, a null is returned indicating no suggsetions.
|
||||
* Since RDOS uses blocks, a null is returned indicating no suggestions.
|
||||
*/
|
||||
public int[] getBitmapDimensions() {
|
||||
return null;
|
||||
@ -482,7 +482,7 @@ public class RdosFormatDisk extends FormattedDisk {
|
||||
|
||||
/**
|
||||
* Change to a different ImageOrder. Remains in RDOS format but
|
||||
* the underlying order can chage.
|
||||
* the underlying order can change.
|
||||
* @see ImageOrder
|
||||
*/
|
||||
public void changeImageOrder(ImageOrder imageOrder) {
|
||||
|
@ -156,14 +156,14 @@ public class NibbleOrder extends DosOrder {
|
||||
* signature. Because of the way in which disk bytes are captured, we need
|
||||
* to wrap around the track to ensure all sequences of bytes are accounted for.
|
||||
* <p>
|
||||
* This methid fills fieldData as well as returning the last position referenced
|
||||
* This method fills fieldData as well as returning the last position referenced
|
||||
* in the track buffer.
|
||||
*/
|
||||
protected int locateField(int byte1, int byte2, int byte3, byte[] trackData, byte[] fieldData, int startingOffset) {
|
||||
int i = startingOffset; // logical position in track buffer (can wrap)
|
||||
int position = 0; // physical position in field buffer
|
||||
while (i < trackData.length + fieldData.length) {
|
||||
int offset = i % trackData.length; // physical posistion in track buffer
|
||||
int offset = i % trackData.length; // physical position in track buffer
|
||||
int b = AppleUtil.getUnsignedByte(trackData[offset]);
|
||||
if (position == 0 && b == byte1) {
|
||||
fieldData[position++] = (byte) b;
|
||||
@ -188,7 +188,7 @@ public class NibbleOrder extends DosOrder {
|
||||
* XX = 1d1d1d1d (odd data bits)
|
||||
* YY = 1d1d1d1d (even data bits)
|
||||
* </pre>
|
||||
* XX is then shifted by a bit and ANDed with YY to get the databyte.
|
||||
* XX is then shifted by a bit and ANDed with YY to get the data byte.
|
||||
* See page 3-12 in Beneath Apple DOS for more information.
|
||||
*/
|
||||
protected int decodeOddEven(byte[] buffer, int offset) {
|
||||
|
@ -23,7 +23,7 @@ import com.webcodepro.applecommander.util.TextBundle;
|
||||
|
||||
/**
|
||||
* Manage the user-interface specific ResourceBundle. Inheritance is used to
|
||||
* allow logical groupings of ResourceBundles and to reuse the common metods.
|
||||
* allow logical groupings of ResourceBundles and to reuse the common methods.
|
||||
*
|
||||
* @author Rob Greene
|
||||
*/
|
||||
|
@ -26,7 +26,7 @@ import com.webcodepro.applecommander.util.AppleUtil;
|
||||
|
||||
/**
|
||||
* Provides a view of a raw hex dump from the diskette. This includes any operating
|
||||
* system-specific data (ie, for DOS it may include starting address and/or length).
|
||||
* system-specific data (i.e., for DOS it may include starting address and/or length).
|
||||
*
|
||||
* @author Rob Greene
|
||||
*/
|
||||
|
@ -294,7 +294,7 @@ public class AppleUtil {
|
||||
}
|
||||
|
||||
/**
|
||||
* Format a byte value as hexidecimal.
|
||||
* Format a byte value as hexadecimal.
|
||||
*/
|
||||
public static String getFormattedByte(int byt) {
|
||||
int byt1 = byt & 0x0f;
|
||||
@ -306,7 +306,7 @@ public class AppleUtil {
|
||||
}
|
||||
|
||||
/**
|
||||
* Format a word value as hexidecimal.
|
||||
* Format a word value as hexadecimal.
|
||||
*/
|
||||
public static String getFormattedWord(int word) {
|
||||
return getFormattedByte((word & 0xff00) >> 8)
|
||||
@ -314,7 +314,7 @@ public class AppleUtil {
|
||||
}
|
||||
|
||||
/**
|
||||
* Format a 3 byte value as hexidecimal.
|
||||
* Format a 3 byte value as hexadecimal.
|
||||
*/
|
||||
public static String getFormatted3ByteAddress(int addr) {
|
||||
return getFormattedByte((addr & 0xff0000) >> 16)
|
||||
@ -515,7 +515,7 @@ public class AppleUtil {
|
||||
* 5 bytes long, a float will not work - hence the double. Some
|
||||
* precision is lost, but (hopefully) nothing significant!
|
||||
* <p>
|
||||
* More specificially, the mapping is as follows:<br>
|
||||
* More specifically, the mapping is as follows:<br>
|
||||
* (Applesoft)<br>
|
||||
* <tt>EEEEEEEE SFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF</tt><br>
|
||||
* (IEEE 754 - Java)<br>
|
||||
|
@ -23,7 +23,7 @@ import java.text.MessageFormat;
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
/**
|
||||
* Manage the user-interface specific ResourceBundle. Initally, this is to actually clean up the
|
||||
* Manage the user-interface specific ResourceBundle. Initially, this is to actually clean up the
|
||||
* text. Ultimately, it should allow AppleCommander to be translated into other languages.
|
||||
* <p>
|
||||
* Note that TextBundle serves as a generic resource for the util package. Other
|
||||
|
@ -183,6 +183,6 @@ AppleWorksDataBaseFileFilter.September=September
|
||||
AppleWorksDataBaseFileFilter.October=October
|
||||
AppleWorksDataBaseFileFilter.November=November
|
||||
AppleWorksDataBaseFileFilter.December=December
|
||||
AppleWorksDataBaseFileFilter.InvalidHeaderLengthError=AppleWorks Data Base file header lenth does not check. Aborting.
|
||||
AppleWorksDataBaseFileFilter.InvalidHeaderLengthError=AppleWorks Data Base file header length does not check. Aborting.
|
||||
AppleWorksDataBaseFileFilter.InvalidDate=[Invalid Date={0}]
|
||||
AppleWorksDataBaseFileFilter.InvalidTime=[Invalid Time={0}]
|
||||
|
@ -22,10 +22,10 @@ DeleteFileToolItem=Delete
|
||||
DeleteFileHoverText=Delete a file (CTRL+D)
|
||||
DeleteFileErrorTitle=Unable to view a deleted file!
|
||||
ResizeDiskTitle = Resize disk?
|
||||
ResizeDiskMessage = This disk needs to be resized to match the formatted capacity. This should be an ApplePC HDV disk iamge - they typically start at 0 bytes and grow to the maximum capacity (32MB). Resize the disk?
|
||||
ResizeDiskMessage = This disk needs to be resized to match the formatted capacity. This should be an ApplePC HDV disk image - they typically start at 0 bytes and grow to the maximum capacity (32MB). Resize the disk?
|
||||
ImportFileTitle = Unable to import file(s)!
|
||||
ImportMenuItem=Import...\tCTRL+I
|
||||
ImportFileMessage = An error occured during import!\n\nException was "{0}".
|
||||
ImportFileMessage = An error occurred during import!\n\nException was "{0}".
|
||||
FilesTab=Files
|
||||
ExpandMenuItem=Expand\t+
|
||||
CollapseMenuItem=Collapse\t-
|
||||
|
@ -457,7 +457,7 @@ public class DiskWriterTest {
|
||||
|
||||
/**
|
||||
* Create a bunch of files and then delete them repeatedly.
|
||||
* This is intended to excersize not only creating and deleting
|
||||
* This is intended to exercise not only creating and deleting
|
||||
* files but the disk management (ala Disk Map).
|
||||
*/
|
||||
protected void createAndDeleteFiles(FormattedDisk[] disks, String filetype) throws DiskException {
|
||||
|
Loading…
Reference in New Issue
Block a user