ScreenTranslator/SettingsEditor.h

45 lines
859 B
C
Raw Normal View History

2013-11-23 13:48:34 +07:00
#ifndef SETTINGSEDITOR_H
#define SETTINGSEDITOR_H
#include <QDialog>
#include <QButtonGroup>
#include <QMap>
2013-11-23 13:48:34 +07:00
namespace Ui {
class SettingsEditor;
}
2014-04-04 21:39:10 +07:00
class LanguageHelper;
class TranslatorHelper;
2013-11-23 13:48:34 +07:00
2015-09-23 01:41:08 +07:00
class SettingsEditor : public QDialog {
Q_OBJECT
2013-11-23 13:48:34 +07:00
public:
2015-09-23 01:41:08 +07:00
explicit SettingsEditor (const LanguageHelper &dictionary, QWidget *parent = 0);
~SettingsEditor ();
2013-11-23 13:48:34 +07:00
2013-11-24 19:43:37 +07:00
signals:
void settingsEdited ();
public slots:
void done (int result);
private slots:
void saveSettings () const;
void openTessdataDialog ();
2015-09-23 01:41:08 +07:00
void initOcrLangCombo (const QString &path);
2013-11-24 19:43:37 +07:00
private:
void loadSettings ();
void saveState () const;
void loadState ();
2013-11-23 13:48:34 +07:00
private:
Ui::SettingsEditor *ui;
TranslatorHelper *translatorHelper_;
2015-09-23 01:41:08 +07:00
const LanguageHelper &dictionary_;
QButtonGroup *buttonGroup_;
2013-11-23 13:48:34 +07:00
};
#endif // SETTINGSEDITOR_H