init
Some checks failed
Docker. / Ubuntu (push) Has been cancelled
User-agent updater. / User-agent (push) Failing after 15s
Lock Threads / lock (push) Failing after 10s
Waiting for answer. / waiting-for-answer (push) Failing after 22s
Close stale issues and PRs / stale (push) Successful in 13s
Needs user action. / needs-user-action (push) Failing after 8s
Can't reproduce. / cant-reproduce (push) Failing after 8s
Some checks failed
Docker. / Ubuntu (push) Has been cancelled
User-agent updater. / User-agent (push) Failing after 15s
Lock Threads / lock (push) Failing after 10s
Waiting for answer. / waiting-for-answer (push) Failing after 22s
Close stale issues and PRs / stale (push) Successful in 13s
Needs user action. / needs-user-action (push) Failing after 8s
Can't reproduce. / cant-reproduce (push) Failing after 8s
This commit is contained in:
75
Telegram/SourceFiles/info/info_section_widget.h
Normal file
75
Telegram/SourceFiles/info/info_section_widget.h
Normal file
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
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 <rpl/event_stream.h>
|
||||
#include "window/section_widget.h"
|
||||
|
||||
namespace Window {
|
||||
class ConnectionState;
|
||||
} // namespace Window
|
||||
|
||||
namespace Info {
|
||||
|
||||
class Memento;
|
||||
class MoveMemento;
|
||||
class Controller;
|
||||
class WrapWidget;
|
||||
enum class Wrap;
|
||||
|
||||
class SectionWidget final : public Window::SectionWidget {
|
||||
public:
|
||||
SectionWidget(
|
||||
QWidget *parent,
|
||||
not_null<Window::SessionController*> window,
|
||||
Wrap wrap,
|
||||
not_null<Memento*> memento);
|
||||
SectionWidget(
|
||||
QWidget *parent,
|
||||
not_null<Window::SessionController*> window,
|
||||
Wrap wrap,
|
||||
not_null<MoveMemento*> memento);
|
||||
|
||||
Dialogs::RowDescriptor activeChat() const override;
|
||||
|
||||
bool hasTopBarShadow() const override;
|
||||
QPixmap grabForShowAnimation(
|
||||
const Window::SectionSlideParams ¶ms) override;
|
||||
|
||||
bool showInternal(
|
||||
not_null<Window::SectionMemento*> memento,
|
||||
const Window::SectionShow ¶ms) override;
|
||||
std::shared_ptr<Window::SectionMemento> createMemento() override;
|
||||
|
||||
object_ptr<Ui::LayerWidget> moveContentToLayer(
|
||||
QRect bodyGeometry) override;
|
||||
|
||||
rpl::producer<> removeRequests() const override;
|
||||
|
||||
// Float player interface.
|
||||
bool floatPlayerHandleWheelEvent(QEvent *e) override;
|
||||
QRect floatPlayerAvailableRect() override;
|
||||
|
||||
protected:
|
||||
void doSetInnerFocus() override;
|
||||
void showFinishedHook() override;
|
||||
|
||||
void showAnimatedHook(
|
||||
const Window::SectionSlideParams ¶ms) override;
|
||||
void paintEvent(QPaintEvent *e) override;
|
||||
|
||||
private:
|
||||
void init();
|
||||
|
||||
object_ptr<WrapWidget> _content;
|
||||
object_ptr<Ui::RpWidget> _topBarSurrogate = { nullptr };
|
||||
std::unique_ptr<Window::ConnectionState> _connecting;
|
||||
|
||||
};
|
||||
|
||||
} // namespace Info
|
||||
Reference in New Issue
Block a user