File indexing completed on 2024-04-21 05:41:02

0001 /*
0002     SPDX-FileCopyrightText: 2011 Vishesh Yadav <vishesh3y@gmail.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef HGRENAMEDIALOG_H
0008 #define HGRENAMEDIALOG_H
0009 
0010 #include "dialogbase.h"
0011 #include <QString>
0012 
0013 class QLineEdit;
0014 class KFileItem;
0015 class QPushButton;
0016 
0017 /**
0018  * Dialog to rename files Mercurial way
0019  */
0020 class HgRenameDialog : public DialogBase
0021 {
0022     Q_OBJECT
0023 
0024 public:
0025     explicit HgRenameDialog(const KFileItem &source, QWidget *parent = nullptr);
0026     QString source() const;
0027     QString destination() const;
0028     void done(int r) override;
0029 
0030 private Q_SLOTS:
0031     void slotTextChanged(const QString &text);
0032 
0033 private:
0034     QString           m_source;
0035     QString           m_source_dir;
0036     QLineEdit        *m_destinationFile;
0037 };
0038 
0039 #endif // HGRENAMEDIALOG_H