Commit graph

4404 commits

Author SHA1 Message Date
Abs62 c0a2ed77f9 Hide scan method options 2011-07-11 16:36:28 +04:00
Tvangeste 747526fca8 tooltips for a couple of buttons 2011-07-10 12:29:52 +02:00
Abs62 aac6fe7a61 Turn all scan methods on by default 2011-07-10 13:48:57 +04:00
Tvangeste 6693aefb3e New menu item: Help -> Configuration Folder.
I'm tired of explaining to users where their configuration
folder for GoldenDict is. :)
2011-07-10 09:36:43 +02:00
Tvangeste 20a12d3e5a Small "About" dialog improvements: Increased its size and removed weird spacer in the middle of the form. 2011-07-10 08:40:47 +02:00
Abs62 bbc35ceb47 Russian translation updated 2011-07-10 02:01:06 +04:00
Abs62 a8589b39bf Improvements in scan popup functionality.
1. Add search word under cursor through IAccessibleEx interface and UI Automation technology.
2. Reorganize GoldenDict main program and scan libraries interaction to reduce influence to other programs.
3. Fix crash in scan libraries in IE9 protected mode.
2011-07-09 23:26:30 +04:00
Tvangeste 74e7a41548 properly adjust status bar position when the main window resizes 2011-07-09 19:05:14 +02:00
Tvangeste 354066c292 Reimplemented the status bar as internal widget instead of top-level borderless window.
Now the status bar behavior is much more reliable on X11 systems, no more
lags when moving GoldenDict window around or when resizing it. Works
better with compositing window managers as well.

Also, the new status bar also supports images, which is good for
warnings and error messages.

The status bar is fully styled and can change its appearence
based on user's CSS, if needed.
2011-07-09 13:55:44 +02:00
Tvangeste 83acbcf10c Ctrl/Shift-Click on links opens them in a new tab.
This is in sync with Ctrl/Shift-DoubleClick and Ctrl/Shift-Enter
behaviors that we already have.

And this is in sync with browsers.
2011-07-06 08:53:42 +02:00
Tvangeste 8b3f9a7474 Closes #21: Scrollbar and doubleclick translation. 2011-07-05 21:58:02 +02:00
Tvangeste a3e9eb9cb4 Fixed Shift-Tab problems, reported in #22. 2011-07-04 10:35:56 +02:00
Tvangeste 79dbce2bb3 Sync between the currently active article and the "found in dictionaries" pane.
Now when a user activates an article (by clicking on it, or by using Alt-Up/Down shortcuts),
corresponding dictionary in the "found in dictionaries" pane is selected.

See Issue #22.

P.S. Lingvo behaves in the same way too.
2011-07-03 19:59:17 +02:00
Tvangeste ad75c8992c Hovered link notifications in the status bar, just like in browsers.
Move the mouse pointer over the link and see the status bar updated.
2011-07-02 15:04:49 +02:00
Abs62 3291432d41 Russian translation updated 2011-07-02 13:45:11 +04:00
Konstantin Isakov ace090d434 Merge pull request #10 from chulai/highlight-all-search
Add "Highlight all" to Article search (Ctrl + F)
2011-07-01 20:57:05 -07:00
Konstantin Isakov e0a2ad5775 Merge pull request #11 from chulai/article-search-shortcuts
Add shortcuts for Previous/Next actions on Article search (Ctrl + F)
2011-07-01 13:43:42 -07:00
Konstantin Isakov d75a3cb9c9 Merge pull request #23 from VVSiz/review/iconv
Failure to index a dictionary in UTF-8 format on Windows
2011-07-01 13:35:47 -07:00
Julian Depetris Chauvin c1ad1ec880 Code refactor to get current article view. 2011-07-01 16:22:40 -03:00
Julian Depetris Chauvin 2cf52b3796 Minimizee 2-colors selection glitch for Babylon dictionaries. The source problem is that some html dont a well-formed structured (inline elements are not placed within block-level elements) 2011-07-01 13:25:14 -03:00
Tvangeste 57a928510c Fix for #23: Failure to index a dictionary in UTF-8 format on Windows.
Here's what happens. At some moment during dictionary conversion,
in DslScanner::readNextLine(), whe call iconv(), when both buffers
are of size 4 (the conversion is from UTF-8 to UTF-16).

Now, the dictionary contains two em-dash symbols at that position,
one after another, each is encoded in 3 bytes in UTF-8. So, the
input buffer of size 4 contains entire first em-dash (3 bytes)
and the first byte from the second em-dash.

Calling iconv() on Linux leads to Iconv::NeedMoreOut (E2BIG),
which makes sense, since we converted the first char and there is
no more space in the output buffer.

Calling iconv() on Windows leads to Iconv::NeedMoreIn (EINVAL),
which *also* makes sense, since we converted the first char, started
to look at the second one and noticed that it is incomplete.

The difference is only what iconv() checks first, the state
of the input or the state of the output. And it seems that it
does different things on Windows and Linux.

The patch takes this into account and resolves the conversion
problem on Windows: the only error condition that requires
to throw an encoding error is when outBytesLeft is non-empty,
that means that iconv didn't convert anything.
2011-07-01 14:21:57 +02:00
Julian Depetris Chauvin 68b847f02b Use just one color for selecting and searching. This simplify things and avoid several issues (Check https://github.com/goldendict/goldendict/pull/10) 2011-06-30 14:56:02 -03:00
Tvangeste f620fdf63e One more fix for the statusbar behavior on X11 systems.
Now, the statusbar behaves good on all the following tested systems:

* Ubuntu+Gnome
* KDE-Plasma
* XFCE
* Fluxbox manager
2011-06-30 16:50:19 +02:00
Tvangeste a37c4ba67c Workarounds for X11 idiosyncrasies. 2011-06-30 15:13:23 +02:00
Julian Depetris Chauvin 5f97db0449 Add shortcuts for Previous/Next actions on Article search (Ctrl + F) 2011-06-30 09:45:05 -03:00
Julian Depetris Chauvin c55061c302 Add "Highlight all" to Article search (Ctrl + F) 2011-06-29 14:42:16 -03:00
Abs62 0726b90f30 Russian translation updated 2011-06-29 17:42:37 +04:00
Tvangeste 98ce9b3256 Cleanup of the focus order.
Some non-essential components should never get keyboard focus.

So, now the focus order is as follows:

TranslateLine -> TabWidget -> ArticleView -> DictsList, nothing else.
2011-06-28 17:55:41 +02:00
Tvangeste d23c79f632 add goldendict to .gitignore 2011-06-28 14:24:07 +02:00
Konstantin Isakov d9d5c85871 Merge pull request #20 from VVSiz/review/hide_statusbar
Crome-like status bar
2011-06-27 19:37:31 -07:00
Tvangeste d46e4dc77b Chrome-style statusbar for GoldenDict.
* Small pop-up window at the bottom of the main winodw instead
  of traditional status bar, that consumes lots of space.
* API, similar to standard Qt's status bar.
* The status bar hides itself after specified amount of time.
* Clicking on the status bar also hides it.
* Properly behavies on resizes/moves/focus/etc.
* Tested on Linux and Windows.
2011-06-27 20:54:15 +02:00
Konstantin Isakov 5bdaf89459 Merge pull request #18 from VVSiz/review/hide_menubar
Ability to hide menubar
2011-06-26 18:16:16 -07:00
Tvangeste ca292db64a Menubar can be hidden with Ctrl+M shortuct now.
Plus, added a menu item to do that, and the status notification.
2011-06-26 13:56:34 +02:00
Tvangeste 9bc413b2c0 Window title now shows the current headword (the current tab name). 2011-06-25 09:53:45 +02:00
Tvangeste 009b66afa0 Merge pull request #17 from VVSiz/review/hide_single_tab
"Hide single tab" option
2011-06-25 00:36:45 -07:00
Tvangeste 3266a6ef4c Added "New Tab" menu, plus corrected copyright headers. 2011-06-25 09:34:28 +02:00
Tvangeste eaf3f744ce When the tray icon is disabled, the global hide/show shortcut should just minimize the main window.
Before this change, the shortcut in such situation was just
doing nothing, the main window remained active.

Tray icons are not that useful in Win7, since it is much better
to just pin the application to the taksbar. Now GoldenDict works
properly in such situations.
2011-06-24 21:44:17 +02:00
Tvangeste 0e9f5f28c2 Hide single tab option is implemented.
By default, it's turned off (== current behavior).
2011-06-23 16:20:32 +02:00
Konstantin Isakov 88dd9e2e8a Merge pull request #15 from Abs62/master
Replace printf(...) and fprintf(stderr,...) with debug output by macro
2011-06-19 21:35:30 -07:00
Abs62 e2004aaec4 Correction of previous commits 2011-06-20 08:26:27 +04:00
Abs62 7de7fcc8df Replace fprintf(stderr,...) in code by a macro FDPRINTF 2011-06-20 00:29:11 +04:00
Abs62 36e509a2ab Replace printf in code by a macro DPRINTF 2011-06-19 22:50:11 +04:00
Abs62 97a6d49221 Check scan popup modifiers in window message handler to avoid unneeded string handling 2011-06-17 16:15:41 +04:00
Konstantin Isakov a3500b0577 StarDict parser now ignores the absence of .syn files.
Closes #6.
2011-06-13 23:55:24 -07:00
Tvangeste a30a13323b Added Apply button to the Dictionaries configuration dialog. 2011-06-13 14:30:49 +02:00
Konstantin Isakov f12a8e6761 Merge pull request #12 from VVSiz/review/show_icons
Icons are not shown in various places on Linux
2011-06-12 23:34:29 -07:00
Tvangeste df7bd52980 Make icons visible in history and context menus. 2011-06-12 20:50:54 +02:00
Konstantin Isakov ac5962c3cf Don't crash on startup if the dictionary bar has been made floating previously.
Closes #9.
2011-06-10 21:50:19 -07:00
Konstantin Isakov 86a9e7d457 Merge pull request #5 from chulai/master
Add maxDictionaryRefsInContextMenu to config file
2011-06-09 18:09:50 -07:00
Julian Depetris Chauvin 207b780304 Add maxDictionaryRefsInContextMenu to config file to allow to change number of dictionaries in the context menu (Right-click on the definitions frame). Default to 20. 2011-06-09 19:54:57 -03:00