1075 Commits

Author SHA1 Message Date
Nikhil Tanwar
3f72af494e updateDownloadInfos now returns a map
updateDownloadInfos will now return a map - QMap<QString, QVariant> - same as getBookInfos.
This helps to easier get the required fields
2023-07-28 17:13:57 +05:30
Nikhil Tanwar
20f082f73b Search books function
Added a search book function in the library
2023-07-28 17:13:56 +05:30
Nikhil Tanwar
24117ea581 Context menu for book rows on right click
Added a menu on right click to show options.
Current actions supported:
1. Open Book (if the library is showing local files)
2. Download Book (if the library is showing remote files)
3. Delete Book
2023-07-28 17:09:10 +05:30
Nikhil Tanwar
d95347fc88 Styles for headers
Added new styles for headers
2023-07-28 17:08:33 +05:30
Nikhil Tanwar
5f4e7f95b8 Implement sorting
The books can now be sorted by clicking the headers.
2023-07-28 17:07:06 +05:30
Nikhil Tanwar
9e5f187f9e Implemented dynamic row adding
The view only adds as many rows as they can be displayed now.
Only scrolling, it adds more
2023-07-28 17:05:49 +05:30
Nikhil Tanwar
b0e3bf8daf Icon is now displayed
Used delegate to display the icon
If the icon is not available, icons/placeholder-icon.png is displayed
2023-07-28 17:05:42 +05:30
Nikhil Tanwar
1f33d86340 Delegate for ContentManagerView
Added a new delegate to style the view.
Added the following things:
1. Button styling and click to open book
2. Increased size of rows
2023-07-28 17:03:11 +05:30
Nikhil Tanwar
bddda5cb2b Description field in view
Added the description field in the view. It is shown when the expand button is pressed.
Fixed widths for all columns except Name, which takes up the remaining space.
2023-07-24 13:24:17 +05:30
Nikhil Tanwar
f968a24adc Real book data in library
Adds the book data from library
2023-07-24 13:24:16 +05:30
Nikhil Tanwar
e5c8a31ec0 Basic model implemented for TreeView
This implements a basic model for QTreeModel
Currently, it only shows 1 row with some random data.
In future commits, data from ContentManager::getBookInfos will be taken
2023-07-24 13:24:16 +05:30
Nikhil Tanwar
3c69c1a5c1 getBookInfos now returns a map
getBookInfos will now return a QMap<QString, QVariant>
This will be used to get book data based on key in the TreeView model
2023-07-24 13:24:15 +05:30
Nikhil Tanwar
8f61b418f9 Replace QWebEngineView with QTreeView for ContentManagerView
We'll be using a QTreeView to display elements of the library.
2023-07-24 13:24:15 +05:30
Kelson
d9d06eaf71
Merge pull request #955 from kiwix/settingsViewRandomIconGrey
Disable random article in settings view
2023-07-22 10:49:59 +02:00
Nikhil Tanwar
bf4a0ed809 Add enums to identify tabs
kiwix-desktop didn't acknowledge the different types of tabs available earlier.
These enums provide a way to handle and customize the state of app's different elements based on tab content.
2023-07-20 15:00:01 +05:30
Matthieu Gautier
878c72bbcf
Merge pull request #962 from kiwix/mainWindowTitle 2023-07-17 11:45:38 +02:00
Nikhil Tanwar
017218478b Change MainWindow title to Kiwix
This should remove the brief "Main Window" title
2023-07-14 19:19:39 +05:30
Kelson
ac9b31f01e
Merge pull request #953 from kiwix/remove-bionic
Remove Ubuntu Bionic from CI/CD
2023-07-03 07:15:32 +02:00
Emmanuel Engelhart
9445197881
Use action to checkout the code 2023-07-03 06:46:45 +02:00
Emmanuel Engelhart
1a53ad6844
Use fix Ubuntu 22.04 as base for CI/CD 2023-07-03 06:36:09 +02:00
Emmanuel Engelhart
b67551aad7
Better events to trigger CI/CD 2023-07-03 06:32:55 +02:00
Emmanuel Engelhart
8f6de45e3b
Use latest version of compilation container image 2023-07-03 06:24:56 +02:00
Emmanuel Engelhart
2f4a6313fd
Compile using Ubuntu 20.04 image 2023-07-03 06:20:39 +02:00
Emmanuel Engelhart
16c406303c
Remove Ubuntu Bionic from CI/CD 2023-07-03 06:11:59 +02:00
Kelson
adad44aced
Merge pull request #931 from kiwix/translatewiki 2023-05-08 16:35:53 +02:00
translatewiki.net
4806963716 Localisation updates from https://translatewiki.net. 2023-05-08 13:10:46 +02:00
Matthieu Gautier
f7eaee72f9
Merge pull request #936 from kiwix/deprecatedFunc 2023-04-19 15:38:39 +02:00
Nikhil Tanwar
fe7e7b8fb8 Remove unnecessary keys in contentmanager
The removed keys aren't used by the JS script, removed.
2023-04-18 19:13:53 +05:30
Kelson
064bfb0334
Merge pull request #932 from xvitaly/envqt
Switched to Qt-native qEnvironmentVariableIsSet for checking env
2023-04-17 16:25:12 +02:00
Vitaly Zaitsev
5faf68bd01
Switched to Qt-native qEnvironmentVariableIsSet for checking env. 2023-04-16 11:42:42 +02:00
Kelson
4e51485f8e
Merge pull request #927 from kiwix/translatewiki
Localisation updates from https://translatewiki.net.
2023-03-31 06:05:50 +02:00
translatewiki.net
66489bf88e Localisation updates from https://translatewiki.net. 2023-03-31 06:05:13 +02:00
Kelson
adee61e2e6
Merge pull request #928 from kiwix/randomIconOnTop
Add random icon on top widget
2023-03-30 15:19:25 +02:00
Nikhil Tanwar
76db3240ce Disable random icon on library page
The random article icon doesn't make sense on the library page. This change disables it making it greyed out.
2023-03-30 18:03:35 +05:30
Nikhil Tanwar
67ee5cf572 Add random icon on top widget
Added RandomArticleAction in topwidget for moving to random pages easily.
2023-03-30 18:03:35 +05:30
Kelson
04a4b4b179
Merge pull request #929 from kiwix/ci-container-images-36
Bump-up version of CI containers to v36
2023-03-16 17:32:09 +01:00
Emmanuel Engelhart
804cdfdf27
Bump-up version of CI containers to v36 2023-03-16 17:25:18 +01:00
Veloman Yunkan
575fa9dd4a
Merge pull request #925 from kiwix/translatewiki
Localisation updates from https://translatewiki.net.
2023-02-27 15:33:13 +04:00
translatewiki.net
b4629becd3 Localisation updates from https://translatewiki.net. 2023-02-23 13:06:29 +01:00
Matthieu Gautier
17bf416f43
Merge pull request #923 from kiwix/translatewiki 2023-02-21 18:39:49 +01:00
translatewiki.net
89a422f2fa Localisation updates from https://translatewiki.net. 2023-02-20 13:06:54 +01:00
Matthieu Gautier
8990f77c6d
Merge pull request #922 from kiwix/no_impish 2023-02-09 11:05:16 +01:00
Matthieu Gautier
0266810963 PPA: Dop impish, Add kinetic 2023-02-09 10:28:14 +01:00
Matthieu Gautier
3b3bbfa272
Merge pull request #921 from kiwix/fix_download_compilation 2023-02-09 10:24:40 +01:00
Matthieu Gautier
1b322d8f01 With last version of libkiwix, Downloader now return shared_ptr<Download>. 2023-02-09 10:13:32 +01:00
Kelson
3c50eee9eb
Merge pull request #909 from kiwix/translatewiki
Localisation updates from https://translatewiki.net.
2023-02-06 15:08:20 +01:00
translatewiki.net
4a81c9ea8d Localisation updates from https://translatewiki.net. 2023-02-06 13:07:51 +01:00
Kelson
6c0fcd7e02
Merge pull request #920 from kiwix/update-workflow-actions
Update GitHub workflow actions
2023-02-05 11:32:50 +01:00
Emmanuel Engelhart
f6401465e1
Update GitHub workflow actions 2023-02-05 11:25:33 +01:00
Kelson
8d744832fa
"main" is the new git default branch 2022-12-27 14:20:59 +01:00