Commit graph

4464 commits

Author SHA1 Message Date
shenleban tongying 49d852087d
fix: linux qmake build 2023-04-17 18:18:28 -04:00
shenleban tongying 697b2f9cd1
refactor: move left over .cc/.hh files to src/ 2023-04-17 17:56:55 -04:00
shenleban tongying 129345613e
refactor: Move all .cc/.hh files to src/ 2023-04-17 17:17:36 -04:00
shenleban tongying 7feb883408
refactor: move all dictionary parsers to /src/dict/
If a file contains `makeDictionaries` then it belongs to there
2023-04-17 16:55:34 -04:00
shenleban tongying 2f9f09bb9f
refactor: unify source extensions to .cc and .hh 2023-04-17 16:17:03 -04:00
shenleban tongying 20230542d6
refactor: move none c++ source files into src/ 2023-04-17 13:40:05 -04:00
YiFang Xiao cfff9cd026 rename repository name
and changes some corresponding goldendict reference.
related #489
2023-04-18 01:13:02 +08:00
shenleban tongying 3ff6b6a8ee feat(help): replace QtHelp with website
* Nobody wants to update .qch files
2023-04-17 14:40:29 +08:00
shenleban tongying ca6deac59b feat(website): initial proper website 2023-04-17 07:12:04 +08:00
Xiao YiFang 9d3c76cf48 fix: remove unused files
#502
remove sapi.hh
remove processwrapper.cc(hh)
2023-04-16 18:09:12 +08:00
Xiao YiFang 59327959a8 clean: qtextcodec is going to be deprecated
The convert function is limited compared to iconv
qtextcodec can not cover the common usage of goldendict .
the test can be deleted.
2023-04-16 15:04:09 +08:00
shenleban tongying cd40bfa7d3 feat: remove LibTIFF dependency
* Qt already have built-in support for them
* remove qmake option no_extra_tiff_handler
2023-04-16 13:01:26 +08:00
Xiao YiFang bcca3e7ec2 fix: findEndOfCloseDiv does not work as always
if the start div is <div> ,the actual result will has an extra html closed tags .
2023-04-16 11:46:26 +08:00
Xiao YiFang ec1ba5b0f0 action: change windows-latest to windows-2022 to have a more meaningful name 2023-04-16 09:14:59 +08:00
Xiao YiFang a840a99e5c clean: replace the string with rawstring
replace some html make section with rawstring to achieve a more clear readability
2023-04-16 00:24:11 +08:00
Xiao YiFang 9fe2e136da clean: remove code smell 2023-04-16 00:23:51 +08:00
Xiao YiFang 2a7892836e feat: session collapsable feature support
when enabled , user's manual collapsed dictionary will remain collapsed in the successive search until user expand the dictionary again.
2023-04-16 00:23:51 +08:00
shenleban tongying 223e67e503 feat(stardict): Display images from img: in resource file list
See Type identifiers -> 'r' at http://www.huzheng
.org/stardict/StarDictFileFormat
2023-04-15 19:23:27 +08:00
Xiao YiFang fbb1c09f6f opt: remove js interval when not detect parentIframe 2023-04-15 15:18:02 +08:00
shenleban tongying 5c158e5c70 fix: remove the WriteBuffer from File::Class
* This buffer was originally deisgned with FILE in mind
* After migrating from FILE to QFile, the buffer is duplicated with QFile's buffer
2023-04-15 15:01:15 +08:00
Xiao YiFang e2e0b4e362 fix: remove the webplugin option
this plugin is used mainly for flash plugins, which has been disabled in modern browser.
There is no need to configure this option.
2023-04-15 13:13:47 +08:00
YiFang Xiao 3d448cf570 action:issue translator 2023-04-14 15:55:13 +08:00
shenleban tongying 0cb3bb9142 refactor: abstract FsEncoding::dirname(getDictionaryFilenames()[0])
* FsEncoding::dirname is mostly used with getDictionaryFilenames()[0] to obtain the containing folder of a dict
* Abstract them into Dictionary::Class::getContainingDir()
* FsEncoding::dirname is removed
2023-04-14 12:53:53 +08:00
shenleban tongying e66f97f7db refactor: remove FsEncoding::encode/decode
They never serve any purpose other than converting between std::string <> QString <> char*.
2023-04-14 07:27:59 +08:00
Igor Kushnir 6865cb02c3 Avoid copying a QVector
Calling append() on a copy of a QVector detaches and makes a deep copy
of the container. Modify the QVector in-place to prevent copying and
thus improve performance.
2023-04-13 16:55:17 +08:00
shenleban tongying 948e76d132 fix: add __WIN32 to cmake definitions 2023-04-13 15:54:48 +08:00
xiaoyifang 034c878e91 fix: code smell
unused stored value `owner`
2023-04-13 12:17:59 +08:00
xiaoyifang 84151878f6 action: windows single goldendict.exe filename 2023-04-13 10:24:03 +08:00
shenleban tongying 86f1aeceb6 refactor: simplify MainWindow::showDictionaryHeadwords
* merge two methods into one
2023-04-13 10:17:59 +08:00
Xiao YiFang 2f4db6c34f fix:favorite panel arrow up/down does not work 2023-04-13 07:13:41 +08:00
Xiao YiFang e32a7a2c94 fix:remove custom treeview class 2023-04-12 22:48:31 +08:00
shenleban tongying ddb9655938 refactor: move MRU ctrl handling code from mainwindow.cc to mruqmenu.cc 2023-04-12 20:16:29 +08:00
Xiao YiFang 54a4a052a5 fix:code smell 2023-04-10 22:41:33 +08:00
Xiao YiFang 6dee7cf1e9 remove resize event code
this part of changes is from https://github.com/xiaoyifang/goldendict/pull/415#discussion_r1145639728
2023-04-10 22:41:33 +08:00
YiFang Xiao bb1e0de74a update CaseFolding.txt and generate inc_case_folding.hh 2023-04-10 22:40:57 +08:00
Xiao YiFang 7402dcdd6a clean:remove std::wstring
std::wstring is not a proper implemention on Windows, will face cross platform issues
2023-04-10 22:02:43 +08:00
shenleban tongying 880bf4813b feat: display exception name when unhandled exception got thrown 2023-04-10 14:10:57 +08:00
Xiao YiFang 21fa719c03 style: minor css changes 2023-04-09 19:41:41 +08:00
Xiao YiFang 8ca51e95c7 style:lingoes style dictionary name minor change
remove dictionary name's css border
2023-04-09 18:58:08 +08:00
Xiao YiFang c472b2cb71 fix:code smell 2023-04-09 12:42:32 +08:00
Xiao YiFang 1996af61a6 fix: mdx dictionary entry://#hashtag navigation 2023-04-09 12:42:32 +08:00
Xiao YiFang c2e2b3a849 fix:display dictionary info in the dictionary tab as html 2023-04-09 12:10:17 +08:00
xiaoyifang 15219eeb72 add repository notes in the Readme.md 2023-04-08 14:52:41 +08:00
Xiao YiFang 4ffff72698 epwing:replace qthreadpool with qtconcurrent 2023-04-08 14:25:57 +08:00
Xiao YiFang f69f248c00 fix: code smell 2023-04-08 14:25:57 +08:00
Xiao YiFang c527588209 epwing: add Synonym search 2023-04-08 14:25:57 +08:00
xiaoyifang 7ef4a5dc64 clean code:remove useless code in js 2023-04-07 22:23:51 +08:00
xiaoyifang 16cc44c552 action:windows add more arch support 2023-04-07 22:23:50 +08:00
shenleban tongying b4ea2ef3db feat: reimplement command line with QCommandLineParser 2023-04-06 13:43:02 +08:00
xiaoyifang c8003b5408 action:add windows latest action 2023-04-06 10:21:25 +08:00