1106 Commits

Author SHA1 Message Date
translatewiki.net
9d036d241d Localisation updates from https://translatewiki.net. 2023-11-23 13:09:29 +01:00
Kelson
39d723d370
Merge pull request #1012 from kiwix/requires-libkiwix-13
Requires libkiwix13
2023-11-19 14:34:44 +01:00
Emmanuel Engelhart
aeaa570786
Requires libkiwix13 2023-11-19 14:26:34 +01:00
Kelson
d5ce9b4253
Merge pull request #1004 from kiwix/translatewiki
Localisation updates from https://translatewiki.net.
2023-11-17 13:47:50 +01:00
translatewiki.net
dcea97676c Localisation updates from https://translatewiki.net. 2023-11-16 13:08:37 +01:00
Matthieu Gautier
b6a2f136fa
Merge pull request #1002 from kiwix/translatewiki 2023-10-24 14:13:10 +02:00
Matthieu Gautier
22f9223f08 Add new translations into resource file. 2023-10-24 14:12:54 +02:00
translatewiki.net
47cacee212 Localisation updates from https://translatewiki.net. 2023-10-23 13:10:05 +02:00
Matthieu Gautier
d721eea9d1
Merge pull request #992 from kiwix/adapt_libkiwix_991 2023-10-12 18:07:06 +02:00
Matthieu Gautier
238bd534a4 SearchRenderer now take the NameMapper on the getHtml method. 2023-10-06 11:47:47 +02:00
Matthieu Gautier
ab80463b58 Adapt to new api introduced in kiwix/libkiwix#991 2023-10-06 11:45:14 +02:00
Kelson
8eb9dc8e51
Merge pull request #991 from kiwix/translatewiki
Localisation updates from https://translatewiki.net.
2023-10-04 19:00:50 +02:00
translatewiki.net
4198b00ad7 Localisation updates from https://translatewiki.net. 2023-10-04 18:54:38 +02:00
Matthieu Gautier
a0931f81a9
Merge pull request #965 from kiwix/betterFilters 2023-10-04 17:48:52 +02:00
Nikhil Tanwar
f61635e7ca Save filter settings with their keys
Now, the filter settings (language, category and content type) are saved as:
keys|values in QSettings.
2023-10-04 16:53:04 +02:00
Nikhil Tanwar
d2a6098eca Introduce KiwixApp::parseStyleFromFile()
This change adds a new function parseStyleFromFile(QString filePath)
It takes a file path, reads it and returns the string
2023-10-04 16:53:04 +02:00
Nikhil Tanwar
a50f1e73be Keep selected values when changing catalog
If a filter which is available in remote catalog but not in local catalog (or vice versa) is selected, then we keep that filter applied even after the catalog is switched.
2023-10-04 16:53:04 +02:00
Nikhil Tanwar
cadac0a1e9 Use empty string to signify no filter values consistently
Earlier we used, "*" to signify all languages and "all" for all categories. This change removes these inconsistencies.
Now, if the filter value is empty, it should signify that no filter is set (show all values)
2023-10-04 16:53:04 +02:00
Nikhil Tanwar
3c16f795d4 Increase searcher width based on entered text
The searcher doesn't have a predefined width now. It increases based on text entered.
2023-10-04 16:53:04 +02:00
Nikhil Tanwar
1c5bb8345e Don't set focus/show options menu if choiceItem is clicked 2023-10-04 16:53:04 +02:00
Nikhil Tanwar
fce5b004b4 Put newly selected item on top of options menu
When a new item is selected, it is not kept on top of options menu
2023-10-04 16:53:04 +02:00
Nikhil Tanwar
877352d3bd Cosmetic changes related to showing options menu
Options menu shows up on pressing down arrow
Clicking kiwixchoicebox when options is shown doesn't result in flashing now
Display placeholder only if there are no options selected.
2023-10-04 16:53:04 +02:00
Nikhil Tanwar
907a225abd Move Search-files between Local-files and language filter
This change puts the file-search option after Catalog buttons (Online and local files) putting all filters on catalog in one place.
First suggested in https://github.com/kiwix/kiwix-desktop/pull/965#pullrequestreview-1585813810
2023-10-04 16:53:04 +02:00
Nikhil Tanwar
00392aebfd Minor style fixes
Fixed the height of selector to show 6 elements maximum
Reduced distance between filters
Increased margin between choiceItem and container box
All of the choicebox is now clickable and shows up the list on click
2023-10-04 16:53:04 +02:00
Nikhil Tanwar
b3a0542ba7 Navigate through choices using up,down keys
This change allows one to navigate through the choices using up and down arrow keys from keyboard
Enter/Return key can be pressed to select the current item
2023-10-04 16:53:04 +02:00
Nikhil Tanwar
146705ba93 Content type now uses KiwixChoiceBox
Replaced the old content type filters with KiwixChoiceBox
Previously, the content type was a tri state checkbox having yes, no & no-filter values.
This changes that to add the values in the following format:
Pictures (_pictures:yes)
No Pictures (_pictures:no)

"no-filter" is simulated by not having any of the above 2 selected.
2023-10-04 16:53:04 +02:00
Nikhil Tanwar
ccf1e505a1 Remember language and category values
Language and category values are now a setting
2023-10-04 16:53:04 +02:00
Nikhil Tanwar
fd371d2a47 Add styles for KiwixChoiceBox
Added styles for KiwixChoiceBox to make it match the model.
Also moved everything in contentmanagerside more to the left.
2023-10-04 16:53:04 +02:00
Nikhil Tanwar
bca0bb3a7a Multiple category support
This removes the previous method of filtering books by category, which filtered using tags.
Now, we move to a more generic way (similar to library) using the category filter.
2023-10-04 16:53:04 +02:00
Nikhil Tanwar
22aa0ec56a Categories and Languages now use KiwixChoiceBox
Replaced the old Categories and Languages with KiwixChoiceBox
2023-10-04 16:53:04 +02:00
Nikhil Tanwar
e6cb442dc6 New widget: KiwixChoiceBox
This change adds a new widget called KiwixChoiceBox
The design inspiration is taken from here: https://harvesthq.github.io/chosen/#multiple-select
setType() takes a string to put on the label
We can add possible choices using the setSelections() method
2023-10-04 16:53:04 +02:00
Matthieu Gautier
e745bde15f
Merge pull request #994 from kiwix/cpp17 2023-09-29 11:45:06 +02:00
Matthieu Gautier
fd46760c27 Move to c++17.
All our compilers should handle c++17. Let's move on.
2023-09-29 10:45:39 +02:00
Matthieu Gautier
81593431cf
Merge pull request #989 from kiwix/autoOnline 2023-09-11 13:49:17 +02:00
Nikhil Tanwar
ad1648a157 On Startup: switch to online files if there are no local files
This change is only concerned with the startup behaviour. We switch to remote catalog if there no local files.
2023-09-11 16:15:57 +05:30
Kelson
7557378250
Merge pull request #979 from kiwix/translatewiki
Localisation updates from https://translatewiki.net.
2023-08-18 10:37:09 +08:00
translatewiki.net
2329b56547 Localisation updates from https://translatewiki.net. 2023-08-17 13:10:25 +02:00
Kelson
d76c97843a
Merge pull request #986 from kiwix/fixed-help-grammar
Update en.json grammar
2023-08-12 11:09:38 +02:00
Alistair Findlay
59381901c8
Update en.json grammar 2023-08-12 11:03:41 +02:00
Kelson
1ad4a72d0c
Merge pull request #963 from kiwix/moveToTrash
Deleting files move them to trash
2023-08-11 20:08:43 +02:00
Nikhil Tanwar
e7dc33a336 Remove moveToTrash feature for QT versions pre 5.15
The settings entry is hidden when the QT version is not supported
The file is always permanently deleted - dialog box indicates this.
2023-08-11 22:04:52 +05:30
Nikhil Tanwar
5ee18f1b40 Always monitor download directory
This change puts download directory in an always monitoring state.
For any files downloaded using kiwix downloader (and hence saved in download directory), this will automatically update the library if file is restored after deletion.
2023-08-11 22:04:52 +05:30
Nikhil Tanwar
ea5173706b Allow user to choose between deleting permanently or moving to trash
Added functionality to delete files to trash or deleting them permanently.
2023-08-11 22:04:52 +05:30
Nikhil Tanwar
0f24892294 New settings entry: Move files to trash
Added a new settings entry to toggle if deleted files should move to trash/recycle bin.
2023-08-11 22:04:52 +05:30
Kelson
95fd133ef0
Merge pull request #981 from kiwix/ctrlW
Fix CloseTab related weakness
2023-08-10 15:08:02 +02:00
Nikhil Tanwar
a6fbf6d10d Get currentIndex from stackedWidget while closing
Earlier, we got the index from cursor's position this led to the close functionality to only work when cursor is hovered over tab title
We get the index straight from the stacked widget now.
2023-08-09 20:33:30 +02:00
Nikhil Tanwar
59d1ff759b Explicitly put Ctrl+F4 and Ctrl+W as shortcuts to close tab
Earlier, we used the Qt::Close key sequence but it's not following what other browswers do
On windows, Close button was mapped to Ctrl+f4 and ctrl+W
but on Gnome and KDE, it was only mapped to Ctrl+W
This change puts Ctrl+F4 and Ctrl+W explicitly as shortcuts to close tab.
2023-08-09 20:33:30 +02:00
Kelson
eda055597e
Merge pull request #980 from kiwix/renameFilters
Rename "All files" to "Online files"
2023-08-09 20:32:47 +02:00
Nikhil Tanwar
1eb87c522d Rename "All files" to "Online files"
Changed the name of all files filter to online files.
2023-08-08 10:21:14 +05:30
Matthieu Gautier
5f349cb79f
Merge pull request #942 from kiwix/translatewiki 2023-08-04 11:08:33 +02:00