tdesktop/Telegram/SourceFiles/boxes/sticker_set_box.h

43 lines
850 B
C
Raw Normal View History

2015-05-19 15:46:45 +00:00
/*
This file is part of Telegram Desktop,
the official desktop application for the Telegram messaging service.
2015-05-19 15:46:45 +00:00
For license and copyright information please follow this link:
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
2015-05-19 15:46:45 +00:00
*/
#pragma once
2017-04-06 14:38:10 +00:00
#include "boxes/abstract_box.h"
#include "base/timer.h"
#include "chat_helpers/stickers.h"
2015-05-19 15:46:45 +00:00
2016-07-15 15:58:52 +00:00
class ConfirmBox;
namespace Ui {
class PlainShadow;
} // namespace Ui
2016-07-15 15:58:52 +00:00
class StickerSetBox : public BoxContent, public RPCSender {
2015-05-19 15:46:45 +00:00
public:
StickerSetBox(QWidget*, const MTPInputStickerSet &set);
static void Show(DocumentData *document);
protected:
void prepare() override;
void resizeEvent(QResizeEvent *e) override;
private:
void updateTitleAndButtons();
void updateButtons();
void addStickers();
void shareStickers();
MTPInputStickerSet _set;
class Inner;
QPointer<Inner> _inner;
};