| 1 | /* |
| 2 | * Copyright (C) 2014 LXQt Team |
| 3 | * This file is part of the LXQt project. <https://lxqt-project.org> |
| 4 | * |
| 5 | * This library is free software; you can redistribute it and/or |
| 6 | * modify it under the terms of the GNU Lesser General Public |
| 7 | * License as published by the Free Software Foundation; either |
| 8 | * version 2.1 of the License, or (at your option) any later version. |
| 9 | * |
| 10 | * This library is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | * Lesser General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU Lesser General Public |
| 16 | * License along with this library; if not, write to the Free Software |
| 17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 18 | * |
| 19 | */ |
| 20 | |
| 21 | #ifndef KEYBOARDLAYOUTCONFIG_H |
| 22 | #define KEYBOARDLAYOUTCONFIG_Hcxx . . $ `lxqt-config-input/keyboardlayoutconfig.h:22:9`! |
| 23 | |
| 24 | #include <QtCore/QtGlobal> |
| 25 | #ifdef Q_OS_LINUXcxx . . $ `/usr/include/x86_64-linux-gnu/qt6/QtCore/qsystemdetection.h:100:11`! |
| 26 | #define XKBD_BASELIST_PATHcxx . . $ `lxqt-config-input/keyboardlayoutconfig.h:26:9`! "/usr/share/X11/xkb/rules/base.lst" |
| 27 | #elif defined(Q_OS_FREEBSD) |
| 28 | #define XKBD_BASELIST_PATH "/usr/local/share/X11/xkb/rules/base.lst" |
| 29 | #elif defined(Q_OS_OPENBSD) |
| 30 | #define XKBD_BASELIST_PATH "/usr/X11R6/share/X11/xkb/rules/base.lst" |
| 31 | #else |
| 32 | #define XKBD_BASELIST_PATH "/usr/local/share/X11/xkb/rules/base.lst" |
| 33 | #endif |
| 34 | |
| 35 | #include <QWidget> |
| 36 | #include "keyboardlayoutinfo.h"cxx . . $ `<file>/lxqt-config-input/keyboardlayoutinfo.h`/ |
| 37 | #include <QMap> |
| 38 | #include "ui_keyboardlayoutconfig.h"cxx . . $ `<file>/build/lxqt-config-input/lxqt-config-input_autogen/include/ui_keyboardlayoutconfig.h`/ |
| 39 | |
| 40 | #include <utility> |
| 41 | |
| 42 | namespace LXQtcxx . . $ LXQt/ { |
| 43 | class Settingscxx . . $ LXQt/Settings#; |
| 44 | } |
| 45 | |
| 46 | class KeyboardLayoutConfigcxx . . $ KeyboardLayoutConfig# : public QWidgetcxx . . $ QWidget# { |
| 47 | Q_OBJECTcxx . . $ KeyboardLayoutConfig#tr(75d9f1c324b4579d). |
| 48 | public: |
| 49 | KeyboardLayoutConfigcxx . . $ KeyboardLayoutConfig#KeyboardLayoutConfig(5b8077150108e9b6).(LXQtcxx . . $ LXQt/::Settingscxx . . $ LXQt/Settings#* _settings, QWidgetcxx . . $ QWidget#* parent = nullptr); |
| 50 | virtual ~cxx . . $ KeyboardLayoutConfig#`~KeyboardLayoutConfig`(ced63f7c635d850d).KeyboardLayoutConfigcxx . . $ KeyboardLayoutConfig#(); |
| 51 | |
| 52 | void applyConfigcxx . . $ KeyboardLayoutConfig#applyConfig(49f6e7a06ebc5aa8).(); |
| 53 | |
| 54 | public Q_SLOTScxx . . $ `<external>/4830994369567095248/qtmetamacros.h:46:10`!: |
| 55 | void resetcxx . . $ KeyboardLayoutConfig#reset(49f6e7a06ebc5aa8).(); |
| 56 | void onAddLayoutcxx . . $ KeyboardLayoutConfig#onAddLayout(49f6e7a06ebc5aa8).(); |
| 57 | void onRemoveLayoutcxx . . $ KeyboardLayoutConfig#onRemoveLayout(49f6e7a06ebc5aa8).(); |
| 58 | void onMoveUpcxx . . $ KeyboardLayoutConfig#onMoveUp(49f6e7a06ebc5aa8).(); |
| 59 | void onMoveDowncxx . . $ KeyboardLayoutConfig#onMoveDown(49f6e7a06ebc5aa8).(); |
| 60 | |
| 61 | Q_SIGNALScxx . . $ `<external>/4830994369567095248/qtmetamacros.h:47:10`!: |
| 62 | void settingsChangedcxx . . $ KeyboardLayoutConfig#settingsChanged(49f6e7a06ebc5aa8).(); |
| 63 | |
| 64 | private: |
| 65 | void loadSettingscxx . . $ KeyboardLayoutConfig#loadSettings(49f6e7a06ebc5aa8).(); |
| 66 | void loadListscxx . . $ KeyboardLayoutConfig#loadLists(49f6e7a06ebc5aa8).(); |
| 67 | void initControlscxx . . $ KeyboardLayoutConfig#initControls(49f6e7a06ebc5aa8).(); |
| 68 | void addLayoutcxx . . $ KeyboardLayoutConfig#addLayout(3458fe3960d5051).(QStringcxx . . $ QString# name, QStringcxx . . $ QString# variant); |
| 69 | |
| 70 | private: |
| 71 | Uicxx . . $ Ui/::KeyboardLayoutConfigcxx . . $ Ui/KeyboardLayoutConfig# uicxx . . $ KeyboardLayoutConfig#ui.; |
| 72 | QStringcxx . . $ QString# keyboardModel_cxx . . $ KeyboardLayoutConfig#keyboardModel_.; |
| 73 | QStringcxx . . $ QString# switchKey_cxx . . $ KeyboardLayoutConfig#switchKey_.; |
| 74 | QStringListcxx . . $ QStringList# currentOptions_cxx . . $ KeyboardLayoutConfig#currentOptions_.; |
| 75 | QListcxx . . $ QList#<stdcxx . . $ std/::paircxx . . $ std/pair#<QStringcxx . . $ QString#, QStringcxx . . $ QString#>> currentLayouts_cxx . . $ KeyboardLayoutConfig#currentLayouts_.; |
| 76 | QMapcxx . . $ QMap#<QStringcxx . . $ QString#, KeyboardLayoutInfocxx . . $ KeyboardLayoutInfo#> knownLayouts_cxx . . $ KeyboardLayoutConfig#knownLayouts_.; |
| 77 | LXQtcxx . . $ LXQt/::Settingscxx . . $ LXQt/Settings#* settingscxx . . $ KeyboardLayoutConfig#settings.; |
| 78 | bool applyConfig_cxx . . $ KeyboardLayoutConfig#applyConfig_.; |
| 79 | }; |
| 80 | |
| 81 | #endif // KEYBOARDLAYOUTCONFIG_H |