LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 VersiongetFileFormatVersion () const noexcept
 
bool isFileFormatStable () const noexcept
 
const FilePathgetResourcesDir () const noexcept
 
FilePath getResourcesFilePath (const QString &filepath) const noexcept
 
const QFont & getDefaultSansSerifFont () const noexcept
 
const QFont & getDefaultMonospaceFont () const noexcept
 
const StrokeFontPoolgetStrokeFonts () const noexcept
 
QString getDefaultStrokeFontName () const noexcept
 
const StrokeFontgetDefaultStrokeFont () const noexcept
 
bool notify (QObject *receiver, QEvent *e)
 
Applicationoperator= (const Application &rhs)=delete
 

Static Public Member Functions

static Applicationinstance () noexcept
 

Private Attributes

Version mAppVersion
 
QString mAppVersionLabel
 
QString mGitRevision
 
QDateTime mBuildDate
 
Version mFileFormatVersion
 
bool mIsFileFormatStable
 
FilePath mResourcesDir
 
QScopedPointer< StrokeFontPoolmStrokeFontPool
 all application stroke fonts More...
 
QFont mSansSerifFont
 
QFont mMonospaceFont
 

Detailed Description

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

Author
ubruhin
Date
2014-10-23

Constructor & Destructor Documentation

Application ( )
delete
Application ( const Application other)
delete
Application ( int &  argc,
char **  argv 
)
noexcept

+ Here is the call graph for this function:

~Application ( )
noexcept

Member Function Documentation

const Version& getAppVersion ( ) const
inlinenoexcept
const QString& getAppVersionLabel ( ) const
inlinenoexcept
const QString& getGitRevision ( ) const
inlinenoexcept
const QDateTime& getBuildDate ( ) const
inlinenoexcept
const Version& getFileFormatVersion ( ) const
inlinenoexcept
bool isFileFormatStable ( ) const
inlinenoexcept
const FilePath& getResourcesDir ( ) const
inlinenoexcept
FilePath getResourcesFilePath ( const QString &  filepath) const
noexcept

+ Here is the call graph for this function:

const QFont& getDefaultSansSerifFont ( ) const
inlinenoexcept
const QFont& getDefaultMonospaceFont ( ) const
inlinenoexcept
const StrokeFontPool& getStrokeFonts ( ) const
inlinenoexcept
QString getDefaultStrokeFontName ( ) const
inlinenoexcept

+ Here is the caller graph for this function:

const StrokeFont & getDefaultStrokeFont ( ) const
noexcept

+ Here is the call graph for this function:

bool notify ( QObject *  receiver,
QEvent *  e 
)
Application& operator= ( const Application rhs)
delete
Application * instance ( )
staticnoexcept
void about ( )
staticslotnoexcept

Member Data Documentation

Version mAppVersion
private
QString mAppVersionLabel
private
QString mGitRevision
private
QDateTime mBuildDate
private
Version mFileFormatVersion
private
bool mIsFileFormatStable
private
FilePath mResourcesDir
private
QScopedPointer<StrokeFontPool> mStrokeFontPool
private

all application stroke fonts

QFont mSansSerifFont
private
QFont mMonospaceFont
private

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