Commit graph

68 commits

Author SHA1 Message Date
xiaoyifang d174dc16ba
opt:remove non-xapian fulltext creation logic (#643)
* opt!:remove non-xapian fulltext creation logic

BREAKING CHANGE: after this PR, xapian package will have to installed
before the compilation. on Linux, this should be libxapian-dev package.

For common users: all created fulltext which is not created by xapian
before will be recreated using the new
engine.

* fix: remove old fulltext search ui

* 🎨 apply clang-format changes

---------

Co-authored-by: xiaoyifang <xiaoyifang@users.noreply.github.com>
2023-05-17 22:29:56 +08:00
YiFang Xiao ca8dc576cd fix:code smell 2023-05-14 06:32:13 -08:00
YiFang Xiao c40d04ec5e feat: add custom transliteration support
fix #661

i18n: add new translation entries
2023-05-14 06:32:13 -08:00
xiaoyifang 93c3bdc007 opt:reduce string conversion 2023-04-29 18:21:42 +08:00
xiaoyifang a82ce2a86f opt: use unified cache dir
seperate the persistentstoragepath with cachepath
2023-04-26 07:45:48 +08:00
Xiao YiFang c2f856c074 opt: Sorting through the use of strings
there are many string conversion in the system .some of them can be avoided .
2023-04-24 15:11:40 +08:00
shenleban tongying 129345613e
refactor: Move all .cc/.hh files to src/ 2023-04-17 17:17:36 -04:00
Konstantin Isakov ab88fa4867 Drop the src/ directory. It's superfluous. 2010-05-15 16:42:18 +04:00
Konstantin Isakov ceab951fe9 Update year in copyright notices. 2010-05-08 22:59:59 +04:00
Konstantin Isakov 3e08acbeac Double-clicking the words in an article translates them right away. This
feature may be turned off in preferences, but it is on by default.
2010-04-09 00:37:59 +04:00
Konstantin Isakov a0fda4383a Implement dictionary bar for scan popup.
This dictionary bar operates completely separately from the dictionary bar in
the main window, and has its own set of muted dictionaries. The bar is on the
right of the window by default, but can be moved once the window is pinned
down.

Windows users, please test, this may have some Windows-specific problems.
2010-03-31 00:16:27 +04:00
Konstantin Isakov c25e7f268e Use Phonon framework for audio playback.
This is now the default way to play back sound under Windows. The other one,
"Use external program", was also made available there. The old method of audio
playback under Windows (via PlaySound) was completely removed.
Since Phonon uses DirectShow as a backend under Windows, all file types
supported by it should now play back. Therefore, the previous limitation to
just .wav files is now lifted.
Since Phonon is only available starting from Qt 4.6.0 under Windows, no older
versions of Qt are supported anymore there.
2010-01-02 21:16:22 +03:00
Konstantin Isakov 00179e4a48 = Move out atomic renaming into a function of its own.
+m Add getHistoryFileName() in preparation for history support.
2009-10-21 19:30:14 +00:00
Konstantin Isakov cdd2321601 *! It may now be able to compile under Windows. 2009-10-19 11:19:40 +00:00
Konstantin Isakov ac340ba98f +! Write config file by creating a temporary file and renaming it over the
target one once it's fully written.
   Note that the Windows-specific code here was not tested at all.
2009-10-18 11:01:13 +00:00
Konstantin Isakov 420efdab13 + Add 'Show names in dictionary bar' option. This should aid StarDict users
since there're no icons in those dictionaries.
2009-10-12 12:41:20 +00:00
Konstantin Isakov e13a4596ae + Dictionary bar, a bar with dictonary icons for the current group, was
implemented. Clicking icons disables corresponding dictionaries. When
  clicking with Shift/Ctrl, a dictionary can be made solo.
  The feature is currently only available in main window only, scan popup
  will be addressed later.
+ 'View' menu introduced. It allows switching toolbars and side pane on/off
  without any arcane knowledge on how to toggle them on/off via RMB.
2009-09-23 18:44:38 +00:00
Konstantin Isakov 076e6b5447 + Dictionary bar partially implemented. This is work in progress. 2009-09-21 17:50:03 +00:00
Konstantin Isakov 54efa23585 + Add an option to block content (images, frames etc) not originating
from the site the user browses. This effectively hides all
  advertisements on the websites.
2009-08-31 12:18:08 +00:00
Konstantin Isakov f7d47163d3 + Localizations are not hardcoded anymore -- all translation files that exist
in the current installation get into the list now.
+ Chinese translation added (thanks to Satoshi Joh)
+ Czech translation added (thanks to Vit Pelcak)
2009-07-29 16:39:27 +00:00
Konstantin Isakov 0d2ce6128d * Change Ctrl+Ins+Ins to Ctrl+C+C. 2009-05-24 19:04:24 +00:00
Konstantin Isakov 0ed8294c51 + Use (programDataDir)/content/morphology when creating new config if said
directory exists.
2009-05-24 17:35:47 +00:00
Konstantin Isakov 93fe5e5301 + 'WebSites' implemented.
*! Don't set a global qt stylesheet - sometimes WebKit crashes with it.
*! Fixes for text search feature (works faster, no selection artifacts, frame
   doesn't grow).
2009-05-16 18:04:21 +00:00
Konstantin Isakov 747825a505 + Introduce dictionaryOrder and inactiveDictionaries -- for now only in config. 2009-05-16 15:22:02 +00:00
Konstantin Isakov f065a1c592 + Possibility to skip the latest release when checking for new releases. 2009-05-14 17:59:49 +00:00
Konstantin Isakov 68c20ff92f *! Correct path for the pid file; prevent double-opening it. 2009-05-12 19:13:20 +00:00
ars_goldendict aedd77f116 fixed bug with storing german transliteration option 2009-05-12 17:33:33 +00:00
ars_goldendict 5253d27c78 added German transliteration rules 2009-05-11 23:37:18 +00:00
Konstantin Isakov 8c40c6d50a + Implement switchable display styles. For now 'Default' and 'Lingvo'. 2009-05-11 11:03:36 +00:00
Konstantin Isakov 197ccf35d4 + Support for transliterations added. For now basic Russian translit and
Hepburn Romaji are supported.
2009-05-06 14:39:08 +00:00
Konstantin Isakov 21b2d3b747 + Printing support implemented. 2009-05-01 12:20:33 +00:00
ars_goldendict c8e4e76254 some polishing of zooming routines 2009-04-30 22:09:04 +00:00
ars_goldendict cc1a083493 fix for path to Program Files on Windows when it is not c:\program files 2009-04-30 21:47:42 +00:00
ars_goldendict 3e2ae16e96 added zoom buttons 2009-04-30 19:57:25 +00:00
ars_goldendict 67b34fd3e0 added changes in order to be able to get it compiled with MSVC (no project yet) 2009-04-29 23:18:26 +00:00
Konstantin Isakov c0935f8e13 *! Fix build problems on Fedora Development (patch by Tigro) 2009-04-27 12:25:15 +00:00
Konstantin Isakov e5613471ee *! getProgramDataDir() fixed for builds with no dir specified (Windows).
+ Ability to use a template config file added.
2009-04-23 13:43:51 +00:00
Konstantin Isakov 4ab4eac5a7 * Add modifiers to the second key in QKeySequence() too, for future
compatibility where we might want to use more generic combos, with each
  key posessing its own set of modifiers.
2009-04-22 15:33:39 +00:00
Konstantin Isakov 5efd7c52e1 + Options to configure global hotkeys added. The clipboard hotkey was added.
* On X11, XGrabKey was replaced with the RECORD extension -based solution.
2009-04-21 18:27:26 +00:00
Konstantin Isakov e1b8c323c0 + Added a feature to automatically check for a new release from time to time. 2009-04-20 19:54:34 +00:00
Konstantin Isakov 24bd7066c3 + Add autoStart property to configuration (patch by Ars) 2009-04-18 18:16:04 +00:00
Konstantin Isakov 5e7f41a64e + Options to open tabs in background and open tabs after the current one added. 2009-04-13 12:51:25 +00:00
Konstantin Isakov 11bc46b7af + Implemented the ability to change program's language.
* Russian translation updated to include new strings, others were fixed
  a bit.
2009-04-12 20:46:25 +00:00
Konstantin Isakov ce365f386b * Russian translation updated.
* Basic support for translations added, along with the changes necessary to
  accommodate to it.
2009-04-12 19:41:58 +00:00
Konstantin Isakov 4e30ba7778 + The ability to press scan popup modifiers shortly after the selection was
made added.
2009-04-11 16:44:14 +00:00
Konstantin Isakov c7126a0281 + Ability to play the first audio reference by clicking on the 'Pronounce word'
button in main window or in scan popup added. It is also possible to
  configure the program to do that automatically.
+ It is now possible to specify which program to use for audio file playback.
2009-04-10 21:07:03 +00:00
Konstantin Isakov 03736c2193 * Give groups numerical ids and switch to use them everywhere instead of names
to identify them.
2009-04-10 12:48:40 +00:00
Konstantin Isakov 55749e23c2 + On Linux, add standard dictd path to the default config if it exists. 2009-04-09 19:03:28 +00:00
Konstantin Isakov b7bdc65a57 + Hunspell-based morphology added. 2009-04-09 14:15:01 +00:00
Konstantin Isakov 107c75ce3c + When making the default config file, try the usual places for StarDict's
WyabdcRealPeopleTTS and add it as a SoundDir if it's there.
2009-04-04 19:20:09 +00:00