Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
MessageItem Struct Reference

#include <messagemodel.h>

Collaboration diagram for MessageItem:

Public Member Functions

 MessageItem (const TranslatorMessage &message)
bool danger () const
void setDanger (bool danger)
bool ncrMode () const
void setNcrMode (bool mode)
void setTranslation (const QString &translation)
QString id () const
QString context () const
QString label () const
QString text () const
QString pluralText () const
QString comment () const
QString fileName () const
QString extraComment () const
QString translatorComment () const
void setTranslatorComment (const QString &cmt)
int lineNumber () const
QString translation () const
QStringList translations () const
void setTranslations (const QStringList &translations)
TranslatorMessage::Type type () const
void setType (TranslatorMessage::Type type)
bool isFinished () const
bool isUnfinished () const
bool isObsolete () const
const TranslatorMessagemessage () const
bool compare (const QString &findText, bool matchSubstring, Qt::CaseSensitivity cs) const
bool operator== (const MessageItem &mi) const noexcept

Public Attributes

QString sourceText
QString context
QString comment
QString id
int lineNo = 0
int startOffset = 0
int endOffset = 0
bool plural = 0
bool hasMetaId = 0

Detailed Description

Definition at line 22 of file messagemodel.h.

Constructor & Destructor Documentation

◆ MessageItem()

QT_BEGIN_NAMESPACE MessageItem::MessageItem ( const TranslatorMessage & message)

Definition at line 94 of file messagemodel.cpp.

Referenced by DataModel::load().

Here is the caller graph for this function:

Member Function Documentation

◆ comment()

QString MessageItem::comment ( ) const
inline

Definition at line 39 of file messagemodel.h.

◆ compare()

bool MessageItem::compare ( const QString & findText,
bool matchSubstring,
Qt::CaseSensitivity cs ) const

Definition at line 102 of file messagemodel.cpp.

◆ context()

QString MessageItem::context ( ) const
inline

Definition at line 35 of file messagemodel.h.

◆ danger()

bool MessageItem::danger ( ) const
inline

Definition at line 27 of file messagemodel.h.

Referenced by MessageModel::data(), MultiDataModel::setDanger(), and MultiDataModel::setFinished().

Here is the caller graph for this function:

◆ extraComment()

QString MessageItem::extraComment ( ) const
inline

Definition at line 41 of file messagemodel.h.

◆ fileName()

QString MessageItem::fileName ( ) const
inline

Definition at line 40 of file messagemodel.h.

◆ id()

QString MessageItem::id ( ) const
inline

Definition at line 34 of file messagemodel.h.

◆ isFinished()

bool MessageItem::isFinished ( ) const
inline

Definition at line 52 of file messagemodel.h.

References TranslatorMessage::Finished, and type().

Referenced by MessageModel::data(), MultiDataModel::setDanger(), and DataModel::updateStatistics().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isObsolete()

bool MessageItem::isObsolete ( ) const
inline

Definition at line 54 of file messagemodel.h.

References TranslatorMessage::Obsolete, type(), and TranslatorMessage::Vanished.

Referenced by MessageModel::data(), and DataModel::updateStatistics().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isUnfinished()

bool MessageItem::isUnfinished ( ) const
inline

Definition at line 53 of file messagemodel.h.

References type(), and TranslatorMessage::Unfinished.

Referenced by DataModel::updateStatistics().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ label()

QString MessageItem::label ( ) const
inline

Definition at line 36 of file messagemodel.h.

◆ lineNumber()

int MessageItem::lineNumber ( ) const
inline

Definition at line 44 of file messagemodel.h.

◆ message()

const TranslatorMessage & MessageItem::message ( ) const
inline

Definition at line 56 of file messagemodel.h.

Referenced by MessageModel::data(), DataModel::release(), MessageEditor::showMessage(), and similarTextHeuristicCandidates().

Here is the caller graph for this function:

◆ ncrMode()

bool MessageItem::ncrMode ( ) const
inline

Definition at line 29 of file messagemodel.h.

◆ operator==()

bool MessageItem::operator== ( const MessageItem & mi) const
inlinenoexcept

Definition at line 35 of file recorddirectory.h.

◆ pluralText()

QString MessageItem::pluralText ( ) const

Definition at line 120 of file messagemodel.cpp.

◆ setDanger()

void MessageItem::setDanger ( bool danger)
inline

Definition at line 28 of file messagemodel.h.

Referenced by MultiDataModel::setDanger().

Here is the caller graph for this function:

◆ setNcrMode()

void MessageItem::setNcrMode ( bool mode)
inline

Definition at line 30 of file messagemodel.h.

◆ setTranslation()

void MessageItem::setTranslation ( const QString & translation)

Definition at line 110 of file messagemodel.cpp.

◆ setTranslations()

void MessageItem::setTranslations ( const QStringList & translations)

Definition at line 139 of file messagemodel.cpp.

◆ setTranslatorComment()

void MessageItem::setTranslatorComment ( const QString & cmt)
inline

Definition at line 43 of file messagemodel.h.

◆ setType()

void MessageItem::setType ( TranslatorMessage::Type type)
inline

Definition at line 50 of file messagemodel.h.

Referenced by MultiDataModel::setFinished().

Here is the caller graph for this function:

◆ text()

QString MessageItem::text ( ) const

Definition at line 115 of file messagemodel.cpp.

◆ translation()

QString MessageItem::translation ( ) const

Definition at line 125 of file messagemodel.cpp.

◆ translations()

QStringList MessageItem::translations ( ) const

Definition at line 130 of file messagemodel.cpp.

◆ translatorComment()

QString MessageItem::translatorComment ( ) const
inline

Definition at line 42 of file messagemodel.h.

◆ type()

TranslatorMessage::Type MessageItem::type ( ) const
inline

Definition at line 49 of file messagemodel.h.

Referenced by isFinished(), isObsolete(), isUnfinished(), and MultiDataModel::setFinished().

Here is the caller graph for this function:

Member Data Documentation

◆ comment

QString MessageItem::comment

Definition at line 28 of file recorddirectory.h.

◆ context

◆ endOffset

int MessageItem::endOffset = 0

Definition at line 32 of file recorddirectory.h.

◆ hasMetaId

bool MessageItem::hasMetaId = 0

Definition at line 34 of file recorddirectory.h.

◆ id

QString MessageItem::id

Definition at line 29 of file recorddirectory.h.

◆ lineNo

int MessageItem::lineNo = 0

Definition at line 30 of file recorddirectory.h.

◆ plural

bool MessageItem::plural = 0

Definition at line 33 of file recorddirectory.h.

◆ sourceText

QString MessageItem::sourceText

Definition at line 26 of file recorddirectory.h.

◆ startOffset

int MessageItem::startOffset = 0

Definition at line 31 of file recorddirectory.h.


The documentation for this struct was generated from the following files: