-
Notifications
You must be signed in to change notification settings - Fork 2
Dialog Hex Editor
DiskImageTool uses a single, shared hex editor for all hex-based views. Different menu options open the editor with a different scope, but the editor itself, its tools, and editing behavior remain consistent.
The hex editor toolbar provides editing, selection, search, and navigation controls. Available options adapt depending on the current view.
These actions are available in all hex views unless otherwise noted.
-
Commit
Applies all changes made in the hex editor and closes the editor. -
Undo
Reverts the most recent edit made in the hex editor. -
Redo
Reapplies the last undone edit.
-
Copy Text
Copies the selected ASCII text. -
Copy Hex
Copies the selected bytes as raw hexadecimal. -
Copy Hex Formatted
Copies the selected bytes as formatted hexadecimal, with spaces between bytes and 16 bytes per line. -
Paste Over
Pastes hexadecimal data from the clipboard, overwriting existing bytes starting at the first selected byte.
-
Find
Searches for specified text or hexadecimal data. -
Find Next
Finds the next occurrence of the previous search.
- Fill Selection with 0x00
- Fill Selection with 0xF6
-
Fill Selection
Opens a submenu allowing a custom byte value to be selected.
-
Select All
Selects all bytes in the current view. -
Select Sector n
Selects all bytes in the sector containing the cursor, or the sector containing the first byte of the current selection. -
Select Track nn.n
Selects all bytes in the current track.
This option is available only when viewing Entire Disk.
Navigation controls appear on the toolbar depending on the current view scope.
When viewing the entire disk, the following navigation controls are available:
-
Cluster n
Displays the cluster corresponding to the topmost visible row.
Changing this value scrolls the editor to the specified cluster. -
Sector n
Displays the global sector number corresponding to the topmost visible row.
Changing this value scrolls the editor to the specified sector. -
Track nn.n
Displays the current track.
Tracks may be selected from a dropdown list or entered manually.
These values update automatically as the editor is scrolled.
When viewing a specific region (such as the boot sector, FAT, directory, cluster, or track), navigation is limited to the current scope.
- Disk-wide navigation controls are hidden
- Positioning is relative to the selected region
When editing the File Allocation Table and multiple FAT copies exist:
- A Synchronize FATs checkbox appears
- When enabled, changes made to the active FAT are mirrored to all FAT copies
In all hex views except Entire Disk, a Display dropdown is shown. This allows switching between regions within the current scope.
Examples include:
-
Boot Sector
- Sector 0
-
File Allocation Table
- FAT 1 (Sector 1–2)
- FAT 2 (Sector 3–4)
-
Root Directory
- Sector ranges occupied by the directory
-
Other Views
- One or more regions represented by the view (for example, cluster or sector ranges)
The hex editor pane displays:
- Hexadecimal byte values on the left
- ASCII representation on the right
- Navigation hints indicating track, side, and sector boundaries
All hex views share the same editor and editing behavior.
The Data Inspector panel appears on the right side of the editor.
It displays the value under the cursor interpreted as various data types, and allows editing those values directly.
The top of the Data Inspector displays read-only context information:
-
Area
The region currently being viewed (for example, Boot Sector, FAT, Root Directory, Data Area). -
Region
Appears in Boot Sector view and indicates the boot sector region. -
File
Appears when the current view corresponds to file data. -
CRC32
The CRC32 checksum of the currently selected data.
All fields below these are editable data representations.
The status bar at the bottom of the editor displays real-time location and selection information.
-
Offset (h)
Offset of the cursor or the first byte of the selection. -
Block (h)
Displays start and end offsets when a selection exists. -
Length (h)
Length of the selected region in hexadecimal, with the decimal value in parentheses. -
Cluster
Cluster containing the cursor or selection (visible in data area views). -
Sector
Sector containing the cursor or selection. -
Track
-
Side
-
Sector Id
-
Bytes
Total number of bytes in the current view.
The hex editor context menu mirrors the toolbar functionality and includes:
- Undo / Redo
- Copy Text
- Copy Hex
- Copy Hex Formatted
- Paste Over
- Find / Find Next
- Fill Selection options
- Select Sector
- Select Track (Entire Disk only)
- Select All
All context menu actions behave identically to their toolbar counterparts.
When viewing the Boot Sector, bytes are color-coded by region:
- Green — Bootstrap jump and bootstrap code
- Red — OEM Name
- Blue — BIOS Parameter Block (BPB) fields
- Purple — Extended Parameter Block fields
- Orange — Boot sector signature
These regions correspond to the Region field shown in the Data Inspector.
When viewing the File Allocation Table:
- Any bytes that differ between FAT copies are highlighted in red
This allows quick identification of FAT inconsistencies.
- All hex views support editing unless explicitly noted
- Changes are staged until Commit is selected
- Undo and redo apply only to hex editor operations
- Menu Bar
- Toolbar
- Image Selection Dropdown
- Summary Panel
- Checksums Panel
- Directory and File Panel
- Directory and File Panel Context Menus
- Status Bar
Disk Images
Files and Directories
Flux