ScreenTranslator/Settings.h

59 lines
1.8 KiB
C
Raw Normal View History

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";
const QString repeatCaptureHotkey = "repeatCaptureHotkey";
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";
const QString doTranslation = "doTranslation";
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";
2015-10-10 03:34:03 +07:00
const QString translationDebugMode = "translation_debug";
2015-10-10 03:18:22 +07:00
const QString translators = "translators";
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";
const QString repeatCaptureHotkey = "Ctrl+Alt+S";
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
const bool doTranslation = true;
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
2015-10-10 03:34:03 +07:00
const bool translationDebugMode = false;
2015-10-10 03:18:22 +07:00
const QString translators = "";
2013-11-24 19:43:37 +07:00
}
#endif // SETTINGS_H