mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Added initial controller of message sending animations.
This commit is contained in:
@@ -50,6 +50,7 @@ struct ChatThemeKey;
|
||||
struct ChatPaintContext;
|
||||
struct ChatThemeBackground;
|
||||
struct ChatThemeBackgroundData;
|
||||
class MessageSendingAnimationController;
|
||||
} // namespace Ui
|
||||
|
||||
namespace Data {
|
||||
@@ -279,6 +280,8 @@ public:
|
||||
Ui::LayerOptions options = Ui::LayerOption::KeepOther,
|
||||
anim::type animated = anim::type::normal);
|
||||
|
||||
[[nodiscard]] auto sendingAnimation() const
|
||||
-> Ui::MessageSendingAnimationController &;
|
||||
[[nodiscard]] auto tabbedSelector() const
|
||||
-> not_null<ChatHelpers::TabbedSelector*>;
|
||||
void takeTabbedSelectorOwnershipFrom(not_null<QWidget*> parent);
|
||||
@@ -509,6 +512,9 @@ private:
|
||||
const not_null<Controller*> _window;
|
||||
const std::unique_ptr<ChatHelpers::EmojiInteractions> _emojiInteractions;
|
||||
|
||||
using SendingAnimation = Ui::MessageSendingAnimationController;
|
||||
const std::unique_ptr<SendingAnimation> _sendingAnimation;
|
||||
|
||||
std::unique_ptr<Passport::FormController> _passportForm;
|
||||
std::unique_ptr<FiltersMenu> _filters;
|
||||
|
||||
|
Reference in New Issue
Block a user