Commit 184cb98
committed
Qt GUI overhaul: live reload, undo/redo, test suite, crash reporting
Headline features
- Live Reload From Source (QFileSystemWatcher, captured SVTFCreateOptions
+ retune dialog; also watches parent directory for atomic-save editors).
- External VTF change detection with clean/dirty divergence handling plus
Shift+F5 force-reload.
- Command palette (Ctrl+Shift+P) with subsequence fuzzy matching and
persistent recency + use-count scoring.
- Non-modal toast overlay; clickable variant with pointer-hover pause.
- Undo/redo backed by QUndoStack: flags, minor version, start frame,
bumpmap scale, reflectivity, and compute-reflectivity. Properties
multi-field saves grouped as a single macro.
- Equirectangular HDRI -> cubemap (Tools menu; CPU bilinear sampler;
256/512/1024/2048 face sizes).
- Lit Normal + Mip Diff channel-view modes; per-mip PSNR stats in VTF
Properties dialog.
- Export presets (preset bar on Create dialog: Save As / Delete; 20+
fields persisted in QSettings).
- Per-file view memory (zoom, fit, cubemap face); reopen-last-session
+ auto-fit-on-open options.
- Extended image import: PNG/JPG/BMP/TIFF/WebP/GIF/PPM/PGM/PBM (Qt) plus
TGA, HDR, PSD, PIC (stb_image), OpenEXR (tinyexr), QOI (qoi.h).
Animated GIF/APNG auto-expand into Animated-VTF frames.
- Crash reporting: async-signal-safe POSIX handler / SetUnhandledException
filter on Windows, writes to <AppDataLocation>/crashes/ with backtrace.
Next startup surfaces new reports via a clickable toast.
VTFLib fixes and extensions
- Kaiser/Gaussian/Point mipmap filter crash fixed: replaced the
stbir_filter(MipmapFilter) cast (which produced out-of-range stbir
enum values) with an explicit VTFFilterToStbirFilter mapping applied
at all three stbir_resize call sites.
- New MIPMAP_FILTER_NICE: Valve-style half-pixel box filter that forces
STBIR_TYPE_UINT8_SRGB in mipmap generation regardless of the caller's
bSRGB flag. Exposed via vtfcmd -mfilter nice and the Qt dialog.
- CVTFFile::Load now detects byte-swapped headers (console VTFs,
Xbox 360 / PS3) and future VTF 7.6+ / compressed-body variants,
failing with specific errors instead of generic corruption.
- Fix -Wswitch warning by handling RESIZE_COUNT sentinel.
VTFCmd
- New -exportpath <file> flag for shell thumbnailers that pass an exact
destination path. Only honored without -extract-all-*.
Test suite + CI
- 14 CTest scenarios: three formats (RGBA8888/BGRA8888/RGB888), a
-nomipmaps variant, eight mipmap filters (box/triangle/catrom/mitchell/
kaiser/point/gaussian/nice), an animated round-trip with per-frame
diff, and a 6-face cubemap round-trip. Header magic + dimensions +
flags validated; PNG output pixel-diffed via new imgdiff helper
(PSNR >= 20 dB gate, fully-transparent pixels ignored).
- New imgdiff test helper (stb_image-based).
- New mkanimvtf test helper (vlImageCreateMultiple wrapper; --cube flag
for 6-face env maps).
- CI core job runs ctest on every push across Ubuntu/Windows/macOS.
- CI qt-gui job runs a headless vtfeditqt --version / --help smoke test.
- New release job: tag-triggered (v*), downloads all platform artifacts,
packages them with versioned names (e.g. QTFEdit-3.5.0-linux-x86_64.zip),
drafts a GitHub Release with CHANGELOG.md as the body.
- vtfeditqt gained --version / --help that short-circuit before
QApplication so the smoke step needs no platform plugin.
Shell integration
- Linux: packaging/linux/vtf.thumbnailer + vtf-mime.xml; cmake --install
deploys them to share/thumbnailers and share/mime/packages.
- Windows: packaging/windows/vtf-assoc.reg + uninstaller; registers
.vtf/.vmt under HKCU (no admin).
- macOS: Info.plist.in with CFBundleDocumentTypes +
UTExportedTypeDeclarations; QFileOpenEvent filter in main.cpp.
Version
- Project version bumped 3.0.0 -> 3.5.0. main.cpp --version now reads
QTFEDIT_VERSION from CMake via a compile definition so the string
won't drift out of sync with the project version again.
Cleanup
- Removed unused applyExposure8bit and leadingSpacesCount in MainWindow.
- Expanded .gitignore for macOS/Linux/Windows metadata, editor swap
files, clang-tidy/clangd caches, CTest scratch, coverage/profiling
artifacts, core dumps, alternate build directories.
Docs
- docs/parity.md: VTFEdit Reloaded parity remains 100%; new Beyond-Parity
section covers every feature above.
- docs/roadmap.md: forward roadmap covering big-ticket items (Strata
compressed VTF read/write, Xbox 360 / PS3 console VTF read) plus
shell-integration, Qt GUI quick/medium/ambitious tiers, and
infrastructure work.
- README.md: version header v3.0 -> v3.5, expanded feature bullets,
Testing section, short Roadmap highlighting the two headline items
with a link to docs/roadmap.md for the full catalogue, release flow.
- CHANGELOG.md: full inventory of the 3.5.0 arc.1 parent 8f5fca0 commit 184cb98
50 files changed
Lines changed: 14928 additions & 616 deletions
File tree
- .github/workflows
- VTFCmd
- tests
- VTFEdit
- VTFLib
- docs
- lib
- packaging
- linux
- windows
- thirdparty/include
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
| |||
98 | 102 | | |
99 | 103 | | |
100 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
101 | 130 | | |
102 | 131 | | |
103 | 132 | | |
| |||
245 | 274 | | |
246 | 275 | | |
247 | 276 | | |
248 | | - | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
340 | | - | |
| 340 | + | |
341 | 341 | | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
0 commit comments