• 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
dictfilekanjidic.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  * Copyright (C) 2011 Daniel E. Moctezuma <democtezuma@gmail.com> *
7  * *
8  * This library is free software; you can redistribute it and/or *
9  * modify it under the terms of the GNU Library General Public *
10  * License as published by the Free Software Foundation; either *
11  * version 2 of the License, or (at your option) any later version. *
12  * *
13  * This library is distributed in the hope that it will be useful, *
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
16  * Library General Public License for more details. *
17  * *
18  * You should have received a copy of the GNU Library General Public License *
19  * along with this library; see the file COPYING.LIB. If not, write to *
20  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, *
21  * Boston, MA 02110-1301, USA. *
22  *****************************************************************************/
23 
24 #ifndef KITEN_DICTFILEKANJIDIC_H
25 #define KITEN_DICTFILEKANJIDIC_H
26 
27 #include "dictfile.h"
28 
29 #include "libkitenexport.h"
30 
31 #include <QStringList>
32 
33 class DictQuery;
34 class Entry;
35 class EntryList;
36 class KConfigSkeleton;
37 class KConfigSkeletonItem;
38 
39 class KITEN_EXPORT DictFileKanjidic : public DictFile
40 {
41  friend class EntryKanjidic;
42 
43  public:
44  DictFileKanjidic();
45  virtual ~DictFileKanjidic();
46 
47  QMap<QString,QString> displayOptions() const;
48  virtual EntryList *doSearch( const DictQuery &query );
49  QStringList dumpDictionary();
50  virtual QStringList listDictDisplayOptions( QStringList list ) const;
51  bool loadDictionary( const QString &file
52  , const QString &name );
53  QStringList *loadListType( KConfigSkeletonItem *item
54  , QStringList *list
55  , const QMap<QString,QString> &long2short );
56  void loadSettings();
57  virtual void loadSettings( KConfigSkeleton *item );
58  bool validDictionaryFile( const QString &filename );
59  bool validQuery( const DictQuery &query );
60 
61  protected:
62  virtual inline Entry *makeEntry( const QString &entry );
63 
64  static QStringList *displayFields;
65 
66  private:
67  QMap<QString,QString> loadDisplayOptions() const;
68 
69  QStringList m_kanjidic;
70  bool m_validKanjidic;
71 };
72 
73 #endif
libkitenexport.h
DictFileKanjidic
Definition: dictfilekanjidic.h:39
Entry
The Entry class is a generic base class for each particular entry in a given dictionary.
Definition: entry.h:44
DictFile::validQuery
virtual bool validQuery(const DictQuery &query)=0
Is this query relevant to this dictionary type? Usually this will return true, unless the query speci...
QMap< QString, QString >
KITEN_EXPORT
#define KITEN_EXPORT
Definition: libkitenexport.h:35
dictfile.h
DictFileKanjidic::displayFields
static QStringList * displayFields
Definition: dictfilekanjidic.h:64
DictFile::loadSettings
virtual void loadSettings(KConfigSkeleton *)
Load information from the KConfigSkeleton that you've setup in the above preferences widget...
Definition: dictfile.h:127
DictFile::loadDictionary
virtual bool loadDictionary(const QString &file, const QString &name)=0
Load a dictionary as at system startup.
DictFile::validDictionaryFile
virtual bool validDictionaryFile(const QString &filename)=0
This method allows the user to test if a dictionary is the proper type for this format.
QString
QStringList
DictFile::listDictDisplayOptions
virtual QStringList listDictDisplayOptions(QStringList) const =0
Return a list of the fields that can be displayed, note the following should probably always be retur...
DictFile::doSearch
virtual EntryList * doSearch(const DictQuery &query)=0
This actually conducts the search on the given query.
DictQuery
A class to allow users of libkiten to properly setup a database query.
Definition: dictquery.h:89
EntryKanjidic
Definition: entrykanjidic.h:34
DictFile
Abstract base class, used internally by the library for handling different types of dictionaries This...
Definition: dictfile.h:47
EntryList
EntryList is a simple container for Entry objects, and is-a QList A few simple overrides allo...
Definition: entrylist.h:38
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