#pragma once #include "stfwd.h" #include class QCheckBox; class QComboBox; class QStringListModel; class CaptureAreaEditor : public QWidget { Q_OBJECT public: explicit CaptureAreaEditor(CaptureAreaSelector& selector); ~CaptureAreaEditor(); void set(const CaptureArea& area); void apply(CaptureArea& area) const; void updateSettings(const Settings& settings); private: void swapLanguages(); CaptureAreaSelector& selector_; QCheckBox* doTranslation_; QComboBox* sourceLanguage_; QComboBox* targetLanguage_; std::unique_ptr sourceLanguageModel_; std::unique_ptr targetLanguageModel_; };