File indexing completed on 2024-07-21 12:20:13

0001 /*
0002     SPDX-FileCopyrightText: 2022 Friedrich W. H. Kossebau <kossebau@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-or-later
0005 */
0006 
0007 #ifndef KODASKANNA_PLAINTEXTPREVIEW_TOOL_HPP
0008 #define KODASKANNA_PLAINTEXTPREVIEW_TOOL_HPP
0009 
0010 // widgets
0011 #include <abstractdisplaytool.hpp>
0012 // Qt
0013 #include <QImage>
0014 
0015 namespace Kodaskanna
0016 {
0017 namespace PlainTextDisplay
0018 {
0019 class Widget;
0020 
0021 class Tool : public AbstractDisplayTool
0022 {
0023     Q_OBJECT
0024 
0025 public:
0026     explicit Tool(QObject *parent = nullptr);
0027 
0028     ~Tool() override;
0029 
0030 public: // AbstractDisplayTool API
0031     void setScanResult(const ScanResult &scanResult) override;
0032     QWidget *widget() override;
0033 
0034 private:
0035     Widget *m_widget;
0036 };
0037 
0038 }
0039 }
0040 
0041 #endif