File indexing completed on 2024-05-12 05:43:34
0001 /* 0002 Copyright (C) 2015 Volker Krause <vkrause@kde.org> 0003 0004 This program is free software; you can redistribute it and/or modify it 0005 under the terms of the GNU Library General Public License as published by 0006 the Free Software Foundation; either version 2 of the License, or (at your 0007 option) any later version. 0008 0009 This program is distributed in the hope that it will be useful, but WITHOUT 0010 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0011 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public 0012 License for more details. 0013 0014 You should have received a copy of the GNU General Public License 0015 along with this program. If not, see <https://www.gnu.org/licenses/>. 0016 */ 0017 0018 #ifndef DEPENDENCYVIEW_H 0019 #define DEPENDENCYVIEW_H 0020 0021 #include <QWidget> 0022 0023 #include <memory> 0024 0025 namespace Ui { 0026 class DependencyView; 0027 } 0028 0029 class ElfFileSet; 0030 class DependencyModel; 0031 class UsedSymbolModel; 0032 class UnusedDependenciesModel; 0033 class FileListModel; 0034 class FileUserModel; 0035 0036 class QItemSelection; 0037 0038 class DependencyView : public QWidget 0039 { 0040 Q_OBJECT 0041 public: 0042 explicit DependencyView(QWidget* parent = nullptr); 0043 ~DependencyView(); 0044 0045 void setFileSet(ElfFileSet *fileSet); 0046 0047 private slots: 0048 void search(const QString &text); 0049 void dependencySelected(const QItemSelection &selection); 0050 void inverseFileSelected(const QItemSelection &selection); 0051 void inverseUserSelected(const QItemSelection &selection); 0052 0053 private: 0054 std::unique_ptr<Ui::DependencyView> ui; 0055 DependencyModel *m_dependencyModel; 0056 UsedSymbolModel *m_symbolModel; 0057 UnusedDependenciesModel *m_unusedDependenciesModel; 0058 FileListModel *m_fileListModel; 0059 FileUserModel *m_fileUserModel; 0060 UsedSymbolModel *m_inverseSymbolModel; 0061 }; 0062 0063 #endif // DEPENDENCYVIEW_H