Commit graph

761 commits

Author SHA1 Message Date
Rasmus Karlsson 64160e60af Fix right-clicking of emotes
There are a few more actions that we might want to add at a later date,
      but a simple feature set has been implemented

Fix #386
2018-05-16 03:55:56 +02:00
fourtf 454b6bcb70 added username autocompletions with @ 2018-05-14 17:28:00 +02:00
fourtf a0e33ef9e6 fixed crash when onError is not set 2018-05-14 15:12:09 +02:00
Rasmus Karlsson 732d0374be Simplify optional member reading in HighlightPhrase setting deserialization 2018-05-13 19:25:12 +02:00
Rasmus Karlsson 15b432a4cf Implement simple ignored phrase system 2018-05-13 19:25:12 +02:00
Rasmus Karlsson 3a48f5db96 Remove unused IgnoreMessagesPage widget 2018-05-13 19:25:12 +02:00
Rasmus Karlsson 022c31e315 Don't use our custom up/down arrow actions if shift is pressed 2018-05-13 18:27:17 +02:00
Rasmus Karlsson 7bc63ba38f Added result code to ignore/unignore calls
Add ignore/unignore calls that take the user ID to avoid double api
calls
Fully implement the account popup ignore/unignore feature
Fix #247
2018-05-13 17:53:24 +02:00
Rasmus Karlsson d4c31309f0 Move stringify function to rapidjson-helpers 2018-05-13 17:51:01 +02:00
Rasmus Karlsson 6768853d92 Also respect "enable twitch ignored users" setting 2018-05-12 23:34:22 +02:00
Rasmus Karlsson e4439a3f10 Implement basic and stupid ignore functionality
We currently do not respect mod status
2018-05-12 23:27:34 +02:00
Rasmus Karlsson 752992760b Fix windows-specific compilation error 2018-05-12 19:50:22 +02:00
Rasmus Karlsson bf0b5d08d8 Implement /ignore and /unignore commands
Simplify authorized network requests for Twitch V5 api
add onShow virtual function to settings pages if they need to be refreshed when shown
Actually ignoring messages from ignored users is still not implemented

Working on #247
2018-05-12 20:34:13 +02:00
Rasmus Karlsson 98082d1064 Fix compilation issue on GCC 8.1.0
Fix #377
2018-05-12 16:07:03 +02:00
fourtf b83c8e2735 this better compile 2018-05-10 18:18:12 +02:00
fourtf 5fcf42f1fc disabled drop preview animation 2018-05-08 20:35:31 +02:00
fourtf 463a1f1945 added new overlay for splits when you hold alt that does nothing yet 2018-05-08 16:55:20 +02:00
fourtf f695a41c6c fixed unneccessssary connected message and stretching in the highlights
settings
2018-05-08 16:55:20 +02:00
Rasmus Karlsson 1381214911 Use non Qt 5.10 method of starting a detached process 2018-05-06 17:24:20 +02:00
Rasmus Karlsson 49458e4fac Add brief description to Streamlink settings page
Add links to Streamlink website and download page to Streamlink settings page
Make streamlink custom path usage more explicit
Change how streamlink runs, it now works perfectly on Linux so that if you don't have a custom path set, it will try to just run "streamlink" in your PATH variable

This needs testing on Windows again
2018-05-06 16:33:16 +02:00
fourtf aba8e1a18f fixed freeze when messages get taller when they get higher 2018-05-06 16:12:21 +02:00
fourtf c2363e17e7 minor fixes 2018-05-06 15:39:03 +02:00
fourtf 3e3cbf0415 alternate message colors now work on replaced messages and when
changing channels
2018-05-06 14:57:57 +02:00
fourtf 34a58021bc added basic alternating messages backgrounds 2018-05-06 14:39:27 +02:00
Rasmus Karlsson 12766f3b60 Fix global emotes from not loading
We didn't called initialize properly on the EmoteManager

Fix #374
2018-05-06 14:36:21 +02:00
Rasmus Karlsson 5efc2c38d8 Clean up warnings 2018-05-06 14:16:41 +02:00
Rasmus Karlsson 9c34da7a7b Add missing resources initialize call 2018-05-06 14:01:02 +02:00
fourtf b95388107f added regex highlights 2018-05-06 12:52:47 +02:00
fourtf ba4173822e created base for all the list based settings 2018-05-06 00:32:45 +02:00
fourtf 4c3f0921e2 changed CommandManager to CommandController 2018-04-30 23:44:01 +02:00
Rasmus Karlsson b907bf5639 Fix compilation on gcc 2018-04-30 20:35:01 +02:00
fourtf 13f1caa294 made commands view more abstract 2018-04-30 00:41:58 +02:00
fourtf 6bd787423d added template model/view magic for commands 2018-04-29 23:26:17 +02:00
Rasmus Karlsson e31dc09e91 Add remaining pubsub messages to chat 2018-04-29 13:24:37 +02:00
Rasmus Karlsson d05a59ef51 Remove unused constructor definition 2018-04-28 22:02:16 +02:00
Rasmus Karlsson 65f5430d8b fix ctrl-w that I broke KKona
fix #369
2018-04-28 22:00:08 +02:00
Rasmus Karlsson 01b2230bcf Modify pubsub functions to follow the Chatterino function style 2018-04-28 16:07:18 +02:00
Rasmus Karlsson 0f22d9d002 move pubsub stuff to the providers/twitch namespace and folder 2018-04-28 15:48:49 +02:00
fourtf ebbe8dcfae clear clipboard after pasting login code 2018-04-28 15:27:24 +02:00
Rasmus Karlsson 2f195891cd Finish up singleton refactoring into one giant class 2018-04-28 15:20:18 +02:00
fourtf 9426a9d633 Merge branch 'master' of https://github.com/fourtf/chatterino2 2018-04-28 13:48:49 +02:00
Rasmus Karlsson ae26b835b6 Perform initial refactoring work
Things that were once singletons are no longer singletons, but are
instead stored in the "Application" singleton

Some singletons still remain, and some renaming/renamespacing is left
2018-04-27 22:11:19 +02:00
fourtf a4b7c1d067 Merge branch 'master' of https://github.com/fourtf/chatterino2 2018-04-27 20:55:06 +02:00
Rasmus Karlsson 32b6417a55 Combine Ban/Timeout pubsub actions
Fully implement PubSub ban/unban messages
Move the "message combining" to Channel::addMessage

Disable "irc" ban/timeout handling for now. In the future, we might want
to use this if you're not a moderator in a channel.
2018-04-27 18:35:31 +02:00
Rasmus Karlsson 42182ed504 reformat 2018-04-27 18:27:17 +02:00
Rasmus Karlsson 7e5a182d50 Add define to disable the crash dialog 2018-04-27 17:38:30 +02:00
fourtf 49069beed7 reworked commands settings page 2018-04-27 01:11:09 +02:00
fourtf e23ce31e05 improved the highlights settings page 2018-04-26 23:07:02 +02:00
fourtf ea7fcf260c fixed issues for gcc 2018-04-26 20:58:32 +02:00
fourtf d078ef5fe0 added debug logs and code to assert that we are in the gui thread 2018-04-26 18:10:26 +02:00
fourtf b176dc5295 switched up the settings pages 2018-04-25 20:35:32 +02:00
fourtf 98be8aaeff fixed crash 2018-04-25 14:53:54 +02:00
fourtf 859f4aefcb added new TupleTableModel for settingsdialog 2018-04-25 14:51:22 +02:00
Rasmus Karlsson 1edcfe5219 Add a scrappy timeout message from pubsub in channels now
Progress on #323
2018-04-22 15:47:52 +02:00
Rasmus Karlsson 92a19d61cf Add room ID to pubsub moderator actions 2018-04-22 15:37:02 +02:00
Rasmus Karlsson d62e45d9dd Add function for getting a Twitch Channel from a server by its ID 2018-04-22 15:36:01 +02:00
Rasmus Karlsson 3dad7e778a Fix emotes not loading properly 2018-04-22 14:38:10 +02:00
Rasmus Karlsson 0718277271 Update settings library version 2018-04-22 14:09:38 +02:00
fourtf 633c9fa68b Fixes #358 ,fixed messages being highlighted when a subword of a word matched a
highlight
2018-04-21 23:48:32 +02:00
fourtf f58ee01cf5 channels now PART when they are destroyed 2018-04-21 00:40:36 +02:00
Rasmus Karlsson 98c0b2b0f0 Most likely fixed linux segfault 2018-04-20 23:54:19 +02:00
fourtf 3c10c59ce6 fixed popup windows not having the right channel and the application
exiting when you close a popup
2018-04-20 22:54:09 +02:00
fourtf 5015633cc7 improved saving of splits and watching split 2018-04-20 22:33:28 +02:00
fourtf a16a2b0579 added watching channel 2018-04-20 19:54:45 +02:00
fourtf e17a7cc222 added basic last run crash dialog 2018-04-20 00:15:57 +02:00
fourtf 683c4aed2d added basic version fetching 2018-04-19 22:16:55 +02:00
fourtf fc78fa23a2 fixed inline whispers lighting up all tabs 2018-04-18 20:38:08 +02:00
fourtf 6a46fb0a3f Closes #340 Copying an emoji copies it's :shortcode: instead of the actual emoji 2018-04-18 19:26:24 +02:00
fourtf c84391e276 fixes some splits having another size than others 2018-04-18 19:18:14 +02:00
fourtf 1290d28b1a added custom window frame title 2018-04-18 18:55:49 +02:00
fourtf fa3c812697 default window buttons resize if the window is really small 2018-04-18 18:10:47 +02:00
fourtf e8a948cffc added custom window frame to the emote popup 2018-04-18 17:51:53 +02:00
fourtf 4743e9f86c only connect to the gif frame update signal for gif emotes 2018-04-18 17:20:33 +02:00
fourtf 692563fd8e adjusted optimization 2018-04-18 17:10:17 +02:00
fourtf 4c99f2b5fd decreased lag when opening the emote/emoji menu 2018-04-18 17:03:37 +02:00
fourtf 653e4c6adf fixed some light mode issues 2018-04-18 09:33:05 +02:00
fourtf 3446a623f5 added select channel dialog 2018-04-18 09:15:56 +02:00
fourtf 043823120f some fixes for windows 2018-04-18 09:12:56 +02:00
Rasmus Karlsson 5f142e8d52 Add some error checks to Image::loadImage
Add default value to loadedPixmap
2018-04-16 23:48:30 +02:00
Rasmus Karlsson ea691635a1 Properly force https for the FrankerFaceZ api 2018-04-16 22:51:30 +02:00
pajlada 23cf8cc484
PubSub system (#346)
* Add websocketpp dependency

* Initial pubsub commit

Renamed selection min and max variables to selectionMin and selectionMax
to bypass windows min/max macros being stupid.

TwitchAccount is now initialized with its User ID. It cannot be changed
after it has been initialized.

* Update openssl folder

* Update installation instructions

* Split up websocketpp dependency to its own code only and openssl.pri

* Add missing include to asio steady_timer

* Update dependencies for linux
2018-04-15 15:09:31 +02:00
Nikola Forró d5097e71a3 Show Twitch account emotes in EmotePopup (#348) 2018-04-15 15:05:12 +02:00
Rasmus Karlsson ca0a42a95f possibly fixed windows compilation KKona 2018-04-14 22:40:20 +02:00
Rasmus Karlsson b68b0845c1 Disable the experimental code, oops KKona 2018-04-14 22:39:35 +02:00
Rasmus Karlsson 5fcec26a5c Clarify that a variable is currently unused, but I am unaware forsenKek if should be used later 2018-04-14 22:32:22 +02:00
Rasmus Karlsson 99772313d6 Specify that the variables in const.hpp are allowed to be unused 2018-04-14 22:31:51 +02:00
Rasmus Karlsson c631738cd6 Add experimental shit code that might fix the strict-aliasing issue 2018-04-14 22:31:31 +02:00
Rasmus Karlsson b7266b1640 Fix warnings that occured on linux using clang 2018-04-14 21:59:51 +02:00
Rasmus Karlsson 57e788422f Add an UNUSED macro to precompiled_header.hpp 2018-04-14 21:58:06 +02:00
Rasmus Karlsson 0b18a8331a Fix channels not going offline properly 2018-04-14 18:27:13 +02:00
Rasmus Karlsson 387ac9b2f6 Change portable folder to Qt's "Application dir path"
Enable portable mode if there's a "portable" file or folder in the
Application dir path

Fix #334
2018-04-14 15:32:41 +02:00
hemirt 597660af2f fix copying <br>Global/Channel ffz emote after copying a ffz emote (#342) 2018-04-14 15:10:25 +02:00
Rasmus Karlsson 8272b0184d Use https for the frankerfacez api 2018-04-14 15:07:30 +02:00
fourtf 1654130dbc fixed crash when changing theme after closing tab 2018-04-13 23:17:10 +02:00
fourtf 2c5d05dfa1 some fixes for linux 2018-04-13 22:50:19 +02:00
fourtf b978977e7a fished base communication between browser and chatterino 2018-04-12 01:17:25 +02:00
fourtf 20596ddccd included namespace define as well 2018-04-12 00:40:18 +02:00
fourtf accb88b78e put a header that requires the boost libs into a #ifdef 2018-04-12 00:33:55 +02:00
fourtf a221b0757b disabled code that required compiled boost libraries with an ifdef 2018-04-12 00:16:44 +02:00
fourtf 0d2f0b3890 disabled default native messaging registry key installation 2018-04-12 00:09:16 +02:00
fourtf 2687da38ba added basic browser extension stuff 2018-04-11 22:53:15 +02:00
Rasmus Karlsson 52afa7b5b7 Ensure we disconnect from signals on exit in SplitHeader 2018-04-11 01:06:13 +02:00
fourtf 2ede50af0e added version header 2018-04-11 00:18:33 +02:00
fourtf dff6cbb3e1 fixed split columns not loading properly 2018-04-10 17:14:13 +02:00
fourtf ad0a1f3c56 Fixed tabs not highlighting on new messages/highlights 2018-04-10 16:53:40 +02:00
fourtf c744659ce0 Open the last selected tab on restart 2018-04-10 15:59:53 +02:00
fourtf d0f1ea8502 fixed text copying if a single word is selected 2018-04-10 15:52:47 +02:00
fourtf bcf0ebd8ef Fixes #270 Copying text is broken 2018-04-10 15:48:56 +02:00
fourtf 739c17c0c8 selections now render over all images 2018-04-10 03:29:00 +02:00
fourtf 7093a95e29 fixed issue with selecting text and word wrapping 2018-04-10 03:17:44 +02:00
fourtf 93f9996207 Fixes #291 links clickable area 2018-04-10 02:42:41 +02:00
fourtf 93163518cc Fixes #276 Color of the moderator buttons are black if the timestamp is disabled 2018-04-10 02:13:41 +02:00
fourtf 829c028009 disabled message layouting limits 2018-04-10 02:07:25 +02:00
fourtf 33b94d757f Fixes #325 Option tab stays open when closing the main window 2018-04-10 02:02:49 +02:00
fourtf efdcc64f89 Fixes #326 Shift + EMOTE TAB doesnt work 2018-04-10 01:55:06 +02:00
fourtf 8f4b58ae08 slight changes 2018-04-08 17:37:48 +02:00
fourtf ce6b180522 improved custom window handling 2018-04-08 17:08:17 +02:00
Rasmus Karlsson 990ac651ae Differentiate live streams and vodcasts
Fixes #320
2018-04-08 15:14:14 +02:00
Cranken 2b3fa06539 Fixed live status not updating when channel is online. (#319)
* Fixed live status not updating when channel is online.
2018-04-08 14:45:47 +02:00
pajlada 10f0aadb6c
Merge pull request #318 from Cranken/highlightText
Now highlights the text in the channel change and tab rename dialogue.
2018-04-08 14:39:34 +02:00
fourtf a1cd315ac8 Fixes #288 arrow up behaviour 2018-04-08 14:33:45 +02:00
fourtf 3484abd4af fixed popups not getting deleted on close 2018-04-08 14:14:55 +02:00
Cranken 942e8cefcc Also now highlights in tab rename. 2018-04-07 21:42:06 +02:00
Cranken 1fc04d82ca Now highlights the text in the channel change dialogue. 2018-04-07 21:21:56 +02:00
Rasmus Karlsson c82254aa9e Reformat
Remove some UUID remnants
2018-04-07 12:53:10 +02:00
Rasmus Karlsson 945d500701 Closing splits now tries to focus a neighbouring split
Fixes #176
2018-04-07 12:43:28 +02:00
Rasmus Karlsson 179cd5552d Move CTRL+T hotkey handling to Notebook
CTRL+T Can now be called anywhere in the window
2018-04-07 12:27:08 +02:00
Vilgot Fredenberg 84c577c0dc fixed gcc compile bug 2018-04-07 00:26:40 +02:00
fourtf cb06579c29 rewrote window saveing/serialization system
fixes #212
2018-04-06 23:31:34 +02:00
fourtf 4ec2c0d8b3 added cooldown to layouting to reduce lag when opening the emojis tab 2018-04-06 18:27:49 +02:00
fourtf d85dba3e0e fixes #307 2018-04-06 18:05:30 +02:00
fourtf cc1e3c2f6f fixed an issue where normal emotes would be redrawn like gif emotes 2018-04-06 17:46:12 +02:00
fourtf 86c844c791 added debug information on F10 2018-04-06 16:37:30 +02:00
fourtf 68227fa576 repaint tabs when text changes 2018-04-06 01:58:26 +02:00
fourtf 06c3201a1a added dark window to dark theme 2018-04-05 23:45:17 +02:00
Rasmus Karlsson adf3ff3075 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-03 03:00:34 +02:00
Rasmus Karlsson 5bcb561eb2 Simplify debug::Log. No need for a second function 2018-04-03 03:00:34 +02:00
Cranken e5c852ecba Fixed crash upon starting
Fixes issue #304
2018-04-02 13:58:15 +02:00
Rasmus Karlsson f820024fd5 Reformat 2018-04-01 16:44:25 +02:00
Rasmus Karlsson 3dae83e749 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-01 16:44:25 +02:00
fourtf 56f0e5e76a removed the chrome style tabs 2018-04-01 16:42:00 +02:00
Rasmus Karlsson d075231081 Added a "CleanChannelName" virtual method to AbstractIrcServer
the TwitchServer implementation makes the channelName full lowercase

Fixes #293
2018-04-01 15:10:15 +02:00
Rasmus Karlsson 58fe1f6dcc Fix typo 2018-04-01 14:56:05 +02:00
Rasmus Karlsson 87cf79440b Fixed an issue where Badges and emotes were not rendered transparently in disabled messages
I'm a master programmator

Fixes #300
2018-04-01 11:43:26 +02:00
Rasmus Karlsson fdea4f32f0 Re-fix timeout message merging
Fix #298
2018-03-31 13:59:17 +02:00
Rasmus Karlsson be66338fe2 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-03-31 13:44:15 +02:00
Rasmus Karlsson 3cdaeb071a Fixes some emojis that wouldn't display properly
Fix #198
2018-03-31 13:14:43 +02:00
Rasmus Karlsson d3212b0a59 Fixes the previous "Disabled message" behaviour
Fixes #295
2018-03-31 11:32:29 +02:00
Rasmus Karlsson 2d15716b5f Add helper methods to FlagsEnum where I can make sure that it actually works forsenT 2018-03-31 11:23:07 +02:00
fourtf 700b15c483 improved new tabs 2018-03-30 16:26:45 +02:00