46 lines
812 B
C++
46 lines
812 B
C++
#ifndef DIALOG_WRONG_IMG_H
|
|
#define DIALOG_WRONG_IMG_H
|
|
|
|
#include <QDialog>
|
|
#include <QPushButton>
|
|
#include "HGImgView.h"
|
|
|
|
namespace Ui {
|
|
class Dialog_wrong_img;
|
|
}
|
|
|
|
class dialog_wrong_img : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
bool save_;
|
|
QString img_file_;
|
|
int index_;
|
|
int statu_;
|
|
HGImgView *view_;
|
|
|
|
|
|
public:
|
|
explicit dialog_wrong_img(QWidget *parent, QString img_file, int index, int statu);
|
|
~dialog_wrong_img();
|
|
|
|
QString image_file(void);
|
|
int index(void);
|
|
int increase_index(void);
|
|
|
|
signals:
|
|
void handle_wrong_img(dialog_wrong_img* dlg, bool save);
|
|
|
|
private slots:
|
|
void on_buttonBox_accepted();
|
|
|
|
void on_buttonBox_rejected();
|
|
|
|
private:
|
|
void closeEvent(QCloseEvent *event);
|
|
|
|
private:
|
|
Ui::Dialog_wrong_img *ui;
|
|
};
|
|
|
|
#endif // DIALOG_WRONG_IMG_H
|