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 "terminaltoolviewfactory.hpp"
10 
11 // lib
12 #include "terminaltoolview.hpp"
13 #include "terminaltool.hpp"
14 // KF
15 #include <KLocalizedString>
16 
17 namespace Kasten {
18 
19 TerminalToolViewFactory::TerminalToolViewFactory() = default;
20 
21 TerminalToolViewFactory::~TerminalToolViewFactory() = default;
22 
iconName() const23 QString TerminalToolViewFactory::iconName() const { return QStringLiteral("utilities-terminal"); }
title() const24 QString TerminalToolViewFactory::title()    const { return i18nc("@title:window", "Terminal"); }
id() const25 QString TerminalToolViewFactory::id()       const { return QStringLiteral("org.kde.kasten.TerminalToolView"); }
defaultPosition() const26 SidePosition TerminalToolViewFactory::defaultPosition() const { return BottomSidePosition; }
27 
create(AbstractTool * tool) const28 AbstractToolView* TerminalToolViewFactory::create(AbstractTool* tool) const
29 {
30     return new TerminalToolView(qobject_cast<TerminalTool*>(tool));
31 }
32 
33 }
34