2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Media::Player::Widget added instead of PlayerWidget.

New media player bar widget added. Switching between floating
media player panel and media player widget. New volume controller.
This commit is contained in:
John Preston
2016-10-12 22:34:25 +03:00
parent 8f135d7e00
commit 9eb8a93719
98 changed files with 2305 additions and 1841 deletions

View File

@@ -38,6 +38,7 @@ class Result;
namespace Ui {
class HistoryDownButton;
class InnerDropdown;
class PlainShadow;
} // namespace Ui
class Dropdown;
@@ -530,7 +531,6 @@ class HistoryWidget : public TWidget, public RPCSender, private base::Subscriber
Q_OBJECT
public:
HistoryWidget(QWidget *parent);
void start();
@@ -701,15 +701,8 @@ public:
_inGrab = true;
resizeEvent(0);
}
void grapWithoutTopBarShadow() {
grabStart();
_topShadow.hide();
}
void grabFinish() override {
_inGrab = false;
resizeEvent(0);
_topShadow.show();
}
void grapWithoutTopBarShadow();
void grabFinish() override;
bool isItemVisible(HistoryItem *item);
@@ -902,8 +895,8 @@ private:
MsgId msgId = 0;
HistoryItem *msg = nullptr;
Text text;
IconedButton cancel;
PlainShadow shadow;
ChildWidget<IconedButton> cancel;
ChildWidget<Ui::PlainShadow> shadow;
};
PinnedBar *_pinnedBar = nullptr;
void updatePinnedBar(bool force = false);
@@ -1163,7 +1156,7 @@ private:
bool _saveDraftText = false;
QTimer _saveDraftTimer, _saveCloudDraftTimer;
PlainShadow _topShadow;
ChildWidget<Ui::PlainShadow> _topShadow;
bool _inGrab = false;
};