closes: #1374 . Use SPDX short-form identifiers instead of lengthy copyright header to document per-file license and copyright. This commit updates all files under src/ directory where applicable as well as org.flameshot.Flameshot.metainfo.xml.
34 lines
993 B
C++
34 lines
993 B
C++
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
|
|
|
|
#pragma once
|
|
|
|
#include "src/tools/abstracttwopointtool.h"
|
|
|
|
class SelectionTool : public AbstractTwoPointTool
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit SelectionTool(QObject* parent = nullptr);
|
|
|
|
bool closeOnButtonPressed() const override;
|
|
|
|
QIcon icon(const QColor& background, bool inEditor) const override;
|
|
QString name() const override;
|
|
QString description() const override;
|
|
|
|
CaptureTool* copy(QObject* parent = nullptr) override;
|
|
void process(QPainter& painter,
|
|
const QPixmap& pixmap,
|
|
bool recordUndo = false) override;
|
|
void paintMousePreview(QPainter& painter,
|
|
const CaptureContext& context) override;
|
|
|
|
protected:
|
|
ToolType nameID() const override;
|
|
|
|
public slots:
|
|
void drawStart(const CaptureContext& context) override;
|
|
void pressed(const CaptureContext& context) override;
|
|
};
|