kiten/lib
entryKanjidic.h
Go to the documentation of this file.00001 /* This file is part of Kiten, a KDE Japanese Reference Tool... 00002 Copyright (C) 2001 Jason Katz-Brown <jason@katzbrown.com> 00003 (C) 2006 Joseph Kerian <jkerian@gmail.com> 00004 (C) 2006 Eric Kjeldergaard <kjelderg@gmail.com> 00005 00006 This library is free software; you can redistribute it and/or 00007 modify it under the terms of the GNU Library General Public 00008 License as published by the Free Software Foundation; either 00009 version 2 of the License, or (at your option) any later version. 00010 00011 This library is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 Library General Public License for more details. 00015 00016 You should have received a copy of the GNU Library General Public License 00017 along with this library; see the file COPYING.LIB. If not, write to 00018 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00019 Boston, MA 02110-1301, USA. 00020 */ 00021 00022 #ifndef KITEN_ENTRYKANJIDIC_H 00023 #define KITEN_ENTRYKANJIDIC_H 00024 00025 #include "Entry.h" 00026 #include <QtCore/QStringList> 00027 00028 class QString; 00029 00030 class /* NO_EXPORT */ EntryKanjidic : public Entry { 00031 public: 00032 EntryKanjidic(const EntryKanjidic &x) : Entry(x) {} 00033 EntryKanjidic(const QString &x) : Entry(x) {} 00034 EntryKanjidic(const QString &dict, const QString &entry) : Entry(dict) {loadEntry(entry);} 00035 Entry *clone() const {return new EntryKanjidic(*this); } 00036 00037 virtual QString toHTML() const; 00038 00039 virtual bool loadEntry(const QString &); 00040 virtual QString dumpEntry() const; 00041 00042 protected: 00043 virtual QString HTMLReadings() const; 00044 virtual QString HTMLWord() const; 00045 virtual QString HTMLExtendedInfo(const QString &field) const; 00046 virtual QString makeReadingLink(const QString&) const; 00047 virtual bool extendedItemCheck(const QString &, const QString &) const; 00048 00049 QStringList originalReadings; 00050 }; 00051 00052 #endif
KDE 4.2 API Reference