-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathcommitimpl.h
More file actions
54 lines (42 loc) · 1.13 KB
/
commitimpl.h
File metadata and controls
54 lines (42 loc) · 1.13 KB
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 COMMITIMPL_H
#define COMMITIMPL_H
#include "ui_commit.h"
#include "common.h"
class Git;
class CommitImpl : public QWidget, public Ui_CommitBase {
Q_OBJECT
public:
explicit CommitImpl(Git* g, bool amend);
signals:
void changesCommitted(bool);
public slots:
virtual void closeEvent(QCloseEvent*);
void pushButtonCommit_clicked();
void pushButtonAmend_clicked();
void pushButtonCancel_clicked();
void pushButtonUpdateCache_clicked();
void pushButtonSettings_clicked();
void textEditMsg_cursorPositionChanged();
private slots:
void contextMenuPopup(const QPoint&);
void checkAll();
void unCheckAll();
private:
void checkUncheck(bool checkAll);
bool getFiles(SList selFiles);
void warnNoFiles();
bool checkFiles(SList selFiles);
bool checkMsg(QString& msg);
bool checkPatchName(QString& patchName);
bool checkConfirm(SCRef msg, SCRef patchName, SCList selFiles, bool amend);
void computePosition(int &col_pos, int &line_pos);
Git* git;
QString origMsg;
int ofsX, ofsY;
static QString lastMsgBeforeError;
};
#endif