]> Git trees. - libqmvoc.git/log
libqmvoc.git
19 years agoGive KEduVocGrade proper operator= and operator== functions.
Frederik Gladhorn [Sat, 1 Sep 2007 23:27:25 +0000 (23:27 +0000)]
Give KEduVocGrade proper operator= and operator== functions.
Use these in KEduVocTranslation.
Remove lots of comments and methods that can never be called.

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=707483

19 years agoUse = instead of == for assignment...
Frederik Gladhorn [Sat, 1 Sep 2007 23:15:53 +0000 (23:15 +0000)]
Use = instead of == for assignment...

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=707479

19 years agoEnable copy operation of conjugations in operator= for translation.
Frederik Gladhorn [Sat, 1 Sep 2007 23:13:41 +0000 (23:13 +0000)]
Enable copy operation of conjugations in operator= for translation.

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=707478

19 years agoAdd some comments and a QString to hold irregular plural forms.
Frederik Gladhorn [Sat, 1 Sep 2007 22:53:04 +0000 (22:53 +0000)]
Add some comments and a QString to hold irregular plural forms.

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=707471

19 years agoFix tags in old reader (KV_CON_ENTRY/KV_CON_TYPE) mixed up. Works again.
Frederik Gladhorn [Sat, 1 Sep 2007 17:43:00 +0000 (17:43 +0000)]
Fix tags in old reader (KV_CON_ENTRY/KV_CON_TYPE) mixed up. Works again.

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=707387

19 years agoSimplify conjugation class:
Frederik Gladhorn [Sat, 1 Sep 2007 17:24:32 +0000 (17:24 +0000)]
Simplify conjugation class:
 - only consists of the entries for one language
 - tenses moved directly into translation which contains a qmap<qstring,keduvoctranslation> now.

Removed superfluous replace empty string with "".

Cleanup.
Personal pronouns much more logical this way.

Breaks reading of old conjugations (will be fixed again soon).

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=707378

19 years agoRemoved KEduVocConjugation::getType()
Frederik Gladhorn [Sat, 1 Sep 2007 14:29:35 +0000 (14:29 +0000)]
Removed KEduVocConjugation::getType()
Instead, directly use KEduVocConjugation::tenses() to get a list of tenses (that correspond to conjugations).
Cleanup.
KEduVocKvtmlCompability::oldTense() to enable writing of old tenses. Still to do: the user defined tenses are not written correctly I assume.
Rename type to tense in VerbQueryDlg.

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=707320

19 years agocleanup conjugation class and kvtml2reader conjugations
Frederik Gladhorn [Sat, 1 Sep 2007 13:50:12 +0000 (13:50 +0000)]
cleanup conjugation class and kvtml2reader conjugations

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=707302

19 years agoFix: Writer did not write <thirdperson> tag, but put third persons directly next...
Frederik Gladhorn [Sat, 1 Sep 2007 11:12:27 +0000 (11:12 +0000)]
Fix: Writer did not write <thirdperson> tag, but put third persons directly next to the others.
Conjugation class:
No more macros.
Move over to a QMap for tense-conjugation entries.

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=707256

19 years agoGet rid of conjugation cleanup function.
Frederik Gladhorn [Sat, 1 Sep 2007 09:59:20 +0000 (09:59 +0000)]
Get rid of conjugation cleanup function.

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=707228

19 years agoEnable reading of conjugations (read the right tag - KVTML_TENSE, not type-something).
Frederik Gladhorn [Fri, 31 Aug 2007 12:50:30 +0000 (12:50 +0000)]
Enable reading of conjugations (read the right tag - KVTML_TENSE, not type-something).

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=706852

19 years agoWrite the tense tag for conjugations.
Frederik Gladhorn [Fri, 31 Aug 2007 12:10:02 +0000 (12:10 +0000)]
Write the tense tag for conjugations.

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=706836

19 years agoConjugationtype was never used, better reflected by using word type verb with appropr...
Frederik Gladhorn [Fri, 31 Aug 2007 11:54:48 +0000 (11:54 +0000)]
Conjugationtype was never used, better reflected by using word type verb with appropriate subtype.

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=706832

19 years agoMake tense required for conjugations, since without the tense it's worthless.
Frederik Gladhorn [Fri, 31 Aug 2007 11:53:48 +0000 (11:53 +0000)]
Make tense required for conjugations, since without the tense it's worthless.

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=706831

19 years agoSomewhat write conjugations. Tags are still mixed up.
Frederik Gladhorn [Fri, 31 Aug 2007 11:50:57 +0000 (11:50 +0000)]
Somewhat write conjugations. Tags are still mixed up.
Rename some QString from type to tense, as that is what it actually contains.

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=706830

19 years agoAdd operator=, reading old documents works now.
Frederik Gladhorn [Fri, 31 Aug 2007 09:35:50 +0000 (09:35 +0000)]
Add operator=, reading old documents works now.

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=706797

19 years agoget rid of old unused code
Frederik Gladhorn [Fri, 31 Aug 2007 09:26:43 +0000 (09:26 +0000)]
get rid of old unused code

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=706794

19 years agoAdd compability methods to read kvtml1 tenses.
Frederik Gladhorn [Fri, 31 Aug 2007 09:09:26 +0000 (09:09 +0000)]
Add compability methods to read kvtml1 tenses.

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=706784

19 years agoempty function declarations--
Frederik Gladhorn [Fri, 31 Aug 2007 07:56:13 +0000 (07:56 +0000)]
empty function declarations--

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=706749

19 years agoChanges in the conjugation class. No longer uses a static table to translate abreviat...
Frederik Gladhorn [Fri, 31 Aug 2007 07:53:35 +0000 (07:53 +0000)]
Changes in the conjugation class. No longer uses a static table to translate abreviated tense names, only the type field. Still needs cleanup and doesn't work. Conjugations are not saved, because of missing compability functions they are not read from old files either at this point. (Yes, nothing works)

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=706748

19 years agoplug memory leak, sorry Frederik, couldnt use a Reference because of QMap for some...
Jeremy Paul Whiting [Fri, 31 Aug 2007 03:11:49 +0000 (03:11 +0000)]
plug memory leak, sorry Frederik, couldnt use a Reference because of QMap for some reason. :(

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=706659

19 years agoI hope I still know what I'm doing around here. Load the column title correctly in...
Peter Hedlund [Thu, 30 Aug 2007 18:07:49 +0000 (18:07 +0000)]
I hope I still know what I'm doing around here. Load the column title correctly in old kvtml format.

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=706537

19 years agoMove document->conjugation() into identifier and rename it to personalPronouns.
Frederik Gladhorn [Thu, 30 Aug 2007 12:29:37 +0000 (12:29 +0000)]
Move document->conjugation() into identifier and rename it to personalPronouns.

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=706438

19 years agoMoved article management from doc class to identifier.
Frederik Gladhorn [Thu, 30 Aug 2007 12:08:14 +0000 (12:08 +0000)]
Moved article management from doc class to identifier.

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=706431

19 years agoApidox++
Frederik Gladhorn [Thu, 30 Aug 2007 10:29:09 +0000 (10:29 +0000)]
Apidox++

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=706412

19 years agoBegin of a class KEduVocIdentifier.
Frederik Gladhorn [Thu, 30 Aug 2007 10:22:03 +0000 (10:22 +0000)]
Begin of a class KEduVocIdentifier.
So far it only contains name and locale.
From now on:
 - locale = two letter language code, en, es, de,...
 - name = description of the contents - English, Spanish, Famous people, Definition, Muscle in latin,...

Next will be to move the articles and personal pronouns into the identifier class.
Eventually the tenses should be kept there as well.

Adapted all readers/writers.
Appending identifiers should always give sane default values.

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=706410

19 years agoLessons have names not descriptions. lesson->description() is now lesson->name(). v3.93.0
Frederik Gladhorn [Wed, 29 Aug 2007 17:21:31 +0000 (17:21 +0000)]
Lessons have names not descriptions. lesson->description() is now lesson->name().

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=706196

19 years agoRemove very old search method. Never got used.
Frederik Gladhorn [Wed, 29 Aug 2007 17:06:48 +0000 (17:06 +0000)]
Remove very old search method. Never got used.

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=706187

19 years agoRemove all calls to document->originalIdentifier() - replaced by document->identifier(0).
Frederik Gladhorn [Wed, 29 Aug 2007 16:36:16 +0000 (16:36 +0000)]
Remove all calls to document->originalIdentifier() - replaced by document->identifier(0).

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=706177

19 years agoRename documentRemark to documentComment
Frederik Gladhorn [Wed, 29 Aug 2007 13:52:23 +0000 (13:52 +0000)]
Rename documentRemark to documentComment

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=706123

19 years agoFinally change formatting to FOUR SPACES.
Frederik Gladhorn [Wed, 29 Aug 2007 13:36:39 +0000 (13:36 +0000)]
Finally change formatting to FOUR SPACES.

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=706119

19 years agoRemove enable sorting option which is not applicable any more. Used nowhere.
Frederik Gladhorn [Wed, 29 Aug 2007 13:21:39 +0000 (13:21 +0000)]
Remove enable sorting option which is not applicable any more. Used nowhere.
Was not even written in newer docs.

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=706115

19 years agoapidox fixes
Jeremy Paul Whiting [Wed, 29 Aug 2007 02:15:27 +0000 (02:15 +0000)]
apidox fixes

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705967

19 years agoAdd some debug info, next will come the rewrite. Go back here, if nothing works.
Frederik Gladhorn [Tue, 28 Aug 2007 20:46:25 +0000 (20:46 +0000)]
Add some debug info, next will come the rewrite. Go back here, if nothing works.

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705898

19 years agoAdded comments to the conjugation reading function in the desperate attempt to unders...
Frederik Gladhorn [Tue, 28 Aug 2007 20:19:17 +0000 (20:19 +0000)]
Added comments to the conjugation reading function in the desperate attempt to understand the functioning of the conjugation class.

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705886

19 years agoMove KEduVocConjugation into its own file.
Frederik Gladhorn [Tue, 28 Aug 2007 18:17:36 +0000 (18:17 +0000)]
Move KEduVocConjugation into its own file.

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705851

19 years agoThrow out the uniqueType() method (not necessary) and enable writing of types for...
Frederik Gladhorn [Tue, 28 Aug 2007 15:36:40 +0000 (15:36 +0000)]
Throw out the uniqueType() method (not necessary) and enable writing of types for kvtml 1.

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705789

19 years agoremove comment
Frederik Gladhorn [Tue, 28 Aug 2007 15:29:11 +0000 (15:29 +0000)]
remove comment

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705784

19 years agoImplement oldType().
Frederik Gladhorn [Tue, 28 Aug 2007 14:44:51 +0000 (14:44 +0000)]
Implement oldType().

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705769

19 years agoMove oldType() function to the compability class. Apidox it.
Frederik Gladhorn [Tue, 28 Aug 2007 14:42:41 +0000 (14:42 +0000)]
Move oldType() function to the compability class. Apidox it.

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705766

19 years agoMoved some type handling compability functions to the compability class.
Frederik Gladhorn [Tue, 28 Aug 2007 14:02:43 +0000 (14:02 +0000)]
Moved some type handling compability functions to the compability class.

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705750

19 years agoapidox
Frederik Gladhorn [Tue, 28 Aug 2007 13:35:18 +0000 (13:35 +0000)]
apidox

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705747

19 years agoAdd complete support for READING old kvtml usage labels.
Frederik Gladhorn [Tue, 28 Aug 2007 13:30:15 +0000 (13:30 +0000)]
Add complete support for READING old kvtml usage labels.
New class: KEduVocCompablility to contain all constants needed for the above conversions.
The type and conjugation stuff should also move there, to finall clean up with all scattered defines.

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705745

19 years agoremove warning, now that grade_t is unsigned int instead of char
Jeremy Paul Whiting [Tue, 28 Aug 2007 11:40:18 +0000 (11:40 +0000)]
remove warning, now that grade_t is unsigned int instead of char

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705702

19 years agochange translation class translation method to text()
Jeremy Paul Whiting [Tue, 28 Aug 2007 02:06:55 +0000 (02:06 +0000)]
change translation class translation method to text()

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705484

19 years agoRemove comment, enable comparison and copy of falseFriends (operator= and ==).
Frederik Gladhorn [Tue, 28 Aug 2007 00:24:58 +0000 (00:24 +0000)]
Remove comment, enable comparison and copy of falseFriends (operator= and ==).

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705461

19 years agoMake usages inside the translation class a QSet<QString>.
Frederik Gladhorn [Tue, 28 Aug 2007 00:19:10 +0000 (00:19 +0000)]
Make usages inside the translation class a QSet<QString>.

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705459

19 years agoMake usages a QSet<QString> in the document.
Frederik Gladhorn [Tue, 28 Aug 2007 00:08:05 +0000 (00:08 +0000)]
Make usages a QSet<QString> in the document.

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705458

19 years agoImplement KEduVocExpression::removeTranslation(int index).
Frederik Gladhorn [Tue, 28 Aug 2007 00:00:27 +0000 (00:00 +0000)]
Implement KEduVocExpression::removeTranslation(int index).
Only a call to remove() of the QMap.

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705457

19 years agoadd comment to merge section
Frederik Gladhorn [Mon, 27 Aug 2007 23:56:16 +0000 (23:56 +0000)]
add comment to merge section

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705456

19 years agoremove comment
Frederik Gladhorn [Mon, 27 Aug 2007 23:55:50 +0000 (23:55 +0000)]
remove comment

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705455

19 years agoRemove comment, enable commented csv writer that was commented out for no reason.
Frederik Gladhorn [Mon, 27 Aug 2007 23:51:38 +0000 (23:51 +0000)]
Remove comment, enable commented csv writer that was commented out for no reason.

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705452

19 years agoRemove all calls to KEduVocExpression->translationCount() and the function itself...
Frederik Gladhorn [Mon, 27 Aug 2007 23:28:20 +0000 (23:28 +0000)]
Remove all calls to KEduVocExpression->translationCount() and the function itself, since we use a QMap for translations.
Now it will actually be possible to remove translations.
Use KEduVocExpression->translationIndices() to get the translations that are present.

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705446

19 years agoat least return something
Pino Toscano [Mon, 27 Aug 2007 23:11:00 +0000 (23:11 +0000)]
at least return something

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705441

19 years agoMake rename and remove of usages actually work.
Frederik Gladhorn [Mon, 27 Aug 2007 23:07:41 +0000 (23:07 +0000)]
Make rename and remove of usages actually work.
Now the lib iterates over all translations to rename/remove the label.
Since these are rather uncommon events the cost of the iteration is ok.

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705438

19 years agoMake renameUsage return void as intended
Frederik Gladhorn [Mon, 27 Aug 2007 22:43:33 +0000 (22:43 +0000)]
Make renameUsage return void as intended

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705429

19 years agomake detectFileType static, it does not need an instance of document
Pino Toscano [Mon, 27 Aug 2007 22:41:50 +0000 (22:41 +0000)]
make detectFileType static, it does not need an instance of document

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705428

19 years agoapidox
Frederik Gladhorn [Mon, 27 Aug 2007 22:34:03 +0000 (22:34 +0000)]
apidox

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705424

19 years agoRewrite of everything related to usages.
Frederik Gladhorn [Mon, 27 Aug 2007 22:30:09 +0000 (22:30 +0000)]
Rewrite of everything related to usages.
A usage is now simply a QStringList.
Translations can contain as many usage QStrings as they want (also QStringList).
Another dtd update: A translation can contain multiple <usage>tags.
Removal of usage label management classes.

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705421

19 years agoremove old stuff, said frederik
Pino Toscano [Mon, 27 Aug 2007 16:01:04 +0000 (16:01 +0000)]
remove old stuff, said frederik

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705265

19 years ago+constness
Pino Toscano [Mon, 27 Aug 2007 15:52:03 +0000 (15:52 +0000)]
+constness

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705261

19 years agogive CamelCase names to the values of the document type enum
Pino Toscano [Mon, 27 Aug 2007 15:44:00 +0000 (15:44 +0000)]
give CamelCase names to the values of the document type enum

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705258

19 years ago#include reduction and cleanup in keduvodocument
Pino Toscano [Mon, 27 Aug 2007 15:33:00 +0000 (15:33 +0000)]
#include reduction and cleanup in keduvodocument

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705253

19 years agomultipleChoice and comparison return references
Jeremy Paul Whiting [Mon, 27 Aug 2007 15:26:24 +0000 (15:26 +0000)]
multipleChoice and comparison return references

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705251

19 years agostart to get rid of #define's in public headers:
Pino Toscano [Mon, 27 Aug 2007 15:07:06 +0000 (15:07 +0000)]
start to get rid of #define's in public headers:
- move the kvocdocument-specific ones into a private header
- move a pair of kvoctrain-specific ones to kvoctrain

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705244

19 years agoapidox
Frederik Gladhorn [Mon, 27 Aug 2007 14:47:32 +0000 (14:47 +0000)]
apidox

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705240

19 years agomove private class into class
Frederik Gladhorn [Mon, 27 Aug 2007 14:34:46 +0000 (14:34 +0000)]
move private class into class

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705235

19 years agoapidox
Frederik Gladhorn [Mon, 27 Aug 2007 14:34:04 +0000 (14:34 +0000)]
apidox

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705234

19 years agoMake KEduVocGradePrivate part of KEduVocGrade
Frederik Gladhorn [Mon, 27 Aug 2007 14:22:31 +0000 (14:22 +0000)]
Make KEduVocGradePrivate part of KEduVocGrade

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705233

19 years agoapidox
Frederik Gladhorn [Mon, 27 Aug 2007 13:41:43 +0000 (13:41 +0000)]
apidox

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705220

19 years agoAdd voc document mainpage
Frederik Gladhorn [Mon, 27 Aug 2007 13:39:10 +0000 (13:39 +0000)]
Add voc document mainpage

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705219

19 years agoKDEEDU -> KDE Education Project
Frederik Gladhorn [Mon, 27 Aug 2007 13:05:42 +0000 (13:05 +0000)]
KDEEDU -> KDE Education Project

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705211

19 years agoMake the lib mainpage contain some info and links (I hope).
Frederik Gladhorn [Mon, 27 Aug 2007 12:23:03 +0000 (12:23 +0000)]
Make the lib mainpage contain some info and links (I hope).

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705181

19 years agoAdded a bunch of missing i18n calls, use the const QStrings for special types when...
Frederik Gladhorn [Mon, 27 Aug 2007 11:06:05 +0000 (11:06 +0000)]
Added a bunch of missing i18n calls, use the const QStrings for special types when creating default types.

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705168

19 years agoMake special types api a bit nicer (specialTypeX() instead of xSpecialType()).
Frederik Gladhorn [Mon, 27 Aug 2007 10:21:21 +0000 (10:21 +0000)]
Make special types api a bit nicer (specialTypeX() instead of xSpecialType()).

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705156

19 years agoAdd missing special type explanations.
Frederik Gladhorn [Mon, 27 Aug 2007 10:14:54 +0000 (10:14 +0000)]
Add missing special type explanations.

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705152

19 years agoAdded some special type handling functions to KEduVocWordType. Made special types...
Frederik Gladhorn [Mon, 27 Aug 2007 09:41:33 +0000 (09:41 +0000)]
Added some special type handling functions to KEduVocWordType. Made special types into static const strings, these have to be used now instead of hard coded string const.

Fix: When selecting a new word type, the type box was not updated. (Still expected the old type handling system.) First class to really use special types.

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705142

19 years agoKEduVocWordType
Frederik Gladhorn [Sun, 26 Aug 2007 12:32:20 +0000 (12:32 +0000)]
KEduVocWordType
 - Move const strings into the d-pointer class.
 - Rename createOldWordTypeLists to createDefaultWordTypes
Use createDefaultWordTypes when creating a new document with KVocTrain

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=704841

19 years agocomment out unused old defines
Frederik Gladhorn [Sun, 26 Aug 2007 11:34:49 +0000 (11:34 +0000)]
comment out unused old defines

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=704826

19 years agoIncludes and copyright.
Frederik Gladhorn [Sun, 26 Aug 2007 11:31:17 +0000 (11:31 +0000)]
Includes and copyright.

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=704824

19 years agocopyright
Frederik Gladhorn [Sun, 26 Aug 2007 11:22:59 +0000 (11:22 +0000)]
copyright

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=704823

19 years agoReading of old types implemented.
Frederik Gladhorn [Sun, 26 Aug 2007 11:18:36 +0000 (11:18 +0000)]
Reading of old types implemented.

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=704821

19 years agoRemove old commented methods.
Frederik Gladhorn [Sun, 26 Aug 2007 10:05:15 +0000 (10:05 +0000)]
Remove old commented methods.

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=704798

19 years agoInitial port of the kvtml1 reader. Types are read, but the list of predefined types...
Frederik Gladhorn [Sun, 26 Aug 2007 10:01:24 +0000 (10:01 +0000)]
Initial port of the kvtml1 reader. Types are read, but the list of predefined types still has to be created.
Move some definitons into kvtmldefs.h from reader and writer.

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=704797

19 years agoComplete rewrite of the type handling.
Frederik Gladhorn [Sun, 26 Aug 2007 01:19:56 +0000 (01:19 +0000)]
Complete rewrite of the type handling.
This means the addition of a new class to keduvocdocument: KEduVocWordType.
Word types are handled by getting a pointer KEduVocWordType* KEduVocDocument::wordTypes().
The class provides functions for adding types and subtypes and also has a special type QString to prevent users from deleting types necessary for certain query types (verb for conjugation etc.). These types can be renamed still.
Within KVocTrain a few type_relation and other curious functions go away. When this is done with usages as well, a few more interdependencies will go away.
To handle types in KVocTrain a new model and treeview has been added.
Note: next step is to adapt the old reader/writer. And move the compability maps and functions away from KEduVocWordType.
At document creation time a good preset (maybe the old types) should also be created.
Also the old typeDescription QStringList has to be removed.

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=704715

19 years agoFix ISODate format for ExtDate::fromString()
Jason Harris [Sat, 25 Aug 2007 18:05:53 +0000 (18:05 +0000)]
Fix ISODate format for ExtDate::fromString()

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=704655

19 years agoAdd two common date string formats to ExtDate::fromString():
Jason Harris [Sat, 25 Aug 2007 17:34:54 +0000 (17:34 +0000)]
Add two common date string formats to ExtDate::fromString():
"Year-month-day", and
"month/day/Year"

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=704650

19 years agono need to make the map const if not returning a reference, thanks pino
Jeremy Paul Whiting [Fri, 24 Aug 2007 21:37:08 +0000 (21:37 +0000)]
no need to make the map const if not returning a reference, thanks pino

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=704437

19 years agofix const reference and include format krazy issues
Jeremy Paul Whiting [Fri, 24 Aug 2007 21:30:09 +0000 (21:30 +0000)]
fix const reference and include format krazy issues

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=704436

19 years agofix index <= size to < in choice(index)
Frederik Gladhorn [Fri, 24 Aug 2007 14:48:43 +0000 (14:48 +0000)]
fix index <= size to < in choice(index)

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=704292

19 years agoConjugations were using wordtypes accidentally.
Frederik Gladhorn [Fri, 24 Aug 2007 12:29:18 +0000 (12:29 +0000)]
Conjugations were using wordtypes accidentally.

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=704238

19 years agoOnly in the type definition the specialtype is necessary.
Frederik Gladhorn [Fri, 24 Aug 2007 12:16:54 +0000 (12:16 +0000)]
Only in the type definition the specialtype is necessary.

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=704236

19 years agoFix identifier having type as child - now identifiertype. Add the posibility to save...
Frederik Gladhorn [Fri, 24 Aug 2007 12:00:13 +0000 (12:00 +0000)]
Fix identifier having type as child - now identifiertype. Add the posibility to save subtypes in a sane way.

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=704233

19 years agoAdd (so far) unused subtype to keduvocexpression.
Frederik Gladhorn [Fri, 24 Aug 2007 09:54:32 +0000 (09:54 +0000)]
Add (so far) unused subtype to keduvocexpression.

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=704208

19 years agodont try to add an entry to a missing lesson
Jeremy Paul Whiting [Tue, 21 Aug 2007 19:08:37 +0000 (19:08 +0000)]
dont try to add an entry to a missing lesson

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=703015

19 years agoAdapt to no k_funcinfo
Thiago Macieira [Mon, 20 Aug 2007 21:37:21 +0000 (21:37 +0000)]
Adapt to no k_funcinfo

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=702586

19 years agoFix multiple choice in lib (setChoice has to append until <= index)
Frederik Gladhorn [Mon, 20 Aug 2007 17:47:00 +0000 (17:47 +0000)]
Fix multiple choice in lib (setChoice has to append until <= index)

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=702486

19 years agomsvc compile and warnings-- - hope this is the correct fix
Christian Ehrlicher [Mon, 20 Aug 2007 16:03:24 +0000 (16:03 +0000)]
msvc compile and warnings-- - hope this is the correct fix

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=702424

19 years agoActually, there _are_ messages into keduvocdocument/*.h
Pino Toscano [Mon, 20 Aug 2007 09:31:19 +0000 (09:31 +0000)]
Actually, there _are_ messages into keduvocdocument/*.h

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=702257

19 years agoFix extract message
Laurent Montel [Mon, 20 Aug 2007 06:54:39 +0000 (06:54 +0000)]
Fix extract message

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=702154