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