File indexing completed on 2024-06-23 05:49:16

0001 /*
0002     This file is part of the Kasten Framework, made within the KDE community.
0003 
0004     SPDX-FileCopyrightText: 2008 Friedrich W. H. Kossebau <kossebau@kde.org>
0005 
0006     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0007 */
0008 
0009 #ifndef KASTEN_VERSIONVIEWTOOL_HPP
0010 #define KASTEN_VERSIONVIEWTOOL_HPP
0011 
0012 // Kasten core
0013 #include <Kasten/AbstractTool>
0014 
0015 namespace Kasten {
0016 
0017 /**
0018 */
0019 class VersionViewTool : public AbstractTool
0020 {
0021     Q_OBJECT
0022 
0023 public:
0024     VersionViewTool();
0025     ~VersionViewTool() override;
0026 
0027 public:
0028     AbstractModel* model() const;
0029 
0030 public: // AbstractTool API
0031 //     virtual AbstractModel* targetModel() const;
0032     QString title() const override;
0033 
0034     void setTargetModel(AbstractModel* model) override;
0035 
0036 Q_SIGNALS:
0037     void modelChanged(Kasten::AbstractModel* model);
0038 
0039 private: // sources
0040     AbstractModel* mModel = nullptr;
0041 };
0042 
0043 inline AbstractModel* VersionViewTool::model() const { return mModel; }
0044 
0045 }
0046 
0047 #endif