19 Candidate(
const QString &c,
const QString &s,
const QString &d,
const QString &t)
30 return c.translation == d.translation && c.source == d.source && c.context == d.context
31 && c.disambiguation == d.disambiguation;
55
56
57
58
59
71
72
73
74
75
76
int main(int argc, char *argv[])
[2]
void closeEvent(QCloseEvent *event) override
[21]
bool openFiles(const QStringList &names, bool readWrite=true)
static RecentFiles & recentFiles()
bool eventFilter(QObject *obj, QEvent *ev) override
Filters events if this object has been installed as an event filter for the watched object.
static QString friendlyString(const QString &str)
QLocale::Language sourceLanguage() const
void append(Phrase *phrase)
QLocale::Territory territory() const
QLocale::Language language() const
QString friendlyPhraseBookName() const
void setSourceLanguageAndTerritory(QLocale::Language lang, QLocale::Territory territory)
bool load(const QString &fileName, bool *langGuessed)
QList< Phrase * > phrases() const
void setLanguageAndTerritory(QLocale::Language lang, QLocale::Territory territory)
QLocale::Territory sourceTerritory() const
bool save(const QString &fileName)
void remove(Phrase *phrase)
void setPhraseBook(PhraseBook *book)
PhraseBook * phraseBook() const
void setDefinition(const QString &nd)
void setSource(const QString &ns)
QString definition() const
Candidate candidate() const
Phrase(const QString &source, const QString &target, const QString &definition, PhraseBook *phraseBook)
Phrase(const QString &source, const QString &target, const QString &definition, const Candidate &candidate, int sc=-1)
void setTarget(const QString &nt)
int getSimilarityScore(const QString &strCandidate)
StringSimilarityMatcher(const QString &stringToMatch)
Combined button and popup list for selecting options.
bool operator==(const Phrase &p, const Phrase &q)
bool operator!=(const Phrase &p, const Phrase &q)
static int getSimilarityScore(const QString &str1, const QString &str2)
QList< Candidate > CandidateList
const int textSimilarityThreshold
bool operator!=(const Candidate &c, const Candidate &d)
CandidateList similarTextHeuristicCandidates(const Translator *tor, const QString &text, int maxCandidates)
bool operator==(const Candidate &c, const Candidate &d)
Candidate(const QString &c, const QString &s, const QString &d, const QString &t)
CoMatrix(const QString &str)