Commit graph

763 commits

Author SHA1 Message Date
Rasmus Karlsson 6ea3a1df08 Switch some c-style includes to c++-style includes (i.e. stdint.h to
cstdint)

Make MessageElement to a class to fit better with the derived classes.
Make MessageLayoutElement to a class to fit better with the derived
classes.

Remove virtual from override functions

Replace all instances of boost::signals2 with pajlada::Signals. This
lets us properly use clang code model to check for issues.

Add missing virtual destructor to AbstractIrcServer
Add missing virtual destructor to MessageLayoutElement

Remove unused "connectedConnection" connection in TwitchChannel

Fix typo in TrimChannelName function
Fix typo in MessageParseArgs

Replace some raw pointers with unique pointers where it made more sense.
This allowed us to remove some manually written destructors whose only
purpose was to delete that raw pointer.

Reformat: Add namespace comments
Reformat: Add empty empty lines between main namespace beginning and end
Reformat: Re-order includes
Reformat: Fix some includes that used quotes where they should use angle
brackets
Reformat: Replace some typedef's with using's

Filter out more useless warnings
2018-04-11 22:54:34 +02:00
Rasmus Karlsson 1119c08182 Simplify debug::Log. No need for a second function 2018-04-11 22:54:34 +02:00
Cranken b4a5ba541d Fixed crash upon starting
Fixes issue #304
2018-04-11 22:54:34 +02:00
Rasmus Karlsson 4888178079 Reformat 2018-04-11 22:54:34 +02:00
Rasmus Karlsson 13705f15ed Add an EmojiMap which is like an EmoteMap except it contains data for Emojis
Fix emote popup not inserting the correct emoji value on click. It no
inserts the shortcode (i.e. 👌)

Fix #299
2018-04-11 22:54:34 +02:00
fourtf 05335c6440 removed the chrome style tabs 2018-04-11 22:54:34 +02:00
Rasmus Karlsson dca11406b9 Added a "CleanChannelName" virtual method to AbstractIrcServer
the TwitchServer implementation makes the channelName full lowercase

Fixes #293
2018-04-11 22:54:34 +02:00
Rasmus Karlsson 8e7d89dd40 Fix typo 2018-04-11 22:54:34 +02:00
Rasmus Karlsson 9a4ee07ed4 Fixed an issue where Badges and emotes were not rendered transparently in disabled messages
I'm a master programmator

Fixes #300
2018-04-11 22:54:34 +02:00
Rasmus Karlsson fba2967777 Re-fix timeout message merging
Fix #298
2018-04-11 22:54:34 +02:00
Rasmus Karlsson 964e1f249a General cleanups/reformats
- Clean up imports
- Comment EmojiData
- Reorder TwitchAccount constructor
- Fix typo in TwitchChannel
- Add emoji parsing test code at the bottom of EmoteManager
2018-04-11 22:54:34 +02:00
Rasmus Karlsson c382fdc528 Fixes some emojis that wouldn't display properly
Fix #198
2018-04-11 22:54:34 +02:00
Rasmus Karlsson 010c061a25 Fixes the previous "Disabled message" behaviour
Fixes #295
2018-04-11 22:54:34 +02:00
Rasmus Karlsson 7d4cebbc96 Add helper methods to FlagsEnum where I can make sure that it actually works forsenT 2018-04-11 22:54:34 +02:00
fourtf a0d8ace515 improved new tabs 2018-04-11 22:54:34 +02:00
Rasmus Karlsson e3d889b2e2 Update a usernames "timeAdded" every time it tries to be added
This keeps "recent chatters" from expiring

Progress on #57
2018-04-11 22:54:34 +02:00
Rasmus Karlsson 655831d154 Add setting to not fetch chatters for bigger streamers
Work on #57
2018-04-11 22:54:34 +02:00
Rasmus Karlsson c0a3613ae0 Changed how the channel live status is stored 2018-04-11 22:54:34 +02:00
Rasmus Karlsson c457651c63 add mouseMove signal to SignalLabel
Make use of the mouseMove signal in SplitHeader for the stream uptime
tooltip
2018-04-11 22:54:34 +02:00
Rasmus Karlsson 1c64dea831 Move signallabel code out from its header 2018-04-11 22:54:34 +02:00
Rasmus Karlsson 45841953da expire non-recent chatters 2018-04-11 22:54:34 +02:00
Rasmus Karlsson e34cbd741c Once again reset completion model first time tab is pressed. This ensures we never tab the wrong username, but it's really expensive. 2018-04-11 22:54:34 +02:00
fourtf 3e7e0269f7 added experimental new tabs 2018-04-11 22:54:34 +02:00
Rasmus Karlsson 0bbb9ae42d reformat/cleanup 2018-04-11 22:54:34 +02:00
Rasmus Karlsson c7a86f8abe No longer add username to the completion model in privateMessageReceived
The username is added to the completion model with the
"addRecentChatter" method instead

Moved "NameOptions" stuff from base class Channel to TwitchChannel where
it belongs

Remove unused Channel::getUsernamesForCompletions method
2018-04-11 22:54:34 +02:00
Rasmus Karlsson d9d699b6f1 CompletionModel tagged strings now have types (i.e. bttv emote, name, twitch emote)
Usernames can be overriden (capitalized overrides lowercase, but not the other way around)
2018-04-11 22:54:34 +02:00
Rasmus Karlsson 6e1096710d make helper function for trimming a twitch channel name from irc 2018-04-11 22:54:34 +02:00
Rasmus Karlsson 9886021c6a Add "Timeout action" setting 2018-04-11 22:54:34 +02:00
Rasmus Karlsson 41fbcc738b Fix and improve Streamlink code
Move streamlink code to its own file

Fixes #275

Untested on linux, but should work decently there as well.
2018-03-24 14:15:27 +01:00
Nikolai Zimmermann 6c56e9cc82 Don't add duplicats to message history (#277) 2018-03-24 12:22:03 +01:00
Rasmus Karlsson b2f041989c Move CompletionModel to a more appropriate folder 2018-03-24 12:13:22 +01:00
Rasmus Karlsson d9bd39e8a4 Remove "CompletionManager". Completion models are now stored in Channel
Chatters list is now updated every 5 minutes
2018-03-24 12:02:07 +01:00
Rasmus Karlsson ad12a818b2 change around variables names to make things a bit more clear 2018-03-24 11:15:33 +01:00
hemirt ab42a30108 Tabbing (#287)
* change dotted last read message indicator to a line, remove
airbrushgrenade

* sort emotes in tab completion

* implement tabbing usernames

* FeelsOkayMan

* fix emotes and usernames comparing; formatting

* remove private/personal stuff

* change lastmessageindicator back to default verpattern
2018-03-24 11:12:24 +01:00
Ckat 0423702e50 actually display channel ffz emotes as channel ffz emotes (#279) 2018-03-05 22:37:01 +01:00
Nikolai Zimmermann 1d1f40bf44 more reliablitiy 2018-02-12 00:28:28 +01:00
Nikolai Zimmermann e169d37bae Fix Send Duplicate Messages not working 2018-02-12 00:28:28 +01:00
fourtf 45dfb151a2 set background color to grey instead of brown 2018-02-09 15:47:11 +01:00
fourtf a9d706048c modified "show message length" settings text 2018-02-09 13:50:02 +01:00
fourtf 11621fd146 removed providermanager from chatterino.pro 2018-02-09 13:35:36 +01:00
fourtf 54b0d9dda9 renamed ircchannel 2018-02-09 13:33:11 +01:00
fourtf c2ac7514da added basic support for displaying sent whispers in the /whispers channel 2018-02-06 00:31:30 +01:00
fourtf c3287a1da8 dream come true 2018-02-06 00:10:30 +01:00
fourtf e047a55da8 fixed compiling on macos 2018-02-05 23:56:16 +01:00
fourtf 6b483640cd added username in the titlebar 2018-02-05 23:32:38 +01:00
fourtf 9b1300212a Fixes #266 graphical gliches after changing theme color 2018-02-05 21:33:22 +01:00
fourtf c0247d27e8 renamed irc provider files 2018-02-05 21:28:18 +01:00
fourtf a44758ad23 Merge branch 'master' of https://github.com/fourtf/chatterino2 2018-02-05 21:20:38 +01:00
fourtf b351c40d29 refactored irc 2018-02-05 15:11:50 +01:00
Rasmus Karlsson 556dbe0456 Fix whisper receiving
Added setting to display them inline under "Special Channels" page

Store a twitch users color in the TwitchUser struct
this is useful if we ever want to use the users own color.
The users own color is only updated once he has written once in chat

Add helper method for calling function only on normal channels

Fixes #54
2018-02-04 16:33:46 +01:00