2020-03-25 02:05:45 +07:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "stfwd.h"
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
class QCheckBox;
|
|
|
|
class QComboBox;
|
|
|
|
|
|
|
|
class CaptureAreaEditor : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2020-03-28 18:26:05 +07:00
|
|
|
explicit CaptureAreaEditor(const CommonModels& models,
|
|
|
|
CaptureAreaSelector& selector);
|
2020-03-25 02:05:45 +07:00
|
|
|
~CaptureAreaEditor();
|
|
|
|
|
|
|
|
void set(const CaptureArea& area);
|
|
|
|
void apply(CaptureArea& area) const;
|
|
|
|
|
|
|
|
private:
|
2020-03-27 23:34:28 +07:00
|
|
|
void swapLanguages();
|
|
|
|
|
2020-03-25 02:05:45 +07:00
|
|
|
CaptureAreaSelector& selector_;
|
|
|
|
QCheckBox* doTranslation_;
|
|
|
|
QComboBox* sourceLanguage_;
|
|
|
|
QComboBox* targetLanguage_;
|
|
|
|
};
|