LibrePCB Developers Documentation
ThemeColor Class Referencefinal

Color settings as used by librepcb::Theme. More...

#include <themecolor.h>

+ Collaboration diagram for ThemeColor:

Public Member Functions

 ThemeColor ()=delete
 
 ThemeColor (const QString &identifier, const char *category, const char *name, const QString &nameSuffix, const QColor &primary, const QColor &secondary) noexcept
 
 ThemeColor (const ThemeColor &other) noexcept
 
 ~ThemeColor () noexcept
 
const QString & getIdentifier () const noexcept
 
QString getCategoryTr () const noexcept
 
QString getNameTr () const noexcept
 
const QColor & getPrimaryColor () const noexcept
 
const QColor & getSecondaryColor () const noexcept
 
bool isEdited () const noexcept
 
void setPrimaryColor (const QColor &color) noexcept
 
void setSecondaryColor (const QColor &color) noexcept
 
void load (const SExpression &root)
 
std::unique_ptr< SExpressionserialize () const
 
bool operator== (const ThemeColor &rhs) const noexcept
 
bool operator!= (const ThemeColor &rhs) const noexcept
 
ThemeColoroperator= (const ThemeColor &rhs) noexcept
 

Private Attributes

QString mIdentifier
 
const char * mCategoryNoTr
 
const char * mNameNoTr
 
QString mNameSuffix
 
QColor mPrimary
 
QColor mSecondary
 Null if not applicable. More...
 
bool mEdited
 

Detailed Description

Color settings as used by librepcb::Theme.

Constructor & Destructor Documentation

◆ ThemeColor() [1/3]

ThemeColor ( )
delete

◆ ThemeColor() [2/3]

ThemeColor ( const QString &  identifier,
const char *  category,
const char *  name,
const QString &  nameSuffix,
const QColor &  primary,
const QColor &  secondary 
)
noexcept

◆ ThemeColor() [3/3]

ThemeColor ( const ThemeColor other)
noexcept

◆ ~ThemeColor()

~ThemeColor ( )
noexcept

Member Function Documentation

◆ getIdentifier()

const QString & getIdentifier ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getCategoryTr()

QString getCategoryTr ( ) const
noexcept

◆ getNameTr()

QString getNameTr ( ) const
noexcept
+ Here is the caller graph for this function:

◆ getPrimaryColor()

const QColor & getPrimaryColor ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getSecondaryColor()

const QColor & getSecondaryColor ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ isEdited()

bool isEdited ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ setPrimaryColor()

void setPrimaryColor ( const QColor &  color)
noexcept

◆ setSecondaryColor()

void setSecondaryColor ( const QColor &  color)
noexcept

◆ load()

void load ( const SExpression root)
+ Here is the call graph for this function:

◆ serialize()

std::unique_ptr< SExpression > serialize ( ) const
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator==()

bool operator== ( const ThemeColor rhs) const
noexcept

◆ operator!=()

bool operator!= ( const ThemeColor rhs) const
inlinenoexcept

◆ operator=()

ThemeColor & operator= ( const ThemeColor rhs)
noexcept

Member Data Documentation

◆ mIdentifier

QString mIdentifier
private

◆ mCategoryNoTr

const char* mCategoryNoTr
private

◆ mNameNoTr

const char* mNameNoTr
private

◆ mNameSuffix

QString mNameSuffix
private

◆ mPrimary

QColor mPrimary
private

◆ mSecondary

QColor mSecondary
private

Null if not applicable.

◆ mEdited

bool mEdited
private

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