9const QString &settingsPrefix();
int main(int argc, char *argv[])
[2]
MessageItem * findMessage(const QString &sourcetext, const QString &comment) const
int finishedDangerCount() const
int unfinishedCount() const
int finishedCount() const
int unfinishedDangerCount() const
ContextItem(const QString &context)
QString fullContext() const
int nonobsoleteCount() const
MessageItem * messageItem(int i) const
DataIndex(int context, int message)
MessageItem * current() const
DataModelIterator(DataModel *model, int contextNo=0, int messageNo=0)
bool load(const QString &fileName, bool *langGuessed, QWidget *parent)
const QList< bool > & countRefNeeds() const
bool save(QWidget *parent)
QLocale::Territory territory() const
static QString prettifyFileName(const QString &fn)
void doCharCounting(const QString &text, int &trW, int &trC, int &trCS)
static QString prettifyPlainFileName(const QString &fn)
QLocale::Language sourceLanguage() const
bool saveAs(const QString &newFileName, QWidget *parent)
ContextItem * contextItem(int index) const
MessageItem * messageItem(const DataIndex &index) const
bool isWellMergeable(const DataModel *other) const
void setModified(bool dirty)
ContextItem * findContext(const QString &context) const
bool setLanguageAndTerritory(QLocale::Language lang, QLocale::Territory territory)
const QString & localizedLanguage() const
void setSourceLanguageAndTerritory(QLocale::Language lang, QLocale::Territory territory)
int getSrcCharsSpc() const
MessageItem * findMessage(const QString &context, const QString &sourcetext, const QString &comment) const
const QStringList & numerusForms() const
QLocale::Language language() const
void progressChanged(int finishedCount, int oldFinishedCount)
bool release(const QString &fileName, bool verbose, bool ignoreUnfinished, TranslatorSaveMode mode, QWidget *parent)
void setWritable(bool writable)
QStringList normalizedTranslations(const MessageItem &m) const
QLocale::Territory sourceTerritory() const
QString srcFileName(bool pretty=false) const
QRegularExpression & getRegExp()
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)
void setTranslation(const QString &translation)
MessageItem(const TranslatorMessage &message)
bool compare(const QString &findText, bool matchSubstring, Qt::CaseSensitivity cs) const
QString extraComment() const
const TranslatorMessage & message() const
void setDanger(bool danger)
QString translatorComment() const
QString pluralText() const
void setTranslations(const QStringList &translations)
void setTranslatorComment(const QString &cmt)
QString translation() const
QStringList translations() const
bool isUnfinished() const
TranslatorMessage::Type type() const
void setType(TranslatorMessage::Type type)
QModelIndex modelIndex(const MultiDataIndex &index)
QModelIndex parent(const QModelIndex &index) const override
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const override
Returns the index of the item in the model specified by the given row, column and parent index.
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const override
Returns the data stored under the given role for the item referred to by the index.
MessageModel(QObject *parent, MultiDataModel *data)
MultiDataIndex dataIndex(const QModelIndex &index, int model) const
MultiDataIndex dataIndex(const QModelIndex &index) const
int rowCount(const QModelIndex &parent=QModelIndex()) const override
Returns the number of rows under the given parent.
int columnCount(const QModelIndex &parent=QModelIndex()) const override
Returns the number of columns for the children of the given parent.
MultiDataIndex(int model, int context, int message)
bool operator==(const MultiDataIndex &other) const
bool operator!=(const MultiDataIndex &other) const
MultiDataModelIterator(MultiDataModel *model, int modelNo, int contextNo=0, int messageNo=0)
MessageItem * current() const
bool save(int model, QWidget *parent)
bool release(int model, const QString &fileName, bool verbose, bool ignoreUnfinished, TranslatorSaveMode mode, QWidget *parent)
QStringList srcFileNames(bool pretty=false) const
bool isModified(int model) const
void append(DataModel *dm, bool readWrite)
MessageItem * messageItem(const MultiDataIndex &index, int model) const
void setModified(int model, bool dirty)
MultiContextItem * findContext(const QString &context) const
QLocale::Language sourceLanguage(int model) const
QString condensedSrcFileNames(bool pretty=false) const
static QString condenseFileNames(const QStringList &names)
QBrush brushForModel(int model) const
int isFileLoaded(const QString &name) const
QLocale::Language language(int model) const
void languageChanged(int model)
void setTranslation(const MultiDataIndex &index, const QString &translation)
static QStringList prettifyFileNames(const QStringList &names)
int getNumFinished() const
void setDanger(const MultiDataIndex &index, bool danger)
bool isModelWritable(int model) const
MultiMessageItem * multiMessageItem(const MultiDataIndex &index) const
int getNumEditable() const
void contextDataChanged(const MultiDataIndex &index)
void modifiedChanged(bool)
MultiContextItem * multiContextItem(int ctxIdx) const
void translationChanged(const MultiDataIndex &index)
void statsChanged(const StatisticalData &newStats)
QString srcFileName(int model, bool pretty=false) const
MessageItem * messageItem(const MultiDataIndex &index) const
void setFinished(const MultiDataIndex &index, bool finished)
bool saveAs(int model, const QString &newFileName, QWidget *parent)
void messageDataChanged(const MultiDataIndex &index)
bool isWellMergeable(const DataModel *dm) const
void moveModel(int oldPos, int newPos)
int findContextIndex(const QString &context) const
void modelDeleted(int model)
void multiContextDataChanged(const MultiDataIndex &index)
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)
QString settingPath(const char *path)
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)
int getNumEditable() const
ContextItem * contextItem(int model) const
int getNumFinished() const
MultiContextItem(int oldCount, ContextItem *ctx, bool writable)
int findMessageById(const QString &id) const
MessageItem * messageItem(int model, int msgIdx) const
MultiMessageItem * multiMessageItem(int msgIdx) const
int firstNonobsoleteMessageIndex(int msgIdx) const
int findMessage(const QString &sourcetext, const QString &comment) const
int countUnfinished() const
MultiMessageItem(const MessageItem *m)
int countEditable() const
int countNonobsolete() const
QString pluralText() const
bool isUnfinished() const