Fix reading of vokabeln.de files (version 1 only)
Add some verbose debug output to easier find errors for these obscure formats in the future.
BUG: 165088
David Capel [Sat, 16 Aug 2008 11:10:09 +0000 (11:10 +0000)]
Conjugation is now complete. it uses personalpronouns + tense for the prompt when available, but it falls back to a generic description when a pronoun isn't.
Enabling of Hint and Show Solution in all modes.
Deletion of the Hint class (it was unused -- the hint KAction superceded it).
Various small bugfixes.
Fix to make keduvocpersionalpronoun more reliable.
David Capel [Fri, 15 Aug 2008 12:24:51 +0000 (12:24 +0000)]
Articles are now saved, as are plural personal pronouns.
The personal pronouns were victim of my KEduVocWordFlag change, but the articles were victim of an API mixup: KEduVocIdentifier.articles() returned by value,
and kvtml2reader was modifying the return value. Returning by reference solves the problem.
Additionally I added some code to hopefully catch the null-d-pointer bug in KEduVocWordType.
David Capel [Wed, 30 Jul 2008 08:07:53 +0000 (08:07 +0000)]
NOTE: Breaks binary compatibility. Make sure to make install after you make this.
This consolidates various enums of word properties into one: KEduVocWordFlags
This stores the following sets of properties:
Number
Part of Speech
Gender
Definiteness
Regularity
Phrase (if it is actually a phrase and not a word)
Others may come later, but those work for now.
Instead of having functions accept multiple parameters for each type (gender, number, etc), they accept one KEduVocWordFlags parameter.
You can pass as many flags as you want by bitwise ORing (a|b) them together, similar to how Qt accepts various flags. QFlags is a handy helper class that does
this magic for us.
This implementation has the following benefits over the previous one:
(The previous had multiple enums floating around in various classes, new combinations were frequently made by making a new enum entry.)
* All the flags are in one place, instead of scattered and duplicated.
* You only need to set the flags you care about -- no dummy parameter-filling flags needed.
* We can extend the flags without breaking binary compatibility.
* It allows optional extra flags like verb regularity.
Implemented indexOfIdentifier() function (in comments). Works only by
removing the const from the function definition. Not sure about binary
compatibility so I didn't remove it.
+ added setModified(true) to functions in KEduVocDocument so the
docModified() signal will be emitted in every document change.
+ docModified(bool) emits automatically the
ParleyDocument::documentChanged() signal
Move a lot of stuff around to get Leitner Boxes functionallity in there.
Leitner Boxes are read now and their contents is displayed in the main view.
Crashes on exit. (need to investigate)
Not written yet.
Nice catch Avgoustinos!
And in time for 4.1.
Editing languages should work now.
- after adding and then immediately removing a language one of the existing languages would be blown away
- reload the languages after they have been changed
CCMAIL: parley-devel@kde.org
Implement copy, cut and paste.
Vocabulary is now copied including grades, conjugations etc.
Not copied are synonym, antonym and false friend.
Some cleanup of the copy constructors of expression/translation to get copies right.
Fix deletion of entries.
make the option useful (it was behind the actual code using it)
fix one typo
........
r799268 | sengels | 2008-04-21 00:47:50 +0200 (Mon, 21 Apr 2008) | 1 line
patch by jm:
This patchs removes the parameter of MapThemeManager::findMapThemes because it
is constant ("maps/"). Removes redundant occurrence of literal "maps/" inside, too.
CCMAIL: jensmh@gmx.de
........
r799278 | sengels | 2008-04-21 01:24:37 +0200 (Mon, 21 Apr 2008) | 1 line
CMAKE delivers QT_PLUGIN_PATH as QT_PLUGINS_DIR
........
r799284 | sengels | 2008-04-21 01:52:30 +0200 (Mon, 21 Apr 2008) | 1 line
make it easier to build only specific libraries
........
r799287 | sengels | 2008-04-21 02:05:53 +0200 (Mon, 21 Apr 2008) | 3 lines
patch by jm:
Move code from MapThemeManager::findMapThemes that is duplicated for local (.marble) and system (kde/share/apps/marble) directories to overloaded helper method.
........
r799328 | annma | 2008-04-21 10:29:29 +0200 (Mon, 21 Apr 2008) | 2 lines
use entities as we are Monday
........
r799331 | repinc | 2008-04-21 10:39:48 +0200 (Mon, 21 Apr 2008) | 2 lines
Step objects info work from last week.
........
r799367 | jordipolo | 2008-04-21 13:26:13 +0200 (Mon, 21 Apr 2008) | 4 lines
Test till 100 so we got to the range of 10ms in most systems (currently real results can be hidden by the accurary of the system)
When I did that I got results from 27ms to 37ms. Adding 2 more tests helps lowering the jitter (52-57).
........
r799379 | gladhorn | 2008-04-21 14:12:07 +0200 (Mon, 21 Apr 2008) | 2 lines
Add an author contact info field - this will ease the creation of kns2 meta data directly from the xml.
........
r799380 | gladhorn | 2008-04-21 14:12:09 +0200 (Mon, 21 Apr 2008) | 2 lines
better match xsl and what we produce in xml
........
r799381 | gladhorn | 2008-04-21 14:12:12 +0200 (Mon, 21 Apr 2008) | 2 lines
clean up the export stuff
*show a KFileDialog to select the file
*use either libkdeedu (*.csv) or the new xsl stuff for export
........
r799383 | gladhorn | 2008-04-21 14:12:16 +0200 (Mon, 21 Apr 2008) | 2 lines
use the right ui file
........
r799388 | gladhorn | 2008-04-21 14:34:40 +0200 (Mon, 21 Apr 2008) | 2 lines
no need to crash on empty expressions
........
r799389 | gladhorn | 2008-04-21 14:34:56 +0200 (Mon, 21 Apr 2008) | 2 lines
Add the author contact (email) field to doc properties.
........
r799391 | gladhorn | 2008-04-21 14:52:32 +0200 (Mon, 21 Apr 2008) | 2 lines
Create the xml from the document in memory using qbytearray instead of needing to read from disk which would fail when not using kvtml2 and also needed a saved document to work.
........
r799421 | gladhorn | 2008-04-21 16:10:11 +0200 (Mon, 21 Apr 2008) | 2 lines
add forgotten files and only export when a filename is selected.
........
r799430 | metellius | 2008-04-21 16:37:38 +0200 (Mon, 21 Apr 2008) | 2 lines
Made Search Anywhere work for words, not only kanji. Updated match anywhere action
........
r799432 | winterz | 2008-04-21 16:38:47 +0200 (Mon, 21 Apr 2008) | 2 lines
use fullpath to tilecreator, else build fails for some folks.
........
r799433 | sengels | 2008-04-21 16:45:59 +0200 (Mon, 21 Apr 2008) | 2 lines
patch by jm:
- Remove unused local variable.
- Remove pointless delete.
........
r799495 | chehrlic | 2008-04-21 19:33:11 +0200 (Mon, 21 Apr 2008) | 1 line
the long command line problem with mingw no longer exists - remove it as it only make trouble with cmake 2.6. See also kdegraphics/kolourpaint
........
Create the xml from the document in memory using qbytearray instead of needing to read from disk which would fail when not using kvtml2 and also needed a saved document to work.
Peter Hedlund [Fri, 11 Apr 2008 17:11:55 +0000 (17:11 +0000)]
Make sure entries are loaded and displayed in the order they are stored.
The use of QSet made the order of expression items unspecified, i.e. random.
QSet is used elsewhere in the library. I will leave it to Frederik to review such code.
Parley now supports Synonyms, Antonyms and False Friends that are connections to other words.
FEATURE: 151382
Write not always synonyms but also antonyms and false friends