Commit graph

75 commits

Author SHA1 Message Date
shenleban tongying b4ea2ef3db feat: reimplement command line with QCommandLineParser 2023-04-06 13:43:02 +08:00
shenleban tongying 32304d4b15 cleanup: remove all useless #include <QDebug>
All Qt Headers already implicitly included it.
2023-03-21 21:15:14 +08:00
shenleban tongying ce037dbfda doc: update urls
Replace old goldendict.org
2023-01-05 20:34:53 -05:00
shenleban tongying 07e92e8ac1 refactor: upgrade most of macro based Signal/Slot to new syntax 2022-12-25 21:08:17 -05:00
shenlebantongying 5a284d5c66
Implement "goldendict://nice" url scheme handler for windows and linux (#227)
* windows: add url scheme goldendict://

* linux: add url scheme goldendict:// handler
2022-11-28 09:24:49 +08:00
Xiao YiFang db251ac44f revert embed translation 2022-09-22 20:06:43 +08:00
Xiao YiFang 3ef3535213 opt: disable websecurity to enable cross domain access
without this , javascript can not access certain website dictionary (using iframe )
add --disable-web-security to qapplication argv
2022-07-09 11:04:39 +08:00
Xiao YiFang 9daff6ae37 support mdex builtin link entry: 2022-06-07 08:14:53 +08:00
Xiao YiFang e6ab87ca73 fix:add ifr local scheme
due to iframe security policy and x-frame-option .
the website online dictionary can not work in qt 5.15.2+ version.
this is a workaround to pass through the restriction.
2022-05-15 22:54:26 +08:00
Xiao YiFang e6159f2e26 fix: skip qt built in argument
https://doc.qt.io/qt-5/qstyle.html#setting-a-style
2022-05-08 13:39:23 +08:00
Xiao YiFang ce4640d649 fix:stylesheet does not applied on GroupComboBox 2022-05-08 12:57:59 +08:00
xiaoyifang 86aa0b1ba4 clean code:remove dead code 2022-04-17 16:07:56 +08:00
xiaoyifang cf9c657f37 add version check ,high dpi support 2022-04-15 21:06:50 +08:00
xiaoyifang 4648d95b94 fix:a regression .ctrl+c on article right context menu ,translation lost . 2022-03-31 09:55:43 +08:00
xiaoyifang 29ceabe9c3 optimize: add datetime to log file 2022-03-08 00:21:05 +08:00
yifang df7fb33be6 optimize: add qtwebengine zh_CN support 2022-03-06 17:05:43 +08:00
yifang c8284297dd optimize:translator refactor 2022-03-03 23:12:38 +08:00
xiaoyifang 9cf5ee8443 high dpi:change icon reference in code from png to svg. 2022-01-24 22:23:38 +08:00
yifang c14e803881
imp. : high dpi screen support 2022-01-20 20:23:14 +08:00
yifang f93745cc69 imp. : add high dpi support 2022-01-19 20:35:34 +08:00
yifang 94b5d1c159 clean code:signature normalized. 2022-01-14 23:14:38 +08:00
yifang 968cb325e6 fix:build error on gentoo. #1400#issuecomment-966923807 2022-01-14 23:05:00 +08:00
yifang 8fc762a57b fix:add "gdprg","gdvideo","gdpicture","gdtts" scheme 2021-12-31 23:48:21 +08:00
yifang 77ed32dca6 cors support 2021-12-29 20:09:29 +08:00
yifang de3d7b8b19 clean code:remove QT_VERSION check 2021-12-16 19:59:00 +08:00
xiaoyifang cb5ac438fe bword link in Hunspell dictionary. 2021-12-13 22:46:02 +08:00
yifang 98ca729446 remove qt_version_check macro 2021-12-13 22:45:57 +08:00
yifang.xiao 0365015ac6 clean code:
remove "#if QT_VERSION >= QT_VERSION_CHECK( 5, 0, 0 )" check ,the check should always be true based on current situation.
2021-12-13 22:45:33 +08:00
yifang.xiao 69db1d4c71 fix conflict 2021-12-13 22:45:20 +08:00
xiaoyifang 9857ed0559 use char32_t as the inner string unit. 2021-10-20 23:02:37 +08:00
yifang 4a5af10277 add local scheme ,such as qrcx,gadu,etc. 2021-09-21 18:22:08 +08:00
yifang e5c72f8ecc change to setcontent 2021-08-21 09:41:40 +08:00
xiaoyifang 5967f70c4b remove useless code 2021-08-06 23:10:15 +08:00
xiaoyifang 939a96b7a6 register local scheme gdlookup:// 2021-08-05 14:57:22 +08:00
xiaoyifang 3aadf52344 webkit to webengine 2021-07-15 22:58:32 +08:00
Vitaly Zaitsev 6ca112b797
Use a better workaround for Wayland crashes.
GoldenDict use lots of X11 functions and it currently cannot work natively on Wayland. This workaround will force GoldenDict to use  XWayland.

Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>
2020-03-27 11:08:52 +01:00
Igor Kushnir ebfeb37f56 Undef common words defined in X11 headers
* #undef Bool with Qt4 as well as with Qt5.
* #undef min, #undef max from <X11/Xlibint.h>.
* #include <fixx11h.h> just after hotkeywrapper.hh. Unfortunately this
  header can not be included in hotkeywrapper.hh directly because
  some of the undef-ed words are actually used in hotkeywrapper.cc.
* #include <fixx11h.h> after <X11/Xlib.h> in mainwindow.cc just in case
  hotkeywrapper.hh stops including this Xlib.h header in the future.

These changes should make future compilation errors less likely.

For example, without "#undef min" in hotkeywrapper.hh, including
<iomanip> in mainwindow.cc after the mainwindow.hh include resulted in
the following GCC 8 compilation error:
 /usr/include/c++/8.2.1/bits/locale_facets_nonio.tcc:945:22:
  error: expected unqualified-id before ‘(’ token
      __minlen = std::min(__minlen,
                      ^~~
2019-01-28 15:58:14 +02:00
Igor Kushnir fe1c77f15d Don't access a destroyed log file object via logFilePtr
Examples of code that could access the destroyed log file object:
  * a destructor of a local object declared before logFile in main();
  * a destructor of a global object;
  * termHandler() invoked after logFile was destroyed either normally
    or because of an uncaught exception.
2018-05-23 13:12:15 +03:00
Abs62 b002fece6d Fix some more warnings (issue #978 again) 2018-05-22 17:48:14 +03:00
Abs62 1a6a941918 Little refactoring for log messages to file 2018-05-22 17:37:21 +03:00
Abs62 4fe34a95f5 A little change in message logging 2017-07-25 18:28:03 +03:00
Abs62 720c95dd22 Lin-specific: Fix command line parsing for non-ASCII symbols 2017-03-15 17:47:07 +03:00
Abs62 e982b69216 Add command line parameters "--group-name" and "--popup-group-name" 2017-03-10 17:15:10 +03:00
Abs62 fcc2758eb3 Merge branch 'Original' into Qt4x5
Conflicts:
	goldendict.pro
2015-10-27 18:08:57 +03:00
Zhe Wang b5ac249062 ChineseConversion: load OpenCC data files by relative path on Windows and OS X 2015-10-26 11:58:12 +08:00
Abs62 867306f326 Qt5: Fix compilation errors with Qt 5.5.0 beta 2015-05-20 17:52:33 +03:00
Abs62 c1ed847095 Merge branch 'Temp' into Qt4x5 2015-05-20 17:48:52 +03:00
Abs62 7ad717dbb0 Fix crash if configuration saving failed 2015-03-30 19:24:25 +03:00
Abs62 86b3dd41c1 Adjust code for Qt5 2014-07-21 17:39:10 +04:00
Abs62 8cabcacf55 Merge branch 'Original' into Qt4x5
Conflicts:
	btreeidx.cc
	fulltextsearch.cc
	goldendict.pro
	main.cc
2014-07-11 18:17:43 +04:00