code_app/app/scanner/dialog_multirotateimagefile.h

50 lines
1.1 KiB
C
Raw Normal View History

2022-05-03 10:25:52 +00:00
#ifndef DIALOG_MULTIROTATEIMAGEFILE_H
#define DIALOG_MULTIROTATEIMAGEFILE_H
#include <QDialog>
#include "base/HGThread.h"
namespace Ui {
class Dialog_MultiRotateImageFile;
}
class Dialog_MultiRotateImageFile : public QDialog
{
Q_OBJECT
public:
explicit Dialog_MultiRotateImageFile(const QStringList &fileList, int rotateType, QWidget *parent = nullptr);
~Dialog_MultiRotateImageFile();
signals:
void refreshImageFile(const QString &fileName);
private:
2022-10-12 03:51:41 +00:00
static void HGAPI ThreadFunc(HGThread thread, HGPointer param);
2022-05-03 10:25:52 +00:00
signals:
void updateProgress(int value);
void updateImageFile(QString fileName);
2022-11-24 10:14:56 +00:00
void finish(int ret);
2022-05-03 10:25:52 +00:00
private slots:
void on_updateProgress(int value);
void on_updateImageFile(QString fileName);
2022-11-24 10:14:56 +00:00
void on_finish(int ret);
2022-05-03 10:25:52 +00:00
void on_pushButton_clicked();
protected:
virtual void closeEvent(QCloseEvent *e);
private:
Ui::Dialog_MultiRotateImageFile *ui;
QStringList m_fileList;
int m_rotateType;
bool m_stopThread;
HGThread m_thread;
};
#endif // DIALOG_MULTIROTATEIMAGEFILE_H