Changeset View
Changeset View
Standalone View
Standalone View
libs/ui/input/kis_stroke_shortcut.h
Show All 27 Lines | |||||
28 | * This class represents a shortcut that starts an action that can | 28 | * This class represents a shortcut that starts an action that can | ||
29 | * involve pressing the mouse button and, probably, moving the cursor. | 29 | * involve pressing the mouse button and, probably, moving the cursor. | ||
30 | * | 30 | * | ||
31 | * The stroke shortcut may be represented as a simple state machine: | 31 | * The stroke shortcut may be represented as a simple state machine: | ||
32 | * It transits between 3 states: | 32 | * It transits between 3 states: | ||
33 | * | 33 | * | ||
34 | * Idle <-> Ready <-> Running | 34 | * Idle <-> Ready <-> Running | ||
35 | * | 35 | * | ||
36 | * The possibility of trasition between Idle <-> Ready is defined | 36 | * The possibility of transition between Idle <-> Ready is defined | ||
37 | * with a matchReady() method. The transition Ready <-> Running is | 37 | * with a matchReady() method. The transition Ready <-> Running is | ||
38 | * defined by matchBegin(). The Ready state is used for showing the | 38 | * defined by matchBegin(). The Ready state is used for showing the | ||
39 | * user the cursor of the upcoming action and the Running state shows | 39 | * user the cursor of the upcoming action and the Running state shows | ||
40 | * that the action linked to the shortcut should be activated. | 40 | * that the action linked to the shortcut should be activated. | ||
41 | */ | 41 | */ | ||
42 | 42 | | |||
43 | class KRITAUI_EXPORT KisStrokeShortcut : public KisAbstractShortcut | 43 | class KRITAUI_EXPORT KisStrokeShortcut : public KisAbstractShortcut | ||
44 | { | 44 | { | ||
▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines |