2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Export panel minimizes to a top bar, like a Call.

This commit is contained in:
John Preston
2018-06-20 01:02:36 +01:00
parent eaf3ea9289
commit 329db0d8e9
22 changed files with 437 additions and 127 deletions

View File

@@ -27,6 +27,13 @@ class Reader;
} // namespace Clip
} // namespace Media
namespace Export {
class ControllerWrap;
namespace View {
class PanelController;
} // namespace View
} // namespace Export
namespace Data {
class Feed;
@@ -44,6 +51,9 @@ public:
return *_session;
}
void startExport();
rpl::producer<Export::View::PanelController*> currentExportView() const;
[[nodiscard]] base::Variable<bool> &contactsLoaded() {
return _contactsLoaded;
}
@@ -395,6 +405,8 @@ public:
}
private:
void clearExport();
void setupContactViewsViewer();
void setupChannelLeavingViewer();
void photoApplyFields(
@@ -489,6 +501,10 @@ private:
not_null<AuthSession*> _session;
std::unique_ptr<Export::ControllerWrap> _export;
std::unique_ptr<Export::View::PanelController> _exportPanel;
rpl::event_stream<Export::View::PanelController*> _exportViewChanges;
base::Variable<bool> _contactsLoaded = { false };
base::Variable<bool> _allChatsLoaded = { false };
base::Observable<void> _moreChatsLoaded;