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

kiten/lib

  • sources
  • kde-4.14
  • kdeedu
  • kiten
  • lib
  • DictKanjidic
entrykanjidic.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * This file is part of Kiten, a KDE Japanese Reference Tool *
3  * Copyright (C) 2001 Jason Katz-Brown <jason@katzbrown.com> *
4  * Copyright (C) 2006 Joseph Kerian <jkerian@gmail.com> *
5  * Copyright (C) 2006 Eric Kjeldergaard <kjelderg@gmail.com> *
6  * *
7  * This library is free software; you can redistribute it and/or *
8  * modify it under the terms of the GNU Library General Public *
9  * License as published by the Free Software Foundation; either *
10  * version 2 of the License, or (at your option) any later version. *
11  * *
12  * This library is distributed in the hope that it will be useful, *
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
15  * Library General Public License for more details. *
16  * *
17  * You should have received a copy of the GNU Library General Public License *
18  * along with this library; see the file COPYING.LIB. If not, write to *
19  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, *
20  * Boston, MA 02110-1301, USA. *
21  *****************************************************************************/
22 
23 #ifndef KITEN_ENTRYKANJIDIC_H
24 #define KITEN_ENTRYKANJIDIC_H
25 
26 #include "entry.h"
27 
28 #include "libkitenexport.h"
29 
30 #include <QStringList>
31 
32 class QString;
33 
34 class KITEN_EXPORT EntryKanjidic : public Entry
35 {
36  public:
37  EntryKanjidic( const EntryKanjidic &dict );
38  EntryKanjidic( const QString &dict );
39  EntryKanjidic( const QString &dict, const QString &entry );
40 
41  Entry *clone() const;
42  virtual QString dumpEntry() const;
43  QString getAsRadicalReadings() const;
44  QStringList getAsRadicalReadingsList() const;
45  virtual QString getDictionaryType() const;
46  QString getInNamesReadings() const;
47  QStringList getInNamesReadingsList() const;
48  QString getKanjiGrade() const;
49  QString getKunyomiReadings() const;
50  QStringList getKunyomiReadingsList() const;
51  QString getOnyomiReadings() const;
52  QStringList getOnyomiReadingsList() const;
53  QString getStrokesCount() const;
54  virtual bool loadEntry( const QString &entryLine );
55  virtual QString toHTML() const;
56 
57  protected:
58  virtual bool extendedItemCheck( const QString &key, const QString &value ) const;
59  virtual QString HTMLExtendedInfo( const QString &field ) const;
60  virtual QString HTMLReadings() const;
61  virtual QString HTMLWord() const;
62  virtual QString makeReadingLink( const QString &inReading ) const;
63 
64  QStringList AsRadicalReadings;
65  QStringList InNamesReadings;
66  QStringList KunyomiReadings;
67  QStringList OnyomiReadings;
68  QStringList originalReadings;
69 
70  private:
71  QString addReadings( const QStringList &list ) const;
72 };
73 
74 #endif
EntryKanjidic::OnyomiReadings
QStringList OnyomiReadings
Definition: entrykanjidic.h:67
EntryKanjidic::AsRadicalReadings
QStringList AsRadicalReadings
Definition: entrykanjidic.h:64
Entry::HTMLWord
virtual QString HTMLWord() const
Return and HTML version of a word.
Definition: entry.cpp:180
libkitenexport.h
Entry::extendedItemCheck
virtual bool extendedItemCheck(const QString &key, const QString &value) const
Simple accessor.
Definition: entry.cpp:83
Entry
The Entry class is a generic base class for each particular entry in a given dictionary.
Definition: entry.h:44
KITEN_EXPORT
#define KITEN_EXPORT
Definition: libkitenexport.h:35
Entry::HTMLReadings
virtual QString HTMLReadings() const
Return and HTML version of a reading list.
Definition: entry.cpp:165
EntryKanjidic::originalReadings
QStringList originalReadings
Definition: entrykanjidic.h:68
Entry::loadEntry
virtual bool loadEntry(const QString &)=0
An entry should be able to parse an in-file representation of an entry as a QString and put it back...
entry.h
Entry::toHTML
virtual QString toHTML() const
An entry should be able to generate a representation of itself in (valid) HTML.
Definition: entry.cpp:384
QString
QStringList
Entry::clone
virtual Entry * clone() const =0
A clone method, this should just implement "return new EntrySubClass(*this)".
EntryKanjidic::InNamesReadings
QStringList InNamesReadings
Definition: entrykanjidic.h:65
Entry::getDictionaryType
virtual QString getDictionaryType() const =0
Get the dictionary type (e.g.
EntryKanjidic::KunyomiReadings
QStringList KunyomiReadings
Definition: entrykanjidic.h:66
Entry::dumpEntry
virtual QString dumpEntry() const =0
Return a QString of an entry, as if it were dumped back into it's source file.
EntryKanjidic
Definition: entrykanjidic.h:34
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:38 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kiten/lib

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

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal