blob: 5bdc337a460c4d8b1dfe0e61738906005fd2b7dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
/*
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 "ui/integration.h"
namespace Main {
class Session;
} // namespace Main
namespace HistoryView {
class ElementDelegate;
} // namespace HistoryView
namespace Core {
struct MarkedTextContext {
enum class HashtagMentionType : uchar {
Telegram,
Twitter,
Instagram,
};
Main::Session *session = nullptr;
HashtagMentionType type = HashtagMentionType::Telegram;
};
class UiIntegration : public Ui::Integration {
public:
void postponeCall(FnMut<void()> &&callable) override;
void registerLeaveSubscription(not_null<QWidget*> widget) override;
void unregisterLeaveSubscription(not_null<QWidget*> widget) override;
void writeLogEntry(const QString &entry) override;
QString emojiCacheFolder() override;
void textActionsUpdated() override;
void activationFromTopPanel() override;
void startFontsBegin() override;
void startFontsEnd() override;
QString timeFormat() override;
QWidget *modalWindowParent() override;
std::shared_ptr<ClickHandler> createLinkHandler(
const EntityLinkData &data,
const std::any &context) override;
bool handleUrlClick(
const QString &url,
const QVariant &context) override;
rpl::producer<> forcePopupMenuHideRequests() override;
QString convertTagToMimeTag(const QString &tagId) override;
const Ui::Emoji::One *defaultEmojiVariant(
const Ui::Emoji::One *emoji) override;
QString phraseContextCopyText() override;
QString phraseContextCopyEmail() override;
QString phraseContextCopyLink() override;
QString phraseContextCopySelected() override;
QString phraseFormattingTitle() override;
QString phraseFormattingLinkCreate() override;
QString phraseFormattingLinkEdit() override;
QString phraseFormattingClear() override;
QString phraseFormattingBold() override;
QString phraseFormattingItalic() override;
QString phraseFormattingUnderline() override;
QString phraseFormattingStrikeOut() override;
QString phraseFormattingMonospace() override;
};
} // namespace Core
|