File indexing completed on 2024-06-02 04:29:55

0001 /* This file is part of the KDE project
0002  * SPDX-FileCopyrightText: 2009 Boudewijn Rempt <boud@valdyas.org>
0003  *
0004  * SPDX-License-Identifier: LGPL-2.0-or-later
0005  */
0006 
0007 #ifndef KIS_TOOL_ELLIPSE_BASE_H
0008 #define KIS_TOOL_ELLIPSE_BASE_H
0009 
0010 #include <kis_tool_rectangle_base.h>
0011 #include <kis_cursor.h>
0012 
0013 class KRITAUI_EXPORT KisToolEllipseBase : public KisToolRectangleBase
0014 {
0015 public:
0016     KisToolEllipseBase(KoCanvasBase * canvas, KisToolEllipseBase::ToolType type, const QCursor & cursor=KisCursor::load("tool_ellipse_cursor.png", 6, 6));
0017 
0018     void paintRectangle(QPainter &gc, const QRectF &imageRect) override;
0019 
0020 protected:
0021     bool showRoundCornersGUI() const override;
0022 };
0023 
0024 #endif // KIS_TOOL_ELLIPSE_BASE_H