Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++
1018 B
Raw Blame
/* This file is part of the KDE project
 * SPDX-FileCopyrightText: 2006 Jan Hambrecht <[email protected]>
 * SPDX-FileCopyrightText: 2006 Thorsten Zachmann <[email protected]>
 *
 * SPDX-License-Identifier: LGPL-2.0-or-later
 */

#ifndef KOPATHPOINTRUBBERSELECTSTRATEGY_H
#define KOPATHPOINTRUBBERSELECTSTRATEGY_H

#include "KoShapeRubberSelectStrategy.h"

class KoPathTool;

/**
 * @brief Strategy to rubber select points of a path shape
 */
class KoPathPointRubberSelectStrategy : public KoShapeRubberSelectStrategy
{
public:
    KoPathPointRubberSelectStrategy(KoPathTool *tool, const QPointF &clicked);
    ~KoPathPointRubberSelectStrategy() override {}

    void handleMouseMove(const QPointF &p, Qt::KeyboardModifiers modifiers) override;
    void finishInteraction(Qt::KeyboardModifiers modifiers) override;
    void cancelInteraction() override;

private:
    /// pointer to the path tool
    KoPathTool *m_tool;
    Q_DECLARE_PRIVATE(KoShapeRubberSelectStrategy)
};

#endif /* KOPATHPOINTRUBBERSELECTSTRATEGY_H */