|
static QDir | ePartDirectory () |
| Returns the directory containing EPart's. More...
|
|
static EPart * | loadEPartFirstTime (QString ePart, QString &error) |
| This function loads an EPart and does nothing with it. More...
|
|
static EPart * | loadEPart (EPart *part, QString ePart, QString &error, bool doSetupApplication=true) |
| Tries to load the EPart with name or absolute path ePart . More...
|
|
static bool | setupApplication (EPart *part, QString &error) |
| Wrapper for setupQApplication( QString, QString& ) More...
|
|
static bool | setupApplication (QString shortName, QString version, QString &error) |
| Sets the QApplication::organizationName() and QApplication::applicationName() to proper values. More...
|
|
static bool | loadTranslations (EPart *part, QString &error) |
| Wrapper for loadTranslations (QString, QString&) More...
|
|
static bool | loadTranslations (QString dir, QString &error) |
| Loads all translations from dir . More...
|
|
static bool | loadResources (EPart *part, QString &error) |
| Wrapper for loadResources(QString, QString&) More...
|
|
static bool | loadResources (QString dir, QString &error) |
| Loads the resources at dir . It also loads the resources of LibEngsas. More...
|
|
static QString | manufacturer () |
| Returns the name of the manufacturer. More...
|
|
static QUrl | website () |
| Returns the website of EngSaS for the active language. More...
|
|
static ESettingsModelItem * | settingsModelItem () |
| Returns a ESettingsModelItem with all pages for ELibrary settings. More...
|
|
static EngSaS::AboutPersons | aboutPersons () |
| Returns a list of persons, related to LibEngsas. More...
|
|
This class provides information about the LibEngsas and loads EPart's.
Therefore it can be used to determine EPart directory and more.
EPart * ELibrary::loadEPart |
( |
EPart * |
part, |
|
|
QString |
ePart, |
|
|
QString & |
error, |
|
|
bool |
doSetupApplication = true |
|
) |
| |
|
static |
Tries to load the EPart with name or absolute path ePart
.
If only a name is specified, the EPart is searched at the standard EPart directory, which is returned by ePartDirectory(). The path can be accessed within CMake with help of ${LIBENGSAS_EPART_DIR} after LibEngsas has been found.
If the EPart can be loaded, it also tries to load the translations and resources for this part. To setup the meta data call setupApplication() after creating your QApplication or KApplication instance or leave doSetupApplication
true to let this function do the setup.
- Note
- This function deletes
part
.
- See also
- setupApplication(QString, QString&)
-
loadTranslations(QString, QString&)
-
loadResources(QString, QString&)