2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Adding emoji in SendFilesBox and EditCaptionBox.

This commit is contained in:
John Preston
2018-11-22 16:48:50 +04:00
parent 8d3f5820ca
commit 0a754b8982
13 changed files with 226 additions and 22 deletions

View File

@@ -9,6 +9,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "boxes/abstract_box.h"
namespace ChatHelpers {
class TabbedPanel;
} // namespace ChatHelpers
namespace Window {
class Controller;
} // namespace Window
@@ -19,6 +23,7 @@ class Media;
namespace Ui {
class InputField;
class EmojiButton;
} // namespace Ui
namespace Window {
@@ -44,6 +49,10 @@ private:
void prepareGifPreview(not_null<DocumentData*> document);
void clipCallback(Media::Clip::Notification notification);
void setupEmojiPanel();
void updateEmojiPanelGeometry();
bool emojiFilter(not_null<QEvent*> event);
void save();
void captionResized();
@@ -65,6 +74,9 @@ private:
Media::Clip::ReaderPointer _gifPreview;
object_ptr<Ui::InputField> _field = { nullptr };
object_ptr<Ui::EmojiButton> _emojiToggle = { nullptr };
base::unique_qptr<ChatHelpers::TabbedPanel> _emojiPanel;
base::unique_qptr<QObject> _emojiFilter;
int _thumbx = 0;
int _thumbw = 0;