task: massively simplified task system

Made various changes and fixes to the task system:

- Tasks are built around QtConcurrent rather than QThread. Reduces
  code complexity significantly.
- Task error reporting is now streamlined in both TaskManager and
  TaskDialog.
- Moved ProjectImport/Save/LoadManager to the app/task folder
This commit is contained in:
itsmattkc
2020-05-19 02:44:32 +10:00
parent c4b0a53174
commit b9cd83eff1
49 changed files with 864 additions and 1332 deletions
+6 -7
View File
@@ -21,23 +21,22 @@
#ifndef CACHETASK_H
#define CACHETASK_H
#include "node/output/viewer/viewer.h"
#include "task/task.h"
#include <QtConcurrent/QtConcurrent>
#include "task/render/render.h"
OLIVE_NAMESPACE_ENTER
class CacheTask : public Task
class CacheTask : public RenderTask
{
Q_OBJECT
public:
CacheTask(ViewerOutput* viewer, int divider, bool in_out_only);
protected:
virtual void Action() override;
public slots:
virtual bool Run() override;
private:
ViewerOutput* viewer_;
bool in_out_only_;
int divider_;