LibrePCB Developers Documentation
Application Class Referencefinal

The Application class extends the QApplication with the exception-safe method notify() More...

#include <application.h>

Inherits QApplication.

+ Collaboration diagram for Application:

Public Slots

static void about () noexcept
 

Public Member Functions

 Application ()=delete
 
 Application (const Application &other)=delete
 
 Application (int &argc, char **argv) noexcept
 
 ~Application () noexcept
 
const VersiongetAppVersion () const noexcept
 
const QString & getAppVersionLabel () const noexcept
 
const QString & getGitRevision () const noexcept
 
const QDateTime & getBuildDate () const noexcept
 
const QString & getLinkingType () const noexcept
 
const QString & getUnbundledLibs () const noexcept
 
const VersiongetFileFormatVersion () const noexcept
 
bool isFileFormatStable () const noexcept
 
const FilePathgetResourcesDir () const noexcept
 
FilePath getResourcesFilePath (const QString &filepath) const noexcept
 
QStringList getAvailableTranslationLocales () const noexcept
 
const QFont & getDefaultSansSerifFont () const noexcept
 
const QFont & getDefaultMonospaceFont () const noexcept
 
const StrokeFontPoolgetStrokeFonts () const noexcept
 
QString getDefaultStrokeFontName () const noexcept
 
const StrokeFontgetDefaultStrokeFont () const noexcept
 
void setTranslationLocale (const QLocale &locale) noexcept
 
bool notify (QObject *receiver, QEvent *e)
 
Applicationoperator= (const Application &rhs)=delete
 

Static Public Member Functions

static Applicationinstance () noexcept
 

Private Member Functions

void removeAllTranslators () noexcept
 

Private Attributes

Version mAppVersion
 
QString mAppVersionLabel
 
QString mGitRevision
 
QDateTime mBuildDate
 
QString mLinkingType
 
QString mUnbundledLibs
 
Version mFileFormatVersion
 
bool mIsFileFormatStable
 
FilePath mResourcesDir
 
QScopedPointer< StrokeFontPoolmStrokeFontPool
 Pool containing all application stroke fonts. More...
 
QFont mSansSerifFont
 Default sans serif font. More...
 
QFont mMonospaceFont
 Default monospace font. More...
 
QList< std::shared_ptr< QTranslator > > mTranslators
 All currently installed translators. More...
 

Detailed Description

The Application class extends the QApplication with the exception-safe method notify()

Constructor & Destructor Documentation

◆ Application() [1/3]

Application ( )
delete

◆ Application() [2/3]

Application ( const Application other)
delete

◆ Application() [3/3]

Application ( int &  argc,
char **  argv 
)
noexcept
+ Here is the call graph for this function:

◆ ~Application()

~Application ( )
noexcept
+ Here is the call graph for this function:

Member Function Documentation

◆ getAppVersion()

const Version& getAppVersion ( ) const
inlinenoexcept

◆ getAppVersionLabel()

const QString& getAppVersionLabel ( ) const
inlinenoexcept

◆ getGitRevision()

const QString& getGitRevision ( ) const
inlinenoexcept

◆ getBuildDate()

const QDateTime& getBuildDate ( ) const
inlinenoexcept

◆ getLinkingType()

const QString& getLinkingType ( ) const
inlinenoexcept

◆ getUnbundledLibs()

const QString& getUnbundledLibs ( ) const
inlinenoexcept

◆ getFileFormatVersion()

const Version& getFileFormatVersion ( ) const
inlinenoexcept

◆ isFileFormatStable()

bool isFileFormatStable ( ) const
inlinenoexcept

◆ getResourcesDir()

const FilePath& getResourcesDir ( ) const
inlinenoexcept
+ Here is the call graph for this function:

◆ getResourcesFilePath()

FilePath getResourcesFilePath ( const QString &  filepath) const
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getAvailableTranslationLocales()

QStringList getAvailableTranslationLocales ( ) const
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getDefaultSansSerifFont()

const QFont& getDefaultSansSerifFont ( ) const
inlinenoexcept

◆ getDefaultMonospaceFont()

const QFont& getDefaultMonospaceFont ( ) const
inlinenoexcept

◆ getStrokeFonts()

const StrokeFontPool& getStrokeFonts ( ) const
inlinenoexcept

◆ getDefaultStrokeFontName()

QString getDefaultStrokeFontName ( ) const
inlinenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getDefaultStrokeFont()

const StrokeFont & getDefaultStrokeFont ( ) const
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setTranslationLocale()

void setTranslationLocale ( const QLocale &  locale)
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ notify()

bool notify ( QObject *  receiver,
QEvent *  e 
)
+ Here is the caller graph for this function:

◆ operator=()

Application& operator= ( const Application rhs)
delete
+ Here is the caller graph for this function:

◆ instance()

Application * instance ( )
staticnoexcept
+ Here is the caller graph for this function:

◆ about

void about ( )
staticslotnoexcept
+ Here is the caller graph for this function:

◆ removeAllTranslators()

void removeAllTranslators ( )
privatenoexcept
+ Here is the caller graph for this function:

Member Data Documentation

◆ mAppVersion

Version mAppVersion
private

◆ mAppVersionLabel

QString mAppVersionLabel
private

◆ mGitRevision

QString mGitRevision
private

◆ mBuildDate

QDateTime mBuildDate
private

◆ mLinkingType

QString mLinkingType
private

◆ mUnbundledLibs

QString mUnbundledLibs
private

◆ mFileFormatVersion

Version mFileFormatVersion
private

◆ mIsFileFormatStable

bool mIsFileFormatStable
private

◆ mResourcesDir

FilePath mResourcesDir
private

◆ mStrokeFontPool

QScopedPointer<StrokeFontPool> mStrokeFontPool
private

Pool containing all application stroke fonts.

◆ mSansSerifFont

QFont mSansSerifFont
private

Default sans serif font.

◆ mMonospaceFont

QFont mMonospaceFont
private

Default monospace font.

◆ mTranslators

QList<std::shared_ptr<QTranslator> > mTranslators
private

All currently installed translators.


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