26#define SNAPPING_THRESHOLD 10
27#define SNAPPING_HANDLE_RADIUS 8
28#define PREVIEW_LINE_WIDTH 1
34 m_closeSnappingActivated(false)
55 disconnect(
action(
"undo_polygon_selection"), 0,
this, 0);
90 if (event->type() == QEvent::MouseButtonPress ||
91 event->type() == QEvent::MouseButtonDblClick) {
92 QMouseEvent *mouseEvent =
static_cast<QMouseEvent*
>(event);
93 if (mouseEvent->button() == Qt::RightButton) {
97 }
else if (event->type() == QEvent::TabletPress) {
98 QTabletEvent *tabletEvent =
static_cast<QTabletEvent*
>(event);
99 if (tabletEvent->button() == Qt::RightButton) {
116 QString message = i18n(
"This tool cannot paint on clone layers. Please select a paint or vector layer or mask.");
122 QString message = i18n(
"The MyPaint Brush Engine is not available for this colorspace");
205 const QRectF lastSegmentRect =
208 updateRect = updateRect.united(lastSegmentRect);
244 path.moveTo(startPos);
248 for (vQPointF::iterator it =
m_points.begin(); it !=
m_points.end(); ++it) {
257 path.moveTo(startPos);
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
KisViewManager * viewManager() const
KisCanvasResourceProvider * canvasResourceProvider()
void showFloatingMessage(const QString &message, const QIcon &icon, int timeout=4500, KisFloatingMessage::Priority priority=KisFloatingMessage::Medium, int alignment=Qt::AlignCenter|Qt::TextWordWrap)
shows a floating message in the top right corner of the canvas
QPointF point
The point in document coordinates.
#define koIcon(name)
Use these macros for icons without any issues.