mirror-chatterino2/lib
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
..
humanize@4e00a03623 add humanize as a dependency 2017-06-11 21:01:08 +02:00
libcommuni@a31ffb037e Discord-like Quick Switcher (#1588) 2020-08-13 19:25:51 +02:00
qBreakpad@a4626c12e9 Breakpad implementation (#535) 2018-06-27 23:06:37 +00:00
qtkeychain@832f550da3 added Chatterino/qtkeychain to fix compilation 2019-09-10 17:06:58 +02:00
rapidjson@d87b698d0f Remove appbase as an external dependency. 2019-07-23 23:55:31 +02:00
serialize@130ffc3ec7 Remove appbase as an external dependency. 2019-07-23 23:55:31 +02:00
settings@a5040463c0 Remove appbase as an external dependency. 2019-07-23 23:55:31 +02:00
signals@6665ccad90 Add support for non-highlight channel point rewards (#1809) 2020-08-08 15:37:22 +02:00
websocketpp@1e0138c7cc added new websocketpp 2019-09-15 17:15:00 +02:00
WinToast@ce441336ef Add missing WinToast submodule 2018-09-16 20:01:28 +02:00
boost.pri Better support for compiling with system libraries (#1447) 2019-12-29 12:47:15 +01:00
humanize.pri removed unused dependencies 2018-11-22 19:11:26 +01:00
libcommuni.pri moved communi namespace define into libcommuni.pri 2019-09-09 22:19:20 +02:00
openssl.pri removed unused dependencies 2018-11-22 19:11:26 +01:00
qtkeychain.pri added qtkeychain dependency 2019-09-09 22:18:56 +02:00
rapidjson.pri Better support for compiling with system libraries (#1447) 2019-12-29 12:47:15 +01:00
README.md moved BaseWindow and related files into appbase 2018-11-22 22:10:29 +01:00
serialize.pri Remove appbase as an external dependency. 2019-07-23 23:55:31 +02:00
settings.pri Remove appbase as an external dependency. 2019-07-23 23:55:31 +02:00
signals.pri Remove appbase as an external dependency. 2019-07-23 23:55:31 +02:00
warnings.pri add old warnings.pri file (copied from appbase project) 2019-08-10 23:21:12 +02:00
websocketpp.pri Better support for compiling with system libraries (#1447) 2019-12-29 12:47:15 +01:00
winsdk.pri Remove appbase as an external dependency. 2019-07-23 23:55:31 +02:00
wintoast.pri removed unused dependencies 2018-11-22 19:11:26 +01:00

Third party libraries are stored here

Fetched via git submodule update --init --recursive