2024-11-22 23:26:42 +03:00
|
|
|
#ifndef ADJUSTPICTUREDIALOG_H
|
|
|
|
#define ADJUSTPICTUREDIALOG_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
#include <QGraphicsScene>
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class AdjustPictureDialog;
|
|
|
|
}
|
|
|
|
|
|
|
|
class AdjustPictureDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit AdjustPictureDialog(QWidget *parent = nullptr, std::string imagePath = "");
|
|
|
|
~AdjustPictureDialog();
|
|
|
|
std::string decode();
|
|
|
|
|
|
|
|
signals:
|
|
|
|
void decodedData(std::string data);
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
|
|
|
|
// void on_buttonBox_accepted();
|
|
|
|
void accept() override;
|
|
|
|
|
2024-11-24 19:07:28 +03:00
|
|
|
void on_contrastSlider_sliderMoved(int position);
|
|
|
|
|
2024-11-22 23:26:42 +03:00
|
|
|
private:
|
|
|
|
Ui::AdjustPictureDialog *ui;
|
|
|
|
QGraphicsScene *scene;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // ADJUSTPICTUREDIALOG_H
|