File indexing completed on 2024-05-05 10:02:27
0001 /* 0002 SPDX-FileCopyrightText: 2011 Vishesh Yadav <vishesh3y@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef HGUPDATEDIALOG_H 0008 #define HGUPDATEDIALOG_H 0009 0010 #include <QString> 0011 #include "dialogbase.h" 0012 0013 class KComboBox; 0014 class QLabel; 0015 class QCheckBox; 0016 0017 /** 0018 * Dialog to update working directory to specific revision/changeset/branch/tag. 0019 * Also shows working directory summary. 0020 */ 0021 class HgUpdateDialog : public DialogBase 0022 { 0023 Q_OBJECT 0024 0025 public: 0026 explicit HgUpdateDialog(QWidget *parent = nullptr); 0027 0028 public Q_SLOTS: 0029 void slotUpdateDialog(int index); 0030 0031 private: 0032 void done(int r) override; 0033 0034 private: 0035 enum {ToBranch, ToTag, ToRevision} m_updateTo; 0036 KComboBox *m_selectType; 0037 KComboBox *m_selectFinal; 0038 QLabel *m_currentInfo; 0039 QStringList m_selectList; 0040 QCheckBox *m_discardChanges; 0041 }; 0042 0043 #endif // HGUPDATEDIALOG_H 0044