1519 Commits

Author SHA1 Message Date
ShaopengLin
cc81532d76 MultiZim Select-All Button Key Press Compatible
QCheckbox does not provide support out of the box for key press checking.
2024-11-03 11:58:19 -05:00
ShaopengLin
fdfd0efca0 Introduce Select All Button to MultiZim 2024-11-03 11:54:36 -05:00
ShaopengLin
7fe06f5738 Allow Search On Any Tab.
With MultiZim, searching on library, settings, and blank tabs are reasonable.
2024-11-03 11:44:57 -05:00
ShaopengLin
80743cb11d Proper Elide for MultiZim List
Add Custom elide marker
2024-11-03 11:44:57 -05:00
ShaopengLin
a5c4ed135b Introduce getElidedText() in suggestionlistdelegate.cpp
Helper function to retrieve text content that can fit inside a length given a custom "(...)" elide.
2024-11-03 11:44:57 -05:00
ShaopengLin
e3b0efeaa1 Proper Styling for MultiZim List 2024-11-03 11:44:57 -05:00
ShaopengLin
3c1753e4fe Proper MultiZim List Sizing
Set height&padding for list&items and stretch to menu width.
2024-11-03 11:44:57 -05:00
ShaopengLin
80ea956626 Check MultiZim Item When Clicking Anywhere
Previously only checks when clicking Radiobutton
2024-11-03 11:44:57 -05:00
ShaopengLin
02f7b99f9e MultiZim Auto-Select Current Zim 2024-11-03 11:44:57 -05:00
ShaopengLin
4813de2c16 LineEdit Should PopupFocus
Missing this reason cause completer to do nothing
2024-11-03 11:44:57 -05:00
ShaopengLin
125d497aa5 Introduce ZimItemWidget to Delegate Item Display
Decouple complex item creation from button. Used later for styling.
2024-11-03 11:44:57 -05:00
ShaopengLin
85bbd91216 Introduce KiwixApp::OpenMultiZimAction
Shortcut and Icon for MultiZim. Since window is popup, toggle is not possible.
2024-11-03 11:44:51 -05:00
ShaopengLin
f5e8f22eac Introduce MultiZim Search Button
User can search zim other than the current tab.
2024-11-03 11:36:11 -05:00
Kelson
d8b05aedbb
Merge pull request #1231 from kiwix/Bugfix-save-page-incorrect-cancel
BugFix: HTML Web Page incorrect behavior when canceling save page actions
2024-10-30 20:47:15 +01:00
ShaopengLin
3ebaaaa49c Move Save HTML Page to WebView::saveViewContent
Due to Qt bug, WebPage::save() cannot be cancelled by the download object in KProfile::startDownload. Mimetype checking and pdf printing moved to be processed independently.
2024-10-30 15:44:04 -04:00
ShaopengLin
901aac87c7 Introduce askForSaveFilePath in kprofile.cpp
Refactor file name retrieval.
2024-10-30 15:29:14 -04:00
ShaopengLin
018056ca22 Introduce isHTMLContent in webview.cpp
Refactor the way to determine Zim MimeType.
2024-10-30 15:29:14 -04:00
ShaopengLin
02463cc3ca Introduce getZimItem in WebView.cpp
Refactor the way to get item from url.
2024-10-30 15:29:14 -04:00
Kelson
0585c34a7e
Merge pull request #1189 from kiwix/Issue#413-search-UI-improvement
Implement Fine-Tuned Zim Search
2024-10-28 19:46:53 +01:00
ShaopengLin
c3f4a1e041 Custom Elide for Suggestion List Text
Qt painting also doesn't have elide support.
2024-10-25 12:11:13 -04:00
ShaopengLin
134be31c67 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-25 12:11:13 -04:00
ShaopengLin
32803df471 Fix Qt6 Compilation Failure.
Since Qt6, forward declaration doesn't work for QList template.
2024-10-25 12:11:13 -04:00
ShaopengLin
42bd6d6136 Proper Hover Style to Suggestion Items 2024-10-25 12:11:13 -04:00
ShaopengLin
da1faa6b24 Proper Size for Suggestion View
Header&Row evenly spread with fixed height.
2024-10-25 12:11:13 -04:00
ShaopengLin
4132cb0dde Align Search Suggestion with Line Edit 2024-10-25 12:10:43 -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