Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_change_primary_setting_action.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 * SPDX-FileCopyrightText: 2012 Arjen Hiemstra <ahiemstra@heimr.nl>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KISCHANGEPRIMARYSETTINGACTION_H
8#define KISCHANGEPRIMARYSETTINGACTION_H
9
11#include "kis_tool.h"
12
20{
21public:
24
29
30 void activate(int shortcut) override;
31 void deactivate(int shortcut) override;
32 int priority() const override;
33
34 void begin(int shortcut, QEvent *event) override;
35 void end(QEvent *event) override;
36 void inputEvent(QEvent* event) override;
37
38 bool supportsHiResInputEvents(int shortcut) const override;
39private:
40 KisTool::ToolAction decodeAction(int shortcut) const;
42};
43
44#endif // KISCHANGEPRIMARYSETTINGACTION_H
Abstract base class for input actions.
Change Primary Setting implementation of KisAbstractInputAction.
@ PrimaryAlternateChangeSizeShortcut
Default Mapping: Shift+Left Mouse.
@ SecondaryAlternateChangeSizeShortcut
Secondary Mode (snap to closest pixel value): Shift+Z+Left Mouse.
KisTool::ToolAction decodeAction(int shortcut) const
bool supportsHiResInputEvents(int shortcut) const override
void begin(int shortcut, QEvent *event) override
@ Alternate_NONE
Definition kis_tool.h:129