10#include <QtCore/QLocale>
22 Phrase(
const QString &source,
const QString &target,
const QString &definition,
24 Phrase(
const QString &source,
const QString &target,
25 const QString &definition,
PhraseBook *phraseBook);
61 bool load(
const QString &fileName,
bool *langGuessed);
62 bool save(
const QString &fileName);
86 void setModified(
bool modified);
87 void phraseChanged(
Phrase *phrase);
89 QList<Phrase *> m_phrases;
93 QLocale::Language m_language;
94 QLocale::Language m_sourceLanguage;
95 QLocale::Territory m_territory;
96 QLocale::Territory m_sourceTerritory;
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)
Combined button and popup list for selecting options.
bool operator==(const Phrase &p, const Phrase &q)
bool operator!=(const Phrase &p, const Phrase &q)