ScreenTranslator/src/capture/captureareaeditor.h

29 lines
531 B
C
Raw Normal View History

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:
void swapLanguages();
2020-03-25 02:05:45 +07:00
CaptureAreaSelector& selector_;
QCheckBox* doTranslation_;
QComboBox* sourceLanguage_;
QComboBox* targetLanguage_;
};