52 static bool initialised =
false;
58 gInstallDir = QStringLiteral(
"%1/").arg(QStringLiteral(PREFIX));
61 QString sharedir = CommandLine ? CommandLine->
GetValue(QStringLiteral(
"share")).toString() : QStringLiteral();
62 if (!sharedir.isEmpty())
67 QString transdir = CommandLine ? CommandLine->
GetValue(QStringLiteral(
"trans")).toString() : QStringLiteral();
68 if (!transdir.isEmpty())
73 QString confdir = CommandLine ? CommandLine->
GetValue(QStringLiteral(
"config")).toString() : QStringLiteral();
74 if (!confdir.isEmpty())
QString GetTorcShareDir(void)
Return the path to the installed Torc shared resources.
Torc command line handler.
static QString gContentDir
QString GetTorcContentDir(void)
brief Return the path to generated content
void InitialiseTorcDirectories(TorcCommandLine *CommandLine)
Statically initialise the various directories that Torc uses.
static QString gInstallDir
QString GetTorcTransDir(void)
brief Return the path to installed translation files
QVariant GetValue(const QString &Key)
Return the value associated with Key or an invalid QVariant if the option is not present.
QString GetTorcConfigDir(void)
Return the path to the application configuration directory.