-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpatchview.h
More file actions
54 lines (41 loc) · 946 Bytes
/
patchview.h
File metadata and controls
54 lines (41 loc) · 946 Bytes
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
/*
Author: Marco Costalba (C) 2005-2007
Copyright: See COPYING file that comes with this distribution
*/
#ifndef PATCHVIEW_H
#define PATCHVIEW_H
#include "ui_patchview.h"
#include "domain.h"
class Git;
class PatchView :public Domain {
Q_OBJECT
public:
PatchView() {}
PatchView(MainImpl* mi, Git* g);
~PatchView();
void clear(bool complete = true);
Ui_TabPatch* tab() { return patchTab; }
signals:
void diffTo(const QString&);
void diffViewerDocked();
public slots:
void on_updateRevDesc();
void lineEditDiff_returnPressed();
void button_clicked(int);
void buttonFilterPatch_clicked();
protected slots:
virtual void on_contextMenu(const QString&, int);
protected:
virtual bool doUpdate(bool force);
private:
void updatePatch();
void saveRestoreSizes(bool startup = false);
Ui_TabPatch* patchTab;
QString normalizedSha;
enum ButtonId {
DIFF_TO_PARENT = 0,
DIFF_TO_HEAD = 1,
DIFF_TO_SHA = 2
};
};
#endif