23rd
c6071d1148
Moved generic document preview info to separated file.
2021-07-26 17:38:51 +03:00
23rd
6e2f8eb9a7
Moved text selection utils to td_ui.
2021-07-26 17:38:51 +03:00
23rd
c82006c6f8
Moved position info from ItemBases to AbstractLayoutItem.
2021-07-26 17:38:51 +03:00
23rd
a153059b38
Added ability to unload not visible GIFs as heavy parts in overview.
2021-07-23 15:42:17 +03:00
23rd
abdd2fa99b
Added ability to force open media viewer from overview layout.
2021-07-23 15:42:17 +03:00
23rd
1fa71b6569
Copied GIF Layout from inline bots results to overview.
2021-07-23 15:42:17 +03:00
Ilya Fedin
79cc797aff
Fix -Wunused-variable warnings
2021-07-13 21:43:34 +03:00
23rd
a631a28092
Removed App::pixmapFromImageInPlace.
2021-07-06 12:13:06 +03:00
23rd
23c54896e5
Removed App::main() from file click handlers.
2021-06-18 09:20:49 +03:00
23rd
6c56fad180
Fixed updating of parent id for file click handlers.
...
Fixed #16447 .
2021-06-18 07:30:54 +03:00
23rd
3fd772ce17
Moved file click handlers to separated file.
2021-06-18 07:30:54 +03:00
23rd
8591d58798
Added ability to show content from Controller for Shared Media.
2021-06-17 10:57:45 +04:00
23rd
dc0aaec4a4
Added ability to show document from Controller for sections.
2021-06-17 10:57:45 +04:00
23rd
eefa7263b5
Added ability to show photo from Controller for sections.
2021-06-17 10:57:45 +04:00
23rd
583c3d3429
Moved static functions from DocumentData to separated file.
2021-06-17 10:57:45 +04:00
23rd
690fbe83fd
Unified and moved to single place generating of song name from SongData.
2021-05-31 08:54:22 +04:00
Ilya Fedin
f25b2a2094
Apply autofixes from clazy
2021-03-13 15:25:47 +03:00
23rd
6c0553f4d6
Returned default icon color for songs without cover art.
...
Related commit: 9b9531d279
.
2021-01-29 18:24:52 +03:00
23rd
9b9531d279
Replaced icon color for songs with bright one.
2021-01-24 10:41:10 +03:00
23rd
8fffe7d128
Added ability to show song cover in HistoryView and Overview::Layout.
2021-01-11 22:46:45 +03:00
John Preston
a6eb241ec1
Fix blurred thumbnails in Shared Links section.
2020-12-30 16:13:07 +04:00
John Preston
74d2313784
Build Linux version with Qt 5.15.1 in CentOS 7 docker.
2020-11-06 11:21:34 +03:00
John Preston
05eb549a3d
Move App::roundRect to Ui::FillRoundRect.
2020-10-30 18:32:18 +03:00
John Preston
ae298818a8
Implement message bar with animations.
2020-10-30 18:32:17 +03:00
John Preston
719bed6e85
Move some text formatting to tg_ui:ui/text/format_values.
2020-09-30 16:29:17 +03:00
John Preston
4d6cc58f0d
Move session settings to main_session_settings.
2020-06-23 21:53:42 +04:00
John Preston
ca97e3c375
Add more warnings for suspicious urls.
2020-06-03 12:44:46 +04:00
John Preston
36fbdfb380
Simplify Image, remove ImageSource.
2020-06-01 18:09:33 +04:00
John Preston
6513422e40
Remove legacy image-related code.
2020-06-01 18:09:33 +04:00
John Preston
7ad660a0e7
Allow photos not have some of the thumbnails.
2020-06-01 18:09:32 +04:00
John Preston
e27d2bc2d5
Move photo data to Data::PhotoMedia.
2020-06-01 18:09:32 +04:00
John Preston
ad5507f2c8
Clear DocumentMedia in media overview.
2020-06-01 18:09:31 +04:00
John Preston
58f82620e0
Simplify media overview layouts.
2020-06-01 18:09:31 +04:00
John Preston
053eace154
Prepare overview layouts for media clearing.
2020-06-01 18:09:31 +04:00
John Preston
44ec55b6a8
Clear DocumentMedia in links overview.
2020-06-01 18:09:31 +04:00
John Preston
956c3af0ae
Start DocumentData::thumbnail move to DocumentMedia.
2020-06-01 18:09:30 +04:00
John Preston
1e9c79ca85
Move automaticLoad() to DocumentMedia.
2020-06-01 18:09:30 +04:00
John Preston
40f12a2584
Keep document byte data only in DocumentMedia.
2020-06-01 18:09:30 +04:00
John Preston
bf616036b3
Check loaded status through DocumentMedia if possible.
2020-06-01 18:09:30 +04:00
John Preston
bdd3c51ab8
Move inline thumbnail image to DocumentMedia.
2020-06-01 18:09:30 +04:00
John Preston
7db53599e8
Use Data::DocumentMedia to store good thumbnails.
2020-06-01 18:09:29 +04:00
John Preston
0251f58bf2
Use Semibold in names, use Bold in messages.
...
Fixes #7813 , fixes #7823 .
2020-05-08 12:12:47 +04:00
John Preston
cfd733c54c
Add confirmation box for suspicious urls.
2020-04-23 19:00:19 +04:00
John Preston
616957e46f
Add file size limit to autoplay settings.
2019-12-24 13:09:04 +03:00
John Preston
ee94e78533
All mtproto downloads using DownloadMtprotoTask.
2019-12-05 11:32:33 +03:00
John Preston
c5845f17ae
Remove twidget header.
2019-10-01 23:59:46 +03:00
John Preston
e2f54eb3e9
Move some style code to lib_ui.
2019-10-01 23:59:46 +03:00
John Preston
0c713a930a
Remove app.h / facades.h from precompiled header.
2019-10-01 23:59:46 +03:00
John Preston
4bad642190
Remove some more Auth() calls.
2019-08-09 11:50:49 +01:00
John Preston
c5df4db621
Fix possible race conditions in msgid().
2019-07-15 16:00:30 +02:00
John Preston
4917ca7b32
Remove all legacy global namespace langs.
2019-06-21 11:06:52 +02:00
John Preston
87fc066e67
Use tr:: instead of lang().
2019-06-21 11:06:51 +02:00
John Preston
c7b1683f6e
Beta version 1.7.4: Use loadedInMediaCache for songs.
2019-06-04 18:59:26 +03:00
John Preston
b5be6df5e2
Copy text with expanded links only to external.
...
Paste valid custom links in message field if copied from messages.
2019-04-08 19:10:06 +04:00
John Preston
cc2fd51097
Fix video thumbnails in video overview.
2019-04-08 14:35:25 +04:00
John Preston
14de1fe485
Fix crash in shared links.
2019-04-05 22:45:57 +04:00
John Preston
43cc2145a8
Don't update radial animations in cycle.
2019-04-04 19:31:07 +04:00
John Preston
99bb09374d
Use new animations engine everywhere.
2019-04-02 14:33:53 +04:00
John Preston
a6e96f9a28
Use new animations engine in all Basic-s.
2019-04-02 14:33:53 +04:00
John Preston
d646de7184
Add button to download audio files.
2019-03-15 16:09:05 +04:00
John Preston
f2a7cf5c64
Improve shared videos design.
2019-03-15 12:09:48 +04:00
John Preston
ef682e7023
Fix photos in overview with disabled autodownload.
...
Fixes #5599 , fixes #5747 .
2019-03-12 12:55:26 +04:00
John Preston
c063d94aa5
Remove DocumentData::actionOnLoad. Fix GIF open.
2019-03-11 19:07:35 +04:00
John Preston
a886c598c1
Fix non-streamable videos layout.
2019-03-11 12:08:20 +04:00
John Preston
01d763eed1
Use DocumentData::getDuration for all types.
2019-03-11 12:08:15 +04:00
John Preston
aade3d4f27
Allow streaming video from overview.
2019-03-11 12:08:14 +04:00
John Preston
648cd44ddd
Display correct video / music state.
2019-03-11 12:08:08 +04:00
John Preston
fde8dd9607
Play streaming audio in player.
2019-03-11 12:08:08 +04:00
John Preston
f1e0cd6c1d
Play streaming video in mediaview.
2019-03-11 11:52:11 +04:00
John Preston
d37b65e624
If stuck wait for three seconds of packets.
2019-03-11 11:49:54 +04:00
John Preston
fe618bd652
Use crl::time/now instead of TimeMs/getms.
2019-02-19 11:06:33 +04:00
John Preston
032694ad9e
Move files to media/audio and media/clip.
2019-02-13 15:41:33 +03:00
John Preston
a1baa23a52
Use both thumbnails in photos and documents.
...
Fixes #5602 .
2019-01-28 13:10:45 +03:00
John Preston
a70e72f75d
Application->Sandbox, Messenger->Application.
2019-01-23 12:51:58 +04:00
John Preston
c5a41e1f55
Divide data/data_peer and remove from PCH.
2019-01-17 12:21:29 +04:00
John Preston
b00ca217b3
Don't autoread mentions with voice/video messages.
...
Voice/video message unread flag is the same that mention unread flag.
If we mark such mentions as read together with all others we mark
media as watched/listened instantly when they appear on the screen.
So now we mark as read only simple mentions, without "unread" media.
2018-12-26 14:30:55 +04:00
John Preston
b10ccce44a
Warn before running executable files.
2018-12-05 12:30:05 +04:00
23rd
c482ccfd4e
Show all audio in "Files" category with FILE layout.
2018-11-15 09:43:39 +04:00
John Preston
53a719e1b1
Display round videos in shared voice messages.
2018-11-05 12:22:09 +04:00
John Preston
5aa2e66d02
Show large photos in web pages with IV.
2018-11-04 15:51:40 +04:00
John Preston
91a6af71a0
Limit video messages size.
2018-11-04 15:51:39 +04:00
John Preston
8e7117fa22
Don't unload all media on switching between chats.
2018-11-04 15:51:38 +04:00
John Preston
595134cab5
Move image-related modules to ui/image/.
2018-11-04 15:51:37 +04:00
John Preston
113f665295
Move Image and derived to ui/image.
2018-11-04 15:51:36 +04:00
John Preston
19a9a990b6
Allow using any interface scale between 100%-300%.
2018-10-16 11:38:09 +03:00
John Preston
1ffbec0215
Finish animations disabling.
...
Replace some infinite animations with static layouts.
2018-09-20 21:26:10 +03:00
John Preston
2e7f4c2f21
Use Storage::Cache::Database for file caching.
2018-09-01 18:56:08 +03:00
John Preston
839885910c
Pass FileOrigin in all file downloads.
2018-08-20 17:26:28 +03:00
John Preston
dd81f5d59f
Replace base::lambda with shorter term.
...
base::lambda -> Fn (type alias for std::function).
base::lambda_once -> FnMut (type alias for base::unique_function).
base::lambda_guarded -> crl::guard.
base::lambda_call_type_t -> crl::deduced_call_type.
2018-06-04 18:38:27 +03:00
John Preston
999fa39d7c
Fix shared links layout for webpage previews.
...
Fixes #4489 .
2018-03-13 13:29:56 +03:00
John Preston
8bacc74d8b
Request dialog list entries when needed.
...
Also save the original server-side int32 date in HistoryItems.
2018-02-08 12:20:54 +03:00
John Preston
2fdc3169ce
Fix / improve support for album items selection.
2018-02-08 12:20:52 +03:00
John Preston
b91ebad8be
Improve items resize in history and feed.
2018-02-08 12:20:50 +03:00
John Preston
91f369a0b3
Handle view resize/repaint requests for mainView.
2018-02-08 12:20:49 +03:00
John Preston
8a56ede187
Move all (item/view/media) maps to Data::Session.
2018-02-08 12:20:49 +03:00
John Preston
7425e80f05
Use HistoryMedia as view, add Data::Media.
2018-02-08 12:20:48 +03:00
John Preston
97a9089ebf
Move draw / getState code to HistoryView::Message.
...
Item dimensions broken for now.
Also remove history.h from pch.
2018-02-08 12:20:48 +03:00
John Preston
bee474f6e9
Remove history_item and layout from pch.
...
Also move some code to separate modules.
Also create history item views by Window::Controller.
2018-02-08 12:20:47 +03:00
John Preston
4740d44159
Make HistoryView::Message a ClickHandlerHost.
2018-02-08 12:20:47 +03:00
John Preston
062b0b2165
Save item views in App::*Item() variables.
...
Also remove App::contextItem.
Also use owning pointers for history context menus.
2018-02-08 12:20:47 +03:00