Changeset View
Changeset View
Standalone View
Standalone View
libs/ui/input/kis_abstract_input_action.h
Show First 20 Lines • Show All 161 Lines • ▼ Show 20 Line(s) | 56 | public: | |||
---|---|---|---|---|---|
162 | * prevent basic actions like painting from being removed. | 162 | * prevent basic actions like painting from being removed. | ||
163 | * | 163 | * | ||
164 | * \param shortcut The shortcut index to check. | 164 | * \param shortcut The shortcut index to check. | ||
165 | * \return True if the shortcut is required, false if not. | 165 | * \return True if the shortcut is required, false if not. | ||
166 | */ | 166 | */ | ||
167 | virtual bool isShortcutRequired(int shortcut) const; | 167 | virtual bool isShortcutRequired(int shortcut) const; | ||
168 | 168 | | |||
169 | /** | 169 | /** | ||
170 | * Some of the actions are available in particular sutiations | 170 | * Some of the actions are available in particular situations | ||
171 | * only. E.g. switch frame action is available iff a animated | 171 | * only. E.g. switch frame action is available iff a animated | ||
172 | * layer is selected. If isAvailable() returns true then the | 172 | * layer is selected. If isAvailable() returns true then the | ||
173 | * action will *not* be triggered by the shortcut matcher. | 173 | * action will *not* be triggered by the shortcut matcher. | ||
174 | */ | 174 | */ | ||
175 | virtual bool isAvailable() const; | 175 | virtual bool isAvailable() const; | ||
176 | 176 | | |||
177 | protected: | 177 | protected: | ||
178 | /** | 178 | /** | ||
▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines |