Nikhil Tanwar
bf1c317f10
Split view nodes into RowNode and DescriptionNode
...
Splitted the views into RowNode and DescriptionNode for consistency
RowNode represents one row with thumbnail, name, data, size, etc.
DescriptionNode shows the description
2023-07-31 20:03:56 +05:30
Nikhil Tanwar
75132af396
Move searcher to filter area
...
The search function is now moved to filters area for more consistency
Fix #554
2023-07-31 20:00:54 +05:30
Nikhil Tanwar
512af3cdc2
Show dialog box when storage isn't available for download
...
Shows a dialog box informing the user that the file size is too large to be downloaded on current system.
2023-07-31 20:00:53 +05:30
Nikhil Tanwar
db5b69b034
Generalised confirm box
...
When the confirm box is initialised with isDialog=true, Ok button is showed instead of yes/no
2023-07-31 20:00:53 +05:30
Nikhil Tanwar
797aceebbe
Hide sort indicator for icons column, put it on left for other columns
...
created ContentManagerHeader, inherited from QHeaderView, to implement not showing the sort indicator for first column.
Changed sort indicator position to left of text
2023-07-31 20:00:53 +05:30
Nikhil Tanwar
078dd8ebe4
Open book on double & middle click in library
...
Fix #410
2023-07-31 20:00:53 +05:30
Nikhil Tanwar
d2061a69a5
do remote library update in a different thread
...
Put updateRemoteLibrary in a new thread so it doesn't block the main UI, particularly the loader widget
2023-07-31 20:00:53 +05:30
Nikhil Tanwar
3abb4b4b4c
Loader widget is shown while catalog is being downloaded
...
Added a new widget (KiwixLoader) which is displayed when the catalog is being downloaded.
2023-07-28 17:45:13 +05:30
Nikhil Tanwar
3431fd38da
Minor improvements to view
...
When an item is hovered, colour changes to grey.
Change cursor to HandPointer in treeview
Open book description when item is clicked
Increase description box width
2023-07-28 17:45:12 +05:30
Nikhil Tanwar
d90158b789
Confirmation dialog box for delete book and cancel download
...
Added a new custom dialog box for confirmations.
Currently, it popups when a book is deleted or a download has to be cancelled
2023-07-28 17:43:10 +05:30
Nikhil Tanwar
cb49cb6a1a
Replace library-icon.svg with kiwix logo
...
The designs use kiwix logo as library icon
2023-07-28 17:43:09 +05:30
Nikhil Tanwar
d2d0c18929
Download stats and pause, resume functions
...
Revamped download function as per design guidelines.
While downloading, it shows download speed and completed length along with button to pause
When paused, it shows the button to resume download or cancel it.
2023-07-28 17:43:08 +05:30
Nikhil Tanwar
ff5f022cd6
Icon downloader util for all files view
...
Added an icon downloader to display icons for remote library.
While the icons are being downloaded, a placeholder icon is shown.
2023-07-28 17:41:15 +05:30
Nikhil Tanwar
ef0227b08c
Downloading indicator in book list
...
If a book is downloading, it now shows "Downloading"
2023-07-28 17:13:57 +05:30
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