Static functions to access some global application configuration.
More...
#include <application.h>
Static functions to access some global application configuration.
◆ Application() [1/2]
◆ Application() [2/2]
◆ ~Application()
◆ getVersion()
Get the application version.
- Note
- This function is thread-safe.
- Returns
- Version string (e.g. "0.2.0-unstable")
◆ getGitRevision()
QString getGitRevision |
( |
| ) |
|
|
staticnoexcept |
Get the git revision of the sources used to build the application.
- Note
- This function is thread-safe.
- Returns
- Revision hash (might be empty)
◆ getBuildDate()
QDateTime getBuildDate |
( |
| ) |
|
|
staticnoexcept |
Get the date/time when the application was built.
- Note
- This function is thread-safe.
- Returns
- Date/time (might be invalid)
◆ getBuildAuthor()
QString getBuildAuthor |
( |
| ) |
|
|
staticnoexcept |
Get the author who has built the application.
- Note
- This function is thread-safe.
- Returns
- Author (e.g. "LibrePCB CI"; might be empty)
◆ getFileFormatVersion()
const Version & getFileFormatVersion |
( |
| ) |
|
|
staticnoexcept |
Get the used file format version.
- Note
- This function is thread-safe.
- Returns
- File format version number
◆ isFileFormatStable()
bool isFileFormatStable |
( |
| ) |
|
|
staticnoexcept |
Check whether the used file format is stable.
- Note
- This function is thread-safe.
- Return values
-
◆ getResourcesDir()
Get the path to the resources directory.
- Note
- This function is thread-safe.
- Returns
- Guaranteed valid file path (e.g. "/usr/share/librepcb/")
◆ getTranslationLocales()
QStringList getTranslationLocales |
( |
| ) |
|
|
staticnoexcept |
Get all available translation locales.
- Returns
- Locales like "de_CH"
◆ getDefaultSansSerifFont()
const QFont & getDefaultSansSerifFont |
( |
| ) |
|
|
staticnoexcept |
Get the default sans serif font.
Font to be used e.g. in schematics.
- Warning
- This function is not thread-safe!
- Returns
- Reference to font object
◆ getDefaultMonospaceFont()
const QFont & getDefaultMonospaceFont |
( |
| ) |
|
|
staticnoexcept |
Get the default monospace font.
Font to be used e.g. in schematics.
- Warning
- This function is not thread-safe!
- Returns
- Reference to font object
◆ getStrokeFonts()
Get all globally available stroke fonts.
- Note
- This function is thread-safe.
- Returns
- Reference to stroke font pool
◆ getDefaultStrokeFont()
Get the default stroke font.
- Note
- This function is thread-safe.
- Returns
- Reference to stroke font
◆ getDefaultStrokeFontName()
QString getDefaultStrokeFontName |
( |
| ) |
|
|
staticnoexcept |
Get the name of the default stroke font.
- Note
- This function is thread-safe.
- Returns
- Name of the default stroke font
◆ loadBundledFonts()
void loadBundledFonts |
( |
| ) |
|
|
staticnoexcept |
Load all bundled fonts to make them available in the application.
To be called once at application startup.
◆ setTranslationLocale()
void setTranslationLocale |
( |
const QLocale & |
locale | ) |
|
|
staticnoexcept |
Install all translators for a given locale.
- Parameters
-
locale | Locale to use for translated strings. |
◆ operator=()
The documentation for this class was generated from the following files: