From: Frederik Gladhorn Date: Mon, 3 Sep 2007 15:45:39 +0000 (+0000) Subject: Begin reworking the wizard to reflect changes in the document classes. X-Git-Tag: v3.94.0~83 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=c266f7e342b2af4134a9293d66834583905f827f;p=libqmvoc.git 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 --- diff --git a/keduvocdocument/keduvocdocument.cpp b/keduvocdocument/keduvocdocument.cpp index 82137a6..8c051b1 100644 --- a/keduvocdocument/keduvocdocument.cpp +++ b/keduvocdocument/keduvocdocument.cpp @@ -948,6 +948,16 @@ QString KEduVocDocument::documentComment() const return d->m_comment; } +void KEduVocDocument::setCategory( const QString & category ) +{ + d->m_category = category; +} + +QString KEduVocDocument::category() const +{ + return d->m_category; + ///@todo make writer/reader use this +} void KEduVocDocument::queryIdentifier( QString &org, QString &trans ) const { diff --git a/keduvocdocument/keduvocdocument.h b/keduvocdocument/keduvocdocument.h index 5d8819a..7273276 100644 --- a/keduvocdocument/keduvocdocument.h +++ b/keduvocdocument/keduvocdocument.h @@ -147,6 +147,13 @@ public: /** @return the comment of the file */ QString documentComment() const; + /** set the category of the file + * @param category category to set */ + void setCategory( const QString & category ); + + /** @return the category of the file */ + QString category() const; + /** * Sets the generator of the file */