Commit Graph

9785 Commits

Author SHA1 Message Date
23rd 86db29cec7 Added AbstractSingleMediaPreview. 2021-07-13 22:15:22 +03:00
23rd 19139a9a5f Added ability to generate single file preview from history item. 2021-07-13 22:15:22 +03:00
23rd 9509a00664 Added AbstractSingleFilePreview. 2021-07-13 22:15:20 +03:00
John Preston e2a85e3156 Closed alpha version 2.8.7.1. 2021-07-13 22:09:48 +03:00
John Preston 99353dcfba Update submodules. 2021-07-13 22:09:14 +03:00
John Preston 86a2a4d63a Count unique video senders in limit. 2021-07-13 22:08:10 +03:00
John Preston ab67aa28b5 Support resampling for loopback audio. 2021-07-13 22:08:10 +03:00
John Preston db81638656 Allow sharing screen with sound on Windows. 2021-07-13 22:08:09 +03:00
John Preston 402729dc99 Check unmuted video limit in group call. 2021-07-13 22:08:09 +03:00
John Preston 801c8b6220 Screencast with system sound on Windows. 2021-07-13 22:08:09 +03:00
John Preston 881eb4510e Separate test and production RSA keys. 2021-07-13 22:08:09 +03:00
John Preston cc013305ac Apply local volume / mute to additional audio stream. 2021-07-13 22:08:09 +03:00
John Preston f17fc0b670 Support additional audio ssrc. 2021-07-13 22:08:09 +03:00
John Preston 5e2cdde2c8 Update API scheme. 2021-07-13 22:08:09 +03:00
John Preston eea48c7139 Update used public RSA keys. 2021-07-13 22:08:09 +03:00
John Preston 95a7ce4622 New auth key generation algorithm. 2021-07-13 22:08:09 +03:00
John Preston a0540e0486 Send dependent requests in bunches. 2021-07-13 22:08:09 +03:00
John Preston e28fb1211e Handle MSG_WAIT_FAILED / MSG_WAIT_TIMEOUT. 2021-07-13 22:08:09 +03:00
John Preston bae8335285 Always resend messages in a container. 2021-07-13 22:08:09 +03:00
John Preston 8fc7ba7ac1 Handle updateBotCommands. 2021-07-13 22:08:09 +03:00
John Preston 8f5ac0420e Update API scheme to layer 131. 2021-07-13 22:08:09 +03:00
Ilya Fedin 79cc797aff Fix -Wunused-variable warnings 2021-07-13 21:43:34 +03:00
Ilya Fedin b6881022ce Allow to build with -Werror and clang
Fixes -Wdeprecated-enum-enum-conversion, -Wdeprecated-declarations, -Wrange-loop-construct, -Winconsistent-missing-override
2021-07-13 21:32:06 +03:00
Ilya Fedin 89765340c3 Fix -Wunused-function warnings 2021-07-13 21:31:22 +03:00
John Preston 84b1fac0c8 Fix more warnings in submodules. 2021-07-13 21:30:55 +03:00
nyakze a283049b34 Expand moderator mode + fix
Apparently for commands to work, they have to be bind to 1-9 keys, apart from any other alternative hotkeys. It should address this issue, as well as expanding to ease the usage on numpad.
2021-07-13 16:04:16 +03:00
Ilya Fedin 8ecc98eb03 Right file dialog freeze fix
The freezing is still happening if the service is not accessible
2021-07-12 11:10:16 +03:00
Ilya Fedin c53564cfdc Set service name for MPRIS 2021-07-10 14:28:04 +03:00
John Preston cc7f569c77 Fix build on non-Windows. 2021-07-09 21:39:08 +03:00
23rd 7526964904 Simplified calculation of minimum crop size in photo editor.
It also fixes cropping of images with unbalanced ratios.
2021-07-09 13:15:31 +03:00
23rd f1669674d8 Moved formatting of image size text to single place.
Fixed wrong size display on retina screens.
Replaced "x" with special character.
2021-07-09 13:15:31 +03:00
23rd cab8a52f8f Fixed visual glitch in image size text from SendFilexBox.
Regression was introduced in f52c6a6daa.
2021-07-09 13:15:31 +03:00
23rd 6b93d8dc41 Refactored and fixed saving scene states between modes in photo editor. 2021-07-09 12:49:07 +03:00
23rd 9be122710d Moved SaveState from Editor::BaseItem to Editor::NumberedItem. 2021-07-09 12:49:07 +03:00
23rd 1e3044fbf4 Moved performing of Undo/Redo from Editor::Paint to Editor::Scene. 2021-07-09 12:49:07 +03:00
23rd aef2148ed0 Moved hasUndo and hasRedo from Editor::Paint to Editor::Scene. 2021-07-09 12:49:07 +03:00
23rd fb511c3e03 Added status to Editor::NumberedItem. 2021-07-09 12:49:07 +03:00
23rd 6acd9f18ad Replaced interaction with QGraphicsItem to Editor::NumberedItem. 2021-07-09 12:49:07 +03:00
23rd 78b25c694e Added ability to save and restore items state in photo editor. 2021-07-09 12:49:07 +03:00
23rd d2d97a3e47 Moved to separate file some structs for internal usage in photo editor. 2021-07-09 12:49:07 +03:00
23rd bf8f3e42f4 Simplified work with Editor::ItemBase::Data. 2021-07-09 12:49:07 +03:00
23rd fe8eae09c4 Fixed item handlers size when opening photo editor with modified scene. 2021-07-09 12:49:07 +03:00
23rd 5bbf3a329d Fixed items order when opening photo editor with modified scene. 2021-07-09 12:49:07 +03:00
23rd 8ddbf08a97 Changed max and min sizes of scene items from pixels to ratio. 2021-07-09 12:49:06 +03:00
23rd d69090bf34 Moved flip and rotation info to Editor::ItemBase struct. 2021-07-09 12:49:06 +03:00
23rd 0c50fbf1b9 Moved Editor::ItemBase arguments to struct. 2021-07-09 12:49:06 +03:00
John Preston 4206ff0483 Don't use MTP* for StickersSet flags. 2021-07-09 09:08:58 +03:00
Ilya Fedin 62fd968409 Don't call gtk_selection_data_get_length on nullptr 2021-07-08 22:09:26 +03:00
Ilya Fedin 2c6e4eed19 Use unique_ptr for GtkSelectionData 2021-07-08 22:09:26 +03:00
John Preston 75090dedaa Don't store MTPInputStickerSet in data. 2021-07-08 22:08:59 +03:00
23rd 9dfb43d525 Fixed build for macOS and Linux. 2021-07-08 20:18:40 +03:00
Ilya Fedin 3b07785f87 Optimize pasting with gtk 2021-07-08 18:58:40 +03:00
John Preston f22e68fc32 Don't use MTP* for PeerSettings flags. 2021-07-08 17:32:39 +03:00
John Preston 878c890bc2 Bump version to 2.8.7.beta for serialization. 2021-07-08 16:11:30 +03:00
John Preston a74228acea Don't use MTP* for ChannelData flags. 2021-07-08 16:11:09 +03:00
John Preston 5040c2e766 Don't use MTP* for ChatData flags. 2021-07-08 15:11:46 +03:00
John Preston e34375405e Don't use MTP* for UserData flags. 2021-07-08 14:19:12 +03:00
John Preston 2ffda9f240 Don't use MTP* for ChatAdminRight / ChatRestriction. 2021-07-08 13:34:06 +03:00
Ilya Fedin ee773a28bb Fix 30s freeze after pasting 2021-07-07 16:40:09 +03:00
John Preston caddb44a2c Update tg_owt revision. 2021-07-07 16:39:26 +03:00
Ilya Fedin 17cee8ec56 Set service name for lib_base and lib_webview gtk integration 2021-07-07 12:16:01 +03:00
John Preston 3cdd115317 Beta version 2.8.6: Fix build for Linux. 2021-07-07 00:54:56 +03:00
John Preston bdd1d2484c Beta version 2.8.6: Update build script. 2021-07-06 20:32:08 +03:00
John Preston d5a416d5ea Beta version 2.8.6: Fix build for macOS. 2021-07-06 20:25:46 +03:00
John Preston 46d393ea0f Beta version 2.8.6.
- Added a simple image editor.
Crop photos or highlight parts of screenshots before sending.
- Use Direct3D 9 backend in ANGLE by default (Windows).
- Fix "Show in Finder" not focusing the Finder window (macOS).
- Use GTK from a child process (Linux).
2021-07-06 17:17:23 +03:00
nyakze 68e351b7c8 Attempt to fix not working commands
Attempt to fix not working commands by using more conventional keys
2021-07-06 17:16:46 +03:00
John Preston dd381d9b56 Show vector elements count in DebugLogs. 2021-07-06 16:54:26 +03:00
John Preston 8eedc7b2ba Fix build on Windows. 2021-07-06 15:56:43 +03:00
23rd f567328a60 Fixed deleting item after saving result of scene in photo editor. 2021-07-06 14:15:07 +03:00
23rd 953fa52490 Fixed updating of undo state on deleting item in photo editor. 2021-07-06 14:15:07 +03:00
23rd b1477260f0 Improved content margins in photo editor. 2021-07-06 14:15:07 +03:00
23rd 038de9ef15 Changed behavior to keep StickerSetBox until pack is archived. 2021-07-06 12:13:06 +03:00
23rd 4701c5d6e3 Added ability to archive mask packs. 2021-07-06 12:13:06 +03:00
23rd 8420b7dc17 Disabled ability to use hotkeys when selecting color in photo editor. 2021-07-06 12:13:06 +03:00
23rd 9dacf69d41 Fixed line drawing on mode switching in photo editor. 2021-07-06 12:13:06 +03:00
23rd a91efd9164 Fixed ability to draw blank lines in photo editor. 2021-07-06 12:13:06 +03:00
23rd a631a28092 Removed App::pixmapFromImageInPlace. 2021-07-06 12:13:06 +03:00
23rd 7bcb1fc8b2 Fixed borders of drawn lines in photo editor. 2021-07-06 12:13:06 +03:00
23rd cdafd8f171 Fixed width of preview for small media in SendFilesBox.
Regression was introduced in 42d4fdb89f.
2021-07-06 12:13:06 +03:00
23rd 116aa01e51 Refactored column width in SingleMediaPreview. 2021-07-06 12:13:06 +03:00
23rd 96b40f43e9 Added ability to drag and drop images in photo editor. 2021-07-06 12:13:06 +03:00
23rd a93ec9c2c2 Added Escape hotkey to clear selection in photo editor. 2021-07-06 12:13:06 +03:00
23rd 3ee3919d50 Added hotkeys for switching between modes in photo editor. 2021-07-06 12:13:06 +03:00
23rd b4410c49b9 Added background color in photo editor. 2021-07-06 12:13:06 +03:00
23rd 82bf6ca94f Fixed display of sticker panel on mode change in photo editor. 2021-07-06 12:13:06 +03:00
23rd 785ebfee34 Added animation to button bars in photo editor. 2021-07-06 12:13:06 +03:00
23rd a60f8d75a0 Added second button bar for paint mode in photo editor. 2021-07-06 12:13:06 +03:00
23rd 5976a7ed19 Moved edge buttons to bar in photo editor. 2021-07-06 12:13:06 +03:00
23rd df7026b59c Made alignment to bottom for button strip in photo editor. 2021-07-06 12:13:06 +03:00
23rd edfd9bedc1 Improved style for controls in EditCaptionBox. 2021-07-06 12:13:06 +03:00
23rd f52c6a6daa Improved style for controls in SendFilesBox. 2021-07-06 12:13:06 +03:00
23rd af10b6d487 Added icons for SendFilesBox. 2021-07-06 12:13:06 +03:00
23rd e30eacff41 Added photo editor hint to SendFilesBox. 2021-07-06 12:13:06 +03:00
23rd 18154e403a Added ability to open photo editor in SendFilesBox with left-click. 2021-07-06 12:13:06 +03:00
23rd 6975b04e6b Fixed triggering of pressed buttons in album preview. 2021-07-06 12:13:06 +03:00
23rd 948302cf02 Added setting to hide photo editor hint. 2021-07-06 12:13:06 +03:00
23rd e4cff8cb4b Added photo editor hint to EditCaptionBox. 2021-07-06 12:13:06 +03:00
23rd 5bd17ae1b2 Fixed caption area height in EditCaptionBox.
Regression was introduced in 51f960442e.
2021-07-06 12:13:06 +03:00
23rd 22213a71c1 Added ability to open photo editor in EditCaptionBox with left-click. 2021-07-06 12:13:06 +03:00
23rd e926e5f882 Slightly improved style of controls in photo editor. 2021-07-06 12:13:06 +03:00
23rd 221d45b500 Updated control icons for photo editor. 2021-07-06 12:13:06 +03:00
23rd 6bb7e2c2eb Removed using of hardcoded numbers of tray menu actions. 2021-07-06 12:13:06 +03:00
23rd 2a86ce596d Added shortcuts for actions of items in photo editor. 2021-07-06 12:13:06 +03:00
23rd f936e484cc Removed unused types from scene items. 2021-07-06 12:13:05 +03:00
23rd b2a1c10036 Removed masks panel when there are no masks. 2021-07-06 12:13:05 +03:00
23rd 2a58d01927 Removed search and featured buttons from masks panel. 2021-07-06 12:13:05 +03:00
23rd 7cd6b821b3 Fixed update of recently attached stickers after sending. 2021-07-06 12:13:05 +03:00
23rd de108c8efe Fixed removing masks set from StickersListWidget. 2021-07-06 12:13:05 +03:00
23rd e7104b5ebe Added support for archived masks. 2021-07-06 12:13:05 +03:00
23rd 2d17bd02a3 Moved mask management to separate box. 2021-07-06 12:13:05 +03:00
23rd 2a3115f461 Fixed phrases to display mask count. 2021-07-06 12:13:05 +03:00
23rd 8d62800e77 Moved stickerSetInstalled from ApiWrap to Data::Stickers. 2021-07-06 12:13:05 +03:00
23rd 7e04bf9533 Added ability to install mask sets. 2021-07-06 12:13:05 +03:00
23rd 2bd3a8aaff Added ability to delete and reorder mask sets.
Moved ApiWrap::stickerSetDisenabled and ApiWrap::stickersSaveOrder
to ApiWrap::saveStickerSets as lambdas.
2021-07-06 12:13:05 +03:00
23rd 70f92a7817 Added initial masks tab to manage stickers box. 2021-07-06 12:13:05 +03:00
23rd 8e08f69508 Added support updateNewStickerSet and updateStickerSets for masks. 2021-07-06 12:13:05 +03:00
23rd abe62475cb Added support updateStickerSetsOrder for masks. 2021-07-06 12:13:05 +03:00
23rd 1cdb83462e Added initial implementation of masks panel. 2021-07-06 12:13:05 +03:00
23rd d9a29b6f15 Fixed item pen width in big images. 2021-07-06 12:13:05 +03:00
23rd 1504f92a64 Fixed size limits of item on big images. 2021-07-06 12:13:05 +03:00
23rd 36e5056b59 Fixed selection of items on mode switching. 2021-07-06 12:13:05 +03:00
23rd c5c707f0fd Fixed independence of item and scene transforms when adding. 2021-07-06 12:13:05 +03:00
23rd 832dd8d50c Moved some photo editor files to separate directories. 2021-07-06 12:13:05 +03:00
23rd 7d2b20e624 Made TabbedSelector more flexible. 2021-07-06 12:13:05 +03:00
23rd 049945a9b9 Added ability to duplicate items in photo editor. 2021-07-06 12:13:05 +03:00
23rd 808c9e3d2c Added ability to flip items in photo editor. 2021-07-06 12:13:05 +03:00
23rd fde7cef9c8 Removed using of raw pointers for QGraphicsItem in photo editor.
Now all items are wrapped in the shared_ptr,
and the Scene loses ownership of all items before being destroyed.
2021-07-06 12:13:05 +03:00
23rd 2791f89f30 Added initial context menu to items in photo editor. 2021-07-06 12:13:05 +03:00
23rd 858b5831e8 Fixed clearing of redo list after adding sticker item in photo editor. 2021-07-06 12:13:05 +03:00
23rd 9166423598 Fixed multi selection of items in photo editor. 2021-07-06 12:13:05 +03:00
23rd 184d984336 Added ability to snap rotation of items with Shift key in photo editor. 2021-07-06 12:13:05 +03:00
23rd 0b5044f064 Fixed size of handles of base item in photo editor. 2021-07-06 12:13:05 +03:00
23rd 274b66f74b Added ability to create items in photo editor with different ratios. 2021-07-06 12:13:05 +03:00
23rd e05343d721 Added sending info of stickered photos. 2021-07-06 12:13:05 +03:00
23rd bc316a2536 Removed Storage::UploadedThumbDocument struct. 2021-07-06 12:13:05 +03:00
23rd a6904be81d Slightly optimized mouse painting in photo editor. 2021-07-06 12:13:05 +03:00
23rd 690a7d1608 Fixed undo and redo paint actions. 2021-07-06 12:13:05 +03:00
23rd a3e54fcd7c Moved draft painting in photo editor to separate files. 2021-07-06 12:13:05 +03:00
23rd 23c67bb2a2 Added ability to add stickers to photo in photo editor. 2021-07-06 12:13:05 +03:00
23rd 75367f0488 Added sticker panel to photo editor. 2021-07-06 12:13:05 +03:00
23rd 216ffad80e Added container of controllers for photo editor. 2021-07-06 12:13:05 +03:00
23rd c312607ff8 Added stickers panel controller for photo editor. 2021-07-06 12:13:05 +03:00
23rd 812d616f66 Added scene base item for photo editor. 2021-07-06 12:13:05 +03:00
23rd 183408cb2d Added button highlighting for flipped image to photo editor. 2021-07-06 12:13:05 +03:00
23rd 1a7d5b7c95 Removed unused photo crop box. 2021-07-06 12:13:05 +03:00
23rd 17465e1082 Replaced old photo crop box with photo editor for profile photos. 2021-07-06 12:13:05 +03:00
23rd a996b14291 Fixed keeping of aspect ratio in crop widget. 2021-07-06 12:13:05 +03:00
23rd 2045252cfd Added ability to pass data for photo editor. 2021-07-06 12:13:05 +03:00
23rd a2e674bdb6 Added Window::Controller pointer to data of intro widget. 2021-07-06 12:13:05 +03:00
23rd cc4055a5e3 Added method to Window::Controller to show custom layer widget. 2021-07-06 12:13:05 +03:00