File indexing completed on 2024-04-14 05:34:14

0001 /*
0002     SPDX-FileCopyrightText: 2011 Vishesh Yadav <vishesh3y@gmail.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef HGEXPORTDIALOG_H
0008 #define HGEXPORTDIALOG_H
0009 
0010 #include "dialogbase.h"
0011 
0012 class HgCommitInfoWidget;
0013 class QCheckBox;
0014 class QGroupBox;
0015 
0016 //TODO: Some helper for writing patterns
0017 //
0018 /**
0019  * Dialog to implement mercurial export feature. Dialogs presents list of
0020  * changesets from which the user will select entries and export a series of
0021  * patch files for each changeset.
0022  */
0023 class HgExportDialog : public DialogBase
0024 {
0025     Q_OBJECT
0026 
0027 public:
0028     explicit HgExportDialog(QWidget *parent=nullptr);
0029 
0030 public Q_SLOTS:
0031     void done(int r) override;
0032 
0033 private Q_SLOTS:
0034     void saveGeometry();
0035 
0036 private:
0037     void setupUI();
0038     void loadCommits();
0039 
0040 private:
0041     HgCommitInfoWidget *m_commitInfoWidget;
0042 
0043     //options
0044     QGroupBox *m_optionGroup;
0045     QCheckBox *m_optText;
0046     QCheckBox *m_optGit;
0047     QCheckBox *m_optNoDates;
0048 
0049 };
0050 
0051 #endif /* HGEXPORTDIALOG_H */ 
0052