Commit graph

171 commits

Author SHA1 Message Date
fourtf ded61256de moved native event handler to it's proper file 2017-12-19 01:32:06 +01:00
Rasmus Karlsson 02e5030475 add fS function to simplify string formatting with fmt::format 2017-12-17 17:01:37 +01:00
Rasmus Karlsson 8687d01cea fix ParseTagString function 2017-12-17 00:56:33 +01:00
6b46d12558 added ParseTagString code 2017-12-17 00:39:27 +01:00
Rasmus Karlsson e060f87b3c hehe fourtf 2017-12-17 00:01:42 +01:00
Rasmus Karlsson a372bae80d Change the way Twitch accounts are stored in AccountManager
This is done in a way which should simplify abstracting it to other
types of accounts if needed in the future

Remove comment about removing singletons - we're keeping them (and probably restoring some)

IrcManager now updates its "account" reference automatically through the
AccountManager.Twitch.userChanged-signal

Remove unused IrcManager getUser-method

IrcManager::beginConnecting is no longer called asynchronously. This
might want to be reverted in a more controlled asynchronous manner.

User Accounts are now stored as Shared Pointers instead of using
references/copies everywhere
2017-12-16 02:21:06 +01:00
Rasmus Karlsson 49c2f442cb fix mingw compilation issues 2017-11-04 16:56:38 +01:00
Rasmus Karlsson 2de98dc1f8 Move timeout logic to NetworkRequest 2017-10-27 22:04:05 +02:00
Rasmus Karlsson 41ec892bf8 Remove urlFetchJSON usages. They now use NetworkRequest.getJSON 2017-10-27 21:22:06 +02:00
hemirt f51372102e Networkmanager (#134)
* rename ImageLoader* to Network*

* static NetworkManager

* NetworkManager queue arbitrary requests

* modify urlfetch to use NetworkManager

* urlfetchjson in terms of NetworkManager

* fetchurljson fetchurltimeout fetchurljsontimeout

special fetch url functions with various connects and functions to be
called

* operate on fetched data in the correct thread

* operate on fetched resources in correct thread

* networkmanager urlfetch functions

* expose urlfetch functions of networkmanager through util and
util::twitch

* add caller to util functions

* cleanup

* formatting

* urlPut function for NetworkManager and util::twitch

* cleanup worker (no more leak)

* use urlfetch for LazyLoadedImage::loadImage

* Rename NetworkManager methods (#1)

* Rename NetworkManager methods

Remove unused NetworkManager methods
Remove unused NetworkManager includes

Reorder includes in lazyloadedimage.cpp and urlfetch.hpp

* try to simplify code, might break everything

* fixed some more stuff?
2017-10-27 20:09:02 +02:00
fourtf f0c21f5b49 refactored message drawing and layouting 2017-10-11 10:34:04 +02:00
fourtf 8b25d37a37 added benchmark util 2017-10-08 17:23:46 +02:00
Cranken 881e695189 Added some functionality to the accountPopup (#117)
* Added some buttons.

* Added some more functionality.

* Finished adding button functionality.

* Implemented @fourtf's suggestions.
2017-09-23 19:23:10 +02:00
Daniel _ 206a3518b0 fixed dpi not initializing when the window shows 2017-09-23 18:37:51 +02:00
fourtf 14511e10ef HiDPI commit 2017-09-22 00:50:43 +02:00
Rasmus Karlsson 8d2e48f944 Implement an advanced method of adding a user to chatterino.
You can now switch between multiple users in the settings dialog.
(Requires a restart for reconnecting etc)
2017-08-19 15:37:56 +02:00
Rasmus Karlsson c2e67e4b90 attempt to implement urlFetch with a timeout 2017-06-26 15:53:43 +02:00
Rasmus Karlsson 1c6ff37e76 rename header files from *.h to *.hpp 2017-06-11 09:31:45 +02:00
Rasmus Karlsson 5b2b2e3e19 refactor/reformat. remove useless common.h 2017-06-07 10:09:24 +02:00
Rasmus Karlsson b66dc479e6 fix scroll to bottom issue 2017-06-06 21:18:05 +02:00
Rasmus Karlsson ccf8e3bd83 move around files 2017-06-06 14:48:14 +02:00