Commit graph

36 commits

Author SHA1 Message Date
shenleban tongying a11c9e3aec clean: mass apply clang-tidy's readability-braces-around-statements 2024-10-10 03:21:27 -04:00
autofix-ci[bot] d2e45e3017
[autofix.ci] apply automated fixes 2023-10-28 05:25:10 +00:00
YiFang Xiao 87ae7899ae fix: when path is / only ,there is no need to rearrange the parameters 2023-10-28 13:22:21 +08:00
xiaoyifang 564d3ddffc
opt: refactor code (#1243)
* opt: refactor code

* opt: refactor str2map method

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-10-16 07:37:10 +08:00
YiFang Xiao a45c95ebde opt: refactor some method 2023-10-10 21:29:14 +08:00
YiFang Xiao b4cbf24570 fix: scanpopup flash content
[autofix.ci] apply automated fixes
2023-10-10 21:29:11 +08:00
YiFang Xiao ffc4ccbb03 opt: use a different way to handle the resources 2023-10-09 23:12:57 +08:00
xiaoyifang b1781b63d6
opt: remove gdpicture & maxPictureWidth which has not been used at all. (#1220)
* opt: remove gdpicture protocol which has lost effect for a long time

* opt: remove maxPictureWidth which has no place to configure this variable value

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

---------

Co-authored-by: YiFang Xiao <yifang.xiao@noreply.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-10-09 19:58:16 +08:00
YiFang Xiao 4465355502 fix: invalid url response with 206 partial content many times
[autofix.ci] apply automated fixes
2023-10-08 23:35:05 +08:00
xiaoyifang 3ab2d10e16
opt: remove the reply attribute settings which is not supported in we… (#1200)
* opt: remove the reply attribute settings which is not supported in webengine

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-10-08 21:50:17 +08:00
xiaoyifang aebf85ef4a
opt: refactor the code to show untitle & welcome page (#1203)
* opt: refactor the code to show untitle & welcome page

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-10-07 20:49:38 +08:00
xiaoyifang db0ca76ead
opt: convert for loop to for-range (#1201)
* opt: convert for loop to for-range

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-10-06 20:59:27 +08:00
xiaoyifang d4f19cf4cd
fix: use wait condition to rewrite datarequest (#1015)
* fix: use wait condition for datarequest

* fix: rewrite byteAvailable

* [autofix.ci] apply automated fixes

* fix: rewrite qwaitcondition

* [autofix.ci] apply automated fixes

* opt: wait condition

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-09-10 19:02:31 +08:00
YiFang Xiao 03356fdfab fix: code smells 2023-07-30 08:47:54 +08:00
shenleban tongying b5349478cf
clean: reformat everything
The next commit will add `.git-blame-ignore-revs`

https://docs.github.com/en/repositories/working-with-files/using-files/viewing-a-file#ignore-commits-in-the-blame-view
2023-07-20 04:02:22 -04:00
shenleban tongying 0b746ef8eb
Revise how word is getting passed (#736)
* fix: remove InputPhrase

* opt: remove unnecessary InputPhrase

* fix: assignment issue

* fix: add handleInputWord back

* fix: does not need to trim punc

---------

Co-authored-by: YiFang Xiao <yifang.xiao@foxmail.com>
2023-05-29 00:01:54 +08:00
YiFang Xiao 126e76ee62 fix: fulltext search,found dictionaries update 2023-05-14 14:31:30 +08: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
Konstantin Isakov ab88fa4867 Drop the src/ directory. It's superfluous. 2010-05-15 16:42:18 +04:00
Konstantin Isakov ceab951fe9 Update year in copyright notices. 2010-05-08 22:59:59 +04:00
Konstantin Isakov e13a4596ae + Dictionary bar, a bar with dictonary icons for the current group, was
implemented. Clicking icons disables corresponding dictionaries. When
  clicking with Shift/Ctrl, a dictionary can be made solo.
  The feature is currently only available in main window only, scan popup
  will be addressed later.
+ 'View' menu introduced. It allows switching toolbars and side pane on/off
  without any arcane knowledge on how to toggle them on/off via RMB.
2009-09-23 18:44:38 +00:00
Konstantin Isakov 54efa23585 + Add an option to block content (images, frames etc) not originating
from the site the user browses. This effectively hides all
  advertisements on the websites.
2009-08-31 12:18:08 +00:00
Konstantin Isakov 05d53409bf + Support for folloing websites' links in-place. The actual link is followed for
the website, while the query word is set to the link's text as used for all
  other dictionaries in the group.
* Some associated cleanup (better scrolling to articles, better external link
  handling).
The changes might cause problems - test!
2009-05-29 19:48:50 +00:00
Konstantin Isakov dc96e29174 *! Awlays set definition's (QWebView) style using Html css, not Qt css. 2009-05-11 15:33:57 +00:00
ars_goldendict 67b34fd3e0 added changes in order to be able to get it compiled with MSVC (no project yet) 2009-04-29 23:18:26 +00:00
Konstantin Isakov c0935f8e13 *! Fix build problems on Fedora Development (patch by Tigro) 2009-04-27 12:25:15 +00:00
Konstantin Isakov babde3d53d *! Introduce gd::wstring and gd:wchar and switch to them from std::wstring and
wchar_t. This changes nothing on Linux and most other systems, but on Win32
   it causes to use normal UCS-4 strings instead of Win32's usual UTF-16.
2009-04-18 17:20:12 +00:00
Konstantin Isakov 03736c2193 * Give groups numerical ids and switch to use them everywhere instead of names
to identify them.
2009-04-10 12:48:40 +00:00
Konstantin Isakov da663b426b +! Require "word" parameter to be passed to gdlookup:// requests, thus
skipping some erroneous empty requests from underparsed wikipedia articles.
2009-04-09 11:35:45 +00:00
Konstantin Isakov 517c58b695 * Cancel the corresponding dictionary request upon the network request
destruction.
2009-03-28 15:59:39 +00:00
Konstantin Isakov 7859daaff6 * Major dictionary interface rework. Dictionaries now return Request objects
which can provide results asyncronously, be discarded prematurely etc. This
  work touches just about every piece of exiting code.
+ On top of the new interface, MediaWiki (Wikipedia) support was added.
* Some other small fixes might went along.
2009-03-26 19:00:08 +00:00
Konstantin Isakov 4bae99aeb5 Mass-update email to point to a @berlios one. 2009-02-05 14:21:47 +00:00
Konstantin Isakov 2be1c2b375 Scan popup functionality implemented, among with other small improvements.
For now, the modifier key is hardcoded to be Ctrl.
2009-02-01 00:08:08 +00:00
Konstantin Isakov faeacaff3e Implement asyncronous word finding. 2009-01-29 19:16:25 +00:00
Konstantin Isakov c05781368b Created /trunk/src and moved everything there. 2009-01-28 20:55:45 +00:00