Commit graph

3 commits

Author SHA1 Message Date
Vadim Peretokin
b6738dd8c2
infrastructure: Apply clang-format to all CPP files (#8804)
#### Brief overview of PR changes/additions
Ran clang-format on all 134 CPP files in src/ using the project's
.clang-format config

#### Motivation for adding to Mudlet
Ensures consistent code formatting across the codebase.

#### Other info (issues closed, discussion etc)
None

**Test case:** Build the project and verify it compiles successfully.
2026-01-19 18:10:44 +01:00
Vadim Peretokin
04523e5518
infrastructure: Guard undo/redo debug messages behind compile flag (#8760)
#### Brief overview of PR changes/additions
- Wrap all `qWarning()` and `qDebug()` statements in undo/redo command
files with `#if defined(DEBUG_UNDO_REDO)` guards
- Affects EditorDeleteItemCommand, EditorModifyPropertyCommand,
EditorAddItemCommand, EditorUndoStack

#### Motivation for adding to Mudlet
Prevents debug spam in console output during normal usage while keeping
messages available when explicitly enabled for development.

#### Other info (issues closed, discussion etc)
**Test case:** Build and run Mudlet, perform undo/redo operations in the
editor - no debug messages should appear in console. Enable
`DEBUG_UNDO_REDO` in CMakeLists.txt to verify messages still work when
needed.

Co-authored-by: Vadim Peretokin <vadi2@users.noreply.github.com>
2026-01-08 08:37:34 +01:00
Vadim Peretokin
a3bfcfd031
Add: undo/redo for Mudlet editor (#8469)
<!-- Keep the title short & concise so anyone non-technical can
understand it,
     the title appears in PTB changelogs -->
#### Brief overview of PR changes/additions
Adds undo/redo for Mudlet editor - allows you to undo
adding/changing/deleting triggers, aliases and so on. This PR also adds
visual tests that can be run inside the `Mudlet self-test` profile, and
they are hooked up to run in the CI pipeline automatically. The deletion
confirmation dialog has been itself deleted since we can now undo.
#### Motivation for adding to Mudlet
Long-awaited and often requested feature. Fixes #707 and addresses
#8272.
#### Other info (issues closed, discussion etc)
This test also adds 300+ tests that can be run in the Mudlet self-test
profile (launch it from the CLI using `--profile "Mudlet self-test"`):



https://github.com/user-attachments/assets/f7f10fcc-0129-47f0-ad8c-d54816820d57

/claim #707

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Vadim Peretokin <vadi2@users.noreply.github.com>
Co-authored-by: Zooka <136661366+ZookaOnGit@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-12-11 09:50:15 +05:00