File indexing completed on 2024-05-26 05:56:49

0001 /*
0002     This file is part of the Okteta Kasten Framework, made within the KDE community.
0003 
0004     SPDX-FileCopyrightText: 2009 Alex Richardson <alex.richardson@gmx.de>
0005 
0006     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0007 */
0008 
0009 #include "structurestoolview.hpp"
0010 // tool
0011 #include "structureview.hpp"
0012 #include "structurestool.hpp"
0013 
0014 namespace Kasten {
0015 
0016 StructuresToolView::StructuresToolView(StructuresTool* tool) :
0017     mWidget(new StructureView(tool))
0018 {
0019 }
0020 
0021 StructuresToolView::~StructuresToolView()
0022 {
0023     delete mWidget;
0024 }
0025 
0026 QWidget* StructuresToolView::widget() const
0027 {
0028     return mWidget;
0029 }
0030 QString StructuresToolView::title() const
0031 {
0032     return mWidget->tool()->title();
0033 }
0034 AbstractTool* StructuresToolView::tool() const
0035 {
0036     return mWidget->tool();
0037 }
0038 
0039 }
0040 
0041 #include "moc_structurestoolview.cpp"