/* This file is part of Telegram Desktop, the official desktop application for the Telegram messaging service. For license and copyright information please follow this link: https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL */ #pragma once #include "ui/wrap/padding_wrap.h" #include "ui/widgets/checkbox.h" #include "base/timer.h" namespace style { struct InfoToggle; } // namespace style namespace Data { class Feed; } // namespace Data namespace Ui { class UserpicButton; class FlatLabel; template class SlideWrap; } // namespace Ui namespace Info { class Controller; } // namespace Info namespace Info { namespace FeedProfile { class Cover : public Ui::FixedHeightWidget { public: Cover( QWidget *parent, not_null controller); ~Cover(); private: void setupChildGeometry(); void initViewers(); void refreshNameText(); void refreshStatusText(); void refreshNameGeometry(int newWidth); void refreshStatusGeometry(int newWidth); void refreshUploadPhotoOverlay(); not_null _controller; not_null _feed; //object_ptr _userpic; object_ptr _name = { nullptr }; object_ptr _status = { nullptr }; //object_ptr _dropArea = { nullptr }; }; } // namespace FeedProfile } // namespace Info