Changeset View
Changeset View
Standalone View
Standalone View
tools/kpTool.cpp
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Line(s) | 54 | kpTool::kpTool(const QString &text, const QString &description, | |||
---|---|---|---|---|---|
56 | kpToolEnvironment *environ, | 56 | kpToolEnvironment *environ, | ||
57 | QObject *parent, const QString &name) | 57 | QObject *parent, const QString &name) | ||
58 | : QObject(parent), | 58 | : QObject(parent), | ||
59 | d(new kpToolPrivate()) | 59 | d(new kpToolPrivate()) | ||
60 | { | 60 | { | ||
61 | d->key = key; | 61 | d->key = key; | ||
62 | d->action = nullptr; | 62 | d->action = nullptr; | ||
63 | d->ignoreColorSignals = 0; | 63 | d->ignoreColorSignals = 0; | ||
64 | d->shiftPressed = false, d->controlPressed = false, d->altPressed = false; // set in beginInternal() | 64 | d->shiftPressed = false; | ||
65 | d->controlPressed = false; | ||||
66 | d->altPressed = false; // set in beginInternal() | ||||
65 | d->beganDraw = false; | 67 | d->beganDraw = false; | ||
66 | d->text = text, d->description = description; | 68 | d->text = text; | ||
69 | d->description = description; | ||||
67 | d->began = false; | 70 | d->began = false; | ||
68 | d->viewUnderStartPoint = nullptr; | 71 | d->viewUnderStartPoint = nullptr; | ||
69 | d->userShapeStartPoint = KP_INVALID_POINT; | 72 | d->userShapeStartPoint = KP_INVALID_POINT; | ||
70 | d->userShapeEndPoint = KP_INVALID_POINT; | 73 | d->userShapeEndPoint = KP_INVALID_POINT; | ||
71 | d->userShapeSize = KP_INVALID_SIZE; | 74 | d->userShapeSize = KP_INVALID_SIZE; | ||
72 | 75 | | |||
73 | d->environ = environ; | 76 | d->environ = environ; | ||
74 | 77 | | |||
▲ Show 20 Lines • Show All 185 Lines • Show Last 20 Lines |