• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdeedu
  • Sitemap
  • Contact Us
 

kiten/lib

entryDeinflect.h

Go to the documentation of this file.
00001 /* This file is part of Kiten, a KDE Japanese Reference Tool...
00002  Copyright (C) 2006  Joseph Kerian <jkerian@gmail.com>
00003               (C) 2006  Eric Kjeldergaard <kjelderg@gmail.com>
00004 
00005    This library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Library General Public
00007    License as published by the Free Software Foundation; either
00008    version 2 of the License, or (at your option) any later version.
00009 
00010    This library is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Library General Public License for more details.
00014 
00015    You should have received a copy of the GNU Library General Public License
00016    along with this library; see the file COPYING.LIB.  If not, write to
00017    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018    Boston, MA 02110-1301, USA.
00019 */
00020 
00021 #ifndef KITEN_ENTRYDEINFLECT_H
00022 #define KITEN_ENTRYDEINFLECT_H
00023 
00024 #include "Entry.h"
00025 #include <QtCore/QString>
00026 #include "klocale.h"
00027 
00028 class /* NO_EXPORT */ entryDeinflect : public Entry {
00029 
00030     public:
00031         entryDeinflect(const QString &correction, const QString &type, int index, const QString &matchedEnding)
00032             : Entry(QString("Deinflect")),m_correction(correction),m_type(type),m_index(index),
00033             m_matchedEnding(matchedEnding) {}
00034         entryDeinflect(const entryDeinflect &old) : Entry(old), m_correction(old.m_correction),
00035             m_type(old.m_type), m_index(old.m_index) {}
00036         entryDeinflect *clone() const { return new entryDeinflect(*this); }
00037 
00038         virtual QString toHTML() const {
00039             return QString("<div class=\"Deinflect\">") +
00040                 i18n("Possible de-conjugation %1 as %2",makeLink(m_correction),m_type)+"</div>";
00041         }
00042 
00043         virtual bool loadEntry(const QString &) {return true;}
00044         virtual QString dumpEntry() const {return QString();}
00045         virtual bool matchesQuery(const DictQuery& query) const {return query.toString().contains(m_matchedEnding);}
00046 
00047     private:
00048         QString m_matchedEnding;
00049         QString m_correction;
00050         QString m_type;
00051         int m_index;
00052 };
00053 
00054 #endif

kiten/lib

Skip menu "kiten/lib"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

kdeedu

Skip menu "kdeedu"
  • kalzium
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
  •   stepcore
Generated for kdeedu by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal