]> Git trees. - libqmvoc.git/log
libqmvoc.git
19 years agoBetter url handling for sound/image.
Frederik Gladhorn [Fri, 21 Sep 2007 07:29:54 +0000 (07:29 +0000)]
Better url handling for sound/image.
Use KUrl internally, only save as relative path, when the sound/image is in the same or a subdir of the document.
Move handling of relative urls into the lib.

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

19 years agoAdd functions to declination class.
Frederik Gladhorn [Fri, 21 Sep 2007 07:19:47 +0000 (07:19 +0000)]
Add functions to declination class.

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

19 years agofix build error
Jeremy Paul Whiting [Thu, 20 Sep 2007 18:41:41 +0000 (18:41 +0000)]
fix build error

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

19 years agoCompile.
Peter Hedlund [Thu, 20 Sep 2007 17:16:50 +0000 (17:16 +0000)]
Compile.

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

19 years agoRemove irregular plural tags in favour of a real declination class (not used currentl...
Frederik Gladhorn [Thu, 20 Sep 2007 12:15:35 +0000 (12:15 +0000)]
Remove irregular plural tags in favour of a real declination class (not used currently). This will also allow support for plurals and dual forms correctly.

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

19 years agoMake wordTypes() a normal member using references.
Frederik Gladhorn [Thu, 20 Sep 2007 00:46:11 +0000 (00:46 +0000)]
Make wordTypes() a normal member using references.

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

19 years agoThe article class still had get/set natural instead of neutral as functions.
Frederik Gladhorn [Wed, 19 Sep 2007 00:01:56 +0000 (00:01 +0000)]
The article class still had get/set natural instead of neutral as functions.
Make the article test work so far.
Only wrong answers don't count as wrong right now. (Before the dialog showed up and was completely disabled).

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

19 years agoclean up file writing.
Frederik Gladhorn [Tue, 18 Sep 2007 23:30:50 +0000 (23:30 +0000)]
clean up file writing.

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

19 years agoForward port of fix for remote files.
Peter Hedlund [Tue, 18 Sep 2007 22:27:45 +0000 (22:27 +0000)]
Forward port of fix for remote files.

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

19 years agoOnly have all supported documents, when reading.
Frederik Gladhorn [Tue, 18 Sep 2007 18:03:04 +0000 (18:03 +0000)]
Only have all supported documents, when reading.
BUG: 149943

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

19 years agoRename Text to Comma Separated Values (CSV).
Frederik Gladhorn [Tue, 18 Sep 2007 17:44:52 +0000 (17:44 +0000)]
Rename Text to Comma Separated Values (CSV).
CCBUG: 149943

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

19 years agoAvoid adding empty strings to the multiple choice class.
Frederik Gladhorn [Tue, 18 Sep 2007 17:30:48 +0000 (17:30 +0000)]
Avoid adding empty strings to the multiple choice class.
Please report if this is working.
Thanks to Johannes Simon.
CCMAIL: johannes.simon@gmail.com

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

19 years agoMake the grammar practice selection much better.
Frederik Gladhorn [Tue, 18 Sep 2007 16:31:15 +0000 (16:31 +0000)]
Make the grammar practice selection much better.
In the config dialog one can check the grammar tests to use now. This also allows for adverb (mixed with adjective or alone) tests.
Give the doc default grammar when using the wizard.
Rewrite the type for test selection funtion as checkType.
Deprecate a function that probably doesn't work, esp if multiple word types are allowed to share a special type.
BUG: 106451

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

19 years agoMake the reader detection code a little cleaner.
Frederik Gladhorn [Tue, 18 Sep 2007 13:21:08 +0000 (13:21 +0000)]
Make the reader detection code a little cleaner.

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

19 years agoAdd kDebug messages telling which reader is used.
Frederik Gladhorn [Tue, 18 Sep 2007 12:21:44 +0000 (12:21 +0000)]
Add kDebug messages telling which reader is used.

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

19 years agoUse QCOMPARE, add generator test.
Frederik Gladhorn [Mon, 17 Sep 2007 23:07:31 +0000 (23:07 +0000)]
Use QCOMPARE, add generator test.

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

19 years agoDon't leak a doc in the test.
Frederik Gladhorn [Mon, 17 Sep 2007 22:55:31 +0000 (22:55 +0000)]
Don't leak a doc in the test.

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

19 years agoBetter error message.
Frederik Gladhorn [Mon, 17 Sep 2007 22:54:51 +0000 (22:54 +0000)]
Better error message.

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

19 years agoAdd the first real unit test:
Frederik Gladhorn [Mon, 17 Sep 2007 22:38:39 +0000 (22:38 +0000)]
Add the first real unit test:
  Create a doc, write it to a temp file and read it again. Tests for the easy tags: author, title, comment, license and category.
Remove all gui elements from keduvocdocument.
This means that when opening a document fails, the apps have to check for the return value of doc->open().
Added an enum for the errors.
With KEduVocDocument::errorDescription a message can be generated to display to the user.
CCMAIL: peter@peterandlinda.com

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

19 years agoAdd a 1==1 test for keduvocdocument to expand upon.
Frederik Gladhorn [Mon, 17 Sep 2007 18:33:07 +0000 (18:33 +0000)]
Add a 1==1 test for keduvocdocument to expand upon.

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

19 years agoAlso add entries to lesson 0. (> has to be >=)
Frederik Gladhorn [Mon, 17 Sep 2007 14:46:20 +0000 (14:46 +0000)]
Also add entries to lesson 0. (> has to be >=)

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

19 years agoFix adding vocabulary to wrong lessons when reading old documents.
Frederik Gladhorn [Mon, 17 Sep 2007 14:11:24 +0000 (14:11 +0000)]
Fix adding vocabulary to wrong lessons when reading old documents.

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

19 years agofix missing return value
Bernhard Loos [Sun, 16 Sep 2007 01:00:29 +0000 (01:00 +0000)]
fix missing return value

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

19 years agoWhen adding entries with a lesson set, add them to that lesson automatically.
Frederik Gladhorn [Fri, 14 Sep 2007 22:43:26 +0000 (22:43 +0000)]
When adding entries with a lesson set, add them to that lesson automatically.

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

19 years agoDeprecate old lessonNames() call.
Frederik Gladhorn [Fri, 14 Sep 2007 09:18:24 +0000 (09:18 +0000)]
Deprecate old lessonNames() call.

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

19 years agoAdd functions to get subtype of nouns.
Frederik Gladhorn [Thu, 13 Sep 2007 13:11:14 +0000 (13:11 +0000)]
Add functions to get subtype of nouns.

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

19 years agofixing last error today
Patrick Spendrin [Wed, 12 Sep 2007 23:21:05 +0000 (23:21 +0000)]
fixing last error today

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

19 years agofixing errors: ok, every kvtml file version 2.0 should be able to pass the test at...
Patrick Spendrin [Wed, 12 Sep 2007 23:13:59 +0000 (23:13 +0000)]
fixing errors: ok, every kvtml file version 2.0 should be able to pass the test at validome.org now.

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

19 years agoadded XML Schema Definition file to give annma and jpwhiting something to work on...
Patrick Spendrin [Wed, 12 Sep 2007 22:56:27 +0000 (22:56 +0000)]
added XML Schema Definition file to give annma and jpwhiting something to work on (might replace kvtml2.dtd)

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

19 years agoGet rid of the m_inQuery for KEduVocExpression.
Frederik Gladhorn [Wed, 12 Sep 2007 19:22:48 +0000 (19:22 +0000)]
Get rid of the m_inQuery for KEduVocExpression.
Only KVoc used to use it and it will just no longer be used.
It had no meaning for quite a while in parley, only confusing things.
The main table now only shows (in)active for the words.
(the chainsaw was here...)

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

19 years agomaking the dtd working with the current state of fregl s testing kvtml files
Patrick Spendrin [Wed, 12 Sep 2007 13:59:44 +0000 (13:59 +0000)]
making the dtd working with the current state of fregl s testing kvtml files

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

19 years agosecond falsefriend error
Patrick Spendrin [Wed, 12 Sep 2007 12:43:18 +0000 (12:43 +0000)]
second falsefriend error

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

19 years agofor usabilities sake, changed some lines, and fixed one falsefriend error
Patrick Spendrin [Wed, 12 Sep 2007 12:40:25 +0000 (12:40 +0000)]
for usabilities sake, changed some lines, and fixed one falsefriend error

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

19 years agodeleteLesson fix and optimization
Jeremy Paul Whiting [Wed, 12 Sep 2007 03:45:52 +0000 (03:45 +0000)]
deleteLesson fix and optimization

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

19 years agofix removeEntry and insertEntry so they update all lessons entry ids that are affecte...
Jeremy Paul Whiting [Wed, 12 Sep 2007 03:23:35 +0000 (03:23 +0000)]
fix removeEntry and insertEntry so they update all lessons entry ids that are affected by insertion/removal

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

19 years agoadded entryCount method to lesson class
Jeremy Paul Whiting [Wed, 12 Sep 2007 02:21:48 +0000 (02:21 +0000)]
added entryCount method to lesson class

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

19 years agoMake sure new translations are appended with the right type. Move from parley to...
Frederik Gladhorn [Mon, 10 Sep 2007 13:35:55 +0000 (13:35 +0000)]
Make sure new translations are appended with the right type. Move from parley to lib.

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

19 years agomove incomplete kvtml-1 dtd to lib
Frederik Gladhorn [Sun, 9 Sep 2007 10:25:17 +0000 (10:25 +0000)]
move incomplete kvtml-1 dtd to lib

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

19 years agoMove some documentation of file formats from parley to libkdeedu.
Frederik Gladhorn [Sun, 9 Sep 2007 10:14:02 +0000 (10:14 +0000)]
Move some documentation of file formats from parley to libkdeedu.

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

19 years agoRename kvoctrain base directory to parley.
Frederik Gladhorn [Sun, 9 Sep 2007 08:21:24 +0000 (08:21 +0000)]
Rename kvoctrain base directory to parley.

svn path=/trunk/KDE/kdeedu/kvoctrain/src/docs/; revision=710186

19 years agoChange the subdir kvoctrain to src.
Frederik Gladhorn [Sun, 9 Sep 2007 07:34:47 +0000 (07:34 +0000)]
Change the subdir kvoctrain to src.

svn path=/trunk/KDE/kdeedu/kvoctrain/kvoctrain/docs/; revision=710174

19 years agoAdd i18nc comments for word types.
Frederik Gladhorn [Fri, 7 Sep 2007 15:15:32 +0000 (15:15 +0000)]
Add i18nc comments for word types.

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

19 years agoRemove ! from title/author strings. I could not find a special meaning for it in...
Frederik Gladhorn [Fri, 7 Sep 2007 14:46:30 +0000 (14:46 +0000)]
Remove ! from title/author strings. I could not find a special meaning for it in csv. If I'm wrong, change it again, but add to the context message.

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

19 years agoFix bugs when reading the inQuery attribute (no default value).
Frederik Gladhorn [Thu, 6 Sep 2007 13:42:06 +0000 (13:42 +0000)]
Fix bugs when reading the inQuery attribute (no default value).
Make copy ctor, operator=/== complete for the lesson class.

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

19 years agoRemove inQuery methods.
Frederik Gladhorn [Thu, 6 Sep 2007 13:27:56 +0000 (13:27 +0000)]
Remove inQuery methods.

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

19 years agoMark a few lib lesson methods deprecated. Use a int list for the lesson filter. Break...
Frederik Gladhorn [Thu, 6 Sep 2007 12:41:30 +0000 (12:41 +0000)]
Mark a few lib lesson methods deprecated. Use a int list for the lesson filter. Breaks inQuery in the lesson view.

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

19 years agoMake lessons a list again.
Frederik Gladhorn [Thu, 6 Sep 2007 11:49:44 +0000 (11:49 +0000)]
Make lessons a list again.
QMap is too flexible. Users will kill us for changing lesson order. The flexibility of the map makes the lesson model in KVocTrain much harder to implement.
Moved the inQuery flag into the lesson class.
Fixed readers and writers. I could not verify if the keduvocvokabelnreader.cpp works.
The first lesson has 0 as index now.
A default lesson is created according to Jeremys plans, but within the document class itself, after reading the doc, so all readers profit from it.
KEduVocExpression is not initialized to lesson=-1 as default.
The old reader maps lesson 1 to 0.
Splitting and deleting lessons seems to work.
Moving lessons is not implemented (this will become interesting, when drag and drop for the lesson model is enabled).
TODO: When adding an expression, the document can automatically add it to the lesson.
  Right now we call doc->lesson.add(Exp) and doc->addExp(lesson). The later should suffice.
Fixes in KVocTrain (many +-1 are no longer needed).
CCMAIL:jeremy@scitools.com
CCMAIL:peter@peterandlinda.com

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

19 years agostore/read/write image and sound tags per translation
Jeremy Paul Whiting [Thu, 6 Sep 2007 00:50:28 +0000 (00:50 +0000)]
store/read/write image and sound tags per translation

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

19 years agoRemove unused private vars.
Frederik Gladhorn [Thu, 6 Sep 2007 00:03:46 +0000 (00:03 +0000)]
Remove unused private vars.

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

19 years agoGet rid of an ugly ctor for KEduVocExpression. Instead of QString and separator,...
Frederik Gladhorn [Wed, 5 Sep 2007 23:14:28 +0000 (23:14 +0000)]
Get rid of an ugly ctor for KEduVocExpression. Instead of QString and separator, use QStringList.

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

19 years agoRemove usages form type list. Thanks to Markus Büchele.
Frederik Gladhorn [Wed, 5 Sep 2007 19:50:44 +0000 (19:50 +0000)]
Remove usages form type list. Thanks to Markus Büchele.

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

19 years agoRemove invalid copyright lines ((C) 2001 The KDE-EDU team).
Frederik Gladhorn [Wed, 5 Sep 2007 16:59:33 +0000 (16:59 +0000)]
Remove invalid copyright lines ((C) 2001 The KDE-EDU team).

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

19 years agotry to extract the element data (name and origin) from the element.xml, using a trick
Pino Toscano [Tue, 4 Sep 2007 17:50:57 +0000 (17:50 +0000)]
try to extract the element data (name and origin) from the element.xml, using a trick

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

19 years agoConvert locale from old documents to localized language name.
Frederik Gladhorn [Tue, 4 Sep 2007 10:59:05 +0000 (10:59 +0000)]
Convert locale from old documents to localized language name.

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

19 years agoEnable reading and writing of category tag.
Frederik Gladhorn [Mon, 3 Sep 2007 18:58:28 +0000 (18:58 +0000)]
Enable reading and writing of category tag.

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

19 years agoKGlobalSettings -> KColorScheme deprecated--
Arto Hytönen [Mon, 3 Sep 2007 18:50:34 +0000 (18:50 +0000)]
KGlobalSettings -> KColorScheme deprecated--

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

19 years agoBegin reworking the wizard to reflect changes in the document classes.
Frederik Gladhorn [Mon, 3 Sep 2007 15:45:39 +0000 (15:45 +0000)]
Begin reworking the wizard to reflect changes in the document classes.
  - added author title etc page.
  - added category combobox to author title page.
  - added get/set methods for category to keduvocdocument
  - added a new identifier name/locale page
The old pages are still there, but will be removed, when the new stuff is working.
Writing/reading of the category still missing.

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

19 years agomake lessons in document on the stack instead of the heap, and react to these changes...
Jeremy Paul Whiting [Mon, 3 Sep 2007 14:41:39 +0000 (14:41 +0000)]
make lessons in document on the stack instead of the heap, and react to these changes in kvoctrain

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

19 years agoReplace round with qRound, because round is not available
Steve Evans [Mon, 3 Sep 2007 06:36:43 +0000 (06:36 +0000)]
Replace round with qRound, because round is not available
on all platforms, e.g., Solaris

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

19 years agodo not leak the document, allocating on the stack is enough
Pino Toscano [Sat, 1 Sep 2007 23:57:03 +0000 (23:57 +0000)]
do not leak the document, allocating on the stack is enough
just check whether the list is not empty, no need to know the size

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

19 years agomore const
Frederik Gladhorn [Sat, 1 Sep 2007 23:52:57 +0000 (23:52 +0000)]
more const

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

19 years agoMake KEduVocDocument::usages() const.
Frederik Gladhorn [Sat, 1 Sep 2007 23:48:13 +0000 (23:48 +0000)]
Make KEduVocDocument::usages() const.

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

19 years agocleanup, improve identifier copy constructor
Frederik Gladhorn [Sat, 1 Sep 2007 23:41:21 +0000 (23:41 +0000)]
cleanup, improve identifier copy constructor

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

19 years agoRemoved personal pronound prefix "--". Only needed in the old writer, exactly once.
Frederik Gladhorn [Sat, 1 Sep 2007 23:35:23 +0000 (23:35 +0000)]
Removed personal pronound prefix "--". Only needed in the old writer, exactly once.

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

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