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

0001 /*
0002     SPDX-FileCopyrightText: 2011 Vishesh Yadav <vishesh3y@gmail.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef HGTAGDIALOG_H
0008 #define HGTAGDIALOG_H
0009 
0010 #include <QStringList>
0011 #include "dialogbase.h"
0012 
0013 class KComboBox;
0014 
0015 
0016 /**
0017  * Dialog to create/delete/list tags and update working directory to revision
0018  * represented by a specific tag.
0019  */
0020 class HgTagDialog : public DialogBase
0021 {
0022     Q_OBJECT
0023 
0024 public:
0025     explicit HgTagDialog(QWidget *parent = nullptr);
0026 
0027 public Q_SLOTS:
0028     void slotUpdateDialog(const QString &text);
0029     void slotCreateTag();
0030     void slotSwitch();
0031     void slotRemoveTag();
0032 
0033 private:
0034     void updateInitialDialog();
0035 
0036 private:
0037     KComboBox *m_tagComboBox;
0038     QPushButton *m_createTag;
0039     QPushButton *m_updateTag;
0040     QPushButton *m_removeTag;
0041     QStringList m_tagList;
0042 };
0043 
0044 #endif // HGTAGDIALOG_H
0045