File indexing completed on 2024-05-05 04:41:03

0001 /*
0002     SPDX-FileCopyrightText: 2010 Aleix Pol Gonzalez <aleixpol@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #ifndef KDEVPLATFORM_PLUGIN_VCSCHANGESVIEW_H
0008 #define KDEVPLATFORM_PLUGIN_VCSCHANGESVIEW_H
0009 
0010 #include <QTreeView>
0011 #include <QList>
0012 #include <QUrl>
0013 
0014 class VcsProjectIntegrationPlugin;
0015 namespace KDevelop { class IProject; }
0016 
0017 class VcsChangesView : public QTreeView
0018 {
0019     Q_OBJECT
0020     public:
0021         explicit VcsChangesView(VcsProjectIntegrationPlugin* plugin, QWidget* parent = nullptr);
0022         
0023         void setModel(QAbstractItemModel* model) override;
0024         
0025     public Q_SLOTS:
0026         void popupContextMenu( const QPoint &pos );
0027         void selectCurrentDocument();
0028         void openSelected(const QModelIndex& idx);
0029         
0030     Q_SIGNALS:
0031         void reload(const QList<KDevelop::IProject*>& p);
0032         void reload(const QList<QUrl>& p);
0033 };
0034 
0035 #endif // KDEVPLATFORM_PLUGIN_VCSCHANGESVIEW_H