1 | #pragma once |
---|---|
2 | |
3 | #include <QDialog> |
4 | |
5 | namespace Ui |
6 | { |
7 | class AddCodeReviewDialog; |
8 | } |
9 | |
10 | enum class ReviewMode |
11 | { |
12 | Approve, |
13 | RequestChanges, |
14 | Comment |
15 | }; |
16 | |
17 | class AddCodeReviewDialog : public QDialog |
18 | { |
19 | Q_OBJECT |
20 | |
21 | signals: |
22 | void commentAdded(const QString &commentText); |
23 | |
24 | public: |
25 | explicit AddCodeReviewDialog(ReviewMode mode, QWidget *parent = nullptr); |
26 | ~AddCodeReviewDialog(); |
27 | |
28 | void accept() override; |
29 | |
30 | QString getText() const; |
31 | |
32 | private: |
33 | Ui::AddCodeReviewDialog *ui; |
34 | ReviewMode mMode; |
35 | }; |
36 |