53 lines
1.1 KiB
C++
53 lines
1.1 KiB
C++
/*
|
|
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 "boxes/abstract_box.h"
|
|
#include "base/timer.h"
|
|
#include "data/stickers/data_stickers.h"
|
|
|
|
class ConfirmBox;
|
|
|
|
namespace Window {
|
|
class SessionController;
|
|
} // namespace Window
|
|
|
|
namespace Ui {
|
|
class PlainShadow;
|
|
} // namespace Ui
|
|
|
|
class StickerSetBox final : public Ui::BoxContent {
|
|
public:
|
|
StickerSetBox(
|
|
QWidget*,
|
|
not_null<Window::SessionController*> controller,
|
|
const MTPInputStickerSet &set);
|
|
|
|
static QPointer<Ui::BoxContent> Show(
|
|
not_null<Window::SessionController*> controller,
|
|
not_null<DocumentData*> document);
|
|
|
|
protected:
|
|
void prepare() override;
|
|
|
|
void resizeEvent(QResizeEvent *e) override;
|
|
|
|
private:
|
|
void updateTitleAndButtons();
|
|
void updateButtons();
|
|
void addStickers();
|
|
void shareStickers();
|
|
|
|
const not_null<Window::SessionController*> _controller;
|
|
MTPInputStickerSet _set;
|
|
|
|
class Inner;
|
|
QPointer<Inner> _inner;
|
|
|
|
};
|