-
Notifications
You must be signed in to change notification settings - Fork 2
Dialog Text Viewer
The Text Viewer dialog displays plain text content in a read-only or editable multi-line text box.
It is used throughout the application wherever plain text needs to be shown: viewing a text file stored in a disk image, reading the application change log, displaying device information, or presenting generated reports such as bandwidth analysis.
The Text Viewer is opened indirectly by various commands:
- Context Menu: View File as Text in the Directory and File Panel
- Menu: Help -> Change Log
- Menu: Flux -> Greaseweazle -> Device Info
- Menu: Flux -> Greaseweazle -> Report Bandwidth
The caller supplies the window title, the text content, whether the content can be edited, and whether a Save button is shown.
The Text Viewer opens with the caret at the beginning of the text and displays as much of the content as fits on screen, with scroll bars for longer text.
When the caller enables editing (for example, when viewing a writable text file inside an image), changes can be typed directly; otherwise the text box is read-only.
Saves the current text content to a file.
- The default filename is suggested based on the source of the text (for example, the entry name when viewing a file inside an image).
- Supported filters are plain text (
.txt) and all files. - The Save button is hidden when the caller has disabled saving (for example, when displaying the change log).
Closes the dialog. The Escape key has the same effect.
- The Text Viewer does not interpret the content; it is displayed as-is.
- When used by View File as Text, the dialog is always read-only; text files inside images are edited through the hex editor or by replacing the file.
- No search is built into this viewer; use the hex editor to search within the content of an image file.
- Menu Bar
- Toolbar
- Image Selection Dropdown
- Summary Panel
- Checksums Panel
- Directory and File Panel
- Directory and File Panel Context Menus
- Status Bar
Disk Images
- New Disk Image
- Edit Boot Sector
- Edit File Allocation Table
- Hex Editor
- Find
- Raw Track Data
- XML Viewer
Files and Directories
Disk
Flux
Miscellaneous