1 /*
2     This file is part of the Kasten Framework, made within the KDE community.
3 
4     SPDX-FileCopyrightText: 2010 Friedrich W. H. Kossebau <kossebau@kde.org>
5 
6     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7 */
8 
9 #include "versionviewtoolviewfactory.hpp"
10 
11 // lib
12 #include "versionviewtoolview.hpp"
13 #include "versionviewtool.hpp"
14 // KF
15 #include <KLocalizedString>
16 
17 namespace Kasten {
18 
19 VersionViewToolViewFactory::VersionViewToolViewFactory() = default;
20 
21 VersionViewToolViewFactory::~VersionViewToolViewFactory() = default;
22 
iconName() const23 QString VersionViewToolViewFactory::iconName() const { return QStringLiteral("view-history"); }
title() const24 QString VersionViewToolViewFactory::title()    const { return i18nc("@title:window", "Versions"); }
id() const25 QString VersionViewToolViewFactory::id()       const { return QStringLiteral("org.kde.kasten.VersionViewToolView"); }
defaultPosition() const26 SidePosition VersionViewToolViewFactory::defaultPosition() const { return RightSidePosition; }
27 
create(AbstractTool * tool) const28 AbstractToolView* VersionViewToolViewFactory::create(AbstractTool* tool) const
29 {
30     return new VersionViewToolView(qobject_cast<VersionViewTool*>(tool));
31 }
32 
33 }
34