File indexing completed on 2025-01-05 05:14:49
0001 /* 0002 SPDX-FileCopyrightText: 2021 Hamed Masafi <hamed.masfi@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-3.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "appdialog.h" 0010 #include "libkommitwidgets_export.h" 0011 #include "ui_filestreedialog.h" 0012 0013 namespace Git 0014 { 0015 class Manager; 0016 }; 0017 0018 class FileActions; 0019 class TreeModel; 0020 class LIBKOMMITWIDGETS_EXPORT FilesTreeDialog : public AppDialog, private Ui::FilesTreeDialog 0021 { 0022 Q_OBJECT 0023 0024 public: 0025 explicit FilesTreeDialog(Git::Manager *git, const QString &place, QWidget *parent = nullptr); 0026 0027 private: 0028 void slotListWidgetCustomContextMenuRequested(const QPoint &pos); 0029 void slotTreeViewClicked(const QModelIndex &index); 0030 TreeModel *const mTreeModel; 0031 const QString mPlace; 0032 FileActions *const mActions; 0033 };