-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathimportdialog.h
52 lines (40 loc) · 1007 Bytes
/
importdialog.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
SPDX-FileCopyrightText: 2011 Vishesh Yadav <[email protected]>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef HGIMPORTDIALOG_H
#define HGIMPORTDIALOG_H
#include "dialogbase.h"
class QListWidget;
class QCheckBox;
class QGroupBox;
/**
* Implements dialog to import changesets from patch files generated by
* Mercurial's export command
*/
class HgImportDialog : public DialogBase
{
Q_OBJECT
public:
explicit HgImportDialog(QWidget *parent = nullptr);
public Q_SLOTS:
void done(int r) override;
private Q_SLOTS:
void saveGeometry();
void slotAddPatches();
void slotRemovePatches();
private:
void setupUI();
void getPatchInfo(const QString &fileName);
private:
QListWidget *m_patchList;
QPushButton *m_addPatches;
QPushButton *m_removePatches;
// options
QGroupBox *m_optionGroup;
QCheckBox *m_optNoCommit;
QCheckBox *m_optBypass;
QCheckBox *m_optExact;
QCheckBox *m_optForce;
};
#endif /* HGIMPORTDIALOG_H */