#ifndef DIALOG_MULTIROTATEIMAGEFILE_H #define DIALOG_MULTIROTATEIMAGEFILE_H #include #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: static void HGAPI ThreadFunc(HGThread thread, HGPointer param); signals: void updateProgress(int value); void updateImageFile(QString fileName); void finish(HGResult ret); private slots: void on_updateProgress(int value); void on_updateImageFile(QString fileName); void on_finish(HGResult ret); 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