mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Chat client for https://twitch.tv
a9080ceb3c
* 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> |
||
---|---|---|
.CI | ||
.docker | ||
.github | ||
docs | ||
lib | ||
resources | ||
src | ||
tests/src | ||
tools | ||
.gitattributes | ||
.gitignore | ||
.gitmodules | ||
_.travis.yml | ||
appveyor.yml | ||
BUILDING_ON_FREEBSD.md | ||
BUILDING_ON_LINUX.md | ||
BUILDING_ON_MAC.md | ||
BUILDING_ON_WINDOWS.md | ||
CHANGELOG.md | ||
chatterino.pro | ||
CMakeLists.txt | ||
conanfile.txt | ||
CONTRIBUTING.md | ||
ISSUE_TEMPLATE.md | ||
Jenkinsfile | ||
LICENSE | ||
README.md | ||
update_filelist.py |
Chatterino 2
Chatterino 2 is the second installment of the Twitch chat client series "Chatterino".
Download
Current releases are available at https://chatterino.com.
Nightly build
You can download the latest Chatterino 2 build over here
You might also need to install the VC++ 2017 Redistributable from Microsoft if you do not have it installed already.
If you still receive an error about MSVCR120.dll missing
, then you should install the VC++ 2013 Restributable.
Building
To get source code with required submodules run:
git clone --recurse-submodules https://github.com/Chatterino/chatterino2.git
or
git clone https://github.com/Chatterino/chatterino2.git
cd chatterino2
git submodule update --init --recursive
Code style
The code is formatted using clang format in Qt Creator. .clang-format contains the style file for clang format.
Get it automated with QT Creator + Beautifier + Clang Format
- Download LLVM: https://releases.llvm.org/9.0.0/LLVM-9.0.0-win64.exe
- During the installation, make sure to add it to your path
- In QT Creator, select
Help
>About Plugins
>C++
>Beautifier
to enable the plugin - Restart QT Creator
- Select
Tools
>Options
>Beautifier
- Under
General
selectTool: ClangFormat
and enableAutomatic Formatting on File Save
- Under
Clang Format
selectUse predefined style: File
andFallback style: None
Qt creator should now format the documents when saving it.
Doxygen
Doxygen is used to generate project information daily and is available here.