File indexing completed on 2024-05-05 04:34:54
0001 /* 0002 * SPDX-FileCopyrightText: 2019 David Redondo <kde@david-redondo.de> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef SHORTCUT_ACTIONS_H 0008 #define SHORTCUT_ACTIONS_H 0009 0010 #include <KActionCollection> 0011 0012 class ShortcutActions 0013 { 0014 public: 0015 static ShortcutActions *self(); 0016 0017 KActionCollection *shortcutActions(); 0018 0019 QString componentName() const; 0020 0021 QAction *openAction() const; 0022 QAction *fullScreenAction() const; 0023 QAction *currentScreenAction() const; 0024 QAction *activeWindowAction() const; 0025 QAction *regionAction() const; 0026 QAction *windowUnderCursorAction() const; 0027 QAction *recordScreenAction() const; 0028 QAction *recordWindowAction() const; 0029 QAction *recordRegionAction() const; 0030 QAction *openWithoutScreenshotAction() const; 0031 0032 private: 0033 ShortcutActions(); 0034 KActionCollection mActions; 0035 }; 0036 0037 #endif