File indexing completed on 2025-01-05 05:23:46

0001 /*
0002     This file is part of the Okteta Kasten Framework, made within the KDE community.
0003 
0004     SPDX-FileCopyrightText: 2012 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 #ifndef KASTEN_SCRIPTLOGGERVIEW_HPP
0010 #define KASTEN_SCRIPTLOGGERVIEW_HPP
0011 
0012 #include <QWidget>
0013 #include "../datatypes/topleveldatainformation.hpp"
0014 
0015 class QTableView;
0016 class KComboBox;
0017 
0018 class ScriptLoggerView : public QWidget
0019 {
0020     Q_OBJECT
0021 
0022 public:
0023     explicit ScriptLoggerView(const TopLevelDataInformation::List& data, QWidget* parent = nullptr);
0024     ~ScriptLoggerView() override;
0025 
0026 private Q_SLOTS:
0027     void updateModel(int index);
0028 
0029 private:
0030     KComboBox* mSelector;
0031     QTableView* mView;
0032     // QSharedPointers so they remain valid until this widget is deleted
0033     // even if the backing data has changed
0034     const TopLevelDataInformation::List mList;
0035 };
0036 
0037 #endif /* KASTEN_SCRIPTLOGGERVIEW_HPP */