Matthieu Gautier
29e27fa5d2
Add the custom zim UrlSchemeHandler to the contentManager view.
...
This way, the contentManager can get some information about a zim file
using the zim scheme.
We have to initialize the m_schemeHandler before the m_manager.
2018-11-13 18:32:18 +01:00
Matthieu Gautier
5ca4d8903f
Remove the requestInterceptor.
...
This is useless. It was use to rewrite http request to zim request and
have the custumUrlShemeHandler handle the request.
However, we now want to open http request in a external browser.
And it is already the case, the http requests are never intercepted.
2018-11-13 18:32:18 +01:00
Matthieu Gautier
a12e641667
Merge pull request #55 from kiwix/workaround_contenttype
...
Workaroud the contentType handling of QTWebEngine.
2018-11-13 18:32:02 +01:00
Matthieu Gautier
a478b1600c
Workaroud the contentType handling of QTWebEngine.
...
It seems that QTWebEngine doesn't correctly handle a "complex" mimeType
(`text/html; charset=utf-8`). In this case, it handles the content as
`plain/text`.
So let pass only the first part of the full mimeType without the charset.
Fix #50
2018-11-13 15:54:49 +01:00
Matthieu Gautier
963c0066c2
Ensure that we use the right path separator when opening a book.
2.0-alpha6
2018-11-03 12:08:15 +01:00
Matthieu Gautier
565e332de2
Do not crash if we cannot launch aria2.
...
Sometime, we cannot launch aria2 or connect to it.
- Do more attempt.
- Display an error message if we cannot and quit instead of crashing.
2.0-alpha5
2018-11-02 17:33:53 +01:00
Matthieu Gautier
74d7cb955e
Update the remote library when we change the page.
2018-11-02 17:08:58 +01:00
Matthieu Gautier
f81061f1f4
The max page should be nbPages-1, not nbPages.
2018-11-02 17:08:40 +01:00
Matthieu Gautier
3311423ca1
Do not display the number of book we received but the real number of book.
...
If we do paging of 10 books, we want to display the real number of books
available, not only 10.
2018-11-02 17:08:12 +01:00
Matthieu Gautier
f65f8c1c31
The search endpoint has no xml extension.
2018-11-02 17:06:54 +01:00
Matthieu Gautier
f30c4aace5
Merge pull request #47 from kiwix/fix_catalog_url
...
Correctly set the catalog host and port.
2.0-alpha4
2018-10-31 16:08:49 +01:00
Matthieu Gautier
e46c3a9756
Correctly set the catalog host and port.
2018-10-31 16:08:03 +01:00
Matthieu Gautier
d79aaa98b6
Better icon.
2018-10-26 14:09:16 +02:00
Matthieu Gautier
35c785ffe1
Add missing declartion of signal.
2018-10-26 14:08:55 +02:00
Matthieu Gautier
bf2c780647
Merge pull request #45 from kiwix/contentManager
...
Content manager
2018-10-26 13:58:05 +02:00
Matthieu Gautier
b388b13ba0
Disable contentManager button we do not handle.
2018-10-26 13:55:35 +02:00
Matthieu Gautier
b9e0c4037c
Correctly hide the contentManager bar.
2018-10-26 13:54:53 +02:00
Matthieu Gautier
d6513d6329
fixup! Make the content
2018-10-26 13:53:11 +02:00
Matthieu Gautier
e010815b4f
Handle request to remote opdsfeed.
...
The content of the feed is fetch only for what is displayed to reduce
size and is store in a kiwix::Library (never stored in the fs).
2018-10-26 13:52:21 +02:00
Matthieu Gautier
d72dc72a21
Better style for contentManager.
2018-10-26 13:43:40 +02:00
Matthieu Gautier
5a6bafc8e1
Move style.css in another resources file.
...
It speed up compilation when we modify the style.
2018-10-26 13:42:05 +02:00
Matthieu Gautier
1022136697
Move the contentManagare sidebar into a specific widget.
2018-10-18 16:45:47 +02:00
Matthieu Gautier
300540d4b8
The sidebar must be under the tabbar.
...
The tabbar must use the whole length and must not be pushed out by the
sidebar.
So we need to split the tabwidget into a tabbar and a stackedWidget.
2018-10-18 16:44:27 +02:00
Matthieu Gautier
3410252837
Make the contentManager the only interface from C++ to js/html.
...
Move all methods used by contentManager html into the contentManager class.
We do not export anymore the kiwixapp, the library or the downloader.
As the downloader was use only to export the methods to html, we can
remove it (and use kiwix::Downloader).
2018-10-18 15:22:08 +02:00
Matthieu Gautier
235b82166e
Add a bit of styling.
...
Still need a lot of works
2018-10-17 14:47:09 +02:00
Matthieu Gautier
7a83a1038d
Handle downloading of remote books.
2018-10-17 11:16:57 +02:00
Matthieu Gautier
2923b19478
Display the size of the zim book in the contentManager.
2018-10-17 11:10:17 +02:00
Matthieu Gautier
f39254a6f1
Move the creation of a dict from a list of values in a specific function.
2018-10-17 11:01:27 +02:00
Matthieu Gautier
9ce41c06af
Open book from the contentManager.
2018-10-17 11:01:21 +02:00
Matthieu Gautier
a6f8bbd6e5
Add a first version of the contentManager.
2018-10-17 11:00:09 +02:00
Matthieu Gautier
d294b16a12
Run lupdate and lrelease only on linux.
...
system cannot run on windows.
2.0-alpha3
2018-09-05 17:54:00 +02:00
Matthieu Gautier
30520fd1aa
Merge pull request #25 from Ordissimo/master
2018-09-05 16:06:08 +02:00
Matthieu Gautier
bf8fab75d8
Add a translation for texts/about.html
.
2018-09-05 16:05:03 +02:00
Matthieu Gautier
457d9aafef
Update translations.
2018-09-05 16:05:03 +02:00
Matthieu Gautier
d37cdd6e2d
Do not use QObject::tr
but directly tr
.
...
It simplify the code and allow the translation to keep the context
(the class of the object) instead of always having the `QObject` context.
2018-09-05 16:05:03 +02:00
Matthieu Gautier
171a307a7b
Uniform the way we are loading translation files.
...
It is better to have the same mechanism to load the file instead of one
time using `load` method to find the right file and one time using the
resources system overloading the resource file.
2018-09-05 15:37:53 +02:00
Matthieu Gautier
2304987bcf
Make the QTranslator members of KiwixApp.
...
If we pass their address to `installTranslator` we have to be sure they
exist after we quit the constructor.
2018-09-05 15:35:21 +02:00
Thierry
0c6cdc4ac4
Update translations
2018-09-04 17:52:02 +02:00
Thierry
594ec51110
Return of the maintenair
2018-09-04 17:52:02 +02:00
Thierry
75be2c9311
Partial functioning of translations
2018-09-04 17:51:20 +02:00
Thierry
3d930e5bd8
Add build locale.
2018-09-04 17:51:20 +02:00
Thierry
b71fc67032
Added translation mechanism, and added French translation.
2018-09-04 17:51:20 +02:00
Matthieu Gautier
6097c0fe99
Implement search in page actions.
...
- Create a TOCSideBar (name TOC because it will also show TOC)
- Remove `FindNextAction` and `FindPreviousAction`. They are handle
directly by a button in the sidebar.
2018-09-04 17:27:58 +02:00
Matthieu Gautier
67f2d1f067
Implement zoom action.
2018-09-03 16:12:25 +02:00
Matthieu Gautier
089a1753eb
[About message] Add a link to report bugs in the about message.
...
Fix #23
2.0-alpha2
2018-08-21 17:32:39 +02:00
Matthieu Gautier
19c991f8a9
[About message] fix typos
2018-08-21 17:32:04 +02:00
Matthieu Gautier
502154ac3d
Hide donateAction.
2.0-alpha
2018-08-03 17:28:56 +02:00
Matthieu Gautier
ae155063a5
Add missing ;
at end of Categories.
2018-08-03 14:21:03 +02:00
Matthieu Gautier
1554b90a2e
Hide ReopenClosedTabAction and SettingAction.
...
We will not implement them for the alpha.
2018-08-03 14:20:47 +02:00
Matthieu Gautier
48aa87fb48
Display the kiwix version in the about dialog.
2018-08-02 19:26:54 +02:00