743 Commits

Author SHA1 Message Date
luddens
85abd7f6a1 Fix stack exchange category filter
Change the displayed name of the stack exchange filter and change manually
the tag to send.
2019-06-24 15:38:32 +02:00
Matthieu Gautier
7b6d2003cd
Merge pull request #183 from kiwix/pause-book-download-before-cancel
Pause book's download while dialog to cancel is open
2019-06-24 14:43:36 +02:00
luddens
044aec9689 Pause book's download while dialog to cancel is open
When the download of a book finishes while the cancel's dialog is opened
and then that the user confirms the deletion of the book, the app crashes
because aria2 can't find the active download (which is already complete).
Pause the download before opening the dialog and check the download's status
before cancel it avoid this crash.
2019-06-24 14:33:11 +02:00
Kelson
af3d00d200 Small grammatical fixes in README 2019-06-22 14:13:35 +02:00
Kelson
bfd2f8f0d5
Create FUNDING.yml 2019-06-22 07:56:05 +02:00
Sai Charan Kommana
f735be1a22 Corrected the README.md file typo 2019-06-21 20:26:32 +02:00
Matthieu Gautier
c42d2d0e76
Merge pull request #144 from kiwix/shortcut
add alt+home shorcut and CTRL+mouse wheel zoom
2019-06-12 14:49:33 +02:00
luddens
4fa606cd97 shortcut zoomIn zoomOut with ctrl + mousewheel
Watch the mousewheel event, if the ctrl key is pressed, then zoom in or out
based on the mousewheel "direction"
2019-06-12 14:48:43 +02:00
luddens
36887e8cc4 add alt+home shorcut
Create a new action OpenHomePageAction which sets the url of the current
webview with the zimId to open the home page.
2019-06-12 14:48:43 +02:00
Matthieu Gautier
eb61e32460
Merge pull request #156 from kiwix/front
Front
2019-06-12 14:47:26 +02:00
luddens
b72dc743a7 play/pause/cancel button new design 2019-06-12 14:46:52 +02:00
luddens
be645832b5 readinglist new design 2019-06-12 14:46:52 +02:00
luddens
d93104584a library new design 2019-06-12 14:46:52 +02:00
luddens
7822bb3037 popup searchbar new design 2019-06-12 14:46:52 +02:00
luddens
3df34feb42 thinner border 2019-06-12 14:46:52 +02:00
Matthieu Gautier
18f0e07116
Merge pull request #164 from kiwix/usb-flash-drive
choose the library.xml file in the binary's directory if it exists
2019-06-12 14:43:20 +02:00
luddens
19577ea924 Use the library.xml file of the binary directory if there is one
Check if there is a library.xml file in the binary directory, in this case,
set the m_libraryPath with the current binary path, otherwise set with the
default data directory. This member variable is used every time we want to
change the library's content.
2019-06-12 13:58:23 +02:00
Matthieu Gautier
8cdfe50033
Merge pull request #166 from kiwix/open-article-enter
Auto completion search bar
2019-06-12 10:06:13 +02:00
luddens
c8ace2fb7e re-use openCompletion method
Re-use the connect with openCompletion method that works fine to handle mouse
click and enter key press to open article
Remove the openTitle method that is no longer usefull.
2019-06-12 10:05:19 +02:00
luddens
18d123bcfb Set the completer case insensitive
Set the completer case insensitive to match with the suggestion's list
2019-06-12 10:05:19 +02:00
Matthieu Gautier
f47d8f2243
Merge pull request #174 from kiwix/download-dialog
add alert if there is not enough storage to download
2019-06-12 10:03:13 +02:00
luddens
6f10585d7f add alert if there is not enough storage to download
Check the available storage before the start of a download thanks to
QStorageInfo::bytesAvailable(), if the book size is bigger than this value
an alert message appears.
2019-06-12 10:02:00 +02:00
Matthieu Gautier
7c1ff57614
Merge pull request #173 from kiwix/fix-random-crash
Fix random crash
2019-06-11 15:49:09 +02:00
luddens
cb9707a511 Fix random crash
The buffers, where reply of a request is send, were deleted when they were about
to close but it makes the app crash, they have to be deleted when the request
object is deleted
2019-06-11 10:54:12 +02:00
Matthieu Gautier
d809533ee8 New version beta5 2.0-beta5 2019-05-29 12:11:49 +02:00
Matthieu Gautier
aa6a61ecd0
Merge pull request #155 from kiwix/delete-confirmation
add a confirmation message before deleting
2019-05-28 17:32:52 +02:00
luddens
2436248d22 add a confirmation msg before cancelling download 2019-05-28 17:32:20 +02:00
luddens
df4034ee09 add a confirmation message before deleting 2019-05-28 17:32:19 +02:00
Matthieu Gautier
7e5d4708ee
Merge pull request #158 from kiwix/stay-in-current-tab
don't open new tab
2019-05-28 17:26:23 +02:00
luddens
badb43ec7b open random article doesn't open new tab 2019-05-27 17:41:55 +02:00
luddens
adc9f1a7ce searchbar research doesn't open new tab 2019-05-27 17:41:55 +02:00
Matthieu Gautier
25da15c2de
Merge pull request #163 from kiwix/fix_urlscheme_qtversion
QWebEngineUrlScheme exists only since 5.12.
2019-05-27 17:36:58 +02:00
Matthieu Gautier
b2416a591e QWebEngineUrlScheme exists only since 5.12.
As we are compiling using 5.11 on windows ci, we need to do conditional
compiling.
2019-05-27 17:18:33 +02:00
Matthieu Gautier
6aeb4085dc
Merge pull request #162 from kiwix/fix-minor-warning
remove the scheme warning
2019-05-27 14:40:28 +02:00
luddens
bf21a06828 remove the scheme warning 2019-05-23 15:51:58 +02:00
Matthieu Gautier
4d16e16faf
Merge pull request #154 from kiwix/fix-refresh-searchbar
fix search bar bad reset
2019-05-16 17:39:15 +02:00
luddens
d247f7e36e fix search bar bad reset
Clear the search bar only if the focus is due to a mouse click
2019-05-16 17:31:55 +02:00
Matthieu Gautier
38037bbcdf
Merge pull request #153 from kiwix/fix-crash-non-existing-file
Fix crash when trying to open non existing file
2019-05-16 17:31:04 +02:00
luddens
fcba24c119 Fix crash when trying to open non existing file
if the reader is null because the file doesn't exist, it returns
2019-05-15 10:46:29 +02:00
Matthieu Gautier
2adc00074e
Merge pull request #151 from kiwix/context-menu
add options in context menu
2019-05-13 15:51:23 +02:00
luddens
7cfc92c80f add options in context menu 2019-05-13 15:42:32 +02:00
Matthieu Gautier
9a3a554e6f
Merge pull request #138 from kiwix/split--contentManagerHtml
Split contentmanager.html
2019-05-13 15:33:27 +02:00
luddens
949d50866c Split ContentManager.html into 3 files (html, css, js) 2019-05-13 13:58:18 +02:00
Matthieu Gautier
227041f636
Merge pull request #137 from kiwix/stop-download
pause and resume button
2019-05-13 13:53:48 +02:00
luddens
badcbe7320 multi-click download button start only 1 download 2019-05-13 11:44:13 +02:00
luddens
0e2c2e5c5c add cancelBook 2019-05-13 11:44:11 +02:00
luddens
f5b7ce2c2c pause and resume button 2019-05-13 11:31:38 +02:00
Matthieu Gautier
2d52bab3fe
Merge pull request #130 from kiwix/unresponsive_desktopapp-server-down-fix
Unresponsive desktopapp server down fix
2019-05-02 17:00:56 +02:00
luddens
1714d8ca5a add a load icon during the remote library's update's request
add a div with the loading's animation. When the contentManager sends the
remote library's update's request, it emits a "true" displayLoadIcon signal
that remove the class "do-not-display" and it emits a "false" displayLoadIcon
signal when it has to display the local library.
2019-05-02 16:16:53 +02:00
luddens
b2c2004f72 new architecture for the remote library's update's request
Using Curl fct of the kiwix library is synchrone, so when the server accepts
the request but doesn't answer, the kiwix-desktop app is unresponsive.

To avoid that, this is a new architecture based on the Qt network request
management.

There is a new member in the contentmanager based on the new class
OpdsRequestManagerManager. It has two members : m_networkManager sends the
request and return a pointer stored in mp_reply which will receive the answer
of the request.

When the remote library has to be update, it calls
the doUpdate method. It checks if there already is a running request and
aborts it if yes. Then m_networkManager sends the
request and return a pointer stored in mp_reply which will receive the answer
of the request. The signal 'finished' of the mp_reply is connected to the slot
receiveContent. In this slot it checks if the signal 'finished' was emit
because of an abort, if not it reads and emit a signal bookChanged with the
content in parameter. This signal in connected in the ContentManager class
to the slot 'updateRemoteLibrary' which update the remote library member.
2019-05-02 16:15:55 +02:00