Commit graph

236 commits

Author SHA1 Message Date
fourtf b20fdc0da6 smol irc fixes 2019-09-11 13:17:36 +02:00
fourtf c4d0efacff added loading and saving of irc servers 2019-09-10 23:55:43 +02:00
fourtf 82f63d2f7e added send and receive for irc messages 2019-09-10 14:46:43 +02:00
fourtf 5974438edf added irc tab in SelectChannelView 2019-09-09 22:26:56 +02:00
Leon Richardt 720e5aa25f Improvements to Message Search (#1237)
* Ran clang-format

* Implement user-specific search in message history

This functionality was originally requested in #1236.

This commit changes the SearchPopup::performSearch method so that only
messages from specific users can be shown.

In order to filter for a specific user, enter their username with a
leading '@' in the search popup. You can also add an additional search
phrase which will also be considered in the search.

* Naive implementation for "from:" tags

Rebase later?

* Cleverer (?) version using Predicates

Commit adds two POC predicates: one for the author of messages, and one
for substring search in messages.

Problems/TODOs:
* Best way to register new predicates?
* Clean up tags (e.g. "from:") or not?
* Test combinations of different predicates

* Add a predicate to check for links in messages

* Remove a dumb TODO

* Rewrite SearchPopup::performSearch to be cleaner

* Ran clang-format on all files

* Remove TODO I missed earlier

* Forgot to run clang-format

peepoSadDank

* Re-use {}-initialization

Was accidentally removed when fixing earlier merge conflict.

* Does this fix line endings?

No diffs are shown locally, hopefully Git doesn't lie to me.

* Rename "predicates" directory to "search"

Resolving one conversation in the review of #1237.

* Use LinkParser in LinkPredicate

Resolving a conversation in the review of #1237.

* Predicates: Use unique_ptr instead of shared_ptr

Resolves a conversation in the review of #1237.

* Refactor of SearchPopup and AuthorPredicate

Resolving some points from the review in #1237.

* Moved parsing of comma-seperated values into AuthorPredicate
  constructor.
* Rewrite SearchPopup::parsePredicates as suggested.
* Deleted now redundant methods in SearchPopup.

* MessagePredicate::appliesTo now takes a Message&

... instead of a MessagePtr.

This resolves a conversation in the review of #1237.

* Run clang-format on two files I missed

* AuthorPredicate: Check for displayName & loginName

Resolving conversation on #1237.
2019-09-09 15:21:49 +02:00
Leon Richardt b6f632701f Fix merge conflicts 2019-09-08 22:58:17 +02:00
Leon Richardt b06eb9df83 Normalize line endings in already existing files 2019-09-08 22:27:57 +02:00
fourtf 4f356f80cf BaseWindow smol refactor 2019-09-08 21:45:46 +02:00
fourtf 3158ed4085 fixed user popup size issues 2019-09-08 20:05:40 +02:00
fourtf cf23838099 added irc support 2019-09-08 18:06:43 +02:00
TranRed d3c4d4b8cf moved anonymous namespace into chatterino namespace 2019-09-08 12:05:41 +02:00
fourtf a268abfd4c Allow searching in LogsPopup 2019-09-04 00:29:58 +02:00
fourtf 577e2e0a21 moved cache into general page 2019-09-03 12:46:22 +02:00
fourtf 299cc84e04 fixed compilation 2019-09-03 12:02:58 +02:00
fourtf f7ee778af6 some style changes to settings 2019-09-03 11:15:38 +02:00
fourtf 0ada2e51c6 fixed spacing 2019-09-02 19:14:19 +02:00
fourtf 125426dbf1 added header for search 2019-09-02 18:59:37 +02:00
fourtf 661a36c2e4 prefere user selected tab in settings search 2019-09-02 17:22:14 +02:00
fourtf a6fd6300c9 hide duplicate spaces in settings tab list 2019-09-02 17:21:17 +02:00
fourtf b0459ba646 add basic hiding of SettingsTabs 2019-09-02 16:39:21 +02:00
fourtf 0b49f696ce added filtering to general page and greying out some items to the other
pages
2019-09-01 23:23:20 +02:00
fourtf 5c0f81defd Fixed stuff in user popup 2019-09-01 13:06:56 +02:00
Mm2PL b441e3e159 Add copy button for user ids 2019-09-01 11:06:07 +02:00
Mm2PL 6732aab323 Add user IDs to user cards (#1247)
* Add user ids to user cards and a setting to the misc section of the settings

* Fix letter casing

* Forgot to run clang-format, now it's fixed

* Fix crash in UserInfoPopup::updateUserData()

* Removed setting as per Apa420's and fourtf's advice

* Removed remnants of the setting
2019-08-31 17:58:28 +02:00
Mm2PL 7aa2bf4fec Fix build and rename variables to be camelCase 2019-08-27 20:10:30 +02:00
Mm2PL 1c242a51dd Create a copy icon. Change the copy button text to be an icon 2019-08-27 20:10:30 +02:00
Mm2PL f2f5ae9c93 Add a copy button near the username in usercards 2019-08-27 20:10:30 +02:00
TranRed 23c2fa8ee5 made fillLatestMessages into a free standing function 2019-08-25 15:09:30 +02:00
TranRed 288ea5036b did first requested refactors 2019-08-25 14:57:31 +02:00
23rd a893be796c Refactored UserInfoPopup::TimeoutWidget. 2019-08-25 12:24:35 +02:00
TranRed d63438c351 added some improvements suggested by 23rd 2019-08-25 11:56:15 +02:00
TranRed 89a60ceea8 turned QString::compare() call into a bool
create self-similarity with bool isMyself further up in the class implementation
2019-08-25 10:02:26 +02:00
23rd cdc7051e56 Considerably refactored code of Usercard. 2019-08-25 09:47:00 +02:00
TranRed f7fa000266 fixed bug that terminates chatterino
seems like durationUnits[i++] tried to access a non existing element and chatterino crashed while opening the user card.

this tweek fixed it
2019-08-24 17:26:37 +02:00
23rd 25871bdc2f Slightly refactored code of Usercard. 2019-08-24 17:09:41 +02:00
TranRed 0ce5e7f529 added border to Buttons
added border to Buttons
deleted unused variables
renamed some vars
2019-08-24 11:00:55 +02:00
fourtf e140905faf ? 2019-08-21 02:16:33 +02:00
fourtf 978d5aa1c1 Special message when login expired. 2019-08-21 02:14:01 +02:00
fourtf 14222f84f2 made caller/concurrent rules tighter 2019-08-20 23:46:27 +02:00
fourtf 7697ec01b4 removed old NetworkRequest api 2019-08-20 22:16:17 +02:00
fourtf 23f1dd4646 update 2.1.0 2019-08-18 21:21:48 +02:00
TranRed ebce0c985a added missing empty line 2019-08-18 18:44:49 +02:00
TranRed 015fc155d5 Refactored settings
made settings use Vectors instead of 8 single setting entries
2019-08-18 18:42:48 +02:00
Mateusz Ż eb38b53c04 Fix Settings UI inconsistencies (#1202)
* Move "About" tab in Settings

* Resize Settings window

This prevents from spawning horizontal scroll (which is caused by too long line
in "Attributions" group)

* Fix "show license" link width

If you clicked empty space next to link application assumed you clicked link.
I fixed that by using QLabels instead of SignalLabel (there's something "wrong"
with them, but I couldn't find what)
2019-08-14 20:03:42 +02:00
fourtf 7bf5a79f8a Delete emote popup when it is closed. 2019-08-13 16:39:22 +02:00
fourtf aac27c2a0d Fixes #1162 2019-07-31 23:03:55 +02:00
TranRed 54b162afdd removed experimental profile banner code for now 2019-07-25 13:55:37 +02:00
TranRed 125774ecb2 excluded inline whispers from latest messages in userpopup 2019-07-21 09:36:18 +02:00
TranRed 94ffc66b2a extracted latest messages logic into its own method 2019-07-20 22:42:01 +02:00
TranRed f417006d6a Added channelView with last messages to user popup
currently uses last messages from that channel - might want to use online logs later (or make a setting for that)
2019-07-20 18:49:17 +02:00
TranRed e64f37d288 Made 8 customizable timeout buttons
changed fixed timeout buttons to be read from settings
2019-07-17 16:50:03 +02:00
TranRed 32d4383d5f Make button "Manage Accounts" open the Accounts tab
fixes #1135
2019-07-14 12:36:53 +02:00
apa420 74d55941a0 added usercard button to link to twitch's userbutton 2019-06-09 10:08:04 +02:00
Rasmus Karlsson 1a7a5409ab do a full reformat according to our current .clang-format 2019-05-10 23:31:10 +02:00
23rd 9654650bee Renamed variables to clear some warnings. 2019-05-10 22:18:05 +02:00
pajlada 5863b0aab2
Merge pull request #888 from 23rd/patch-21-userinfo-in-search
Fixed moderation buttons in UserInfoPopup from SearchPopup.
2019-01-22 22:23:50 +01:00
23rd 8ec328f352 Fixed moderation buttons in UserInfoPopup from SearchPopup. 2018-11-27 21:29:59 +03:00
fourtf cf26f10b80 initial appbase integration 2018-11-21 21:37:41 +01:00
23rd a0ba2154ae Replaced caller in LogsPopup.cpp. 2018-11-05 11:39:54 +01:00
fourtf 5453c65f0f implemented pausing on hover 2018-11-03 21:26:57 +01:00
Rasmus Karlsson bcebfca477 make /logs command better
previously you had to have a split open with the channel, that's not
required anymore.
2018-11-03 15:37:56 +01:00
Rasmus Karlsson ac4a496a06 Update to latest settings library version 2018-11-03 13:00:07 +01:00
fourtf 246f999a40 improvements on settings dialog 2018-10-31 20:57:29 +01:00
fourtf 3c3be99177 new settings page 2018-10-31 19:49:15 +01:00
Ckat 70a5a62777 save settings after clicking ok (#846) 2018-10-29 19:20:23 +01:00
23rd f3235d036d Refactored LogsPopup. (#838)
* Replaced 3rd party getting channel ID with own implementation.

* Removed useless roomID_ from LogsPopup.

* Refactored channelName_ in LogsPopup.

* Cleaned up LogsPopup.

* Removed getRoomID() method in LogsPopup.
2018-10-27 10:53:12 +02:00
23rd 06e3fabfe4 Added closing LogsPopup with QMessageBox. 2018-10-27 10:47:58 +02:00
23rd fb14e1f88a Removed second unnecessary getLogviewerLogs() call. 2018-10-27 10:44:17 +02:00
apa420 85c1a1dbac Ability to click error message when not providing correct account info, Fixes #488 2018-10-27 10:41:26 +02:00
fourtf 3db0b5f95c open settings when right clicking moderation button 2018-10-21 16:13:26 +02:00
fourtf 1872163ec4 Open settings when clicking moderation button and no moderation actions are found 2018-10-21 15:32:28 +02:00
fourtf e259b9e39f added brace wrapping after if and for 2018-10-21 13:43:02 +02:00
fourtf 69e0352648 improved NotebookTab 2018-10-21 12:13:23 +02:00
fourtf bf8bf37eab Merge branch 'master' of https://github.com/fourtf/chatterino2 2018-10-16 14:22:53 +02:00
fourtf 280605e715 added basic code for incognito links 2018-10-16 14:13:19 +02:00
23rd 71a51d34c7 Combined emotes of different tiers in Emote Popup. 2018-10-13 09:10:48 +00:00
Rasmus Karlsson cd571a7e25 clean up warnings 2018-09-30 17:15:17 +00:00
23rd 579c6b9bf9 Trim channelname in join channel window. 2018-09-21 13:43:10 +02:00
pajlada e2a7765964
Merge branch 'master' into apa-notification-on-live 2018-09-16 17:43:53 +02:00
fourtf 018fe2ab10 fixed some shtuff 2018-09-04 22:29:21 +02:00
fourtf 1d682c4a93 added add split button 2018-09-04 21:39:54 +02:00
fourtf 3f4e9cdf91 added text for empty categories in emote popup 2018-09-04 20:09:06 +02:00
apa420 6a29fbb6dc
Merge branch 'master' into apa-notification-on-live 2018-08-28 23:23:46 +02:00
23rd 8a1c30408a Set displayName to UserInfo link as value. (#675) 2018-08-22 15:16:19 +02:00
Rasmus Karlsson a07255be2d Add ability to customize cache folder
Add an advanced settings page, currently only housing the "Cache" category

Fix #541
2018-08-19 16:26:33 +02:00
fourtf af7b742a23 changed .clang-format 2018-08-15 22:46:20 +02:00
fourtf f1fbd7ee5c Merge branch 'master' of https://github.com/fourtf/chatterino2 2018-08-12 23:30:18 +02:00
fourtf f6414c9d7e remove settings and paths from Application 2018-08-12 12:56:28 +02:00
Lajamerr Mittesdine 7ff4f12257 Fix Global FFZ emotes in Emote Popup (#663)
There was two instances of Global BTTV emotes.
Changed the second instance to Global FFZ emotes.
2018-08-12 01:12:03 +02:00
fourtf 1ec1ecd52b fixed crash when moderation buttons are enabled 2018-08-12 00:02:05 +02:00
fourtf 44f5a15da3 turning a lot of includes into forward declares 2018-08-11 22:23:06 +02:00
fourtf c768bd9bd9 fixed image animations 2018-08-11 17:15:17 +02:00
fourtf c719bb6b74 categorized emtotepopup 2018-08-11 14:26:02 +02:00
apa420 b68c7ded5f WIP notification settings, doesn't actually work 2018-08-09 15:41:03 +02:00
fourtf d89b62692a refined SplitHeader 2018-08-08 15:35:54 +02:00
fourtf 7a9af4ae84 moved menu code to ripple effect button 2018-08-07 23:46:00 +02:00
fourtf 0682214ba7 fixed settings background color 2018-08-07 08:12:44 +02:00
fourtf 381177dd24 refactored EnumFlags 2018-08-07 07:55:31 +02:00
fourtf c26422aec1 refactored MessageBuilder 2018-08-07 01:35:24 +02:00
fourtf f71ff08e68 changed to 80 max column 2018-08-06 21:17:03 +02:00
fourtf c71795da17 Merge branch '4tf' 2018-08-06 18:41:30 +02:00
apa420 82460557cb 'ignore highlights' checkbox in user info popup - did request (#618)
* Added 'ignore userhighlights' to userpopup

* removed unecesarry include

* Fixed the todo

* renamed bool

* Did request

* changed some names
2018-08-06 16:40:46 +02:00
fourtf c2e2dfb577 this commit is too big 2018-08-02 14:23:27 +02:00
DatGuy1 f060907678 Add channel badges and emotes to LogsPopup (#576)
* Add channel badges and emotes to LogsPopup

* Move roomID stuff to seperate function

* Use onSuccess
2018-07-23 14:50:09 +02:00
fourtf e51c5c692a Merge branch 'master' of https://github.com/fourtf/chatterino2 2018-07-15 20:41:57 +02:00
fourtf 1614b11e42 Refactored TwitchChannel 2018-07-15 20:28:54 +02:00
Rasmus Karlsson f60d649f5e Remove UrlFetch file 2018-07-15 12:11:46 +00:00
Rasmus Karlsson 6a418e6e59 Refactor NetworkRequest class
Add followUser and unfollowUser methods to TwitchAccount
2018-07-07 11:09:27 +00:00
Rasmus Karlsson faa088b7e5 Remove NetworkManager urlPut function 2018-07-07 11:09:27 +00:00
fourtf 280bb4cf8e Renamed private members 2018-07-06 19:24:35 +02:00
fourtf aa3df2e6d8 refactored Channel 2018-07-06 17:30:12 +02:00
fourtf b639604a47 refactored BaseWidget 2018-07-06 17:11:37 +02:00
fourtf 314c15bb87 Small fixes for the last PR 2018-07-05 22:55:06 +02:00
DatGuy1 086ae010b1 Add viewing logs to UserInfoPopup (#548)
* Add cbenni logviewer

* Remove unneeded includes

* Updated getLogs to check for logs on Overrustle

will check logs on overrustle if none were found on cbenni

* Formatting, fix some bugs

* Fixes per PR comments

* Should really take more time when pushing

* Changes per PR, simplify code a lot

* Style/formatting fixes
2018-07-05 22:47:51 +02:00
fourtf eeb514c444 minor changes 2018-07-05 18:17:12 +02:00
fourtf 80c8e11cec refactored the ignores page a bit 2018-07-05 16:45:34 +02:00
fourtf 1da23e5e91 renamed IgnoreUsersPage to IgnoresPage 2018-07-05 16:22:25 +02:00
fourtf 6059f98c21 renamed UpdatePromptDialog to UpdateDialog 2018-07-05 16:04:50 +02:00
fourtf ef13aef7df fixes for linux 2018-07-05 12:08:33 +02:00
fourtf f2238729f1 worked on the UpdatePromptDialog 2018-07-05 11:42:40 +02:00
fourtf f02a89690e added mechanic for deleting a BaseWindow on focus out 2018-07-05 10:34:04 +02:00
fourtf 335cbf8758 added basic download icon to the window frame 2018-07-04 20:42:51 +02:00
fourtf 3a9de8cb86 renamed classes AppearancePage and BahaviourPage 2018-07-03 17:45:31 +02:00
fourtf cd57b2b518 renamed AppearancePage and BehaviourPage 2018-07-03 17:45:31 +02:00
fourtf d6c6a552d8 added preview channel view to the appearance tab 2018-07-03 16:56:36 +02:00
Rasmus Karlsson e757a6504b Run clang-format-all.sh 2018-07-03 15:20:00 +00:00
fourtf 8ced5a1e25 renamed *Manager classes 2018-06-28 19:51:07 +02:00
fourtf 2df142bd50 renamed *Manager files 2018-06-28 19:46:45 +02:00
fourtf 5604ae6a67 removed functions from SettingsManager that shouldn't be there 2018-06-28 19:38:57 +02:00
fourtf 604e5ed682 fixed upper/lower case fiesta 2018-06-26 17:42:35 +02:00
fourtf 08e552f5f6 ran clang-format on all files 2018-06-26 17:20:03 +02:00
fourtf c74bc00106 renamed twitch api get functions 2018-06-26 17:12:50 +02:00
fourtf 54eb07e116 removed namespaces 2018-06-26 17:06:17 +02:00
fourtf 2df0566492 removed namespaces 2018-06-26 16:37:59 +02:00
fourtf 15abedd869 moved files into src/common 2018-06-26 15:33:51 +02:00
fourtf 0bc08a364c created directory for dialogs 2018-06-26 15:11:45 +02:00