File indexing completed on 2024-03-24 05:43:52
0001 /* 0002 SPDX-FileCopyrightText: 2011 Vishesh Yadav <vishesh3y@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef HGIMPORTDIALOG_H 0008 #define HGIMPORTDIALOG_H 0009 0010 #include "dialogbase.h" 0011 0012 class QListWidget; 0013 class QCheckBox; 0014 class QGroupBox; 0015 0016 /** 0017 * Implements dialog to import changesets from patch files generated by 0018 * Mercurial's export command 0019 */ 0020 class HgImportDialog : public DialogBase 0021 { 0022 Q_OBJECT 0023 0024 public: 0025 explicit HgImportDialog(QWidget *parent=nullptr); 0026 0027 public Q_SLOTS: 0028 void done(int r) override; 0029 0030 private Q_SLOTS: 0031 void saveGeometry(); 0032 void slotAddPatches(); 0033 void slotRemovePatches(); 0034 0035 private: 0036 void setupUI(); 0037 void getPatchInfo(const QString &fileName); 0038 0039 private: 0040 QListWidget *m_patchList; 0041 QPushButton *m_addPatches; 0042 QPushButton *m_removePatches; 0043 0044 //options 0045 QGroupBox *m_optionGroup; 0046 QCheckBox *m_optNoCommit; 0047 QCheckBox *m_optBypass; 0048 QCheckBox *m_optExact; 0049 QCheckBox *m_optForce; 0050 }; 0051 0052 #endif /* HGIMPORTDIALOG_H */ 0053