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 | |
12 | QT_BEGIN_NAMESPACE |
13 | |
14 | class DataModel; |
15 | class PhraseBook; |
16 | |
17 | class TranslationSettingsDialog : public QDialog |
18 | { |
19 | Q_OBJECT |
20 | |
21 | public: |
22 | TranslationSettingsDialog(QWidget *parent = 0); |
23 | void setDataModel(DataModel *model); |
24 | void setPhraseBook(PhraseBook *phraseBook); |
25 | |
26 | private: |
27 | void showEvent(QShowEvent *e) override; |
28 | |
29 | private slots: |
30 | void on_buttonBox_accepted(); |
31 | void on_srcCbLanguageList_currentIndexChanged(int idx); |
32 | void on_tgtCbLanguageList_currentIndexChanged(int idx); |
33 | |
34 | private: |
35 | Ui::TranslationSettingsDialog m_ui; |
36 | DataModel *m_dataModel; |
37 | PhraseBook *m_phraseBook; |
38 | |
39 | }; |
40 | |
41 | QT_END_NAMESPACE |
42 | |
43 | #endif // TRANSLATIONSETTINGSDIALOG_H |
44 | |