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 "ui_ignorefiledialog.h"
0010 
0011 #include "appdialog.h"
0012 #include "libkommitwidgets_export.h"
0013 
0014 class LIBKOMMITWIDGETS_EXPORT IgnoreFileDialog : public AppDialog, private Ui::IgnoreFileDialog
0015 {
0016     Q_OBJECT
0017 
0018 public:
0019     explicit IgnoreFileDialog(Git::Manager *git, const QString &filePath, QWidget *parent = nullptr);
0020 
0021 private:
0022     void generateIgnorePattern();
0023     void slotAccept();
0024     Q_REQUIRED_RESULT QString getIgnoreFile() const;
0025     bool mIsIgnoredAlready{false};
0026     QString mPath;
0027     QString mName;
0028     QString mExt;
0029 };