2020-02-21 00:45:53 +07:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "stfwd.h"
|
|
|
|
|
2020-03-22 18:32:51 +07:00
|
|
|
#include <QPixmap>
|
2020-02-21 00:45:53 +07:00
|
|
|
|
|
|
|
class Capturer
|
|
|
|
{
|
|
|
|
public:
|
2020-03-28 18:26:05 +07:00
|
|
|
Capturer(Manager &manager, const Settings &settings,
|
|
|
|
const CommonModels &models);
|
2020-03-22 15:36:31 +07:00
|
|
|
~Capturer();
|
2020-02-21 00:45:53 +07:00
|
|
|
|
|
|
|
void capture();
|
2020-03-31 00:03:00 +07:00
|
|
|
bool canCaptureLocked();
|
|
|
|
void captureLocked();
|
2020-02-21 00:45:53 +07:00
|
|
|
void repeatCapture();
|
2020-03-21 17:03:58 +07:00
|
|
|
void updateSettings();
|
2020-02-21 00:45:53 +07:00
|
|
|
|
2020-03-22 18:44:35 +07:00
|
|
|
void selected(const CaptureArea &area);
|
2020-02-21 00:45:53 +07:00
|
|
|
void canceled();
|
|
|
|
|
|
|
|
private:
|
2020-03-22 15:36:31 +07:00
|
|
|
void updatePixmap();
|
2020-02-21 00:45:53 +07:00
|
|
|
|
|
|
|
Manager &manager_;
|
2020-03-21 17:03:58 +07:00
|
|
|
const Settings &settings_;
|
2020-03-22 18:32:51 +07:00
|
|
|
QPixmap pixmap_;
|
2020-03-22 15:36:31 +07:00
|
|
|
std::unique_ptr<CaptureAreaSelector> selector_;
|
2020-02-21 00:45:53 +07:00
|
|
|
};
|