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 "entities/file.h"
0011 #include "libkommitwidgets_export.h"
0012 #include "ui_fileblamedialog.h"
0013 
0014 namespace Git
0015 {
0016 class Manager;
0017 }
0018 
0019 class LIBKOMMITWIDGETS_EXPORT FileBlameDialog : public AppDialog, private Ui::FileBlameDialog
0020 {
0021     Q_OBJECT
0022 
0023 public:
0024     explicit FileBlameDialog(Git::Manager *git, const Git::File &file, QWidget *parent = nullptr);
0025 
0026 private:
0027     void loadData();
0028 
0029     void slotPlainTextEditBlockSelected();
0030 
0031     QString mFileName;
0032     Git::File mFile;
0033 };