1589 Commits

Author SHA1 Message Date
Emmanuel Engelhart
8e75387ea6
Bump-up version to 2.4.0 2024-12-10 20:54:13 +01:00
Kelson
fed63955b3
Merge pull request #1278 from kiwix/fix_for_issue1271
Eliminated the question mark from the searchbar placeholder in Windows build
2024-12-10 20:45:39 +01:00
Veloman Yunkan
63afef3969 Deleted end-of-line whitespace 2024-12-10 20:45:27 +01:00
Veloman Yunkan
2c17312367 Force the MS compiler use an UTF-8 encoded string
In a Windows build this eliminates the question mark from the searchbar
placeholder (which read "?Search" before this fix).
2024-12-10 20:45:27 +01:00
Kelson
93aa324db6
Merge pull request #1280 from kiwix/save_file_as_filter
File dialog filter with an extension separator dot
2024-12-10 20:17:59 +01:00
Veloman Yunkan
c1d8cdc896 File dialog filter with an extension separator dot
Included the dot symbol in the "save file as" dialog filter (e.g. for
PDF files the filter now is `(*.pdf)` instead of `(*pdf)`).
2024-12-10 20:17:41 +01:00
Kelson
76124ddb5f
Merge pull request #1279 from kiwix/border_for_localserver_dialog
Added border to the "Local Kiwix Server" dialog
2024-12-10 16:07:48 +01:00
Veloman Yunkan
7418c81f39 Added border to the "Local Kiwix Server" dialog
CSS was copied from resources/css/messageBox.css (to be consistent with
other dialogs).
2024-12-10 13:52:20 +04:00
Kelson
9fe3a3f8b0
Merge pull request #1123 from kiwix/pdfSmth
Show Open/Save dialog on downloading files
2024-12-08 15:30:10 +01:00
Veloman Yunkan
17ad4cfe07 Open/Save functionality for downloaded files 2024-12-08 14:16:45 +04:00
Veloman Yunkan
03286fd2d6 Better "Download Finished" message box 2024-12-08 14:13:47 +04:00
Veloman Yunkan
7c81914cf4 Cleaner handling of Qt API change
QWebEngineDownloadItem of Qt 5 was replaced with
QWebEngineDownloadRequest in Qt 6. Besides the API of
QWebEngineDownloadItem has slightly changed in Qt 5.14.

This commit reduces the pollution of the code by conditional
compilation needed to support all those versions of Qt.
2024-12-08 14:10:24 +04:00
Veloman Yunkan
17a1303e91 Fixed a compilation error when using Qt 6 2024-12-08 14:10:24 +04:00
Nikhil Tanwar
1ef690d390 Introduce showKiwixMessageBox()
Added a function to show custom choices instead of yes/no. The chosen option is returned
A closeButton is also added to the dialog.
2024-12-08 14:10:24 +04:00
Nikhil Tanwar
3eeb14ed44 KiwixConfirmBox is now KiwixMessageBox
It started as a simple yes/no box but is now being used as an InfoBox,
ConfirmBox and a customized MessageBox (in further commits) - this
sounds better!
2024-12-08 14:10:24 +04:00
Kelson
40461d72b3
Merge pull request #1266 from kiwix/fix_for_issue1236
Windows version of kiwix-desktop no longer crashes when launched from a network folder
2024-12-04 20:25:32 +01:00
Veloman Yunkan
0dc685264d Restore tabs only after disabled sandbox is approved
Before this fix tabs could be restored before the user approved
disabling the QWebEngine sandbox (when the app is launched from a remote
location/network folder). If disabling the web browser sandbox in
kiwix-desktop has any real risk for the user then we shouldn't expose
them to it before notifying about implications and receiving their
confirmation to proceed.
2024-12-03 14:47:47 +04:00
Veloman Yunkan
d60cd6008a Handle launching from unmapped network folder too 2024-12-03 14:47:47 +04:00
Veloman Yunkan
f9045be5c3 Extracted wasAppStartedFromARemoteDrive() 2024-12-03 14:47:16 +04:00
Veloman Yunkan
a7913f6c14 Don't crash when there are no voices available 2024-12-03 14:31:11 +04:00
Kelson
4411d6a4a6
Merge pull request #1251 from kiwix/translatewiki
Localisation updates from https://translatewiki.net.
2024-11-30 08:36:03 +01:00
translatewiki.net
66c715a919
Localisation updates from https://translatewiki.net. 2024-11-28 13:06:29 +01:00
Kelson
6a11118724
Merge pull request #1258 from kiwix/run_ci_on_jammy
Switch Linux CI to jammy
2024-11-26 18:10:40 +01:00
Veloman Yunkan
25175d8313 Switch Linux CI to jammy 2024-11-26 19:14:43 +04:00
Kelson
833f2a00af
Merge pull request #1259 from kiwix/windows_settings_persisted_in_files
Under Windows settings are persisted in files too
2024-11-26 11:53:11 +00:00
Veloman Yunkan
d26df8d31e Switched Windows CI to release mode
All dependencies are now built under Windows in release mode, hence we
have no choice but to switch the Windows CI to release mode too.
2024-11-26 14:01:31 +04:00
Veloman Yunkan
af6c402443 Under Windows settings are persisted in files too
Before this fix the settings and session information should have been
written to the Windows registry however for some reason it didn't work.

In any case we want the settings to be saved in files so that it plays
better with portable mode (when we start supporting it for Windows
builds too).

Explicit settings (those configurable through the settings dialog, and
library filters) are saved in
"C:/Users/<USER>/AppData/Local/kiwix-desktop/Kiwix-desktop.conf"

Session info (window size, list of open tabs, last directory used for
opening a ZIM file) are saved in
"C:/Users/<USER>/AppData/Roaming/kiwix-desktop/kiwix-desktop.session"
2024-11-26 13:10:19 +04:00
Kelson
955c1d51a8
Merge pull request #1252 from kiwix/fix_for_issue_1235
Fixed the crash on application launch under Windows
2024-11-22 14:51:06 +01:00
Veloman Yunkan
e6a8622738 [HACK] Handling of empty result after elision
The bug itself happens due to initialization&update of MultiZimButton (via
established signal/slot connections) at a time when the main application
window hasn't yet been shown and the dimensions of various widgets are
bogus. The end result is that a too narrow menu leads to the elided text
string being empty which was outside of the assumptions of the
getElidedText() function.
2024-11-21 18:17:13 +04:00
Veloman Yunkan
a29722dcd0 QSettings object is created before first use
It looks like the bug was not triggerred under Linux due to a different
order of function calls (because of some peculiarity of concurrent
execution and/or signal processing).
2024-11-21 18:03:33 +04:00
Kelson
63b421e6d3
Merge pull request #1250 from kiwix/translatewiki
Localisation updates from https://translatewiki.net.
2024-11-21 06:40:51 +01:00
translatewiki.net
2d2f268555
Localisation updates from https://translatewiki.net. 2024-11-18 13:06:29 +01:00
Kelson
5d7eb1ad43
Merge pull request #1143 from kiwix/Issue#44-tts
Implement Basic Text to Speech
2024-11-15 17:54:28 +01:00
ShaopengLin
e3106ea566 Disable TTS If No Such QT Module
Some systems or QT versions might not have or the module is not available.
2024-11-15 02:51:33 -05:00
ShaopengLin
de1b7bb471 Proper Styling for TSS 2024-11-15 02:48:14 -05:00
ShaopengLin
5b298ddc0b Introduce KiwixApp::ToggleReading{Voice,Language}
Show the TTS bar and popup the respective selector on shortcut for accessibility.
2024-11-15 02:46:00 -05:00
ShaopengLin
f992bc5235 Restart Speech When TTS Language/Voice Changes 2024-11-15 01:45:04 -05:00
ShaopengLin
414b8a7ca5 Save Voice Selected For Each Lanugage
Keep track of the voices so user do not need to reconfigure.
2024-11-15 01:45:04 -05:00
ShaopengLin
9765987203 TTS Lanugage Matches Zim Locale
Tabs are by default Zim's Locale
2024-11-15 01:45:04 -05:00
ShaopengLin
8df319edd5 Added Voice Selector to TTS Bar 2024-11-15 01:45:03 -05:00
ShaopengLin
4c30141bf6 TTS Language Selector Popup On-Click Anywhere
Rather than only the arrow, clicking any place on the combobox should popup the selector
2024-11-15 01:44:26 -05:00
ShaopengLin
edb964165e TTS Lanugage Selector Entries Are Read-Only
The line edit should not be edit/highlight/selectable.
2024-11-15 01:44:26 -05:00
ShaopengLin
0b37a51a7e Added Language Selector to TTS Bar 2024-11-15 01:44:26 -05:00
ShaopengLin
8f4064b674 ESC Key Closes TTS Bar 2024-11-15 01:44:26 -05:00
ShaopengLin
c95528e7a0 Add Close Button to TTS Bar
Bar is default closed and shown on any speech activation.
2024-11-15 01:44:26 -05:00
ShaopengLin
9acefb1634 Introduce KiwixApp::ReadStopAction
Add shortcut on keyboard to stop reading for accessibility.
2024-11-15 01:43:32 -05:00
ShaopengLin
29bbc44b58 Introduce texttospeechbar.ui
Added the bar at bottom of webpage. Intoduced the stop speaking button.
2024-11-15 01:33:17 -05:00
ShaopengLin
815debd0ff TTS Actions Added to Right Click ContextMenu 2024-11-15 01:33:17 -05:00
ShaopengLin
b858c0d664 Introduce texttospeechbar.{h,cpp}
Basic Reading of Articles or Selected Texts.
2024-11-15 01:33:00 -05:00
Kelson
1a0580d2c2
Merge pull request #1246 from kiwix/Bugfix-toc-switch-tab
BugFix: Prevent crashes from tab switches due to Table Of Content
2024-11-14 08:46:49 +01:00