Open-Typer
Open source typewriting tutor program
Loading...
Searching...
No Matches
BuiltInPacks.h
1/*
2 * BuiltInPacks.h
3 * This file is part of Open-Typer
4 *
5 * Copyright (C) 2021-2023 - adazem009
6 * Copyright (C) 2022 - Roker2
7 *
8 * Open-Typer is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * Open-Typer is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with Open-Typer. If not, see <http://www.gnu.org/licenses/>.
20 */
21
22#ifndef BUILTINPACKS_H
23#define BUILTINPACKS_H
24
25#include <QObject>
26#include <QString>
27
29class Q_DECL_EXPORT BuiltInPacks : public QObject
30{
31 Q_OBJECT
32 public:
33 Q_INVOKABLE static QString packName(QString rawName);
34 Q_INVOKABLE static QStringList keyboardLayouts(void);
35 Q_INVOKABLE static QStringList packs(QString keyboardLayout = "");
36 Q_INVOKABLE static QString keyboardLayoutForPack(QString rawName);
37 Q_INVOKABLE static QStringList keyboardLayoutXkb(QString keyboardLayout);
38
39 private:
40 static QString autoGeneratedTr(void);
41 static QMap<QString, QString> rawNameToFullNameMap(bool noAutoGenerated = false);
42};
43
44#endif // BUILTINPACKS_H
The BuiltInPacks class provides functions for built-in pack settings.
Definition BuiltInPacks.h:30