-
Notifications
You must be signed in to change notification settings - Fork 2
/
rebasedialog.h
56 lines (46 loc) · 1.22 KB
/
rebasedialog.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
53
54
55
56
#ifndef MAINDIALOG_H
#define MAINDIALOG_H
#include <QDialog>
#include <QModelIndex>
namespace Ui {
class MainDialog;
}
class ListEntry
{
public:
QString action;
QString sha1;
QString description;
QString longdesc;
QList<QString> files;
ListEntry(QString action, QString sha1, QString description, QString longdesc, QList<QString> files) :
action(action), sha1(sha1), description(description), longdesc(longdesc), files(files)
{}
};
class RebaseDialog : public QDialog
{
Q_OBJECT
public:
explicit RebaseDialog(QWidget *parent = 0);
void keyPressEvent(QKeyEvent *event);
bool readFile(const QString &filename);
void fillList();
void moveUpDown(bool up);
~RebaseDialog();
protected:
void closeEvent(QCloseEvent *);
private slots:
void on_pushButtonUp_clicked();
void on_pushButtonDown_clicked();
void on_pushButtonUndo_clicked();
void on_pushButtonStart_clicked();
void on_pushButtonCancel_clicked();
void slot_itemIserted(const QModelIndex &parent, int start, int end);
void slot_itemSelectionChanged();
private:
Ui::MainDialog *m_ui;
QList<ListEntry> m_list;
QString m_filename;
bool m_acceptclose;
};
#endif // MAINDIALOG_H