From b00f0fcfb7a081b158e1c4ca171b400c80122827 Mon Sep 17 00:00:00 2001 From: Matija Date: Sat, 30 Sep 2017 16:24:23 +0200 Subject: [PATCH] Emotes and emojis in webview (cheers not yet), rewriting of some code --- chatterino.pro | 4 - resources/chat.html | 14 ++- src/channel.cpp | 5 -- src/emotemanager.cpp | 107 +++++++++------------- src/emotemanager.hpp | 41 +++++---- src/messages/messagebuilder.cpp | 4 +- src/messages/word.cpp | 91 ++----------------- src/messages/word.hpp | 34 ++----- src/twitch/twitchmessagebuilder.cpp | 132 +++++++++++++--------------- src/twitch/twitchmessagebuilder.hpp | 7 +- src/widgets/channelview.cpp | 75 ++++++---------- src/widgets/channelview.hpp | 6 +- src/widgets/chatwidget.hpp | 2 - src/widgets/emotepopup.cpp | 9 +- 14 files changed, 178 insertions(+), 353 deletions(-) diff --git a/chatterino.pro b/chatterino.pro index 4838f0726..7fef780ca 100644 --- a/chatterino.pro +++ b/chatterino.pro @@ -53,7 +53,6 @@ SOURCES += \ src/messages/link.cpp \ src/messages/message.cpp \ src/messages/word.cpp \ - src/messages/wordpart.cpp \ src/resources.cpp \ src/widgets/chatwidget.cpp \ src/widgets/chatwidgetheader.cpp \ @@ -69,7 +68,6 @@ SOURCES += \ src/widgets/settingsdialog.cpp \ src/widgets/settingsdialogtab.cpp \ src/widgets/textinputdialog.cpp \ - src/messages/messageref.cpp \ src/logging/loggingmanager.cpp \ src/logging/loggingchannel.cpp \ src/windowmanager.cpp \ @@ -109,7 +107,6 @@ HEADERS += \ src/messages/link.hpp \ src/messages/message.hpp \ src/messages/word.hpp \ - src/messages/wordpart.hpp \ src/resources.hpp \ src/setting.hpp \ src/twitch/emotevalue.hpp \ @@ -132,7 +129,6 @@ HEADERS += \ src/settingssnapshot.hpp \ src/messages/limitedqueue.hpp \ src/messages/limitedqueuesnapshot.hpp \ - src/messages/messageref.hpp \ src/logging/loggingmanager.hpp \ src/logging/loggingchannel.hpp \ src/channelmanager.hpp \ diff --git a/resources/chat.html b/resources/chat.html index 10cb94919..e5788ec1f 100644 --- a/resources/chat.html +++ b/resources/chat.html @@ -46,11 +46,6 @@ -