File indexing completed on 2024-04-21 05:40:59
0001 /* 0002 SPDX-FileCopyrightText: 2011 Vishesh Yadav <vishesh3y@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef HGBRANCHDIALOG_H 0008 #define HGBRANCHDIALOG_H 0009 0010 #include <QString> 0011 #include "dialogbase.h" 0012 0013 class KComboBox; 0014 class QLabel; 0015 0016 /** 0017 * Implements dialog to list & create branches and update/switch working 0018 * directory to different branch. 0019 */ 0020 class HgBranchDialog : public DialogBase 0021 { 0022 Q_OBJECT 0023 0024 public: 0025 explicit HgBranchDialog(QWidget *parent = nullptr); 0026 0027 public Q_SLOTS: 0028 void slotUpdateDialog(const QString &text); 0029 void slotCreateBranch(); 0030 void slotSwitch(); 0031 0032 private: 0033 void updateInitialDialog(); 0034 0035 private: 0036 KComboBox *m_branchComboBox; 0037 QPushButton *m_createBranch; 0038 QPushButton *m_updateBranch; 0039 QLabel *m_currentBranchLabel; 0040 0041 QStringList m_branchList; 0042 }; 0043 0044 #endif // HGBRANCHDIALOG_H 0045