mirror-chatterino2/resources
Leon Richardt a9080ceb3c
Discord-like Quick Switcher (#1588)
* Proof of Concept for Quick Switcher

* Fix crash when suggestions are empty

* QuickSwitcher: Use tab name instead of a single channel

* Rebase later

* Add missing include for <functional>

* Move QuickSwitcher related classes into own subfolder

* Refactor switcher list items

Now, items are responsible for taking the right action when selected in
the switcher list. This should allow for more focused code and
responsibilities.

* Add note about memory management

* Add option to open channel in a new tab

* Add support for using the mouse

* Spawn switcher popup in the middle of the window

Works reliably on i3 at least. Might need some additional testing on
other WMs (and especially on Windows!).

* Add some icons for switcher items

Note that the final design of the list is not final but I do plan to
incorporate these in the future.

* Set Qt::Dialog window flag on switcher popup

Prevents tiling window managers like i3 from trying to tile the window.

* Rename "SwitcherItem" to "AbstractSwitcherItem"

* Add comments about what items are inserted

* Use custom model and view

Still missing: Currently selected item is not highlighted yet. You can
move between selected items with tab and arrow keys though.

* Add helper function to convert QVariant to AbstractSwitcherItem *

* Remove useless constant

* Highlight currently selected switcher item

* Use a different method for centering QuickSwitcherPopup window

* QuickSwitcherModel: Add documentation

* Add default parameter to QuickSwitcherModel::rowCount

* QuickSwitcherPopup: Add comments

* Remove outdated TODO

* QuickSwitcherModel: Init vector with default capacity

* Remove outdated comment

* Add comment about 0 ms timeout interval

* NewTabItem: Simplify interface

* Only fetch opened splits once

This is better than the prior approach since opened splits cannot change
anyways while the switcher is open.

* Use SplitContainer to pass information instead of custom type

* Allow searching for tab titles as well

Before this commit, only channel names could be searched.

* Refactor switcher item interface to be more flexible

Also show tab name and channel name in the switcher list.

* Add documentation for AbstractSwitcherItem

* Add documentation for NewTabItem

* Add comments about {begin,end}{Insert,Remove}Rows

* Remove unused method

* Replace magic size with named constant

* Add change log entry

Co-authored-by: fourtf <tf.four@gmail.com>
2020-08-13 19:25:51 +02:00
..
avatars Add a list of contributors to the about page 2018-07-04 16:52:14 +00:00
buttons smol fixes 2019-09-02 19:00:17 +02:00
examples added examples for moving and splitting 2018-10-09 18:28:40 +02:00
licenses Remove FMT dependency (#1472) 2020-01-03 20:51:37 +01:00
qss fixed spaces and margins in general settings 2020-02-21 03:01:48 +01:00
scrolling Scroll Using Click-and-Drag with Middle Mouse Button (#1559) 2020-04-18 11:09:22 +02:00
settings Made one icon more prominent 2018-10-19 15:59:04 -07:00
sounds Added Highlights (#86) 2017-07-31 00:37:22 +02:00
split this commit is too big 2018-08-02 14:23:27 +02:00
switcher Discord-like Quick Switcher (#1588) 2020-08-13 19:25:51 +02:00
twitch Marked VIP badge as "channel authority" badge (#1117) 2019-07-13 15:55:15 +02:00
.gitignore add chatterino icon to linux install script 2019-05-11 00:01:32 +02:00
_generate_resources.py fixed autogenerated resources formatting 2019-09-03 12:07:52 +02:00
chatterino.icns Fixed icon of application for OS X. 2019-04-27 16:43:03 +03:00
com.chatterino.chatterino.appdata.xml Add AppData manifest (#1445) 2019-12-19 21:38:37 +01:00
com.chatterino.chatterino.desktop Add AppData manifest (#1445) 2019-12-19 21:38:37 +01:00
contributors.txt added self to contributor list (#1847) 2020-08-09 10:51:39 +02:00
emoji.json Experimental emoji sets implemented 2018-06-06 01:30:26 +02:00
emojidata.txt move around files 2017-06-06 14:48:14 +02:00
error.png this commit is too big 2018-08-02 14:23:27 +02:00
generate_resources.py sort paths in Resources to eliminate merge conflicts 2019-09-02 18:53:08 +02:00
icon.ico added application icon for windows 2018-01-04 00:16:48 +01:00
icon.png this commit is too big 2018-08-02 14:23:27 +02:00
pajaDank.png this commit is too big 2018-08-02 14:23:27 +02:00
qt.conf added gotToBottom and EnableNonClientDpiScaling 2017-09-21 17:34:41 +02:00
resources.qrc this commit is too big 2018-08-02 14:23:27 +02:00
resources_autogenerated.qrc Discord-like Quick Switcher (#1588) 2020-08-13 19:25:51 +02:00
tlds.txt Initial rework of matchLink 2018-06-28 00:54:34 +02:00
windows.rc Fixed missing icon (#758) 2018-10-06 10:22:55 +00:00