parley
parley.h
Go to the documentation of this file.
221 void callTranslateWord(const QString & word, const QString& fromLanguage, const QString& toLanguage);
271 void addTranslation(QString word, QString fromLanguage, QString toLanguage, QString translation);
395 void translateWord(const QString & word, const QString& fromLanguage, const QString& toLanguage);
396 /* Emits when the translation of a word is finished (from all the scripts) [not to be used by scripts] */
397 void translationFinished(const QString & word, const QString& fromLanguage, const QString& toLanguage);
399 void translationStarted(const QString & word, const QString& fromLanguage, const QString& toLanguage);
QObject * newAction(const QString &name, const QString &text=QString())
Creates and adds to the Scripts menu a new KAction (see KAction documentation)
Definition: parley.cpp:145
Definition: parley.h:206
void addTranslation(QString word, QString fromLanguage, QString toLanguage, QString translation)
Adds the found translation of the word from language fromLanguage to language toLanguage to Parley tr...
Definition: parley.cpp:61
QVariantList selectedEntries()
Returns a list of Expression objects (the selected entries of the active lesson)
Definition: parley.cpp:90
Definition: parley.h:191
Definition: parley.h:192
Definition: parley.h:200
void callTranslateWord(const QString &word, const QString &fromLanguage, const QString &toLanguage)
Definition: parley.cpp:54
void translationStarted(const QString &word, const QString &fromLanguage, const QString &toLanguage)
Definition: parley.h:198
void translateWord(const QString &word, const QString &fromLanguage, const QString &toLanguage)
Slots (script functions) connected to this signal are called when a translation of word is requested...
Definition: parley.h:197
Definition: parley.h:169
Definition: parley.h:207
Definition: parley.h:201
Definition: parley.h:193
const char * name() const
Definition: parley.h:184
Definition: parley.h:208
Definition: parley.h:174
QStringList locales()
Returns a list of all available locales (to be used by the scripts)
Definition: parley.cpp:67
Definition: parley.h:172
Definition: parley.h:202
Definition: parley.h:185
QObject * activeLesson()
Definition: parley.h:173
QVariantList selectedTranslations()
Returns a list of Translation objects (the selected translations of the active lesson) ...
Definition: parley.cpp:116
Parley scripting class (main entry point of a Parley Kross script)
Definition: parley.h:152
Definition: parley.h:187
void translationFinished(const QString &word, const QString &fromLanguage, const QString &toLanguage)
Definition: parley.h:188
Definition: parley.h:183
Definition: parley.h:199
Definition: parley.h:179
Definition: editor.h:50
QString localeName(QString locale)
Gives the language name of the given locale.
Definition: parley.cpp:73
Definition: parley.h:196
Definition: parley.h:186
Definition: parley.h:182
Definition: parley.h:205
Definition: parley.h:178
QObject * newDocument()
Creates a new document and returns a reference to it.
Definition: parley.h:344
Definition: parley.h:177
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:15:56 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:15:56 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.