1504 Commits

Author SHA1 Message Date
Veloman Yunkan
e28a761c64 fixup! Another way of positioning suggestion icon & text 2024-10-24 21:57:01 +04:00
Veloman Yunkan
b4a13a7bc0 Another way of positioning suggestion icon & text
The problem with this is approach is its effect on the header of the
suggestion list - the model data is now considered to be composed of
two columns and there is no way to make the header span all columns.
2024-10-24 21:13:27 +04:00
Veloman Yunkan
aa4ce594b8 Revert "Custom Paint Suggestion Icon&Text Spacing"
This reverts commit 651c88be9f3bbcb30708c48138e7842a5ff46493.
2024-10-24 21:13:04 +04:00
Veloman Yunkan
f5dac7fa3f Revert "Custom Elide for Suggestion List Text"
This reverts commit 8246c5c2c5d35deaf7265a225f98ec769638a42a.
2024-10-24 21:12:54 +04:00
ShaopengLin
8246c5c2c5 Custom Elide for Suggestion List Text
Qt painting also doesn't have elide support.
2024-10-23 16:29:19 -04:00
ShaopengLin
651c88be9f Custom Paint Suggestion Icon&Text Spacing
Qt does not provide css style or API for modifying icon and text spacing in QTreeView. This is a long issue in buttons as well, as Qt draws icon and texts instead of having them as widgets that can be applied styles.
2024-10-23 16:29:17 -04:00
ShaopengLin
119f09e3df Fix Qt6 Compilation Failure.
Since Qt6, forward declaration doesn't work for QList template.
2024-10-23 16:28:58 -04:00
ShaopengLin
4a1881586a Proper Hover Style to Suggestion Items 2024-10-23 16:28:58 -04:00
ShaopengLin
357e4dbad0 Proper Size for Suggestion View
Header&Row evenly spread with fixed height.
2024-10-23 16:28:52 -04:00
ShaopengLin
5a6f2b27c8 Align Search Suggestion with Line Edit 2024-10-23 16:20:22 -04:00
ShaopengLin
d80ba1f012 Consistent Left&Right Margin for SearchBar 2024-10-23 15:43:20 -04:00
ShaopengLin
de76432f7d Enter KiwixApp::getSearchBar()
Refactor to reduce getter chaining length
2024-10-23 15:43:03 -04:00
ShaopengLin
c5f4c4df88 Introduce src/css_constants.h
Effort to reduce css value dependency
2024-10-23 15:42:13 -04:00
Kelson
adfd924a28
Merge pull request #1222 from kiwix/translatewiki
Localisation updates from https://translatewiki.net.
2024-10-21 23:11:47 +02:00
translatewiki.net
f824aab850 Localisation updates from https://translatewiki.net. 2024-10-21 20:42:02 +02:00
Kelson
c6ea91fc9a
Merge pull request #1224 from kiwix/Issue#413-endless-search-suggestuon
Implement Endless Zim Search Suggestions
2024-10-21 20:41:05 +02:00
ShaopengLin
9982a22df7 Fix Suggestion Flickering when Typing
setCompleter call setCompletionPrefix on typing which flicker
2024-10-21 14:16:15 -04:00
ShaopengLin
ec39c09979 BugFix openCompletion Connected Multiple Times
Focus event can happen more than once.
2024-10-21 14:16:15 -04:00
ShaopengLin
2fabf3b065 Replace m_completer.popup() with m_suggestionView 2024-10-21 14:16:15 -04:00
ShaopengLin
ff50e9d870 Introduce Kiwix Search Header 2024-10-21 14:16:15 -04:00
ShaopengLin
951917f14d Make First Row Visible on Suggestion Popup
Before, view scroll to row based on prefix match
2024-10-21 14:16:15 -04:00
ShaopengLin
a59aacbc47 Fetch Only When More Suggesion Exist 2024-10-21 14:16:15 -04:00
ShaopengLin
ca2021e56f Correctly handle Endless w/Fulltext
Fetch offset and model removal requires this.
2024-10-21 14:16:15 -04:00
ShaopengLin
f44ab97c69 Endless Suggestion Key Scrolling compatible
Down/Page_Down Key press correctly fetches.
2024-10-21 14:16:15 -04:00
ShaopengLin
d22a922b5b Introduce Endless Suggestions
Trigger on scroll.
2024-10-21 14:16:15 -04:00
ShaopengLin
f1bcd41e17 Refactor Launching SuggestionListWorker
Automatically determine start and allow custom callback. Prepare for endless
2024-10-21 14:16:15 -04:00
ShaopengLin
1ef77f8d84 Refactor SuggestionListWorker
Add offset and fetch size, prepare for endless.
2024-10-21 14:16:15 -04:00
ShaopengLin
19bc4960df Add Suggestion Icon Decoration Role 2024-10-21 14:16:15 -04:00
ShaopengLin
6130dd6424 Enter Library::getBookIcon()
Refactor to simplify book icon retrieval
2024-10-21 14:16:15 -04:00
ShaopengLin
14bfad65a1 Introduce SearchBarLineEdit::getDefaultSuggestionIndex
Remove unecessary checks and prevent misuse if openCompletion.
2024-10-21 14:16:15 -04:00
ShaopengLin
8d3d5ecb88 Remove redundant openCompletion(str, int)
Data required can be retrieved from model.
2024-10-21 14:16:15 -04:00
ShaopengLin
8f3d97fce0 Move SearchBarLineEdit urlList to SuggestionListModel
More cohesive design to utilize new model's index data.
2024-10-21 14:16:15 -04:00
ShaopengLin
6e1e0b8c60 Introduce suggestionlistmodel.{h, cpp}
Allow future customizing of suggestions.
2024-10-21 14:16:15 -04:00
Kelson
bdae5456c1
Merge pull request #1221 from kiwix/feature/server-ipv6-support
Add ipv6 support to local server
2024-10-20 15:42:35 +02:00
sgourdas
f2bbdd6c87 Exclude link local ips from local server 2024-10-20 14:42:43 +03:00
sgourdas
645f4ef53c Add ipv6 support to server 2024-10-20 14:42:41 +03:00
Kelson
b2c7e94cf0
Merge pull request #1220 from kiwix/feature/libkiwix-sync
Add support for new getBestPublicIp
2024-09-29 13:49:45 +00:00
sgourdas
72d4356ac1 Add support for new getBestPublicIp 2024-09-29 12:25:27 +03:00
Kelson
3a82b9b145
Merge pull request #1207 from kiwix/translatewiki
Localisation updates from https://translatewiki.net.
2024-09-27 07:42:24 +00:00
translatewiki.net
aa2ad91bc1
Localisation updates from https://translatewiki.net. 2024-09-26 14:07:49 +02:00
Kelson
13bbd77e59
Merge pull request #1215 from kiwix/feature/network-popup
Fix network share launch popup
2024-09-23 16:53:27 +00:00
sgourdas
10f3f5cfbb Fix network share launch popup 2024-09-23 16:46:28 +00:00
Kelson
b566d87aa4
Merge pull request #1213 from kiwix/kiwix2libkiwix_transition
libkiwix now identifies itself as libkiwix
2024-09-23 16:42:27 +00:00
Veloman Yunkan
482e4c6dfd Fixed CI build
In CI build, dependencies are put in the build install location rather than
in the system libs directory, hence that path must be included in the
search for shared libraries.

The problem seems to have been triggered by recent change in the
libkiwix.pc pkg-config file which resulted in the version of some
of libkiwix dependencies (recorded in libkiwix.so) being bumped up.
As a result, previous/older versions of those dependencies embedded in
the CI build docker image
(ghcr.io/kiwix/kiwix-build_ci_focal:2024-06-03) no longer matched the
requirements of libkiwix.so, whereas the up-to-date versions of those
dependencies (that are downloaded during each build procedure) were not
used because they were not in the search path.
2024-09-23 17:59:13 +04:00
Veloman Yunkan
268363f2fd libkiwix now identifies itself as libkiwix 2024-09-23 17:59:13 +04:00
Kelson
7f039ee7ab
Merge pull request #1209 from kiwix/feature/simplify-usb
Monitor data directory on portable mode
2024-09-17 13:32:37 +00:00
sgourdas
adc5c9c441 Portable download & monitor settings immutable 2024-09-17 13:26:22 +00:00
sgourdas
eabb12ff27 Monitor data directory on portable mode 2024-09-17 13:26:22 +00:00
Kelson
082327cfa7
Merge pull request #1208 from kiwix/feature/library-ignore-executable
Stop library from prioritizing executable directory
2024-09-17 13:25:09 +00:00
sgourdas
4bb69389aa Stop library from prioritizing executable dir 2024-09-17 13:15:49 +00:00