Commit graph

4258 commits

Author SHA1 Message Date
Abs62 a722b3f43d Fix "file://" urls correction for case of launch portable GD via network 2019-08-05 17:51:57 +03:00
Abs62 ebc301a7bf Merge branch 'master' of https://github.com/probonopd/goldendict into Temp 2019-08-05 17:50:34 +03:00
Abs62 0f951b06a5 SLOB: Some optimization for indexing of a large files 2019-07-25 02:16:28 +03:00
Abs62 031b9e1eab Increase limit of node elements while build index 2019-07-24 23:59:44 +03:00
Abs62 056efcd92b SLOB: Fix build with Qt 4 2019-07-22 19:22:58 +03:00
Abs62 ed0a2551d0 SLOB: Fix detection of article duplicates (#issue #1174) 2019-07-22 18:31:50 +03:00
Abs62 2de1de758a SLOB: Add class "slobdict" to slob headword (issue #1176) 2019-07-22 18:30:56 +03:00
Abs62 618179e28b SLOB: Add support for uncompressed articles (issue #1175) 2019-07-22 18:30:17 +03:00
Abs62 05bfc353a8 Allow dictionaries groups combobox standard hotkeys from FTS and Headwords dialogs 2019-07-09 18:00:23 +03:00
Abs62 85e0f43d8b Merge branch 'master' of github.com:goldendict/goldendict into Original 2019-06-27 19:13:36 +03:00
Abs62 0faa7504e3
Merge pull request #1168 from asheeshkumar96/patch-1
Create hi_IN.ts for Hindi translation
2019-06-27 19:13:05 +03:00
asheeshkumar96 ddb8fc2478
Create hi_IN.ts
This translation has been done by copying french translation ; then creation of  a new file and translated.
2019-06-27 21:01:00 +05:30
Abs62 58b6c60374 DSL: Fix sound saving from preferred dictionary 2019-06-27 18:09:00 +03:00
Abs62 f0b7b8e33c DSL: Fix {(...)} case handling in insided cards 2019-06-24 17:59:13 +03:00
coozoo 09a7d4db33 Fix empty menu if program compiled with qt5
Fixed by not adding dummy system tray under X env
Tested for:
Mate 1.22.1
XFCE4 4.12
KDE 5.14.5 (damn it's so ugly now)
GNOME (with topicons-plus extension)

This commit fixes #907, fixes #1097 and fixes #1155
2019-05-27 18:58:27 +03:00
Igor Kushnir 13a321190f Don't construct scan popup twice at startup
abcabb77fa added a makeScanPopup() call
after applyQtStyleSheet() in MainWindow constructor to apply Qt style
sheets to the scan popup. This call destroys the scan popup created
earlier in the MainWindow constructor and creates a new instance.

Let us remove the first, now redundant invocation of makeScanPopup()
from MainWindow::makeDictionaries() to improve startup performance.
makeDictionaries() is currently called only once, so modifying it is not
a problem. If makeDictionaries() is used elsewhere in the future,
the added assertion will remind to reconstruct the scan popup.
2019-05-15 11:09:20 +03:00
Abs62 abcabb77fa Initialize scanPopup window after setting of Qt style sheets (issue #1144) 2019-05-13 18:17:27 +03:00
Igor Kushnir 462218d662 Linux-specific: Qt::Dialog -> Qt::Window pinned scan popup flags
There is a regression since Qt 5.12.1 that forces the pinned scan popup
window to be always on top of the main window on Linux/X11 because of
its Qt::Dialog window flag. The same issue is present in Qt 4.
The Qt regression is reported as QTBUG-74309, but chances of it being
fixed any time soon seem slim.

The documentation for Qt::Dialog window flag states that it causes a
window to be decorated as a dialog (typically no maximize or minimize
buttons in the title bar). I suppose adding these buttons to
the scan popup's title bar is not an issue.

As a bonus, the Qt::Dialog flag prevented scan popup window tiling when
moving toward the screen edge in Xfce. It works perfectly now.
2019-05-13 14:24:14 +03:00
Serdar Sağlam 3ca6cbec25
Update tr_TR.ts
Hi
translate update and minor fix
2019-05-02 20:45:50 +03:00
Abs62 c3ff15f4d8 Fix one more crash under Qt 5.12 2019-04-22 19:50:06 +03:00
Kevin Zheng d62b2d61ba Fix build on FreeBSD 2019-04-01 17:10:10 -07:00
Abs62 052f849be7 XDXF: A little more handling for <ex> tag (issue #1135) 2019-04-01 17:53:36 +03:00
Abs62 ade20fc1bf Support "[!a-x]" like construction while handling wildcards via QRegularExpression 2019-03-25 18:10:10 +03:00
Abs62 b61863b8df Use QRegularExpression instead of QRegExp in dictionary headwords dialog under Qt 5.12 and later 2019-03-25 18:08:52 +03:00
Abs62 5fb4ff183e Fix some more possibly crashes with Qt 5.12 2019-03-22 17:10:26 +03:00
Abs62 cf2ca576d4 Win-specific: Fix possibly crashes after dictionaries initialization 2019-03-20 17:49:39 +03:00
Abs62 465f90a315 Set Qt style sheets immediately before main window show 2019-03-19 17:37:51 +03:00
Abs62 6bc4088671 Fix save/restore geometry for some dialogs under Qt 5.12 2019-03-19 17:36:07 +03:00
Abs62 6efb52109c
Merge pull request #1025 from GD-fix/safety_menu_sequence
Safety menu sequence in dictionaries order window
2019-03-18 18:08:31 +03:00
Abs62 247a076371 XDXF: Fix indexing of the dictionaries with empty "abbreviation" field (issue #1132) 2019-03-17 23:04:14 +03:00
Vitaly Zaitsev 7ef50ba50f
Added AppData manifest file for modern package managers.
Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>
2019-03-16 13:47:15 +01:00
fixes f962f0e9ab Safety menu sequence in dictionaries order window
On accidentally mouse moving when right button clicking first context menu stroke may be apply. If in this stroke is dictionaries reordering it may be not noticed (especially, when filter is enabled), and after the windows OK button clicking ALL dictions will be reordered!
This commit places on context menu first stroke safety "Dictionary headwords".
2019-03-09 20:32:09 +02:00
Abs62 9bae6d2201 Wiki: Fix urls in "srcset" attribute (issue #1096) 2019-03-04 19:38:15 +03:00
Abs62 e7e37cbbeb
Merge pull request #1122 from sikmir/locale-fi
Updated Finnish translations
2019-02-15 00:15:16 +03:00
Nikolay Korotkiy ed69414698
Updated Finnish translations 2019-02-14 20:26:53 +03:00
Abs62 d82320ce0d Don't expand symlinks while load dictionaries 2019-02-13 23:58:29 +03:00
Abs62 76127eb04f
Merge pull request #955 from vedgy/fix-mediawiki-tooltips
Show #link as a tooltip instead of empty "Definition: "
2019-02-07 18:48:11 +03:00
Abs62 2d648829fa Merge branch 'group-box-and-translate-line-fixes' of https://github.com/vedgy/goldendict into Temp 2019-02-03 19:44:32 +03:00
Igor Kushnir e6710a6372 Remove artificial 1000-pixel CompletionList width limit
When translate line is wider than 1000 pixels, its right end is not
aligned with its completion list. This looks ugly and complicates
scrolling through completions after clicking on Drop-down arrow.
2019-02-03 18:25:26 +02:00
Igor Kushnir 503de6474f Qt5: improve repeated zooming performance
For example, looking up "United States" in my local dictionaries, then
pressing Ctrl++ to increase zoom factor from 1 to 5 takes 4 seconds with
this change and 25 seconds without it. The same scaling takes 6 seconds
with this change and 45 seconds without when I enable English Wikipedia,
which has a particularly large "United States" article.

There is a workaround that speeds up zooming: look up a nonexistent
word, scale to the desired level, then go back to the large articles.
But this is tedious if large articles are open in scan popup or
in case of many tabs in the main window.
2019-02-02 15:31:16 +02:00
Abs62 7abaf07bbd Fix build under Linux/MacOS 2019-02-01 16:59:41 +03:00
Abs62 68fc27b7d7 Win-specific: Add global hotkeys handling via low-level keyboard hook 2019-01-31 17:59:24 +03:00
Igor Kushnir 7a9d97a74f Sync scan popup's size policies with main window
Let us use consistent horizontal size policies in scan popup's and main
window's GroupComboBox and TranslateBox. MinimumExpanding in scan
popup's TranslateBox allows it to stretch horizontally along with
horizontalSpacer when the width of popup window increases.
2019-01-29 17:01:14 +02:00
Igor Kushnir 4736191fa5 Allow reducing width of group comboboxes
Before this commit, the Alt+- shortcut reduced the heights of group
comboboxes in the main window and scan popup, but not their widths.
These comboboxes did not become narrower than at the time of their
construction.

Fixing the height of a group combobox to that of a line edit in
MainWindow's and ScanPopup's eventFilter() is still useful after this
commit - to avoid the ugliness of a few pixels-higher combobox.
2019-01-29 16:13:23 +02:00
Igor Kushnir ec96d6ac5a Allow shrinking scan popup's toolbar height
Before this commit, when group combobox was visible, the Alt+- shortcut
reduced the heights of group combobox and translate line in the main
window, but not in scan popup. These UI elements in scan popup did not
become lower than at the time scan popup was constructed.

Applying the solution from the main window fixes this bug (#1108).
2019-01-29 15:43:18 +02:00
Igor Kushnir c88774151c Remove unused form groupselectorwidget.ui
This form was added in the first git commit. However it was unused at
the time of that commit and has never been used since then.
2019-01-29 12:58:44 +02:00
Abs62 eb6a7c83a6
Merge pull request #1111 from vedgy/undef-common-words-x11
Undef common words defined in X11 headers
2019-01-28 18:30:41 +03:00
Abs62 15cbce1a7f
Merge pull request #1110 from vedgy/avoid-duplicate-currentGroupChanged-connection
Avoid duplicate currentGroupChanged() connection
2019-01-28 18:30:28 +03: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 a9fc823c46 Avoid duplicate currentGroupChanged() connection
Before this change ScanPopup::applyWordsZoomLevel() was called before
the primary connection to ScanPopup::currentGroupChanged() in
ScanPopup's constructor. This meant that disconnect() had no effect and
connect() established the first connection during the first call to
ScanPopup::applyWordsZoomLevel(). This caused 2 issues:
  1. Since the connection happened before the filling of ui.groupList
in ScanPopup's constructor, the current group in scan popup was always
"All" on Goldendict start.
  2. Since the connection was not unique, the slot was connected twice
to the same signal, and it was actually called twice.

The bug was introduced in 92e8c85eec.
2019-01-28 14:54:32 +02:00