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