251 Commits

Author SHA1 Message Date
luddens
2022bb2acb Refresh only one book instead of all the library
These changes allow many improvements :
- they fix the infinite refresh of the library due to the multiple
"bookChanged" signal emitted when several operations on books were
performed simultaneously (launch several downloads)
- the scroll isn't reset to the top of the list when starting a download at
the bottom of the list
- (better optimization ?)

Now methods that concern only one book emit the signal "oneBookChanged"
with the id of the book, the JS slot search by id the correspondent book in
its list and replace it with an updated one.
2019-06-25 18:52:05 +02:00
Matthieu Gautier
00a724b5d9
Merge pull request #180 from kiwix/fix-bug-searchbar
Fix bug signal activated not emitted
2019-06-25 18:08:37 +02:00
luddens
68a7e3b795 Fix bug signal activated not emitted
Qt seems to disconnect every signal handlers (signal emitted by QCompleter)
of QLineEdit (the SearchBar) every time the QLineEdit loses the focus,
so it has to be connected every time it gains the focus with the mouse.
2019-06-25 18:07:57 +02:00
Matthieu Gautier
d3fdcb8eb2
Merge pull request #179 from kiwix/new-display-tags
Replace the ";" between tags by " "
2019-06-25 10:31:32 +02:00
luddens
daad089994 Replace the ";" between tags by " " 2019-06-25 10:31:15 +02:00
Matthieu Gautier
bae3e9b77d
Merge pull request #177 from kiwix/align-book-info
Align vertically the library's content when the window is too small
2019-06-24 15:58:29 +02:00
luddens
9a2efcb729 Flexbox overflow is hidden
To align vertically the flexboxes of the same column when the window is too
small, set the flexbox property "overflow" to "hidden" allows all these flexboxes
to have the same width no matter what its content
2019-06-24 15:58:06 +02:00
Matthieu Gautier
20f732a811
Merge pull request #182 from kiwix/stackexchange-category
Fix stack exchange category filter
2019-06-24 15:44:05 +02:00
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