2020-10-13 18:11:53 +03:00
|
|
|
/*
|
|
|
|
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
|
|
|
|
|
2021-07-12 14:02:02 +03:00
|
|
|
#include "ui/chat/attach/attach_abstract_single_file_preview.h"
|
2020-10-13 18:11:53 +03:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
|
|
|
|
struct PreparedFile;
|
|
|
|
|
2021-07-12 14:02:02 +03:00
|
|
|
class SingleFilePreview final : public AbstractSingleFilePreview {
|
2020-10-13 18:11:53 +03:00
|
|
|
public:
|
|
|
|
SingleFilePreview(
|
|
|
|
QWidget *parent,
|
2023-05-18 17:46:24 +04:00
|
|
|
const style::ComposeControls &st,
|
2021-07-12 16:26:13 +03:00
|
|
|
const PreparedFile &file,
|
|
|
|
AttachControls::Type type = AttachControls::Type::Full);
|
2020-10-13 18:11:53 +03:00
|
|
|
|
|
|
|
private:
|
|
|
|
void preparePreview(const PreparedFile &file);
|
2020-10-19 11:49:31 +03:00
|
|
|
|
2020-10-13 18:11:53 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace Ui
|