1 | #ifndef GITBRANCHDIALOG_H |
2 | #define GITBRANCHDIALOG_H |
3 | |
4 | #include <QDialog> |
5 | |
6 | namespace Ui { |
7 | class GitBranchDialog; |
8 | } |
9 | |
10 | class GitManager; |
11 | class GitBranchDialog : public QDialog |
12 | { |
13 | Q_OBJECT |
14 | |
15 | public: |
16 | explicit GitBranchDialog(const QString& folder, QWidget *parent = nullptr); |
17 | ~GitBranchDialog(); |
18 | |
19 | private slots: |
20 | void on_btnCancel_clicked(); |
21 | |
22 | void on_btnOk_clicked(); |
23 | |
24 | void on_lstBranches_currentIndexChanged(int index); |
25 | |
26 | void on_chkCreate_stateChanged(int arg1); |
27 | |
28 | private: |
29 | Ui::GitBranchDialog *ui; |
30 | GitManager *mManager; |
31 | QString mFolder; |
32 | |
33 | // QWidget interface |
34 | protected: |
35 | void closeEvent(QCloseEvent *event) override; |
36 | }; |
37 | |
38 | #endif // GITBRANCHDIALOG_H |
39 | |