23rd
4e4e54dcc5
Made monospace text clickable.
2022-01-08 08:24:06 +03:00
23rd
b81b9371e6
Removed TextParseRichText.
2022-01-08 08:24:06 +03:00
23rd
7e279bd83a
Removed text commands.
2022-01-08 08:24:06 +03:00
23rd
09b56b019b
Added utilities to wrap TextWithEntities.
2022-01-08 08:24:06 +03:00
23rd
745ce34dd5
Added new entity type for plain non-interactive links.
...
Increased size of the block flags by two bits.
Added a text utility to wrap a simple text with plain links.
Added a new flag to specify parsing of plain links.
2022-01-08 08:24:06 +03:00
23rd
8e999fe8fb
Moved out all block implementations from header file.
2022-01-08 08:24:06 +03:00
23rd
c9a9751472
Added utilities to mid and filter TextWithEntities.
2022-01-08 08:24:06 +03:00
John Preston
9da4e1e731
Fix spoiler rounding.
2021-12-30 15:58:27 +03:00
John Preston
541c8d258b
Display shown spoilers as plain text.
2021-12-30 15:58:27 +03:00
John Preston
5f94fa24a0
Some fixes in spoiler geometry.
2021-12-30 15:58:27 +03:00
23rd
8b0ff16b66
Fixed isolated emoji under spoilers.
2021-12-30 03:24:11 +03:00
23rd
e961883914
Fixed spoiler width for thin characters.
2021-12-30 03:23:39 +03:00
23rd
3461c18cda
Extracted ellipsis string from String::Text to global access.
2021-12-25 18:24:09 +03:00
23rd
774da18a38
Added utility to correctly cut text with commands.
2021-12-25 17:31:53 +03:00
23rd
44853e9334
Added ability to show or hide spoilers from outside.
2021-12-25 17:31:53 +03:00
23rd
db871a87f5
Added animation for spoilers.
2021-12-24 15:49:02 +03:00
23rd
2c1e6b458d
Moved SpoilerClickHandler to separated file.
2021-12-24 15:49:02 +03:00
23rd
af2cfca307
Improved style of selected text with spoilers.
2021-12-24 15:49:02 +03:00
23rd
6c9d832ad8
Added nice corners for spoilers.
2021-12-24 15:49:02 +03:00
23rd
9c1572564b
Added utility to replace spoiler entities with text commands.
2021-12-24 15:49:02 +03:00
23rd
fc6c3841ee
Improved utility to clean text from text commands except spoilers.
2021-12-24 15:49:02 +03:00
23rd
8331322c20
Replaced tag separator to avoid conflicts with new spoiler tag.
2021-12-24 15:49:02 +03:00
23rd
ee4a94c122
Added spoiler support to input field.
2021-12-24 15:49:02 +03:00
23rd
bcf16c6c80
Added spoiler support to conversion from Ui::Text::String to text.
2021-12-24 15:49:02 +03:00
23rd
6b905f7754
Added text command for spoilers.
2021-12-24 15:49:02 +03:00
23rd
1819e6e3a5
Added initial spoiler support to Ui::Text::String.
2021-12-24 15:49:02 +03:00
23rd
e19a4c6544
Added index for spoiler to AbstractBox.
2021-12-22 22:39:03 +03:00
23rd
8aeb6def88
Moved out AbstractBlock implementation from header file.
2021-12-22 17:08:11 +03:00
23rd
c06f0435c4
Moved splitting of tags to separated method.
2021-12-22 17:03:52 +03:00
Ilya Fedin
004270ebd0
Try with QList
2021-10-20 10:27:52 +04:00
Ilya Fedin
93987b3703
Fix a type mismatch
2021-10-20 10:27:52 +04:00
Ilya Fedin
ee36b1f451
Use StringViewMid adapter
2021-10-20 10:27:52 +04:00
Ilya Fedin
64e40913df
Use new Qt 6 adapters
2021-10-19 19:28:45 +04:00
Ilya Fedin
8e5d35229a
Simple replacements for Qt 6
...
QStringRef -> QStringView
QTextCursor constructor accepts a QTextDocument only
Some headers are moved, so paths are removed
QMatrix -> QTransform
Methods returning qsizetype are wrapped to int()s to allow compiler to deduce the type
2021-10-19 17:06:25 +04:00
John Preston
d81997194e
Allow forcing links to be always underlined.
2021-09-19 12:41:44 +03:00
23rd
38d65bf16e
Added separate entity type for media timestamp.
2021-08-16 13:32:58 +03:00
Ilya Fedin
a2d1114a93
Get rid of osx and linux32 special targets
2021-08-11 16:01:30 +03:00
Ilya Fedin
51cfd0ba35
Fix -Wunused-variable warnings with gcc
2021-07-19 18:59:36 +03:00
Ilya Fedin
b8485c0d8a
Fix -Wunused-variable warnings
2021-07-13 21:24:22 +03:00
John Preston
0134685622
Fix converting entities to tags.
2021-06-23 15:55:03 +04:00
John Preston
f239f66ce5
Fix build with Xcode.
2021-06-22 20:31:57 +04:00
John Preston
0028a534d2
Fix parsing links with markup to entities.
2021-06-22 19:04:29 +04:00
John Preston
2d71162f4a
Convert overlapping tags to entities and back.
2021-06-22 18:29:12 +04:00
John Preston
96b4c6c57a
Allow several tags with '|' separator in InputField.
2021-06-22 14:42:57 +04:00
Ilya Fedin
6ff8d15de0
Move qtextitemint ifdef to cmake
2021-05-31 22:51:06 +03:00
Ilya Fedin
0dbb210385
Fix deprecated declarations warning in QTextItemInt
2021-05-31 22:51:06 +03:00
John Preston
d07bee87cd
Use LOG/DEBUG_LOG from lib_base.
2021-04-20 16:39:27 +04:00
John Preston
51b4074cc9
Support 64 bit mention ids in entities.
2021-04-08 16:19:50 +04:00
Ilya Fedin
c74cf04cc6
Get rid of deprecated ranges::view usage
2021-03-13 19:06:44 +03:00
John Preston
f06346fbf0
Allow precompute size of serialized tags.
2020-11-13 20:26:30 +03:00