ScreenTranslator/src/capture/captureareaeditor.h
2020-04-20 20:46:28 +03:00

29 lines
531 B
C++

#pragma once
#include "stfwd.h"
#include <QWidget>
class QCheckBox;
class QComboBox;
class CaptureAreaEditor : public QWidget
{
Q_OBJECT
public:
explicit CaptureAreaEditor(const CommonModels& models,
CaptureAreaSelector& selector);
~CaptureAreaEditor();
void set(const CaptureArea& area);
void apply(CaptureArea& area) const;
private:
void swapLanguages();
CaptureAreaSelector& selector_;
QCheckBox* doTranslation_;
QComboBox* sourceLanguage_;
QComboBox* targetLanguage_;
};