kiten/lib
#include <dictfilekanjidic.h>
Public Member Functions | |
DictFileKanjidic () | |
virtual | ~DictFileKanjidic () |
QMap< QString, QString > | displayOptions () const |
virtual EntryList * | doSearch (const DictQuery &query) |
QStringList | dumpDictionary () |
virtual QStringList | listDictDisplayOptions (QStringList list) const |
bool | loadDictionary (const QString &file, const QString &name) |
QStringList * | loadListType (KConfigSkeletonItem *item, QStringList *list, const QMap< QString, QString > &long2short) |
void | loadSettings () |
virtual void | loadSettings (KConfigSkeleton *item) |
bool | validDictionaryFile (const QString &filename) |
bool | validQuery (const DictQuery &query) |
Public Member Functions inherited from DictFile | |
DictFile (const QString &dictionaryTypeName) | |
virtual | ~DictFile () |
virtual QString | getFile () const |
virtual QString | getName () const |
virtual const QMap< QString, QString > & | getSearchableAttributes () const |
virtual QString | getType () const |
virtual bool | loadNewDictionary (const QString &file, const QString &name) |
virtual DictionaryPreferenceDialog * | preferencesWidget (KConfigSkeleton *config, QWidget *parent=NULL) |
Protected Member Functions | |
virtual Entry * | makeEntry (const QString &entry) |
Static Protected Attributes | |
static QStringList * | displayFields = NULL |
Additional Inherited Members | |
Protected Attributes inherited from DictFile | |
QString | m_dictionaryFile |
QString | m_dictionaryName |
QString | m_dictionaryType |
QMap< QString, QString > | m_searchableAttributes |
Detailed Description
Definition at line 39 of file dictfilekanjidic.h.
Constructor & Destructor Documentation
DictFileKanjidic::DictFileKanjidic | ( | ) |
Definition at line 40 of file dictfilekanjidic.cpp.
|
virtual |
Definition at line 69 of file dictfilekanjidic.cpp.
Member Function Documentation
Definition at line 73 of file dictfilekanjidic.cpp.
This actually conducts the search on the given query.
This is usually most of the work
- Parameters
-
query the DictQuery that specifies what results to return
Implements DictFile.
Definition at line 104 of file dictfilekanjidic.cpp.
QStringList DictFileKanjidic::dumpDictionary | ( | ) |
Definition at line 149 of file dictfilekanjidic.cpp.
|
virtual |
Return a list of the fields that can be displayed, note the following should probably always be retured: –NewLine–, Word/Kanji, Meaning, Reading.
This function is passed a list originally containing those four items. This function is used to enumerate possible types the user chooses to have displayed in the preferences dialog box. This will often be a very similer list to getSearchableAttributes(), but due to optional forms of spelling and other situations, it may not be exactly the same. Note: The "Dictionary" option will be appended to your list at the end.
Implements DictFile.
Definition at line 159 of file dictfilekanjidic.cpp.
Load a dictionary as at system startup.
- Parameters
-
file the file to open, in a format suitable for use with QFile::setFileName() name the name of the file to open, used in various user-interface aspects. It may be related to the file parameter, but perhaps not.
Implements DictFile.
Definition at line 165 of file dictfilekanjidic.cpp.
QStringList * DictFileKanjidic::loadListType | ( | KConfigSkeletonItem * | item, |
QStringList * | list, | ||
const QMap< QString, QString > & | long2short | ||
) |
Definition at line 217 of file dictfilekanjidic.cpp.
void DictFileKanjidic::loadSettings | ( | ) |
Definition at line 245 of file dictfilekanjidic.cpp.
|
virtual |
Load information from the KConfigSkeleton that you've setup in the above preferences widget.
Reimplemented from DictFile.
Definition at line 250 of file dictfilekanjidic.cpp.
Definition at line 256 of file dictfilekanjidic.cpp.
|
virtual |
Scan a potential file for the correct format, remembering to skip comment characters.
This is not a foolproof scan, but it should be checked before adding a new dictionary.
Implements DictFile.
Definition at line 266 of file dictfilekanjidic.cpp.
|
virtual |
Reject queries that specify anything we don't understand.
Implements DictFile.
Definition at line 303 of file dictfilekanjidic.cpp.
Member Data Documentation
|
staticprotected |
Definition at line 64 of file dictfilekanjidic.h.
The documentation for this class was generated from the following files:
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.