1362 Commits

Author SHA1 Message Date
Matthieu Gautier
8dff7577f0 Correctly convert QString to LPCWSTR
As we manipulate unicode, we also use `MessageBoxExW` instead of
`MessageBoxA`
2024-08-18 10:51:04 +02:00
Kelson
89298378fd
Merge pull request #1178 from kiwix/feature/disable-sandbox
Option to disable sandbox on Windows network drive
2024-08-16 04:45:03 +00:00
sgourdas
26f610c830 Option to disable sandbox on Windows network drive 2024-08-16 00:04:07 +03:00
Matthieu Gautier
32f0ee581e
Merge pull request #1176 from kiwix/fix_drive_variable 2024-08-15 13:57:19 +02:00
Matthieu Gautier
14d07e300e Remove debug printing of the drive letter.
On top of this, it was a typo: `driverLetter` doesn't exist.
2024-08-15 10:55:13 +02:00
Kelson
95ec78d626
Merge pull request #1172 from kiwix/fix_include
Correctly include stdexcept.
2024-08-14 20:28:18 +00:00
Matthieu Gautier
bdbf6088fe Correctly include stdexcept.
`std::runtime_error` is defined in `<stdexcept>`.
We must correctly include it before using `std::runtime_error`
2024-08-14 20:28:08 +00:00
Kelson
f8890b14fb
Merge pull request #1170 from kiwix/feature/disable-sandbox
Disable sandbox when run from Windows network share
2024-08-14 17:13:16 +00:00
sgourdas
6f9d01a282 Disable sandbox when run from Windows shared drive 2024-08-14 17:06:28 +00:00
Veloman Yunkan
e5563dc645
Merge pull request #1076 from kiwix/translatewiki
Localisation updates from https://translatewiki.net.
2024-08-13 17:02:32 +04:00
translatewiki.net
ba121e6d94
Localisation updates from https://translatewiki.net. 2024-08-12 14:07:25 +02:00
Kelson
5cc48d783f
Merge pull request #1163 from kiwix/Issue#61-export-bookmark
Introduce Ex/Import Reading List
2024-08-11 19:44:16 +02:00
ShaopengLin
3f046466d5 Add default folder for bookmark ex/import
Document folder is the default folder to ex/import.
2024-08-11 19:42:50 +02:00
ShaopengLin
a324fd9a3a Added Ex/Import UI on Reading List 2024-08-11 19:42:50 +02:00
ShaopengLin
a5f225aff1 Bookmark Button Reflect Bookmark Change 2024-08-11 19:42:50 +02:00
ShaopengLin
0f89b34b0e Add Reading List Import
Add menu button to import/append reading list from file
2024-08-11 19:42:50 +02:00
ShaopengLin
b4bbefa5af Add reading list export
Added Menu button to export reading list to file
2024-08-11 19:42:50 +02:00
Kelson
9418f64d5a
Merge pull request #1146 from kiwix/Issue#594-right-to-left-layout
Fixed Tab and Bookmark Right to Left Layout Drawing
2024-08-07 20:20:44 +00:00
ShaopengLin
df6560c1a3 Fixed Tab Title Alignment 2024-08-07 15:54:22 -04:00
ShaopengLin
585d29d2aa Fixed missing/inconsistent Tab Border 2024-08-07 12:29:20 -04:00
ShaopengLin
7de1ec98df Fixed Bookmark Button padding
Aligns left/right padding with top/bottom in LTR/RTL
2024-08-07 12:24:16 -04:00
ShaopengLin
848618e5d3 Tab Title Align Incorrectly in RTL Layout
Alignment depends on application layout.
2024-08-07 12:22:02 -04:00
Kelson
f53d7adb1d
Merge pull request #1162 from kiwix/Issue#1145-library-spinner
Aligned Library Download Spinner
2024-07-30 07:27:45 +02:00
ShaopengLin
9d3b0f9613 Aligned Library Download Spinner
Shited drawing to match Download Button
2024-07-28 17:47:16 -04:00
Kelson
319f9e5d6a
Merge pull request #1132 from kiwix/Issue#1073-file-not-found-page
Added Custom File-Not-Found page for Tabs
2024-07-28 22:37:26 +02:00
ShaopengLin
34a4a9ce48 Directory monitoring does not removes zims opened 2024-07-28 15:41:30 -04:00
ShaopengLin
17702f887b File-not-found tab now displays zim name and path 2024-07-28 15:41:04 -04:00
ShaopengLin
368fafb6bc Added custom file-not-found page
Page is displayed when zim file is missing.
2024-07-28 15:38:53 -04:00
Kelson
6ff18a8b0d
Merge pull request #1149 from kiwix/directory_monitoring_improvements
Directory monitoring improvements
2024-07-28 12:45:38 +02:00
Veloman Yunkan
deb91e71fb Enter ContentManager::handleDisappearedZimFile() 2024-07-28 12:31:36 +02:00
Veloman Yunkan
f830d35902 Directory monitoring saves changes in library.xml 2024-07-28 12:31:36 +02:00
Veloman Yunkan
d0f7599cf6 Better handling of renamed files in monitored directory
When a file in the monitored directory is renamed, it is better to
remove the old file from the library before adding the new one.
Doing it the other way around will not work correctly - adding the new file
will fail since a book with that UUID is already present in the library,
and then that book will be removed!
2024-07-28 12:31:36 +02:00
Veloman Yunkan
58e8f71dda Moved directory monitoring to ContentManager 2024-07-28 12:31:36 +02:00
Veloman Yunkan
52583ad6a9 Preparing to move directory monitoring to ContentManager
Moved 3 member functions of Library related to directory from
library.cpp to contentmanager.cpp as is so that the changes made to them
when those functions are transferred to ContentManager are easier to
spot.
2024-07-28 12:31:36 +02:00
Veloman Yunkan
f38b7480f6 Library::updateFromDir() emits booksChanged() signal once per call
The purpose of LibraryManipulator defined in library.cpp was to emit the
booksChanged() signal for every book added to the library. In
Library::updateFromDir() we can do that once per call of that function.
2024-07-28 12:31:36 +02:00
Veloman Yunkan
1e8a181d1a Further cleanup of Library::updateFromDir() 2024-07-28 12:31:36 +02:00
Veloman Yunkan
ce40f5eff6 Even simpler Library::updateFromDir() 2024-07-28 12:31:36 +02:00
Veloman Yunkan
8b2e6d23dd Better return type of Library::getLibraryZimsFromDir()
... which results in slightly simpler Library::updateFromDir().
2024-07-28 12:31:36 +02:00
Veloman Yunkan
7581b34f7b Rewrote KiwixApp::setMonitorDir() via setupDirectoryMonitoring()
Superficially there are some subtle difference between
KiwixApp::setupDirectoryMonitoring() and the part of the
KiwixApp::setMonitorDir() that was replaced by the former. But the end
result of this change should be the same.
2024-07-28 12:31:36 +02:00
Veloman Yunkan
ccacdc0a5c Extracted KiwixApp::setupDirectoryMonitoring() 2024-07-28 12:31:36 +02:00
Kelson
149752dfed
Merge pull request #1155 from kiwix/feature/app-icon-distortion
Make app icon correctly scalable on Windows
2024-07-27 21:03:47 +02:00
sgourdas
ca3f730963 Make app_icon.ico correctly scalable 2024-07-27 21:57:25 +03:00
Kelson
3a7c9c5d0d
Merge pull request #1138 from kiwix/feature/home-button
Added home button
2024-07-23 15:37:29 +02:00
sgourdas
76bb8228ee openHomePage code to standalone function 2024-07-23 15:37:14 +02:00
sgourdas
a7c19105f9 random.svg style alignment 2024-07-23 15:37:14 +02:00
sgourdas
c959fd0ccf Home button toolbar addition 2024-07-23 15:37:14 +02:00
sgourdas
1969fac0a4 code cleanup with auxiliary local variables 2024-07-23 15:37:14 +02:00
Kelson
68a7f4be8b
Merge pull request #1139 from kiwix/feature/monitor-dir-copy
Settings monitor path QOL improvements
2024-07-19 13:15:33 +02:00
sgourdas
84874cddc6 code tidying 2024-07-19 13:15:00 +02:00
sgourdas
1f7795112b Monitor path setting QOL improvements 2024-07-19 13:15:00 +02:00