3
0
mirror of https://github.com/Qortal/Brooklyn.git synced 2025-01-31 07:12:18 +00:00
Brooklyn/plasma/kcms/keyboard/bindings.h
Scare Crowe d2ebfd0519 QortalOS Titan 5.60.12
Screw the description like that inbred T3Q
2022-03-05 21:17:59 +05:00

35 lines
922 B
C++

/*
SPDX-FileCopyrightText: 2010 Andriy Rysin <rysin@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef BINDINGS_H_
#define BINDINGS_H_
#include <KActionCollection>
struct Rules;
class LayoutUnit;
template<typename T>
class QList;
class KeyboardLayoutActionCollection : public KActionCollection
{
public:
KeyboardLayoutActionCollection(QObject *parent, bool configAction);
~KeyboardLayoutActionCollection() override;
QAction *getToggleAction();
QAction *createLayoutShortcutActon(const LayoutUnit &layoutUnit, int layoutIndex, const Rules *rules, bool autoload);
void setLayoutShortcuts(QList<LayoutUnit> &layoutUnits, const Rules *rules);
void setToggleShortcut(const QKeySequence &keySequence);
void loadLayoutShortcuts(QList<LayoutUnit> &layoutUnits, const Rules *rules);
void resetLayoutShortcuts();
private:
bool configAction;
};
#endif /* BINDINGS_H_ */