kiten/lib
#include <dictfileedict.h>
Public Member Functions | |
DictFileEdict () | |
virtual | ~DictFileEdict () |
virtual EntryList * | doSearch (const DictQuery &query) |
virtual QStringList | listDictDisplayOptions (QStringList x) const |
bool | loadDictionary (const QString &file, const QString &name) |
void | loadSettings () |
virtual void | loadSettings (KConfigSkeleton *config) |
virtual DictionaryPreferenceDialog * | preferencesWidget (KConfigSkeleton *config, QWidget *parent=NULL) |
virtual 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) |
Static Public Attributes | |
static QString * | deinflectionLabel = NULL |
static QString * | wordType = NULL |
Protected Member Functions | |
virtual QMap< QString, QString > | displayOptions () const |
QStringList * | loadListType (KConfigSkeletonItem *item, QStringList *list, const QMap< QString, QString > &long2short) |
virtual Entry * | makeEntry (const QString &entry) |
Protected Attributes | |
LinearEdictFile | m_edictFile |
Protected Attributes inherited from DictFile | |
QString | m_dictionaryFile |
QString | m_dictionaryName |
QString | m_dictionaryType |
QMap< QString, QString > | m_searchableAttributes |
Static Protected Attributes | |
static QStringList * | displayFields = NULL |
Detailed Description
Definition at line 49 of file dictfileedict.h.
Constructor & Destructor Documentation
DictFileEdict::DictFileEdict | ( | ) |
Per instructions in the super-class, this constructor basically sets the dictionaryType member variable to identify this as an edict-type database handler.
Definition at line 56 of file dictfileedict.cpp.
|
virtual |
The destructor...
ditch our memory maps and close our files here (if they were open).
Definition at line 69 of file dictfileedict.cpp.
Member Function Documentation
Definition at line 75 of file dictfileedict.cpp.
Do a search, respond with a list of entries.
The general strategy will be to take the first word of the query, and do a binary search on the dictionary for that item. Take all results and filter them using the rest of the query with the validate method.
Implements DictFile.
Definition at line 88 of file dictfileedict.cpp.
|
virtual |
Make a list of all the extra fields in our db.
. Entry uses this to decide what goes in the interpretations it gives.
Implements DictFile.
Definition at line 245 of file dictfileedict.cpp.
|
protected |
Definition at line 286 of file dictfileedict.cpp.
void DictFileEdict::loadSettings | ( | ) |
Definition at line 314 of file dictfileedict.cpp.
|
virtual |
Load information from the KConfigSkeleton that you've setup in the above preferences widget.
Reimplemented from DictFile.
Definition at line 319 of file dictfileedict.cpp.
Definition at line 331 of file dictfileedict.cpp.
|
virtual |
If you want your own dialog to pick preferences for your dict, then override this.
Leaving it blank will leave your dictionary type without a preferences dialog.
- Parameters
-
config the KConfigSkeleton object that is currently in use parent the parent widget for your preferences dialog
Reimplemented from DictFile.
Definition at line 336 of file dictfileedict.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. Valid EDICT format is considered: <kanji or="" kana>="">+ [<kana>] /latin characters & symbols/separated with slashes/ Comment lines start with... something... not remembering now.
Implements DictFile.
Definition at line 351 of file dictfileedict.cpp.
|
virtual |
Reject queries that specify anything we don't understand.
Implements DictFile.
Definition at line 392 of file dictfileedict.cpp.
Member Data Documentation
|
static |
Definition at line 68 of file dictfileedict.h.
|
staticprotected |
Definition at line 81 of file dictfileedict.h.
|
protected |
Definition at line 79 of file dictfileedict.h.
|
static |
Definition at line 69 of file dictfileedict.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.