Commit graph

1147 commits

Author SHA1 Message Date
Xiao Yi Fang b8f49ec3dc opt:mark.js only highlight exact words 2024-08-06 10:34:02 +08:00
xiaoyifang e2617f3b9c
fix: stardict qstring modification (#1708)
* fix:stardict crash
2024-07-25 16:45:34 +08:00
xiaoyifang 3ef35daec3
opt: use static regex (#1706)
* opt: use static regex

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-07-24 16:54:34 +08:00
xiaoyifang cd58059695
fix:QCheckBox signal (#1705)
* fix:QCheckBox signal

* fix:QCheckBox signal
2024-07-23 17:57:57 +08:00
Xiao Yi Fang 9858455035 fix: stardict crash with access_read_violation 2024-07-19 15:09:47 +08:00
xiaoyifang 06d4b62b67
opt: findtext casesensitivity (#1698)
* opt: reset the selection results

* opt: remove the existed highlight when no match

* [autofix.ci] apply automated fixes

* opt: remove the existed highlight when no match

* opt: remove the existed highlight when no match

* opt: code minor optimization

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-07-18 13:33:49 +08:00
xiaoyifang 5164ffba67
Merge pull request #1697 from xiaoyifang/opt/qset-optimization
opt: before invoke,the parameters have already called reserved()
2024-07-17 15:40:13 +08:00
Xiao Yi Fang d998563709 opt: before invoke,the parameters have already called reserved() 2024-07-17 14:43:37 +08:00
xiaoyifang 5fb4526158
opt: treat invisible character as whitespace (#1696)
* opt: remove invisible character

* opt: remove invisible character

* opt: whitespace and punct character

* [autofix.ci] apply automated fixes

* opt: whitespace and punct character

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-07-17 10:44:50 +08:00
xiaoyifang 521c359b24
opt: do not need to reload webview when initialize dictionaries (#1690)
* opt: do not need to reload webview when initialize dictionaries

During this phase ,the webview has not existed yet
2024-07-17 00:38:27 +00:00
xiaoyifang 99ce0a7bbb
fix: SplitFile thread-safe guard (#1688)
* fix: SplitFile thread-safe guard
* add friendly log message

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-07-16 08:00:17 +00:00
Xiao Yi Fang 7de7a14d66 opt: change the svg to png to suppress qt.svg warning 2024-07-15 15:55:31 +08:00
YiFang Xiao 323395c755 fix:mdx dictionary make issue compatibility 2024-07-10 23:59:34 +08:00
xiaoyifang 029c09633b
Merge pull request #1667 from xiaoyifang/opt/zoomfactor-range
opt: valid zoomfactor range from 0.25 to 5
2024-07-10 18:02:59 +08:00
xiaoyifang dfbdb7cb5f
Merge pull request #1668 from xiaoyifang/opt/remove-xapian-enable-position-option
opt: remove unused option
2024-07-10 18:02:08 +08:00
Xiao Yi Fang 3a0311ad7d opt: remove unused option 2024-07-10 17:27:29 +08:00
Xiao Yi Fang d2f82e9350 opt: valid zoomfactor range from 0.25 to 5 2024-07-10 17:13:12 +08:00
xiaoyifang 0c4483ae02
Revert "opt: remove wasMaximized logic of mainwindow" (#1664)
* Revert "opt: remove wasMaximized logic of mainwindow"

This reverts commit 99c221c854.

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-07-10 16:28:28 +08:00
xiaoyifang 93ca284bad
opt: refactor code (#1657)
* opt: refactor code

* [autofix.ci] apply automated fixes

* opt: refactor code

* opt: refactor code

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-07-10 13:47:53 +08:00
xiaoyifang dcf4ff3dea
Merge pull request #1653 from xiaoyifang/opt/remove-unused
opt: remove unused code
2024-07-09 08:20:12 +08:00
xiaoyifang 7669316bcd
opt: do not show dictionary menu when set the dictionary count=0 (#1652)
* opt: do not show dictionary menu when set the dictionary count=0

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-07-08 17:51:51 +08:00
Xiao Yi Fang 9eece8db28 opt: remove unused code 2024-07-08 17:51:10 +08:00
xiaoyifang 6486e7b57c
opt: unicode direction (#1646)
* opt: unicode direction

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-07-06 21:57:40 +08:00
xiaoyifang c4fa9b44e5
fix: set shortcut context (#1644)
* fix: work around to fix ctrl+F in macos popup
2024-07-06 21:57:18 +08:00
xiaoyifang 6cb7be70ec
Merge pull request #1645 from xiaoyifang/opt/rtl-layout
opt: layout according to the language
2024-07-06 17:56:53 +08:00
xiaoyifang 5780bdbbb1
fix: status bar position (#1643)
* fix: statusbar rarely will be blocked by the webview.
---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-07-06 13:23:22 +08:00
YiFang Xiao 0721a58c01 opt: layout according to the language 2024-07-06 10:51:40 +08:00
xiaoyifang 297795a654
fix: refresh webview when changed darkreader mode (#1641)
* fix: refresh webview when changed darkreader mode

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-07-05 10:55:08 +08:00
xiaoyifang 922b7c39c6
opt: popup focus (#1635)
* opt: windows title

* opt: popup focus

* opt: windows title

* [autofix.ci] apply automated fixes

* opt: popup articleview setting

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-07-05 08:44:36 +08:00
xiaoyifang 7252e7b86e
fix: darkreader mode refresh (#1638)
* fix: refresh webview when changed darkreader mode
2024-07-05 08:44:03 +08:00
Xiao Yi Fang ca4d59b306 fix: mdx title should be respected 2024-07-04 16:27:42 +08:00
Xiao Yi Fang 2053511856 opt: remove explict RTL elide mode settings of text layout 2024-07-03 20:21:47 +08:00
xiaoyifang 932b88f743
opt: dictionarygroup refactor in articleview (#1625)
* opt: refactor dictionary logic to seperate class


---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-07-03 15:16:53 +08:00
Xiao Yi Fang b0fb5d2f87 remove debug log 2024-07-03 11:29:29 +08:00
Xiao Yi Fang 89daa70b6b Revert "clean: remove useless code and refactor"
This reverts commit 3a46dd290b.

the changes is not exactly the same.
close the last tab will cause the windows to create a new blank tab which will fall into infinite loop
2024-07-03 11:29:29 +08:00
xiaoyifang ddb9203e34
fix: full text search navigation panel (#1623)
* fix: full text search navigation panel

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-07-01 22:51:57 +08:00
xiaoyifang d30de48fa8
opt: suppress url title (#1619)
* opt: suppress url title

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-06-27 18:01:15 +08:00
xiaoyifang 08a952205c
opt: remove address sort function as fts indexing does not need this anymore (#1620) 2024-06-27 18:00:31 +08:00
xiaoyifang 585866f92a
fix: fts search ,highlight mark (#1621)
* fix:mark the searched terms

* fix:mark the searched terms

* fix:mark the searched terms
2024-06-27 18:00:06 +08:00
xiaoyifang 15cb327bbd
opt: rewrite keymodifier (#1614)
* opt: rewrite keyboardstate.cc


---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-06-26 15:58:42 +08:00
xiaoyifang c4caec7d68
opt: headwords dialog (#1600)
* opt: headword dialog optimization

Changes:

- when the headword count < 500000(arbitrary number) ,load all at once.
- opt: remove unused signal
-  headword dialog ui add max filter results


---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-06-25 15:24:33 +08:00
xiaoyifang fba8fd2263
Merge pull request #1613 from xiaoyifang/opt/remove-too-old
remove Q_WS_QWS macro
2024-06-24 21:18:47 +08:00
Xiao Yi Fang 9db7b04dd0 remove Q_WS_QWS macro 2024-06-24 16:05:41 +08:00
xiaoyifang c82db14ea7
opt: respect maxResult parameter (#1611)
* opt: respect maxResult parameter

* opt: respect maxResult parameter

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-06-24 13:33:47 +08:00
YiFang Xiao 2b9d17251b fix: articleview mainwindow ,fulltextsearch remove QRegExp 2024-06-23 12:47:41 +08:00
YiFang Xiao 76f9e82a31 fix: dictheadword remove QRegExp 2024-06-23 12:47:41 +08:00
Xiao Yi Fang 6d863d9770 opt: stardict replace QRegExp with QRegularExpression 2024-06-23 12:47:41 +08:00
autofix-ci[bot] fd94f31209 [autofix.ci] apply automated fixes 2024-06-23 12:47:41 +08:00
Xiao Yi Fang a3d7c89563 opt: hunspell replace QRegExp with QRegularExpression 2024-06-23 12:47:41 +08:00
Xiao Yi Fang ff6424a291 opt: xdxf replace QRegExp with QRegularExpression 2024-06-23 12:47:41 +08:00
Xiao Yi Fang f87156d265 opt: stardict replace QRegExp with QRegularExpression 2024-06-23 12:47:41 +08:00
Xiao Yi Fang 2b8e46a03a opt: remove unused qregexp 2024-06-23 12:47:41 +08:00
Xiao Yi Fang 0bd6a6083c opt: remove unused qregexp 2024-06-23 12:47:41 +08:00
autofix-ci[bot] 0f39f076cc
[autofix.ci] apply automated fixes 2024-06-22 09:08:08 +00:00
fixes 280f8a4f52
Update xdxf.cc 2024-06-22 12:27:02 +04:00
xiaoyifang aa8f553b32
Update globalregex.cc 2024-06-22 08:48:17 +08:00
xiaoyifang 21aeb27c15
fix: [mdx]object data html (#1602)
* fix: mdx object data subsitition

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-06-21 21:05:13 +08:00
Xiao Yi Fang a33dbc422e opt: remove webkit specific code 2024-06-21 10:00:52 +08:00
YiFang Xiao 0a8ff8b27b fix: Ctrl+F does not work in scanpopup dialog 2024-06-20 21:27:03 +08:00
shenleban tongying 51ecf09c1d
clean: rename code to code2 in langcoder 2024-06-19 02:20:40 -04:00
shenleban tongying 5c9f67b09c
opt: port away QRegExp in langcoder.cc 2024-06-19 02:10:17 -04:00
shenleban tongying 3a0880fa81 clean: rename LangCoder::findIdsForFilename/findIdsForName/exists 2024-06-18 21:19:18 -04:00
YiFang Xiao 99c221c854 opt: remove wasMaximized logic of mainwindow 2024-06-15 23:09:35 +08:00
xiaoyifang 296251afad
fix: links in webview got focused on default. (#1589)
* fix: links in webview got focused on default.

fix #1581

* fix: links in webview got focused on default.

fix #1581
2024-06-15 21:20:23 +08:00
xiaoyifang ed680f54b3
Merge pull request #1578 from xiaoyifang/opt/page-search-remove-highlight
opt: Ctrl+F page search remove highlight checkbox
2024-06-15 21:19:48 +08:00
xiaoyifang 96f5686173
Merge pull request #1582 from xiaoyifang/opt/activate-windows
opt: remove deprecated method setActiveWindow()
2024-06-15 21:19:30 +08:00
xiaoyifang 47b397276e
Merge pull request #1587 from xiaoyifang/opt/remove-regex-invertedgreedy
opt: remove all the inverted greedy option
2024-06-15 17:55:44 +08:00
xiaoyifang 1195d7e307
Merge pull request #1588 from xiaoyifang/fix/css-global-var
opt: css isolation
2024-06-15 17:55:26 +08:00
autofix-ci[bot] f68f9eb691
[autofix.ci] apply automated fixes 2024-06-15 09:23:13 +00:00
Xiao Yi Fang 5d56515cf6 opt: css isolation 2024-06-15 17:21:44 +08:00
autofix-ci[bot] f15a3ad6a7
[autofix.ci] apply automated fixes 2024-06-15 06:05:23 +00:00
Xiao Yi Fang 422bf9fb74 opt: remove all the inverted greedy option 2024-06-15 14:03:45 +08:00
Xiao Yi Fang 6f6391e5b8 fix: stardict regex invertedgreedy match 2024-06-15 13:45:20 +08:00
YiFang Xiao 5712f63b8e fix: slob truncated file check.
fix #1541
2024-06-14 22:53:45 +08:00
YiFang Xiao 1e37d760e2 fix: slob truncated file check.
fix #1541
2024-06-14 22:53:45 +08:00
xiaoyifang ac8c459e01
Merge pull request #1583 from xiaoyifang/opt/clang-tidy-issues
opt: clean clang tidy issues
2024-06-14 22:53:26 +08:00
YiFang Xiao fb0023abfc opt: clean clang tidy issues 2024-06-14 22:05:14 +08:00
YiFang Xiao 6848ebfe45 opt: remove deprecated method setActivateWindow() 2024-06-14 21:48:29 +08:00
YiFang Xiao 710c07f05f fix: auto pronounce audio does not play 2024-06-14 21:38:51 +08:00
YiFang Xiao 1374905b30 opt: searchPanel hide at start 2024-06-14 20:20:02 +08:00
Xiao Yi Fang 3478c2fe1f opt: fts search dialog does not use caseSensitive option currently 2024-06-14 17:38:46 +08:00
Xiao Yi Fang 585d547d28 opt: erase the need to use extra variable to hold the ftsSearchPanel state 2024-06-14 17:36:05 +08:00
Xiao Yi Fang 39b207fa78 opt: erase the need to use extra variable to hold the searchPanel state 2024-06-14 17:32:16 +08:00
Xiao Yi Fang 3b2de95ff7 opt: remove Control property [noResult] 2024-06-14 17:12:43 +08:00
Xiao Yi Fang 642f3c6ac8 opt: string empty check 2024-06-14 17:03:24 +08:00
Xiao Yi Fang d9b9493b2f opt: remove useless paramater [restart] 2024-06-14 16:52:13 +08:00
Xiao Yi Fang 0f3ce0ec4d opt: remove fts search related selected text 2024-06-14 16:44:51 +08:00
Xiao Yi Fang 4bb4ff38c9 opt: Ctrl+F page search remove highlight checkbox 2024-06-14 16:33:39 +08:00
autofix-ci[bot] caf6424ec8
[autofix.ci] apply automated fixes 2024-06-14 08:17:05 +00:00
Xiao Yi Fang 1dd44405cb fix: auto pronounce audio does not play 2024-06-14 15:47:47 +08:00
xiaoyifang a767f3f030
Merge pull request #1573 from shenlebantongying/clean/del-pack
delete useless MSVC pack pragma in config.hh
2024-06-14 11:29:39 +08:00
Xiao Yi Fang 9141a8f780 opt: remove currentGroup qt style property 2024-06-14 08:31:02 +08:00
shenleban tongying 49f0d16080 delete useless MSVC pack pragma in config.hh 2024-06-13 19:46:20 -04:00
YiFang Xiao 70d31a8f4b opt: tab icon change logic rewrite
fix #1554
2024-06-13 16:51:03 +08:00
Xiao Yi Fang 3a46dd290b clean: remove useless code and refactor 2024-06-13 08:53:02 +08:00
YiFang Xiao 14e2f8661d fix: Scrollbar does not remember position
fix #1555
2024-06-12 22:20:41 +08:00
xiaoyifang 9f09b55327
Merge pull request #1558 from xiaoyifang/opt/tab-position
fix: when tab changes ,the tab page position reset to the start
2024-06-12 20:12:24 +08:00
xiaoyifang 234dc07371
Merge pull request #1562 from xiaoyifang/fix/stardict-unquoted-link
fix: stardict unquoted attribute value
2024-06-12 20:12:02 +08:00
xiaoyifang 7bbab2a759
Merge pull request #1559 from xiaoyifang/opt/articleview-group
opt: remove the argument which pass the GroupComboBox to the ArticleV…
2024-06-12 20:11:45 +08:00
Xiao Yi Fang 65e51b2313 fix: stardict unquoted attribute value 2024-06-12 20:09:15 +08:00