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