Commit graph

1121 commits

Author SHA1 Message Date
shenleban tongying 91a4e31018 feat: allow changing icon on macOS by not overriding icon in Info.plist 2024-09-06 19:35:07 -04:00
xiaoyifang c599bbfb73
Merge pull request #1743 from shenlebantongying/feat/program-stdin-utf8
Some checks failed
SonarCloud / Build and analyze (push) Has been cancelled
deploy_website / deploy (push) Has been cancelled
feat: write word to Program dictionary's stdin in UTF-8 instead of local 8 bit
2024-09-04 08:48:28 +08:00
shenleban tongying 05c1c1f927 feat: write word to Program dictionary's stdin in UTF-8 instead of local 8 bit 2024-09-03 17:09:34 -04:00
shenleban tongying 0a5827fd20 opt: remove parsecmdline.cc by using QProcess::splitCommand 2024-09-03 12:54:50 -04:00
shenleban tongying 44853544f8 clean: replace QVector & QPair in headers 2024-09-01 20:09:22 -04:00
shenleban tongying 3273f39dd7 clean: replace removed Qt5/QList and QPair 2024-09-01 19:45:06 -04:00
shenlebantongying 9a2c96ca56
clean: remove unused code of iconv.cc and minor update code style 2024-08-30 04:09:07 -04:00
shenleban tongying ac43018f68
clean: port away from QTextCodec in slob.cc 2024-08-30 04:09:05 -04:00
shenleban tongying 5cdac6be4d fix: slob description html display
Some checks failed
SonarCloud / Build and analyze (push) Has been cancelled
2024-08-28 22:21:39 -04:00
xiaoyifang fc3ea0045e
opt: remove fulltext unused logic (#1733)
* opt: remove fulltext unused logic

the firstIteration is not used any more
2024-08-24 07:45:45 +08:00
shenleban tongying 3ca7c39e69
feat: properly handle Unix signals, like SIGTERM, for graceful exit (#1732)
* feat: handle UNIX shutting down SIGNALS

* Convey ksignalhandler from LGPLv2.1+ to GPLv3+ which allowed/required

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-08-22 08:19:35 +08:00
xiaoyifang dd48ba7d60
Merge branch 'staged' into opt/double-click-in-welcome-page 2024-08-21 13:43:28 +08:00
xiaoyifang 9332763f67
fix: prioritize the manual set full text index option per dictionary (#1730)
* fix: prioritize the manual set full text index option per dictionary
2024-08-21 13:42:56 +08:00
Xiao Yi Fang 51701ce4aa opt: double click in welcome page 2024-08-20 10:48:31 +08:00
xiaoyifang 555811e3f3
Merge pull request #1727 from xiaoyifang/opt/full-dialog
opt: default and plaintext are the same ,remove one
2024-08-14 11:56:30 +08:00
Xiao Yi Fang 5147c8c036 opt: default and plaintext are the same ,remove one 2024-08-13 16:43:10 +08:00
Xiao Yi Fang dc4647069d opt: webview history navigation 2024-08-12 16:53:47 +08:00
Xiao Yi Fang 9842761c1c fix: code smell ,remove while(1) 2024-08-10 17:02:38 +08:00
xiaoyifang 752b880f24
fix: double release memory (#1722)
* fix: double release memory
2024-08-10 06:59:50 +00:00
Xiao Yi Fang 6b4936ade4 fix: close file when return error 2024-08-10 13:41:23 +08:00
xiaoyifang 65ae8f5030
opt: smells (#1721)
* opt: remove code smell

for loop should avoid change the iterators

* opt: remove code smell

for loop should avoid change the iterators
2024-08-10 10:46:44 +08:00
xiaoyifang 3279fe8b07
opt: fulltext next navigation optimization (#1718)
* opt: fulltext dialog navigation optimization.

The fulltext dialog navigation (next,previous) use webview's findText,try to find the longest word for navigation
2024-08-09 11:47:46 +08:00
xiaoyifang b0bea92106
opt: remove outdated fulltext temp index (#1717)
* opt: remove outdated fulltext temp index

* opt: remove outdated fulltext temp index
2024-08-09 09:37:57 +08:00
Xiao Yi Fang ec63fa550d fix: popup dialog , switch groups should use articleview's word 2024-08-08 17:47:40 +08:00
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