2018-04-09 06:43:48 +02:00
|
|
|
#ifndef NEWSUPPRESSIONDIALOG_H
|
|
|
|
#define NEWSUPPRESSIONDIALOG_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
#include "suppressions.h"
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class NewSuppressionDialog;
|
|
|
|
}
|
|
|
|
|
|
|
|
class NewSuppressionDialog : public QDialog {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit NewSuppressionDialog(QWidget *parent = 0);
|
2018-05-01 09:35:53 +02:00
|
|
|
NewSuppressionDialog(const NewSuppressionDialog &) = delete;
|
2018-04-09 06:43:48 +02:00
|
|
|
~NewSuppressionDialog();
|
2018-05-01 09:35:53 +02:00
|
|
|
NewSuppressionDialog &operator=(const NewSuppressionDialog &) = delete;
|
2018-04-09 06:43:48 +02:00
|
|
|
|
2018-08-09 06:50:35 +02:00
|
|
|
/**
|
|
|
|
* @brief Translate the user input in the GUI into a suppression
|
|
|
|
* @return Cppcheck suppression
|
|
|
|
*/
|
2018-04-09 06:43:48 +02:00
|
|
|
Suppressions::Suppression getSuppression() const;
|
|
|
|
|
2018-08-09 06:50:35 +02:00
|
|
|
/**
|
|
|
|
* @brief Update the GUI so it corresponds with the given
|
|
|
|
* Cppcheck suppression
|
|
|
|
* @param suppression Cppcheck suppression
|
|
|
|
*/
|
|
|
|
void setSuppression(const Suppressions::Suppression &suppression);
|
|
|
|
|
2018-04-09 06:43:48 +02:00
|
|
|
private:
|
|
|
|
Ui::NewSuppressionDialog *mUI;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // NEWSUPPRESSIONDIALOG_H
|