2017-03-29 10:18:37 +00:00
|
|
|
#ifndef ANALTHREAD_H
|
|
|
|
#define ANALTHREAD_H
|
|
|
|
|
2018-10-17 07:55:53 +00:00
|
|
|
#include "common/AsyncTask.h"
|
2018-05-27 16:03:29 +00:00
|
|
|
#include "Cutter.h"
|
2018-10-17 07:55:53 +00:00
|
|
|
#include "common/InitialOptions.h"
|
2017-03-29 10:18:37 +00:00
|
|
|
|
2017-09-25 12:55:41 +00:00
|
|
|
class CutterCore;
|
2017-09-28 22:04:57 +00:00
|
|
|
class MainWindow;
|
2018-08-18 10:51:11 +00:00
|
|
|
class InitialOptionsDialog;
|
2018-05-27 16:03:29 +00:00
|
|
|
|
2018-05-26 18:09:20 +00:00
|
|
|
class AnalTask : public AsyncTask
|
2017-03-29 10:18:37 +00:00
|
|
|
{
|
2017-04-09 19:55:06 +00:00
|
|
|
Q_OBJECT
|
2018-05-26 18:09:20 +00:00
|
|
|
|
2017-03-29 10:18:37 +00:00
|
|
|
public:
|
2018-05-28 14:19:04 +00:00
|
|
|
explicit AnalTask();
|
2018-05-26 18:09:20 +00:00
|
|
|
~AnalTask();
|
2017-03-31 22:43:12 +00:00
|
|
|
|
2018-05-27 16:03:29 +00:00
|
|
|
QString getTitle() override { return tr("Initial Analysis"); }
|
|
|
|
|
|
|
|
void setOptions(const InitialOptions &options) { this->options = options; }
|
|
|
|
|
2018-05-26 18:09:20 +00:00
|
|
|
void interrupt() override;
|
2018-03-09 12:57:57 +00:00
|
|
|
|
2018-07-07 10:39:28 +00:00
|
|
|
bool getOpenFileFailed() { return openFailed; }
|
|
|
|
|
2017-03-31 22:43:12 +00:00
|
|
|
protected:
|
2018-05-26 18:49:57 +00:00
|
|
|
void runTask() override;
|
2017-03-29 10:18:37 +00:00
|
|
|
|
2017-09-28 22:04:57 +00:00
|
|
|
signals:
|
2018-05-08 20:44:53 +00:00
|
|
|
void openFileFailed();
|
2017-09-28 22:04:57 +00:00
|
|
|
|
2017-03-31 22:43:12 +00:00
|
|
|
private:
|
2018-05-27 16:03:29 +00:00
|
|
|
InitialOptions options;
|
2018-07-07 10:39:28 +00:00
|
|
|
|
|
|
|
bool openFailed = false;
|
2017-03-29 10:18:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // ANALTHREAD_H
|