2013-11-24 19:43:37 +07:00
|
|
|
#ifndef SETTINGS_H
|
|
|
|
#define SETTINGS_H
|
|
|
|
|
|
|
|
#include <QString>
|
|
|
|
|
2015-09-23 01:41:08 +07:00
|
|
|
namespace settings_names {
|
2013-11-24 19:43:37 +07:00
|
|
|
//! UI
|
|
|
|
const QString guiGroup = "GUI";
|
|
|
|
const QString geometry = "geometry";
|
|
|
|
const QString captureHotkey = "captureHotkey";
|
2015-09-29 22:14:56 +07:00
|
|
|
const QString repeatCaptureHotkey = "repeatCaptureHotkey";
|
2013-11-26 23:59:47 +07:00
|
|
|
const QString repeatHotkey = "repeatHotkey";
|
|
|
|
const QString clipboardHotkey = "clipboardHotkey";
|
|
|
|
const QString resultShowType = "resultShowType";
|
2013-11-24 19:43:37 +07:00
|
|
|
|
|
|
|
//! Recognition
|
|
|
|
const QString recogntionGroup = "Recognition";
|
|
|
|
const QString tessDataPlace = "tessdata_dir";
|
|
|
|
const QString ocrLanguage = "language";
|
|
|
|
const QString imageScale = "image_scale";
|
|
|
|
|
|
|
|
//! Translation
|
|
|
|
const QString translationGroup = "Translation";
|
2015-09-29 19:30:04 +07:00
|
|
|
const QString doTranslation = "doTranslation";
|
2014-03-30 17:56:21 +07:00
|
|
|
const QString sourceLanguage = "source_language";
|
2013-11-24 19:43:37 +07:00
|
|
|
const QString translationLanguage = "translation_language";
|
2015-10-08 22:36:02 +07:00
|
|
|
const QString translationTimeout = "translation_timeout";
|
2013-11-24 19:43:37 +07:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2015-09-23 01:41:08 +07:00
|
|
|
namespace settings_values {
|
2013-11-24 19:43:37 +07:00
|
|
|
const QString appName = "ScreenTranslator";
|
|
|
|
const QString companyName = "Gres";
|
|
|
|
|
|
|
|
//! UI
|
|
|
|
const QString captureHotkey = "Ctrl+Alt+Z";
|
2015-09-29 22:14:56 +07:00
|
|
|
const QString repeatCaptureHotkey = "Ctrl+Alt+S";
|
2013-11-26 23:59:47 +07:00
|
|
|
const QString repeatHotkey = "Ctrl+Alt+X";
|
|
|
|
const QString clipboardHotkey = "Ctrl+Alt+C";
|
|
|
|
const QString resultShowType = "1";//dialog
|
2013-11-24 19:43:37 +07:00
|
|
|
|
|
|
|
//! Recognition
|
|
|
|
const QString tessDataPlace = "./";
|
|
|
|
const QString ocrLanguage = "eng";
|
|
|
|
const int imageScale = 5;
|
|
|
|
|
|
|
|
//! Translation
|
2015-09-29 19:30:04 +07:00
|
|
|
const bool doTranslation = true;
|
2014-03-30 17:56:21 +07:00
|
|
|
const QString sourceLanguage = "auto";
|
2013-11-24 19:43:37 +07:00
|
|
|
const QString translationLanguage = "ru";
|
2015-10-08 22:36:02 +07:00
|
|
|
const int translationTimeout = 15; // secs
|
2013-11-24 19:43:37 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif // SETTINGS_H
|