File indexing completed on 2024-05-12 04:19:35

0001 /*
0002 Gwenview: an image viewer
0003 Copyright 2022 Ilya Pominov <ipominov@astralinux.ru>
0004 
0005 This program is free software; you can redistribute it and/or
0006 modify it under the terms of the GNU General Public License
0007 as published by the Free Software Foundation; either version 2
0008 of the License, or (at your option) any later version.
0009 
0010 This program is distributed in the hope that it will be useful,
0011 but WITHOUT ANY WARRANTY; without even the implied warranty of
0012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0013 GNU General Public License for more details.
0014 
0015 You should have received a copy of the GNU General Public License
0016 along with this program; if not, write to the Free Software
0017 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
0018 
0019 */
0020 #ifndef BCGTOOL_H
0021 #define BCGTOOL_H
0022 
0023 #include <lib/gwenviewlib_export.h>
0024 
0025 // Qt
0026 
0027 // KF
0028 
0029 // Local
0030 #include <lib/documentview/abstractrasterimageviewtool.h>
0031 
0032 namespace Gwenview
0033 {
0034 class AbstractImageOperation;
0035 
0036 struct BCGToolPrivate;
0037 class GWENVIEWLIB_EXPORT BCGTool : public AbstractRasterImageViewTool
0038 {
0039     Q_OBJECT
0040 public:
0041     BCGTool(RasterImageView *parent);
0042     ~BCGTool() override;
0043 
0044     void paint(QPainter *painter) override;
0045     void keyPressEvent(QKeyEvent *event) override;
0046     QWidget *widget() const override;
0047 
0048 Q_SIGNALS:
0049     void done();
0050     void imageOperationRequested(AbstractImageOperation *);
0051 
0052 private Q_SLOTS:
0053     void slotBCGRequested();
0054 
0055 private:
0056     BCGToolPrivate *const d;
0057 };
0058 
0059 } // namespace
0060 
0061 #endif /* BCGTOOL_H */