2020-02-21 00:45:53 +07:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "stfwd.h"
|
|
|
|
|
|
|
|
#include <QStringList>
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
class CaptureOverlay;
|
|
|
|
|
|
|
|
class Capturer
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
explicit Capturer(Manager &manager);
|
|
|
|
|
|
|
|
void capture();
|
|
|
|
void repeatCapture();
|
|
|
|
void updateSettings(const Settings &settings);
|
|
|
|
|
|
|
|
void captured(const TaskPtr &task);
|
|
|
|
void canceled();
|
|
|
|
|
|
|
|
private:
|
|
|
|
void showOverlays(bool capturePixmap);
|
|
|
|
void hideOverlays();
|
|
|
|
|
|
|
|
Manager &manager_;
|
|
|
|
std::vector<CaptureOverlay *> overlays_;
|
|
|
|
|
|
|
|
LanguageId sourceLanguage_;
|
|
|
|
LanguageId targetLanguage_;
|
|
|
|
QStringList translators_;
|
2020-03-06 00:47:54 +07:00
|
|
|
bool doTranslation_{false};
|
2020-02-21 00:45:53 +07:00
|
|
|
};
|