Compare commits
2 Commits
37a77d7228
...
dd06dfa30a
Author | SHA1 | Date |
---|---|---|
|
dd06dfa30a | |
|
b06e2f8ef2 |
|
@ -222,7 +222,7 @@ include_directories(${Boost_INCLUDE_DIRS})
|
||||||
target_link_libraries(checks-parser PUBLIC ${Boost_LIBRARIES})
|
target_link_libraries(checks-parser PUBLIC ${Boost_LIBRARIES})
|
||||||
|
|
||||||
if (BUILD_OFD_LOCAL_QR_SCAN OR BUILD_OFD_BINARYEYE_SCAN)
|
if (BUILD_OFD_LOCAL_QR_SCAN OR BUILD_OFD_BINARYEYE_SCAN)
|
||||||
find_package(OpenCV REQUIRED COMPONENTS core imgproc imgcodecs opencv_objdetect videoio highgui)
|
find_package(OpenCV REQUIRED COMPONENTS core imgproc imgcodecs opencv_objdetect videoio)
|
||||||
target_link_libraries(checks-parser PRIVATE ${OpenCV_LIBS})
|
target_link_libraries(checks-parser PRIVATE ${OpenCV_LIBS})
|
||||||
target_include_directories(checks-parser PUBLIC ${OpenCV_INCLUDE_DIRS})
|
target_include_directories(checks-parser PUBLIC ${OpenCV_INCLUDE_DIRS})
|
||||||
include_directories( ${OpenCV_INCLUDE_DIRS} )
|
include_directories( ${OpenCV_INCLUDE_DIRS} )
|
||||||
|
|
|
@ -135,14 +135,9 @@ void MainWindow::httpNewMessageHandler(QString message) {
|
||||||
|
|
||||||
#ifdef BUILD_OFD_LOCAL_QR_SCAN
|
#ifdef BUILD_OFD_LOCAL_QR_SCAN
|
||||||
void MainWindow::on_choose_image_button_clicked() {
|
void MainWindow::on_choose_image_button_clicked() {
|
||||||
QString filename = QFileDialog::getOpenFileName();
|
QString filename = QFileDialog::getOpenFileName(this, QString(), QString(), tr("Images (*.jpg *.jpeg *.png)"));
|
||||||
|
|
||||||
if (filename == "") {
|
if (filename == "") {
|
||||||
QMessageBox infoDialog;
|
|
||||||
infoDialog.setText(tr("Please, select a picture where QR code that contains info about check is present"));
|
|
||||||
infoDialog.setIcon(QMessageBox::Critical);
|
|
||||||
infoDialog.setWindowTitle(tr("Picture was not selected"));
|
|
||||||
infoDialog.exec();
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -161,14 +156,9 @@ void MainWindow::onDataDecode(std::map<std::string, std::string> data) {
|
||||||
#ifdef BUILD_EMAIL_MODE
|
#ifdef BUILD_EMAIL_MODE
|
||||||
|
|
||||||
void MainWindow::on_parse_email_button_clicked() {
|
void MainWindow::on_parse_email_button_clicked() {
|
||||||
QString filename = QFileDialog::getOpenFileName();
|
QString filename = QFileDialog::getOpenFileName(this, QString(), QString(), tr("E-Mail files (*.eml)"));
|
||||||
|
|
||||||
if (filename == "") {
|
if (filename == "") {
|
||||||
QMessageBox infoDialog;
|
|
||||||
infoDialog.setText(tr("Please, select an e-mail which contains QR code"));
|
|
||||||
infoDialog.setIcon(QMessageBox::Critical);
|
|
||||||
infoDialog.setWindowTitle(tr("E-Mail was not selected"));
|
|
||||||
infoDialog.exec();
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -185,12 +175,6 @@ void MainWindow::on_parse_email_button_clicked() {
|
||||||
}
|
}
|
||||||
|
|
||||||
set_check_params(paramsMap);
|
set_check_params(paramsMap);
|
||||||
// QMessageBox infoDialog;
|
|
||||||
// infoDialog.setText(tr("This feature is under development. Wait it to appear in next updates."));
|
|
||||||
// infoDialog.setIcon(QMessageBox::Warning);
|
|
||||||
// infoDialog.setWindowTitle(tr("Under development"));
|
|
||||||
// infoDialog.exec();
|
|
||||||
// return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // ifdef BUILD_EMAIL_MODE
|
#endif // ifdef BUILD_EMAIL_MODE
|
||||||
|
|
|
@ -273,7 +273,12 @@
|
||||||
<translation>Could not start http server.</translation>
|
<translation>Could not start http server.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../mainwindow.cpp" line="149"/>
|
<location filename="../mainwindow.cpp" line="138"/>
|
||||||
|
<source>Images (*.jpg *.jpeg *.png)</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../mainwindow.cpp" line="144"/>
|
||||||
<source>Selected image: </source>
|
<source>Selected image: </source>
|
||||||
<translation>Selected image: </translation>
|
<translation>Selected image: </translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -286,62 +291,57 @@
|
||||||
<translation type="vanished">Under development</translation>
|
<translation type="vanished">Under development</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../mainwindow.cpp" line="168"/>
|
<location filename="../mainwindow.cpp" line="159"/>
|
||||||
<source>Please, select an e-mail which contains QR code</source>
|
<source>E-Mail files (*.eml)</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../mainwindow.cpp" line="170"/>
|
<location filename="../mainwindow.cpp" line="170"/>
|
||||||
<source>E-Mail was not selected</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="180"/>
|
|
||||||
<source>QR code in this E-Mail was not found. If you are sure that the e-mail you supplied has qr code, please, contact the developer and send him the .eml file.</source>
|
<source>QR code in this E-Mail was not found. If you are sure that the e-mail you supplied has qr code, please, contact the developer and send him the .eml file.</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../mainwindow.cpp" line="182"/>
|
<location filename="../mainwindow.cpp" line="172"/>
|
||||||
<source>QR code was not found in E-Mail</source>
|
<source>QR code was not found in E-Mail</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../mainwindow.cpp" line="202"/>
|
<location filename="../mainwindow.cpp" line="186"/>
|
||||||
<source>Please, add check(s) to parse</source>
|
<source>Please, add check(s) to parse</source>
|
||||||
<translation>Please, add check(s) to parse</translation>
|
<translation>Please, add check(s) to parse</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../mainwindow.cpp" line="204"/>
|
<location filename="../mainwindow.cpp" line="188"/>
|
||||||
<source>No checks to parse</source>
|
<source>No checks to parse</source>
|
||||||
<translation>No checks to parse</translation>
|
<translation>No checks to parse</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../mainwindow.cpp" line="271"/>
|
<location filename="../mainwindow.cpp" line="255"/>
|
||||||
<source>Captcha was not solved correctly!</source>
|
<source>Captcha was not solved correctly!</source>
|
||||||
<translation>Captcha was not solved correctly!</translation>
|
<translation>Captcha was not solved correctly!</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../mainwindow.cpp" line="273"/>
|
<location filename="../mainwindow.cpp" line="257"/>
|
||||||
<source>Captcha is incorrect</source>
|
<source>Captcha is incorrect</source>
|
||||||
<translation>Captcha is incorrect</translation>
|
<translation>Captcha is incorrect</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../mainwindow.cpp" line="277"/>
|
<location filename="../mainwindow.cpp" line="261"/>
|
||||||
<source>Internal server error. Please, try again later.</source>
|
<source>Internal server error. Please, try again later.</source>
|
||||||
<translation>Internal server error. Please, try again later.</translation>
|
<translation>Internal server error. Please, try again later.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../mainwindow.cpp" line="279"/>
|
<location filename="../mainwindow.cpp" line="263"/>
|
||||||
<source>Internal server error</source>
|
<source>Internal server error</source>
|
||||||
<translation>Internal server error</translation>
|
<translation>Internal server error</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../mainwindow.cpp" line="283"/>
|
<location filename="../mainwindow.cpp" line="267"/>
|
||||||
<source>Check not found. Please, ensure correctness of entered data.</source>
|
<source>Check not found. Please, ensure correctness of entered data.</source>
|
||||||
<translation>Check not found. Please, ensure correctness of entered data.</translation>
|
<translation>Check not found. Please, ensure correctness of entered data.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../mainwindow.cpp" line="285"/>
|
<location filename="../mainwindow.cpp" line="269"/>
|
||||||
<source>Check was not found</source>
|
<source>Check was not found</source>
|
||||||
<translation>Check was not found</translation>
|
<translation>Check was not found</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -354,14 +354,12 @@
|
||||||
<translation type="vanished">Error in parsing</translation>
|
<translation type="vanished">Error in parsing</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../mainwindow.cpp" line="142"/>
|
|
||||||
<source>Please, select a picture where QR code that contains info about check is present</source>
|
<source>Please, select a picture where QR code that contains info about check is present</source>
|
||||||
<translation>Please, select a picture where QR code that contains info about check is present</translation>
|
<translation type="vanished">Please, select a picture where QR code that contains info about check is present</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../mainwindow.cpp" line="144"/>
|
|
||||||
<source>Picture was not selected</source>
|
<source>Picture was not selected</source>
|
||||||
<translation>Picture was not selected</translation>
|
<translation type="vanished">Picture was not selected</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Please, select a picture to scan</source>
|
<source>Please, select a picture to scan</source>
|
||||||
|
@ -671,7 +669,7 @@
|
||||||
<context>
|
<context>
|
||||||
<name>QObject</name>
|
<name>QObject</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../main.cpp" line="59"/>
|
<location filename="../main.cpp" line="55"/>
|
||||||
<source>Using locale: </source>
|
<source>Using locale: </source>
|
||||||
<translation>Using locale: </translation>
|
<translation>Using locale: </translation>
|
||||||
</message>
|
</message>
|
||||||
|
|
|
@ -261,67 +261,67 @@
|
||||||
<translation>Не получилось запустить HTTP сервер.</translation>
|
<translation>Не получилось запустить HTTP сервер.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../mainwindow.cpp" line="149"/>
|
<location filename="../mainwindow.cpp" line="138"/>
|
||||||
|
<source>Images (*.jpg *.jpeg *.png)</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../mainwindow.cpp" line="144"/>
|
||||||
<source>Selected image: </source>
|
<source>Selected image: </source>
|
||||||
<translation>Выбранное изображение: </translation>
|
<translation>Выбранное изображение: </translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../mainwindow.cpp" line="168"/>
|
<location filename="../mainwindow.cpp" line="159"/>
|
||||||
<source>Please, select an e-mail which contains QR code</source>
|
<source>E-Mail files (*.eml)</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../mainwindow.cpp" line="170"/>
|
<location filename="../mainwindow.cpp" line="170"/>
|
||||||
<source>E-Mail was not selected</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="180"/>
|
|
||||||
<source>QR code in this E-Mail was not found. If you are sure that the e-mail you supplied has qr code, please, contact the developer and send him the .eml file.</source>
|
<source>QR code in this E-Mail was not found. If you are sure that the e-mail you supplied has qr code, please, contact the developer and send him the .eml file.</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../mainwindow.cpp" line="182"/>
|
<location filename="../mainwindow.cpp" line="172"/>
|
||||||
<source>QR code was not found in E-Mail</source>
|
<source>QR code was not found in E-Mail</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../mainwindow.cpp" line="202"/>
|
<location filename="../mainwindow.cpp" line="186"/>
|
||||||
<source>Please, add check(s) to parse</source>
|
<source>Please, add check(s) to parse</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../mainwindow.cpp" line="204"/>
|
<location filename="../mainwindow.cpp" line="188"/>
|
||||||
<source>No checks to parse</source>
|
<source>No checks to parse</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../mainwindow.cpp" line="271"/>
|
<location filename="../mainwindow.cpp" line="255"/>
|
||||||
<source>Captcha was not solved correctly!</source>
|
<source>Captcha was not solved correctly!</source>
|
||||||
<translation>Капча была решена неверно!</translation>
|
<translation>Капча была решена неверно!</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../mainwindow.cpp" line="273"/>
|
<location filename="../mainwindow.cpp" line="257"/>
|
||||||
<source>Captcha is incorrect</source>
|
<source>Captcha is incorrect</source>
|
||||||
<translation>Капча введена неверно</translation>
|
<translation>Капча введена неверно</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../mainwindow.cpp" line="277"/>
|
<location filename="../mainwindow.cpp" line="261"/>
|
||||||
<source>Internal server error. Please, try again later.</source>
|
<source>Internal server error. Please, try again later.</source>
|
||||||
<translation>Внутренняя ошибка сервера. Пожалуйста, попробуйте снова позже.</translation>
|
<translation>Внутренняя ошибка сервера. Пожалуйста, попробуйте снова позже.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../mainwindow.cpp" line="279"/>
|
<location filename="../mainwindow.cpp" line="263"/>
|
||||||
<source>Internal server error</source>
|
<source>Internal server error</source>
|
||||||
<translation>Внутренняя ошибка сервера</translation>
|
<translation>Внутренняя ошибка сервера</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../mainwindow.cpp" line="283"/>
|
<location filename="../mainwindow.cpp" line="267"/>
|
||||||
<source>Check not found. Please, ensure correctness of entered data.</source>
|
<source>Check not found. Please, ensure correctness of entered data.</source>
|
||||||
<translation>Чек не найден. Пожалуйста, убедитесь в правильности введённых данных.</translation>
|
<translation>Чек не найден. Пожалуйста, убедитесь в правильности введённых данных.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../mainwindow.cpp" line="285"/>
|
<location filename="../mainwindow.cpp" line="269"/>
|
||||||
<source>Check was not found</source>
|
<source>Check was not found</source>
|
||||||
<translation>Чек не найден</translation>
|
<translation>Чек не найден</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -334,14 +334,12 @@
|
||||||
<translation type="vanished">Ошибка в парсинге</translation>
|
<translation type="vanished">Ошибка в парсинге</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../mainwindow.cpp" line="142"/>
|
|
||||||
<source>Please, select a picture where QR code that contains info about check is present</source>
|
<source>Please, select a picture where QR code that contains info about check is present</source>
|
||||||
<translation>Пожалуйста, выберете изображение, содержащее QR код с информацией о чеке</translation>
|
<translation type="vanished">Пожалуйста, выберете изображение, содержащее QR код с информацией о чеке</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../mainwindow.cpp" line="144"/>
|
|
||||||
<source>Picture was not selected</source>
|
<source>Picture was not selected</source>
|
||||||
<translation>Изображение не было выбрано</translation>
|
<translation type="vanished">Изображение не было выбрано</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Please, select a picture to scan</source>
|
<source>Please, select a picture to scan</source>
|
||||||
|
@ -647,7 +645,7 @@
|
||||||
<context>
|
<context>
|
||||||
<name>QObject</name>
|
<name>QObject</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../main.cpp" line="59"/>
|
<location filename="../main.cpp" line="55"/>
|
||||||
<source>Using locale: </source>
|
<source>Using locale: </source>
|
||||||
<translation>Использую локаль: </translation>
|
<translation>Использую локаль: </translation>
|
||||||
</message>
|
</message>
|
||||||
|
|
Loading…
Reference in New Issue