File indexing completed on 2024-04-28 09:36:08

0001 /*
0002     SPDX-FileCopyrightText: 2011 Vishesh Yadav <vishesh3y@gmail.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef HGCREATEDIALOG_H
0008 #define HGCREATEDIALOG_H
0009 
0010 #include <QString>
0011 #include "dialogbase.h"
0012 
0013 class QLineEdit;
0014 class QLabel;
0015 
0016 /**
0017  * Dialog to initialize new mercurial repository
0018  */
0019 class HgCreateDialog : public DialogBase
0020 {
0021     Q_OBJECT
0022 
0023 public:
0024     explicit HgCreateDialog(const QString &directory, QWidget *parent = nullptr);
0025 
0026 private:
0027     void done(int r) override;
0028     void setWorkingDirectory(const QString &directory);
0029 
0030 private:
0031     QString m_workingDirectory;
0032     QLineEdit *m_repoNameEdit;
0033     QLabel *m_directory;
0034 
0035 };
0036 
0037 #endif // HGCREATEDIALOG_H
0038