Commit Graph

38553 Commits

Author SHA1 Message Date
Kovid Goyal 8d27d68dff Simplify loading of MathJax files 2019-09-13 09:12:14 +05:30
Kovid Goyal c64349dc6b ... 2019-09-13 09:12:14 +05:30
Kovid Goyal 57a4f1c91d Implement loading of mathjax files 2019-09-13 09:12:14 +05:30
Kovid Goyal 4a721d36a5 Load UI css at startup 2019-09-13 09:12:13 +05:30
Kovid Goyal 03f1a3eb48 Store a reference to the host widget 2019-09-13 09:12:13 +05:30
Kovid Goyal 4f87ea3ccc Also serialize cover when rendering books for viewer 2019-09-13 09:12:13 +05:30
Kovid Goyal 56baf848fc Make the Inspector dock widget work 2019-09-13 09:12:13 +05:30
Kovid Goyal fa23f3d43f Add a dock for the inspector 2019-09-13 09:12:13 +05:30
Kovid Goyal c4295355a2 ... 2019-09-13 09:12:13 +05:30
Kovid Goyal 8234dc5436 Load HTML resources for viewer 2019-09-13 09:12:13 +05:30
Kovid Goyal f721d49e32 Loading resources now works 2019-09-13 09:12:13 +05:30
Kovid Goyal a2fd1ca90f ... 2019-09-13 09:12:13 +05:30
Kovid Goyal 387b5b2ed5 Implement get_file() 2019-09-13 09:12:13 +05:30
Kovid Goyal da04475ff1 Also load metadata when loading manifest 2019-09-13 09:12:13 +05:30
Kovid Goyal d62024d1b1 Fix error reporting in the new viewer 2019-09-13 09:12:12 +05:30
Kovid Goyal 783ff58129 Implement basic settings storage for new viewer 2019-09-13 09:12:12 +05:30
Kovid Goyal b862af3844 More work on the new viewer 2019-09-13 09:12:12 +05:30
Kovid Goyal 8b0cdbad13 Connect up the Qt bridge in the viewer 2019-09-13 09:12:12 +05:30
Kovid Goyal 25ef13c6ee ... 2019-09-13 09:12:12 +05:30
Kovid Goyal b83a299bfd Remove call to read_data() as it no longer exists 2019-09-13 09:12:12 +05:30
Kovid Goyal 9b3d5d486b Work on reafactoring read_book module to make it useable in standalone viewer 2019-09-13 09:12:12 +05:30
Kovid Goyal 953734320b ... 2019-09-13 09:12:12 +05:30
Kovid Goyal 6e14daac89 Infrastructure for loading viewer js 2019-09-13 09:12:12 +05:30
Kovid Goyal 7b75c67e15 More work on the new viewer 2019-09-13 09:12:12 +05:30
Kovid Goyal 559adc51a2 Basic web view implementation for the new viewer 2019-09-13 09:12:11 +05:30
Kovid Goyal f6edb4de07 Make cache expiring code a little more robust 2019-09-13 09:12:11 +05:30
Kovid Goyal 521181280b Try twice to delete cache entries on windows
Thanks to the idiotic mandatory file locking, we can never be sure that
some stupid windows service like an antivirus/filesync program has not locked
the cache files.
2019-09-13 09:12:11 +05:30
Kovid Goyal 59b9357c0c Add tests for the new viewer cache 2019-09-13 09:12:11 +05:30
Kovid Goyal 67cce4e563 Caching system for conversion of books into useable form in the new viewer 2019-09-13 09:12:11 +05:30
Kovid Goyal 2c669bf853 More work on the new viewer 2019-09-13 09:12:11 +05:30
Kovid Goyal 200d38d2f5 Start work on new viewer implementation 2019-09-13 09:12:11 +05:30
Kovid Goyal 1216ed3200 Change fake protocol scheme to clbr 2019-09-13 09:12:11 +05:30
Kovid Goyal 0f0470a9ee Live CSS: Fix properties from more distant ancestors overriding properties from nearer ancestors with the same specificity 2019-09-13 09:12:11 +05:30
Kovid Goyal 44fa281f86 ... 2019-09-13 09:12:11 +05:30
Kovid Goyal eebafd9454 More work on live css, basically works 2019-09-13 09:12:11 +05:30
Kovid Goyal 8c1a3e0467 Move the live css related client side code into its own module 2019-09-13 09:12:10 +05:30
Kovid Goyal 4eb75032db Start work on porting live css 2019-09-13 09:12:10 +05:30
Kovid Goyal 8aa52dbcba Do not restart render process on normal termination 2019-09-13 09:12:10 +05:30
Kovid Goyal 2bd6939fbd Only show dead renderer error once 2019-09-13 09:12:10 +05:30
Kovid Goyal 7c09812742 Only load the inspector on demand 2019-09-13 09:12:10 +05:30
Kovid Goyal c6d6716965 Try restarting the render process on crash
Also only load the link reports web view on demand
2019-09-13 09:12:10 +05:30
Kovid Goyal c9b2578b33 Fix preview not scrolling to anchor when clicking an internal link to another html file in the book 2019-09-13 09:12:10 +05:30
Kovid Goyal 92fe190f63 Drop use of Qt Web Channel
One less possible cause of lifetime related crashes/leaks.  Plus my
custom solution has a nicer interface. It's slower but since
communication between python and js is not a bottleneck...
2019-09-13 09:12:10 +05:30
Kovid Goyal 883717039e Go to anchor explicitly in the preview 2019-09-13 09:12:10 +05:30
Kovid Goyal 50ed25a6d9 Dont assume head exists 2019-09-13 09:12:10 +05:30
Kovid Goyal cae36d2cc1 Avoind double serialization of sourceline address 2019-09-13 09:12:10 +05:30
Kovid Goyal 37c277d684 Fix split button 2019-09-13 09:12:09 +05:30
Kovid Goyal 67f3422438 Port addition of css for split marker 2019-09-13 09:12:09 +05:30
Kovid Goyal 38836de4e1 Make a webengine utils module 2019-09-13 09:12:09 +05:30
Kovid Goyal 561edbe1ea Two-way syncing work again 2019-09-13 09:12:09 +05:30