1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3
4#ifndef TRANSLATIONSETTINGSDIALOG_H
5#define TRANSLATIONSETTINGSDIALOG_H
6
7#include "ui_translationsettings.h"
8
9#include <QtCore/QLocale>
10#include <QtWidgets/QDialog>
11
12QT_BEGIN_NAMESPACE
13
14class DataModel;
15class PhraseBook;
16
17class TranslationSettingsDialog : public QDialog
18{
19 Q_OBJECT
20
21public:
22 TranslationSettingsDialog(QWidget *parent = 0);
23 void setDataModel(DataModel *model);
24 void setPhraseBook(PhraseBook *phraseBook);
25
26private:
27 void showEvent(QShowEvent *e) override;
28
29private slots:
30 void on_buttonBox_accepted();
31 void on_srcCbLanguageList_currentIndexChanged(int idx);
32 void on_tgtCbLanguageList_currentIndexChanged(int idx);
33
34private:
35 Ui::TranslationSettingsDialog m_ui;
36 DataModel *m_dataModel;
37 PhraseBook *m_phraseBook;
38
39};
40
41QT_END_NAMESPACE
42
43#endif // TRANSLATIONSETTINGSDIALOG_H
44

source code of qttools/src/linguist/linguist/translationsettingsdialog.h