mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 22:16:14 +00:00
Export panel minimizes to a top bar, like a Call.
This commit is contained in:
@@ -40,6 +40,14 @@ class Float;
|
||||
} // namespace Player
|
||||
} // namespace Media
|
||||
|
||||
namespace Export {
|
||||
namespace View {
|
||||
class TopBar;
|
||||
class PanelController;
|
||||
struct Content;
|
||||
} // namespace View
|
||||
} // namespace Export
|
||||
|
||||
namespace Ui {
|
||||
class ResizeArea;
|
||||
class PlainShadow;
|
||||
@@ -50,7 +58,8 @@ class SlideWrap;
|
||||
|
||||
namespace Window {
|
||||
class Controller;
|
||||
class PlayerWrapWidget;
|
||||
template <typename Inner>
|
||||
class TopBarWrapWidget;
|
||||
class SectionMemento;
|
||||
class SectionWidget;
|
||||
class AbstractSectionWidget;
|
||||
@@ -422,6 +431,11 @@ private:
|
||||
void destroyCallTopBar();
|
||||
void callTopBarHeightUpdated(int callTopBarHeight);
|
||||
|
||||
void setCurrentExportView(Export::View::PanelController *view);
|
||||
void createExportTopBar(Export::View::Content &&data);
|
||||
void destroyExportTopBar();
|
||||
void exportTopBarHeightUpdated();
|
||||
|
||||
void messagesAffected(
|
||||
not_null<PeerData*> peer,
|
||||
const MTPmessages_AffectedMessages &result);
|
||||
@@ -545,7 +559,12 @@ private:
|
||||
base::weak_ptr<Calls::Call> _currentCall;
|
||||
object_ptr<Ui::SlideWrap<Calls::TopBar>> _callTopBar = { nullptr };
|
||||
|
||||
object_ptr<Window::PlayerWrapWidget> _player = { nullptr };
|
||||
Export::View::PanelController *_currentExportView = nullptr;
|
||||
object_ptr<Window::TopBarWrapWidget<Export::View::TopBar>> _exportTopBar
|
||||
= { nullptr };
|
||||
|
||||
object_ptr<Window::TopBarWrapWidget<Media::Player::Widget>> _player
|
||||
= { nullptr };
|
||||
object_ptr<Media::Player::VolumeWidget> _playerVolume = { nullptr };
|
||||
object_ptr<Media::Player::Panel> _playerPlaylist;
|
||||
object_ptr<Media::Player::Panel> _playerPanel;
|
||||
@@ -558,6 +577,7 @@ private:
|
||||
|
||||
int _playerHeight = 0;
|
||||
int _callTopBarHeight = 0;
|
||||
int _exportTopBarHeight = 0;
|
||||
int _contentScrollAddToY = 0;
|
||||
|
||||
int32 updDate = 0;
|
||||
|
Reference in New Issue
Block a user