LibrePCB Developers Documentation
Loading...
Searching...
No Matches
MsgInvalidImageFile Class Referencefinal

The MsgInvalidImageFile class. More...

#include <symbolcheckmessages.h>

+ Inheritance diagram for MsgInvalidImageFile:
+ Collaboration diagram for MsgInvalidImageFile:

Public Types

enum class  Error
 
- Public Types inherited from RuleCheckMessage
enum class  Severity
 Message severity type (higher number = higher severity) More...
 

Public Member Functions

 MsgInvalidImageFile ()=delete
 
 MsgInvalidImageFile (const QString &fileName, Error error, const QString &details) noexcept
 
 MsgInvalidImageFile (const MsgInvalidImageFile &other) noexcept
 
virtual ~MsgInvalidImageFile () noexcept
 
- Public Member Functions inherited from RuleCheckMessage
 RuleCheckMessage ()=delete
 
Severity getSeverity () const noexcept
 
QString getSeverityTr () const noexcept
 
const QIcon & getSeverityIcon () const noexcept
 
const QString & getMessage () const noexcept
 
const QString & getDescription () const noexcept
 
const SExpressiongetApproval () const noexcept
 
const QVector< Path > & getLocations () const noexcept
 
template<typename T >
T * as () noexcept
 
template<typename T >
const T * as () const noexcept
 
bool operator== (const RuleCheckMessage &rhs) const noexcept
 
bool operator!= (const RuleCheckMessage &rhs) const noexcept
 

Static Private Member Functions

static QString buildMessagePattern (Error error) noexcept
 
static QString buildDescription (const QString &details) noexcept
 

Additional Inherited Members

- Static Public Member Functions inherited from RuleCheckMessage
static QString getSeverityTr (Severity severity) noexcept
 
static const QIcon & getSeverityIcon (Severity severity) noexcept
 
static QSet< SExpressiongetAllApprovals (const QVector< std::shared_ptr< const RuleCheckMessage > > &messages) noexcept
 
- Protected Member Functions inherited from RuleCheckMessage
 RuleCheckMessage (const RuleCheckMessage &other) noexcept
 
 RuleCheckMessage (Severity severity, const QString &msg, const QString &description, const QString &approvalName, const QVector< Path > &locations={}) noexcept
 
virtual ~RuleCheckMessage () noexcept
 
- Protected Attributes inherited from RuleCheckMessage
Severity mSeverity
 
QString mMessage
 
QString mDescription
 
std::unique_ptr< SExpressionmApproval
 
QVector< PathmLocations
 

Detailed Description

Member Enumeration Documentation

◆ Error

enum class Error
strong
Enumerator
FileMissing 
FileReadError 
UnsupportedFormat 
ImageLoadError 

Constructor & Destructor Documentation

◆ MsgInvalidImageFile() [1/3]

MsgInvalidImageFile ( )
delete

◆ MsgInvalidImageFile() [2/3]

MsgInvalidImageFile ( const QString &  fileName,
Error  error,
const QString &  details 
)
explicitnoexcept

◆ MsgInvalidImageFile() [3/3]

MsgInvalidImageFile ( const MsgInvalidImageFile other)
inlinenoexcept

◆ ~MsgInvalidImageFile()

virtual ~MsgInvalidImageFile ( )
inlinevirtualnoexcept

Member Function Documentation

◆ buildMessagePattern()

QString buildMessagePattern ( Error  error)
staticprivatenoexcept

◆ buildDescription()

QString buildDescription ( const QString &  details)
staticprivatenoexcept

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