2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Improve layer / section exchange for Info.

This commit is contained in:
John Preston
2017-09-20 13:23:57 +03:00
parent b7077eb71d
commit f4d9618487
27 changed files with 426 additions and 214 deletions

View File

@@ -215,11 +215,14 @@ public:
bool showMediaTypeSwitch() const;
void showSection(
Window::SectionMemento &&memento,
anim::type animated);
anim::type animated,
anim::activation activation);
void updateColumnLayout();
void showMediaOverview(PeerData *peer, MediaOverviewType type, bool back = false, int32 lastScrollTop = -1);
bool stackIsEmpty() const;
void showBackFromStack();
void showBackFromStack(
anim::type animated,
anim::activation activation);
void orderWidgets();
QRect historyRect() const;
QPixmap grabForShowAnimation(const Window::SectionSlideParams &params);
@@ -391,7 +394,12 @@ public:
void app_sendBotCallback(const HistoryMessageReplyMarkup::Button *button, const HistoryItem *msg, int row, int col);
void ui_repaintHistoryItem(not_null<const HistoryItem*> item);
void ui_showPeerHistory(quint64 peer, qint32 msgId, Ui::ShowWay way);
void ui_showPeerHistory(
PeerId peer,
MsgId msgId,
Ui::ShowWay way,
anim::type animated,
anim::activation activation);
PeerData *ui_getPeerForMouseAction();
void notify_botCommandsChanged(UserData *bot);
@@ -448,9 +456,6 @@ public slots:
void onViewsIncrement();
void ui_showPeerHistoryAsync(quint64 peerId, qint32 showAtMsgId, Ui::ShowWay way);
void ui_autoplayMediaInlineAsync(qint32 channelId, qint32 msgId);
protected:
void paintEvent(QPaintEvent *e) override;
void resizeEvent(QResizeEvent *e) override;
@@ -532,7 +537,8 @@ private:
Window::SectionMemento &&memento,
bool back,
bool saveInStack,
anim::type animated);
anim::type animated,
anim::activation activation);
void dropMainSection(Window::SectionWidget *widget);
Window::SectionSlideParams prepareThirdSectionAnimation(Window::SectionWidget *section);