Commit graph

479 commits

Author SHA1 Message Date
Abs62 09b9e9aa46 Win-specific: Show translation in popup window istead of sending word to GD main window while scanning GD main window 2012-09-24 17:20:58 +04:00
Abs62 34419706c9 Show information about a dictionary on rigth mouse click in "Found in" pane 2012-09-24 16:51:51 +04:00
Abs62 83bdb1db6f Ctrl(Shift)+Click on "Found in dictionaries" pane do same action as on dictionary toolbar 2012-09-19 16:44:36 +04:00
Abs62 3de1e09663 Win-specific: Scan popup now work in GoldenDict article tabs 2012-09-19 03:01:31 +04:00
Abs62 44247c04c9 Add word to history via context menu from ScapPopup window 2012-09-16 14:30:14 +04:00
Abs62 305c9ed1b8 Show/hide optional parts of articles (DSL dictionaries only) 2012-09-16 14:19:47 +04:00
Abs62 78d450e1ca Little corrections for history handling 2012-09-12 21:19:21 +04:00
Abs62 ea442909ae Add word to history through context menu 2012-09-12 18:11:30 +04:00
Abs62 5ceab47fb3 Focus word list in history review mode 2012-09-12 16:32:29 +04:00
Abs62 e5943ec7ed Allow to turn on/off history in preferences 2012-09-11 17:03:10 +04:00
Abs62 8409c115a6 Show name of file when history imported in history review mode 2012-09-11 16:58:27 +04:00
Abs62 d33c1fb34a Store path for history export/import 2012-09-10 22:00:29 +04:00
Abs62 54bba79c60 Allow history import during history review 2012-09-10 20:23:58 +04:00
Abs62 b3439fc4a0 Import history from file 2012-09-10 17:01:35 +04:00
Abs62 52fbeac618 Show new translation after group changing 2012-09-03 16:42:43 +04:00
Denis Loginov b1b55f5c74 Added full-screen mode for Mac OS X Lion
Adapted from https://github.com/bjorn/tiled/tree/master/src/tiled
2012-06-03 14:29:49 -04:00
Julian Depetris Chauvin ba2ce47ae3 Merge branch 'themighty1-mru-tab' 2012-04-02 15:41:58 -03:00
Julian Depetris Chauvin 9404c4dd70 Fix crash when closing last opened tab 2012-03-26 22:38:41 -03:00
Abs62 535fe0d3e0 Update year in copyright notices. 2012-02-21 01:47:14 +04:00
Abs62 efba96f0d6 Export history to file 2012-02-17 16:01:52 +04:00
wwwwww 753b0185df MRU tab switching implemented 2012-02-17 00:00:00 +02:00
Abs62 11561ac4af Large search history 2012-02-16 18:56:25 +04:00
Abs62 bd90b5368b Add translation of the word from command line 2011-11-16 17:02:56 +04:00
Abs62 9a1ceff5d8 1. Add button to scan popup window to send translated word into main window
2. Add option to use main window instead of scan popup window
2011-11-16 16:52:25 +04:00
Julian Depetris Chauvin a7cb431c72 Clicking on "...." in the article view's context menu opens the Results Navigation Pane (if closed and is not popup window), focuses on the next dictionary entry on it and scrolls to the next dictionary in the article view. If user is using the popup window it just scrolls to the next dictionary. 2011-07-30 21:11:07 -03:00
Tvangeste 202914653f Fixed #28: Allow adding a new tab by double-clicking the large empty space right to it 2011-07-19 12:03:56 +02:00
Tvangeste 68335ba349 Provide an icon for the error message in the status bar 2011-07-15 14:42:40 +02:00
Tvangeste a94ed4b82e Make dictionary icons to have the same sizes, to avoid visual alignment problems.
* Corrected icon sizes in the "found in dictionaries" pane.
* Corrected icon sizes in the preferences dialog.
2011-07-15 14:11:08 +02:00
Tvangeste 4163bce8a2 Various status bar related fixes:
* Status Bar now available for Scan Popup window as well.
* Fixed #13: Eliminated modal box when sound is not available:
  Instead of modal dialog box we now show the status bar message,
  with error icon, thus making it visible but not disruptive.
* Proper handling of status bar images.
* Styling of the status bar in both modes
  (in Mani Window and in Popup Window).
2011-07-14 22:11:57 +02:00
Tvangeste 747526fca8 tooltips for a couple of buttons 2011-07-10 12:29:52 +02: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 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 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
Julian Depetris Chauvin c1ad1ec880 Code refactor to get current article view. 2011-07-01 16:22:40 -03:00
Julian Depetris Chauvin 5f97db0449 Add shortcuts for Previous/Next actions on Article search (Ctrl + F) 2011-06-30 09:45:05 -03: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 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
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
Abs62 36e509a2ab Replace printf in code by a macro DPRINTF 2011-06-19 22:50:11 +04: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
Tvangeste 2a31365012 Deal with X11 headers mess that causes compilation errors 2011-06-09 09:29:21 +02:00
Tvangeste 649fe9ce0b Fixed compilation failure on Linux. But WHY it's needed??? 2011-06-08 13:18:04 +02:00
Tvangeste de3fd01ada Fixed #1: Translate line should select all on mouse click that brings focus 2011-06-08 12:31:03 +02:00
Konstantin Isakov b8b7bffb13 Merge commit 'refs/merge-requests/15' of git://gitorious.org/goldendict/goldendict 2011-06-07 19:35:43 -07:00
Tvangeste 6f192dca6e Enable/disable Back and Forward buttons depending on the history.
This is a standard behavior for any history-enabled app
(like web browser). When there is no previous or next item
in the history, the appropriate button on the toolbar
is disabled.
2011-06-07 18:52:51 +02:00
Tvangeste c6e8b4998f Handling of backward and forward mouse buttons.
They now do what is most logical for them to do: going
backwards and forwards in history.
2011-06-07 10:26:49 +02:00
Tvangeste 4e6e0a5e05 Fixes after code review:
* Replaced the search via dictionary name by search via dictionary id, cleanup
* Renamed "Dictionaries Pane" --> "Results Navigation Pane"
* Added to CREDITS
* TODO note about code duplication
2011-06-06 11:54:23 +02:00
Tvangeste 3762f22e76 Implemented Dictionaries Pane, to show dicts in which results were found.
It is a separate detacheable pane, which could also be enabled/disabled,
it tracks the current tab's contains, and lists those dictionaries that
contributed their content to the current translation.

Clicking on dictionary name jumps to the appropriate article from
this dictionary, which improves the navigation flow.

The Dictionaries Pane:
  * Shows both dictionaries' names and icons.
  * Does not consume resources when hidden.
  * Properly styled.
  * Properly handles app-wide shortcuts
    (Esc, Ctrl-L, Alt-D, Enter, Alt-Up/Down).
2011-06-05 13:49:50 +02:00
Konstantin Isakov adc4c56954 When scan pop-up button is hidden on the toolbar, hide the extra separator as well (patch by Gloggy <glogg@mail.ru>) 2011-05-30 20:35:43 -07:00
Konstantin Isakov bed7209275 Merge branch 'master' of gitorious.org:goldendict/goldendict 2011-05-29 21:56:36 -07:00
Konstantin Isakov 8de5af7abc Merge commit 'refs/merge-requests/4' of git://gitorious.org/goldendict/goldendict 2011-05-29 21:54:13 -07:00
Julian Depetris Chauvin 41bd078a2a make ESC minimizes the main window when tray icon is totally disabled. 2011-05-29 23:00:33 -03:00
Julian Depetris Chauvin 4951f9311d Option to use small icons in toolbars of main window. 2011-05-28 19:26:54 -03:00
Julian Depetris Chauvin b1965dd44c Add a "Enable web plugins" option under Edit > Preferences > Network. It allows to listen to sound pronunciations from online dictionaries that rely on flash plugin such as howjsay.com and dictionary.com. Plugin must be installed for this option to work. See http://doc.trolltech.com/4.5/qtwebkit.html#netscape-plugin-support 2011-05-08 19:12:44 -03:00
Julian Depetris Chauvin 891f316015 Restore default behaviour for ESC key. There is now a "ESC key hides main window" option under Edit > Preferences > Interface. 2011-05-07 10:42:49 -03:00
Julian Depetris Chauvin 3bd9c48fe7 support Shift + Enter and Shift + double click to open a definition in a new tab (Opera browser standard) in addition to Ctrl + Enter and Ctrl + double click (other browsers standard). The selection with Shift + double click is not as perfect as with Ctrl + double click but it's ok. 2011-05-01 21:37:56 -03:00
Julian Depetris Chauvin 0f5d4aa04e close main window on ESC (additionally to Ctrl + F4). To achieve this remove ESC as a shortcut to switch focus to word input. This action is already performed by typing just any key on the ArticleView and with Alt+D and Ctrl+L key combinations on MainWindow. 2011-04-30 20:46:45 -03:00
abs62 368b58bb29 Command "Clear history" really clear saved history 2011-03-30 08:47:55 +04:00
Konstantin Isakov 92eceb8cad Change email from @users.berlios.de to @goldendict.org. 2010-12-09 15:31:50 +03:00
Konstantin Isakov 63e99204fc Switch to QtSingleApplication for maintaining single instance running.
This should put an end to all those pidfile-related problems.
2010-11-20 16:43:55 +03:00
Konstantin Isakov 41c6d7cbaa Show icons in the opened tabs' list. 2010-11-15 21:04:16 +03:00
Konstantin Isakov 1dafa5cb16 Allow styling of translate line and word list dependent on the current group by introducing a currentGroup Qt property.
To use, create ~/.goldendict/qt-style.css like this:

MainWindow #searchPane #translateLine[currentGroup="En"], MainWindow #searchPane #wordList[currentGroup="En"]
{
  background: white;
  color: black;
  font-size: 20px;
}
2010-11-15 18:22:35 +03:00
Konstantin Isakov 921c42088d Implement Credits window in the About dialog to show project contributors.
The actual credits file is to be fully populated yet.
2010-11-14 19:28:50 +03:00
Konstantin Isakov 953d9237a3 Update copyright to span to 2011.
Better early than late, this year is ending anyway.
2010-11-14 18:47:03 +03:00
Konstantin Isakov c2b0edd4b7 Update project domain name (goldendict.berlios.de -> goldendict.org) 2010-11-06 12:40:07 -07:00
ars aad0f9b4c1 added drop-down tab list 2010-09-16 20:52:40 +02:00
Konstantin Isakov be23f54914 Generate the exact version string via Git. 2010-07-02 21:15:51 +04:00
Konstantin Isakov 71519ff19b Add support for zooming fonts in word list and translate line. 2010-07-02 15:19:02 +04:00
Konstantin Isakov 15d3ccbc83 Properly handle QApplication::commitData(), hopefully providing proper config file saving when the system shuts down. 2010-06-28 19:14:07 +04:00
Konstantin Isakov 04bdf3aa36 For websites and forvo, don't add dummy word search results (as they don't have any index to search in) -- instead, make results empty, but mark the search uncertain, and don't mark the word input line as reddish in that case.
This is just a refinement on how the word search is done in the dictionaries
that don't actually ability to search words in. Previously they emitted dummy
italicized suggestions, which were getting in the way. Now they don't emit
anything, but mark the search as uncertain. Any uncertain searches don't mark
the word input with the different color to indicate the search has failed.
2010-06-22 16:43:11 +04:00
Konstantin Isakov ab88fa4867 Drop the src/ directory. It's superfluous. 2010-05-15 16:42:18 +04:00
Renamed from src/mainwindow.cc (Browse further)