Commit graph

59 commits

Author SHA1 Message Date
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
Abs62 62d380a1d9 Mac-specific: Fix for retina display 2014-06-17 17:47:04 +04:00
Abs62 34271ecc1d Merge branch 'Temp' into Qt4x5
Conflicts:
	article_maker.cc
	article_netmgr.cc
	articleview.cc
	forvo.cc
	goldendict.pro
	hotkeywrapper.cc
	hunspell.cc
	mainwindow.cc
2013-12-18 19:09:48 +04:00
Abs62 444938a330 Fix logging to file UTF-8 encoded messages 2013-11-16 22:34:09 +04:00
Abs62 f7ea6b1dcc Qt5-specific: Adjust last changes (issue #212) 2013-09-27 17:03:57 +04:00
Abs62 c7b04526d2 Possibility to log GD console messages into file "gd_log.txt" in GD config directory. Activated by "--log-to-file" key in command line. 2013-09-20 18:25:44 +04:00
Tvangeste 99526b98d3 Fix compilation errors on Qt 4.5 2013-07-18 15:02:39 +02:00
Tvangeste 49669ce6bb Fixed #314: Mac-specific: Do not enforce the default icon, allow icon customization. 2013-05-19 11:57:33 +02:00
Abs62 6e94dafb43 Translate error message during configuration file handling to system locale language 2013-05-09 13:37:26 +04:00
Abs62 37ebe005de Use app.applicationName() instead of hardcoded "GoldenDict" in previous commit 2013-05-08 21:35:11 +04:00
Abs62 534509adaf Handle errors during configuration file loading 2013-05-08 20:50:06 +04:00
Abs62 6c8fab8078 Try to load QT translation files from GD "locale" folder at first 2013-04-22 18:49:53 +04:00
Abs62 535fe0d3e0 Update year in copyright notices. 2012-02-21 01:47:14 +04:00
Abs62 bd90b5368b Add translation of the word from command line 2011-11-16 17:02:56 +04:00
Denis Loginov cf00c1096b Improved support for Mac OS X:
1) Application now builds correctly for both 
   x86 and x86_64 architectures on Mac OS X 10.6 and 10.7
   thanks to fixes in iconv.h
2) The 'unix' branch in goldendict.pro is skipped for Mac now.
3) The sluggishness of scrolling is gone after setting Qt
   graphics system to "raster" at the application launch.

Signed-off-by: Denis Loginov <dinvlad@gmail.com>
2011-09-17 06:28:50 -04:00
Denis Loginov b1553ccc75 Added MAC OS X support and updated program icon from the old project wiki for better looks in Dock etc. Scan popup and hotkeys are not supported. The program is tested on Snow Leopard and Lion. Works with the default system libraries.
Signed-off-by: Denis Loginov <dinvlad@gmail.com>
2011-08-06 14:39:16 -04:00
Tvangeste 5404d4213e Dictionary tool buttons should not have an icon shifted when checked.
This just looks better, since the dictionary icons don't collide
with the border anymore.
2011-07-12 11:38:37 +02:00