-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathravengitcheckoutdialog.h
More file actions
44 lines (34 loc) · 1.06 KB
/
ravengitcheckoutdialog.h
File metadata and controls
44 lines (34 loc) · 1.06 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
#ifndef RAVENGITCHECKOUTDIALOG_H
#define RAVENGITCHECKOUTDIALOG_H
#include "gitmanager.h"
#include <QDialog>
#include <QLabel>
#include <QLineEdit>
#include <QListWidget>
#include <QVBoxLayout>
class RavenGitCheckoutDialog : public QDialog {
Q_OBJECT
public:
RavenGitCheckoutDialog(GitManager* manager, QWidget* parent = nullptr);
signals:
void signalOnBranchChangeRequested();
public slots:
void slotOnBranchChangeRequested();
protected:
void closeEvent(QCloseEvent* e) override;
private:
GitManager* m_gitManager;
// Create new layout with dialog as parent to "own" the layout.
QVBoxLayout* mainLayout;
QLabel* m_checkoutStatusLabel;
QLineEdit* m_searchList;
QListWidget* m_list;
QPushButton* m_checkoutButton;
// Cache icons here
QIcon m_branchIconLocal = QIcon::fromTheme("branch-symbolic");
QIcon m_branchIconRemote = QIcon::fromTheme("vcs-branch-symbolic");
;
QIcon m_tagIcon = QIcon::fromTheme("tag-symbolic");
void resetCheckoutWarningLabel();
};
#endif // RAVENGITCHECKOUTDIALOG_H