File indexing completed on 2025-01-05 05:14:48

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 "dialogs/appdialog.h"
0010 #include "libkommitwidgets_export.h"
0011 #include "ui_changedfilesdialog.h"
0012 
0013 class ChangedFilesModel;
0014 class ChangedFileActions;
0015 class LIBKOMMITWIDGETS_EXPORT ChangedFilesDialog : public AppDialog, private Ui::ChangedFilesDialog
0016 {
0017     Q_OBJECT
0018 
0019 public:
0020     explicit ChangedFilesDialog(Git::Manager *git, QWidget *parent = nullptr);
0021     ~ChangedFilesDialog() override;
0022 
0023 private:
0024     void slotItemDoubleClicked(const QModelIndex &index);
0025     void slotCustomContextMenuRequested(const QPoint &pos);
0026     void slotPushCommit();
0027     void slotButtonBoxClicked(QAbstractButton *button);
0028     void readConfig();
0029     void writeConfig();
0030 
0031     ChangedFileActions *const mActions;
0032     ChangedFilesModel *const mModel;
0033 };