1316 Commits

Author SHA1 Message Date
Emmanuel Engelhart
529f549af1
No need of semi-colon after function declaration 2022-02-13 13:26:54 +01:00
Emmanuel Engelhart
5daab5e0f9
Replace CSS value 0px by just 0 2022-02-13 13:24:21 +01:00
Emmanuel Engelhart
4894289092
Shorter CSS margin declaration 2022-02-13 13:22:36 +01:00
Emmanuel Engelhart
2c9f7c1f2a
Bad CSS property name 2022-02-13 13:21:03 +01:00
Kelson
d6592956e7
Merge pull request #787 from kiwix/translatewiki
Localisation updates from https://translatewiki.net.
2022-02-10 13:49:25 +01:00
translatewiki.net
9ed2f67099 Localisation updates from https://translatewiki.net. 2022-02-10 13:05:46 +01:00
Kelson
df2a95273a
Merge pull request #743 from kiwix/monitorDirectory
Enable directory monitoring for new zims
2022-02-08 21:25:49 +01:00
Nikhil Tanwar
5e9aa63b45
Add real-time library monitoring
Adds a QFileSystemWatcher to watch over monitor directory.
Everytime directoryChange is emitted, it calls asyncLoadMonitorDir
2022-02-08 21:08:26 +01:00
Nikhil Tanwar
e0337d0caf
Refresh library with monitory directory changes on startup
This refreshes the library on every startup
list of elements already in monitor directory (before changes) are taken by filtering library.xml
2022-02-08 21:08:25 +01:00
Nikhil Tanwar
45a09cfae6
Add logic to refresh library with monitor directory changes
To check if there have been any changes in monitor directory, we compare the files before and after followed by adding/removing them from the library
2022-02-08 21:08:25 +01:00
Nikhil Tanwar
a69e6a1f02
Add monitor directory entry in settings panel
This adds an option to check/update monitor directory from the settings panel.
2022-02-08 21:08:25 +01:00
Nikhil Tanwar
8d6d6833e7
Make SettingsManager::setDownloadDir a void function
The current implementation doesn't have any effect on it being a bool
2022-02-08 21:08:24 +01:00
Nikhil Tanwar
a887af01be
Add generalised confirm function and use it in confirmDialogDownloadDir
This adds a new method confirmDialog(QString, QString) as a generalised function for confirm boxes
confirmDialogDownloadDir is changed to use this new method
2022-02-08 21:08:24 +01:00
Nikhil Tanwar
52ff3afaec
Move getters in settingsmanager out of slots and make them const
This changes the following getters:
getKiwixServerPort()
getKiwixServerIpAddress()
getZoomFactor()
getDownloadDir()
2022-02-08 21:08:24 +01:00
Nikhil Tanwar
324ffbb326
Improve const correctness in Library
This makes getBookIds(), listBookIds(), and getBookmarks() const member functions
2022-02-08 21:08:23 +01:00
Kelson
e1472b2a47
Merge pull request #783 from kiwix/fix_windows_contentmanager
Fix contentmanager/mainWindow initialisation on windows.
2022-02-08 08:46:04 +01:00
Matthieu Gautier
5b49480dd8 Set the fullscreen border after the windows is shown.
`windowHandle` return a valid value only if the widget has been shown.
So we must use it *after* it is shown, not at the end of its construction.

This subtle change also avoid a early return in the MainWindow constructor
and so, we correctly configure the mainWindow on Windows.
The last configuration is setting the content manager of the content manager
side. If this is skip, kiwix-desktop crash as soon as we click on "All files"
as we use a uninitialized pointer.
2022-02-07 17:09:24 +01:00
translatewiki.net
09db2a7a63
Localisation updates from https://translatewiki.net. (#778) 2022-02-03 15:41:25 +01:00
Kelson
88fa528d5b
Merge pull request #773 from xvitaly/fix-svg
Fixed SVG icon installation
2022-02-03 09:56:03 +01:00
Vitaly Zaitsev
e9855d7aeb
Fixed SVG icon installation.
Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>
2022-02-02 18:47:40 +01:00
Kelson
1c70f375de
Merge pull request #779 from kiwix/legoktm-patch-1
PPA: Remove Ubuntu Hirsute, EOL
2022-02-01 08:28:48 +01:00
Kunal Mehta
c6b9acc87e
PPA: Remove Ubuntu Hirsute, EOL 2022-01-31 23:14:36 -08:00
Kelson
fe01853f3f
Merge pull request #751 from kiwix/540-part2-dont-emit-tabbar-signal-from-zimview
Part 2 to fix #540: don't emit tabbar signal from zimview
2022-01-31 09:07:53 +01:00
Alexander Sashnov
921615c970 Localize MainWindow inner-children connections
Move 'connect()' call from KiwixApp to MainWindow
because MainWindow should be responsible for connecting
its children between each other.
2022-01-29 02:50:02 +07:00
Alexander Sashnov
fd90eb8fe1 Drop 'KiwixApp::currentTitleChanged()' signal
When TabBar emits currentTitleChanged(), its only affects
other children of MainWindow: TopWidget and SearchBar.

So it makes the code more manageble if this knowledge
is local to MainWindow only.
2022-01-29 02:50:02 +07:00
Alexander Sashnov
60571e685d Drop extra '#include' 2022-01-29 02:49:56 +07:00
Alexander Sashnov
bba53bc098 Don't emit TabBar's signal from outside
According to Qt QObject manual only an QObject itself should emit
their signal, indicating its internal state has changed.
Calling emit on others' signal is a bad practice.

References: #540
2022-01-29 02:49:29 +07:00
Alexander Sashnov
73470864b2 Make 'TabBar::onCurrentChanged()' slot private 2022-01-29 02:49:29 +07:00
Alexander Sashnov
5e7b856f72 Drop redundant Kiwixapp::mp_tabWidget pointer
No need to story what can be easily get.
2022-01-29 02:49:15 +07:00
Kelson
6ac401c1f0
Merge pull request #772 from kiwix/translatewiki 2022-01-27 22:18:31 +01:00
translatewiki.net
947781ccbc Localisation updates from https://translatewiki.net. 2022-01-27 13:05:42 +01:00
Kelson
f17932080e
Merge pull request #771 from kiwix/legoktm-patch-1 2022-01-24 06:43:04 +01:00
Kunal Mehta
64b530ec65
PPA: Fix libkiwix-dev dependency
Our libkiwix packages are "10.0.0~focal" but the ~ means that "10.0.0" is greater than
"10.0.0~focal" so the dependency can't be satisfied. Depending on "10.0.0~" will
allow "10.0.0~focal" to satisfy the dependency.
2022-01-23 20:32:35 -08:00
Kelson
979e76a5a9
Merge pull request #769 from kiwix/countFix
Use count = -1 for displaying all books
2022-01-21 18:05:56 +01:00
Nikhil Tanwar
93310c65b2 Use count = -1 for displaying all books
This changes count from 0 to -1 due to recent changes in libkiwix.
2022-01-21 20:34:46 +05:30
Kelson
4de240fc5e
Merge pull request #768 from amire80/open
Fix verb tense in an English message
2022-01-21 14:58:24 +01:00
Amir E. Aharoni
6f53261e77 Fix verb tense in an English message 2022-01-21 13:23:26 +02:00
Matthieu Gautier
2a612422e7
Merge pull request #766 from kiwix/version_2.1.0 2.1.0 2022-01-20 14:53:20 +01:00
Matthieu Gautier
8dc1984f0b Check for the version of kiwix and libzim. 2022-01-20 14:38:59 +01:00
Matthieu Gautier
7f5fe877f9 New version 2.1.0 2022-01-20 14:38:59 +01:00
Matthieu Gautier
28422b5159 Update resources/translations.qrc 2022-01-20 14:38:59 +01:00
Matthieu Gautier
9bfc411cdf Make generation script always use relative path in the qrc file. 2022-01-20 14:38:59 +01:00
Kelson
3f2f750109
Merge pull request #767 from kiwix/translatewiki
Localisation updates from https://translatewiki.net.
2022-01-20 13:16:33 +01:00
translatewiki.net
2e2c519d9c Localisation updates from https://translatewiki.net. 2022-01-20 13:05:49 +01:00
Matthieu Gautier
fe588daf86
Merge pull request #760 from kiwix/fileHandle 2022-01-19 20:45:47 +01:00
Nikhil Tanwar
90afbf3f92 Update showMessage()
This removes the previous default error message.
KiwixApp::showMessage() now accepts title, text and MessageBox icon
2022-01-19 20:08:06 +01:00
Nikhil Tanwar
f14d633fd3 Add check to not open zim file (from command line arguments) if it is invalid 2022-01-19 20:08:06 +01:00
Nikhil Tanwar
60effd4c84 Add exception handling for book modification while kiwix-desktop is running
A message box is shown if the file couldn't be opened and the entry is removed from library.
2022-01-19 20:08:06 +01:00
Kelson
8107d2267a
Merge pull request #765 from kiwix/settingsFix
Emit TabBar::libraryPageDisplayed(false) when creating settings view
2022-01-17 09:52:16 +01:00
Nikhil Tanwar
d5f5c66528 Emit TabBar::libraryPageDisplayed(false) when creating settings view 2022-01-17 13:43:52 +05:30