Commit graph

19 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
Zooka
9e738a1a44
infrastructure: remove old references to pre/post_guard.h (#8519)
<!-- Keep the title short & concise so anyone non-technical can
understand it,
     the title appears in PTB changelogs -->
#### Brief overview of PR changes/additions
pre_guard.h and post_guard.h snuck back in during #8239, but they aren't
required any more as per #8378

#### Motivation for adding to Mudlet
code readability

#### Other info (issues closed, discussion etc)
2025-11-13 18:09:38 +11:00
sammerpetria
2d4e70f37f
Improve: Reduce pattern lines in trigger editor (#8239)
<!-- Keep the title short & concise so anyone non-technical can
understand it,
     the title appears in PTB changelogs -->
#### Brief overview of PR changes/additions
Reduce blank pattern widget lines to only show used ones + 1. New
trigger start with two.
When you delete the last one, it reduces back to always used + 1 blank
Works good with import triggers and legacy multiple lines triggers.,
improves keyboard navigation: 
modified order of tab navigation to go from name to patterns, then
continue,
add control+f to go first pattern line, and control+L last.. hint under
pattern lines
Up/down arrows to move between pattern lines

#### Motivation for adding to Mudlet
Enhanced tab navigation on the trigger editor menu , priority to useful
displays, etc.
better experiencie for screen readers users , less objects to navigate.
#### Other info (issues closed, discussion etc)
 replace #8215
 
<img width="1860" height="681" alt="image"
src="https://github.com/user-attachments/assets/9bcc9cb4-dc52-4ff9-b4a1-0ad65dbb2e48"
/>
<img width="1825" height="825" alt="image"
src="https://github.com/user-attachments/assets/abc393f2-4ad3-4eac-9bdb-848c27dbc9e9"
/>


https://github.com/user-attachments/assets/69acf69e-15a2-4439-93da-ea98c39958c6

---------

Signed-off-by: SammerPetria <sammerpetria@gmail.com>
2025-10-30 17:57:24 +01:00
Vadim Peretokin
8cb58cf0ca
Infrastructure: remove MSVC leak detection (#8378)
<!-- Keep the title short & concise so anyone non-technical can
understand it,
     the title appears in PTB changelogs -->
#### Brief overview of PR changes/additions
Remove support for leak detection using MSVC - this functionality hasn't
been in use in a decade, and we're switching to to using
[LeakSanitizer](https://github.com/google/sanitizers/wiki/AddressSanitizerLeakSanitizer)
instead.
#### Motivation for adding to Mudlet
Cleaner code.
#### Other info (issues closed, discussion etc)

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-10-21 15:11:09 +01:00
Zooka
61bbe163bd
Improve: re-add regex highlighting (#7570)
<!-- Keep the title short & concise so anyone non-technical can
understand it,
     the title appears in PTB changelogs -->
#### Brief overview of PR changes/additions
Fix font issues in trigger pattern editor.

#### Motivation for adding to Mudlet
Better user experience.

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

https://discord.com/channels/283581582550237184/427919962561052673/1318678483295146064

---------

Co-authored-by: Vadim Peretokin <vadi2@users.noreply.github.com>
2024-12-24 07:20:35 +01:00
Vadim Peretokin
9fc3a5b0a0
Fix: revert "Add regex highlighting to triggers in script editor (#7523)" (#7574)
This reverts commit c1295a8655.

<!-- Keep the title short & concise so anyone non-technical can
understand it,
     the title appears in PTB changelogs -->
#### Brief overview of PR changes/additions
Revert regex highlighting added in
https://github.com/Mudlet/Mudlet/pull/7523
#### Motivation for adding to Mudlet
User feedback in
https://discord.com/channels/283581582550237184/1318678483295146064 -
getting the text and line height proper on all platforms is tough
#### Other info (issues closed, discussion etc)
We'll add it back later after the release.

Co-authored-by: Vadim Peretokin <vadi2@users.noreply.github.com>
2024-12-19 11:45:30 +01:00
Zooka
c1295a8655
Add regex highlighting to triggers in script editor (#7523)
<!-- 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 highlighting to triggers in script editor using the chosen edbee
theme as a guide. Fallsback to default colours otherwise.

#### Motivation for adding to Mudlet
Better user experience, helps identify possible issues with regex
patterns.

#### Other info (issues closed, discussion etc)
closes #5641


![image](https://github.com/user-attachments/assets/ce70ca35-8b25-41e5-9e85-05f6bb2497f2)

![image](https://github.com/user-attachments/assets/1067e84e-9a21-46d3-95bb-eae0ce2cc816)
2024-11-26 04:23:03 +01:00
Kebap
e832e70f29
Infrastructure: rename pF -> pParentWidget & fix some whitespace layouts (#6379)
#### Brief overview of PR changes/additions
make variable name more readable 

#### Motivation for adding to Mudlet
Improve readability

#### Other info (issues closed, discussion etc)
Fix #6375

Co-authored-by: Stephen Lyons <slysven@virginmedia.com>
2022-11-14 10:14:16 +01:00
Stephen Lyons
12eb35eceb
Infrastructure: move away from constructor initialisation lists - part 1 (#5890)
There is also some minor cosmetic changes, mainly with members initialised
within the body of the constructors. Also some bogus uses of `nullptr`
**pointer** value instead of a `QColor()` default value for a couple of
`QColors` in the `dlgRoomSybol` class.

I have steered away from using `{}` to initialise simple, POD data types in
favour of explicitly stating what their default values are.

Signed-off-by: Stephen Lyons <slysven@virginmedia.com>
2022-01-21 04:50:50 +00:00
Vadim Peretokin
3118f1275e
Revert "don't speak unless given text, ignore > and < (#4706)" (#4738)
This reverts commit faad4242e1.
2021-02-03 11:03:46 +01:00
Kebap
faad4242e1
don't speak unless given text, ignore > and < (#4706) 2021-02-02 10:14:12 +01:00
Vadim Peretokin
68ad594f3d
Make it clearer for Mudlet newbies where trigger text goes (#4673) 2021-01-29 10:34:41 +01:00
Piotr
802ebd26af
Change line spacer trigger type to use spin box (#4531)
move icon out of line edit action to make all types have small icon on the left

Co-authored-by: Piotr Wilczynski <piotr.wilczynski@bisnode.com>
2020-12-28 10:01:28 +01:00
Stephen Lyons
cee00a641a
BugFix: redo triggerT-type Indication in editor to return a colour coding (#2361)
We recently removed the foreground colour coding of text entered into the
trigger item text line because it could render some types unreadable with
some themes/styling.  That was not universally popular because the colour
was also a sub-conscious reminder to some users as to the item type.

This PR adds a coloured icon to the trigger type selection `QComboBox` but
- given that it is a little way from the point at which any text is entered
I have also arranged for the coloured (they could also be pictorial icons
if someone wanted to design a set) icons to be duplicated at the start
of the `QLineEdit` where the text is entered.

The colours largely duplicate the colours previously used for those with
text entry and I have chosen a pair of contrasting colours for the two
(colour and prompt) triggers that do not show the text entry widget.

This also properly wraps the trigger type texts in `tr(`...`)` so they
will finally be included in the translation process - from which they
were previously not!

Signed-off-by: Stephen Lyons <slysven@virginmedia.com>
2019-03-11 18:24:25 +01:00
Vadim Peretokin
a42507b307 Finished formatting all filed & added braces (#1115)
* Finished formatting all filed & added braces
2017-06-26 16:46:54 +02:00
Ahmed Charles
deaa3e1c0e Fix uninitialized members. 2017-04-17 22:38:34 -07:00
Ahmed Charles
e73617fa25 Reformat various files.
Note, these files no longer need formating.
2014-08-30 01:40:04 -07:00
Ahmed Charles
3989340fcd Rearrange includes to improve compile times.
This also allows for memory leak checking on MSVC by having include
surrounding Qt headers, which break if you have a macro define new
to be something which tracks line information.
2014-08-17 14:46:54 -07:00
heiko
6597b6f268 color triggers pattern|tempColorTriggers|isAnsiColor|Manual upgrade 2009-11-04 00:33:42 +01:00