kiten/lib
dictfileedict.cpp
Go to the documentation of this file.
336 DictionaryPreferenceDialog *DictFileEdict::preferencesWidget( KConfigSkeleton *config, QWidget *parent )
void setCodec(QTextCodec *codec)
Definition: dictquery.h:307
bool contains(const Key &key) const
Definition: dictfilefieldselector.h:36
const T & next()
This abstract base class specifies the interface for dictionary preference dialogs in user applicatio...
Definition: dictionarypreferencedialog.h:42
bool validQuery(const DictQuery &query)
Reject queries that specify anything we don't understand.
Definition: dictfileedict.cpp:392
QString readLine(qint64 maxlen)
EntryList * search(const DictQuery &query, const QVector< QString > &preliminaryResults)
Definition: deinflection.cpp:70
The Entry class is a generic base class for each particular entry in a given dictionary.
Definition: entry.h:44
bool matchesWordType(const DictQuery &query) const
Definition: entryedict.cpp:333
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
QString getPronunciation() const
Accessor for the Pronunciation field (generally kana)
Definition: dictquery.cpp:528
Definition: deinflection.h:36
bool exists() const
Definition: dictquery.h:310
void addAvailable(const QStringList &list)
Definition: dictfilefieldselector.cpp:76
virtual Entry * makeEntry(const QString &entry)
Definition: dictfileedict.cpp:331
QString m_dictionaryName
Name is the 'primary key' of the list of dictionaries.
Definition: dictfile.h:152
int size() const
QList< Key > keys() const
virtual EntryList * doSearch(const DictQuery &query)
Do a search, respond with a list of entries.
Definition: dictfileedict.cpp:88
virtual bool matchesQuery(const DictQuery &) const
Fairly important method, this tests if this particular entry matches a query.
Definition: entry.cpp:294
int count(const T &value) const
void append(const T &value)
bool atEnd() const
Definition: entryedict.h:60
QString m_dictionaryFile
This is mostly a placeholder, but your class will get asked what file it is using, so either be sure to put something here, or override getFile() and respond with something that will be sensical in a dictionary selection dialog box.
Definition: dictfile.h:160
QStringList * loadListType(KConfigSkeletonItem *item, QStringList *list, const QMap< QString, QString > &long2short)
Definition: dictfileedict.cpp:286
QString getMeaning() const
Accessor for the non-japanese meaning field.
Definition: dictquery.cpp:502
bool isEmpty() const
bool isEmpty() const
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
QString getProperty(const QString &key) const
Get a specific property by key (is the same as using operator[] const)
Definition: dictquery.cpp:440
bool endsWith(const QString &s, Qt::CaseSensitivity cs) const
QString getWord() const
Accessor for the Word/Kanji field (this is usually used for anything containing kanji).
Definition: dictquery.cpp:554
virtual QString getType() const
Returns the type of files this dictFile object deals with.
Definition: dictfile.h:136
T & first()
void appendList(const EntryList *other)
Append another EntryList onto this one.
Definition: entrylist.cpp:306
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
bool contains(QChar ch, Qt::CaseSensitivity cs) const
QVector< QString > findMatches(const QString &searchString) const
Get everything that looks remotely like a given search string.
Definition: linearedictfile.cpp:45
MatchWordType getMatchWordType() const
Get which word type is currently set on the DictQuery.
Definition: dictquery.cpp:616
virtual void close()
bool loadFile(const QString &filename)
Load a file, generate the index if it doesn't already exist.
Definition: linearedictfile.cpp:59
QMap< QString, QString > m_searchableAttributes
This allows the programming user to see a list of possible search types (probably through a drop down...
Definition: dictfile.h:178
const QChar at(int position) const
QTextCodec * codecForName(const QByteArray &name)
A class to allow users of libkiten to properly setup a database query.
Definition: dictquery.h:89
int length() const
QString left(int n) const
virtual DictionaryPreferenceDialog * preferencesWidget(KConfigSkeleton *config, QWidget *parent=NULL)
If you want your own dialog to pick preferences for your dict, then override this.
Definition: dictfileedict.cpp:336
bool loadDictionary(const QString &file, const QString &name)
Load up the dictionary.
Definition: dictfileedict.cpp:254
iterator insert(const Key &key, const T &value)
Abstract base class, used internally by the library for handling different types of dictionaries This...
Definition: dictfile.h:47
virtual QMap< QString, QString > displayOptions() const
Definition: dictfileedict.cpp:75
int size() const
virtual QStringList listDictDisplayOptions(QStringList x) const
Make a list of all the extra fields in our db.
Definition: dictfileedict.cpp:245
EntryList is a simple container for Entry objects, and is-a QList A few simple overrides allo...
Definition: entrylist.h:38
DictFileEdict()
Per instructions in the super-class, this constructor basically sets the dictionaryType member variab...
Definition: dictfileedict.cpp:56
virtual bool validDictionaryFile(const QString &filename)
Scan a potential file for the correct format, remembering to skip comment characters.
Definition: dictfileedict.cpp:351
const QList< QString > listPropertyKeys() const
Use this to get a list of all the property keys in the query.
Definition: dictquery.cpp:445
Definition: dictquery.h:308
bool hasNext() const
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
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.