Rename sources and put them to src dir
This commit is contained in:
parent
12cb3bf4ab
commit
d198c88625
@ -26,49 +26,52 @@ LIBS += -ltesseract -llept
|
|||||||
|
|
||||||
include(3rd-party/qtsingleapplication/qtsingleapplication.pri)
|
include(3rd-party/qtsingleapplication/qtsingleapplication.pri)
|
||||||
|
|
||||||
SOURCES += main.cpp\
|
INCLUDEPATH += src
|
||||||
Manager.cpp \
|
|
||||||
SettingsEditor.cpp \
|
SOURCES += \
|
||||||
SelectionDialog.cpp \
|
src/main.cpp \
|
||||||
GlobalActionHelper.cpp \
|
src/manager.cpp \
|
||||||
Recognizer.cpp \
|
src/settingseditor.cpp \
|
||||||
ResultDialog.cpp \
|
src/selectiondialog.cpp \
|
||||||
ProcessingItem.cpp \
|
src/globalactionhelper.cpp \
|
||||||
ImageProcessing.cpp \
|
src/recognizer.cpp \
|
||||||
LanguageHelper.cpp \
|
src/resultdialog.cpp \
|
||||||
WebTranslator.cpp \
|
src/processingitem.cpp \
|
||||||
WebTranslatorProxy.cpp \
|
src/imageprocessing.cpp \
|
||||||
TranslatorHelper.cpp \
|
src/languagehelper.cpp \
|
||||||
RecognizerHelper.cpp \
|
src/webtranslator.cpp \
|
||||||
Utils.cpp \
|
src/webtranslatorproxy.cpp \
|
||||||
Updater.cpp
|
src/translatorhelper.cpp \
|
||||||
|
src/recognizerhelper.cpp \
|
||||||
|
src/utils.cpp \
|
||||||
|
src/updater.cpp
|
||||||
|
|
||||||
HEADERS += \
|
HEADERS += \
|
||||||
Manager.h \
|
src/manager.h \
|
||||||
SettingsEditor.h \
|
src/settingseditor.h \
|
||||||
SelectionDialog.h \
|
src/selectiondialog.h \
|
||||||
GlobalActionHelper.h \
|
src/globalactionhelper.h \
|
||||||
Recognizer.h \
|
src/recognizer.h \
|
||||||
Settings.h \
|
src/settings.h \
|
||||||
ProcessingItem.h \
|
src/processingitem.h \
|
||||||
ResultDialog.h \
|
src/resultdialog.h \
|
||||||
ImageProcessing.h \
|
src/imageprocessing.h \
|
||||||
LanguageHelper.h \
|
src/languagehelper.h \
|
||||||
WebTranslator.h \
|
src/webtranslator.h \
|
||||||
WebTranslatorProxy.h \
|
src/webtranslatorproxy.h \
|
||||||
StAssert.h \
|
src/stassert.h \
|
||||||
TranslatorHelper.h \
|
src/translatorhelper.h \
|
||||||
RecognizerHelper.h \
|
src/recognizerhelper.h \
|
||||||
Utils.h \
|
src/utils.h \
|
||||||
Updater.h
|
src/updater.h
|
||||||
|
|
||||||
FORMS += \
|
FORMS += \
|
||||||
SettingsEditor.ui \
|
src/settingseditor.ui \
|
||||||
SelectionDialog.ui \
|
src/selectiondialog.ui \
|
||||||
ResultDialog.ui
|
src/resultdialog.ui
|
||||||
|
|
||||||
RESOURCES += \
|
RESOURCES += \
|
||||||
Recources.qrc
|
recources.qrc
|
||||||
|
|
||||||
TRANSLATIONS += \
|
TRANSLATIONS += \
|
||||||
translations/translation_en.ts \
|
translations/translation_en.ts \
|
@ -1,4 +1,4 @@
|
|||||||
#include "GlobalActionHelper.h"
|
#include "globalactionhelper.h"
|
||||||
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QApplication>
|
#include <QApplication>
|
@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
#include <leptonica/allheaders.h>
|
#include <leptonica/allheaders.h>
|
||||||
|
|
||||||
#include "ImageProcessing.h"
|
#include "imageprocessing.h"
|
||||||
#include "StAssert.h"
|
#include "stassert.h"
|
||||||
|
|
||||||
#if defined(Q_OS_LINUX)
|
#if defined(Q_OS_LINUX)
|
||||||
# include <fstream>
|
# include <fstream>
|
@ -1,9 +1,9 @@
|
|||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include <QSettings>
|
#include <QSettings>
|
||||||
|
|
||||||
#include "LanguageHelper.h"
|
#include "languagehelper.h"
|
||||||
#include "Settings.h"
|
#include "settings.h"
|
||||||
#include "StAssert.h"
|
#include "stassert.h"
|
||||||
|
|
||||||
LanguageHelper::LanguageHelper () {
|
LanguageHelper::LanguageHelper () {
|
||||||
init ();
|
init ();
|
@ -7,8 +7,8 @@
|
|||||||
|
|
||||||
#include <qtsingleapplication.h>
|
#include <qtsingleapplication.h>
|
||||||
|
|
||||||
#include <Manager.h>
|
#include <manager.h>
|
||||||
#include <Settings.h>
|
#include <settings.h>
|
||||||
|
|
||||||
int main (int argc, char *argv[]) {
|
int main (int argc, char *argv[]) {
|
||||||
QtSingleApplication a (argc, argv);
|
QtSingleApplication a (argc, argv);
|
@ -1,4 +1,4 @@
|
|||||||
#include "Manager.h"
|
#include "manager.h"
|
||||||
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QMenu>
|
#include <QMenu>
|
||||||
@ -13,17 +13,17 @@
|
|||||||
#include <QInputDialog>
|
#include <QInputDialog>
|
||||||
#include <QNetworkProxy>
|
#include <QNetworkProxy>
|
||||||
|
|
||||||
#include "Settings.h"
|
#include "settings.h"
|
||||||
#include "SettingsEditor.h"
|
#include "settingseditor.h"
|
||||||
#include "SelectionDialog.h"
|
#include "selectiondialog.h"
|
||||||
#include "GlobalActionHelper.h"
|
#include "globalactionhelper.h"
|
||||||
#include "Recognizer.h"
|
#include "recognizer.h"
|
||||||
#include "WebTranslator.h"
|
#include "webtranslator.h"
|
||||||
#include "ResultDialog.h"
|
#include "resultdialog.h"
|
||||||
#include "LanguageHelper.h"
|
#include "languagehelper.h"
|
||||||
#include "StAssert.h"
|
#include "stassert.h"
|
||||||
#include "Utils.h"
|
#include "utils.h"
|
||||||
#include "Updater.h"
|
#include "updater.h"
|
||||||
|
|
||||||
Manager::Manager (QObject *parent) :
|
Manager::Manager (QObject *parent) :
|
||||||
QObject (parent),
|
QObject (parent),
|
@ -5,7 +5,7 @@
|
|||||||
#include <QSystemTrayIcon>
|
#include <QSystemTrayIcon>
|
||||||
#include <QMap>
|
#include <QMap>
|
||||||
|
|
||||||
#include "ProcessingItem.h"
|
#include "processingitem.h"
|
||||||
|
|
||||||
class QAction;
|
class QAction;
|
||||||
class QMenu;
|
class QMenu;
|
@ -1,4 +1,4 @@
|
|||||||
#include "ProcessingItem.h"
|
#include "processingitem.h"
|
||||||
|
|
||||||
ProcessingItem::ProcessingItem ()
|
ProcessingItem::ProcessingItem ()
|
||||||
: swapLanguages_ (false) {
|
: swapLanguages_ (false) {
|
@ -1,14 +1,14 @@
|
|||||||
#include "Recognizer.h"
|
#include "recognizer.h"
|
||||||
|
|
||||||
#include <tesseract/baseapi.h>
|
#include <tesseract/baseapi.h>
|
||||||
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QSettings>
|
#include <QSettings>
|
||||||
|
|
||||||
#include "Settings.h"
|
#include "settings.h"
|
||||||
#include "ImageProcessing.h"
|
#include "imageprocessing.h"
|
||||||
#include "StAssert.h"
|
#include "stassert.h"
|
||||||
#include "RecognizerHelper.h"
|
#include "recognizerhelper.h"
|
||||||
|
|
||||||
Recognizer::Recognizer (QObject *parent) :
|
Recognizer::Recognizer (QObject *parent) :
|
||||||
QObject (parent),
|
QObject (parent),
|
@ -4,7 +4,7 @@
|
|||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include "QPixmap"
|
#include "QPixmap"
|
||||||
|
|
||||||
#include "ProcessingItem.h"
|
#include "processingitem.h"
|
||||||
|
|
||||||
namespace tesseract {
|
namespace tesseract {
|
||||||
class TessBaseAPI;
|
class TessBaseAPI;
|
@ -4,7 +4,7 @@
|
|||||||
#include <QSettings>
|
#include <QSettings>
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
|
|
||||||
#include "RecognizerHelper.h"
|
#include "recognizerhelper.h"
|
||||||
|
|
||||||
RecognizerHelper::RecognizerHelper ()
|
RecognizerHelper::RecognizerHelper ()
|
||||||
: fileName_ ("st_subs.csv") {
|
: fileName_ ("st_subs.csv") {
|
@ -1,7 +1,7 @@
|
|||||||
#include "ResultDialog.h"
|
#include "resultdialog.h"
|
||||||
#include "ui_ResultDialog.h"
|
#include "ui_resultdialog.h"
|
||||||
#include "StAssert.h"
|
#include "stassert.h"
|
||||||
#include "LanguageHelper.h"
|
#include "languagehelper.h"
|
||||||
|
|
||||||
#include <QDesktopWidget>
|
#include <QDesktopWidget>
|
||||||
#include <QMouseEvent>
|
#include <QMouseEvent>
|
@ -4,7 +4,7 @@
|
|||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
#include <QMenu>
|
#include <QMenu>
|
||||||
|
|
||||||
#include "ProcessingItem.h"
|
#include "processingitem.h"
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
class ResultDialog;
|
class ResultDialog;
|
@ -1,7 +1,7 @@
|
|||||||
#include "SelectionDialog.h"
|
#include "selectiondialog.h"
|
||||||
#include "ui_SelectionDialog.h"
|
#include "ui_selectiondialog.h"
|
||||||
#include "LanguageHelper.h"
|
#include "languagehelper.h"
|
||||||
#include "StAssert.h"
|
#include "stassert.h"
|
||||||
|
|
||||||
#include <QMouseEvent>
|
#include <QMouseEvent>
|
||||||
#include <QPainter>
|
#include <QPainter>
|
@ -5,7 +5,7 @@
|
|||||||
#include <QPixmap>
|
#include <QPixmap>
|
||||||
#include <QMenu>
|
#include <QMenu>
|
||||||
|
|
||||||
#include "ProcessingItem.h"
|
#include "processingitem.h"
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
class SelectionDialog;
|
class SelectionDialog;
|
@ -1,10 +1,10 @@
|
|||||||
#include "SettingsEditor.h"
|
#include "settingseditor.h"
|
||||||
#include "ui_SettingsEditor.h"
|
#include "ui_settingseditor.h"
|
||||||
#include "LanguageHelper.h"
|
#include "languagehelper.h"
|
||||||
#include "TranslatorHelper.h"
|
#include "translatorhelper.h"
|
||||||
#include "RecognizerHelper.h"
|
#include "recognizerhelper.h"
|
||||||
#include "StAssert.h"
|
#include "stassert.h"
|
||||||
#include "Utils.h"
|
#include "utils.h"
|
||||||
|
|
||||||
#include <QSettings>
|
#include <QSettings>
|
||||||
#include <QFileDialog>
|
#include <QFileDialog>
|
||||||
@ -12,7 +12,7 @@
|
|||||||
#include <QRegExpValidator>
|
#include <QRegExpValidator>
|
||||||
#include <QNetworkProxy>
|
#include <QNetworkProxy>
|
||||||
|
|
||||||
#include "Settings.h"
|
#include "settings.h"
|
||||||
|
|
||||||
SettingsEditor::SettingsEditor (const LanguageHelper &dictionary, QWidget *parent) :
|
SettingsEditor::SettingsEditor (const LanguageHelper &dictionary, QWidget *parent) :
|
||||||
QDialog (parent),
|
QDialog (parent),
|
@ -3,8 +3,8 @@
|
|||||||
#include <QFile>
|
#include <QFile>
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
|
|
||||||
#include "TranslatorHelper.h"
|
#include "translatorhelper.h"
|
||||||
#include "Settings.h"
|
#include "settings.h"
|
||||||
|
|
||||||
TranslatorHelper::TranslatorHelper ()
|
TranslatorHelper::TranslatorHelper ()
|
||||||
: translatorsDir_ ("translators"), currentIndex_ (0), triesLeft_ (0) {
|
: translatorsDir_ ("translators"), currentIndex_ (0), triesLeft_ (0) {
|
@ -7,8 +7,8 @@
|
|||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
|
|
||||||
#include "Updater.h"
|
#include "updater.h"
|
||||||
#include "StAssert.h"
|
#include "stassert.h"
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
#define FIELD(NAME) const QString _ ## NAME = #NAME
|
#define FIELD(NAME) const QString _ ## NAME = #NAME
|
@ -1,6 +1,6 @@
|
|||||||
#include <QNetworkProxy>
|
#include <QNetworkProxy>
|
||||||
|
|
||||||
#include "Utils.h"
|
#include "utils.h"
|
||||||
|
|
||||||
QString encode (const QString &source) {
|
QString encode (const QString &source) {
|
||||||
if (source.isEmpty ()) {
|
if (source.isEmpty ()) {
|
@ -4,12 +4,12 @@
|
|||||||
#include <QNetworkReply>
|
#include <QNetworkReply>
|
||||||
#include <QFile>
|
#include <QFile>
|
||||||
|
|
||||||
#include "WebTranslator.h"
|
#include "webtranslator.h"
|
||||||
#include "ProcessingItem.h"
|
#include "processingitem.h"
|
||||||
#include "Settings.h"
|
#include "settings.h"
|
||||||
#include "StAssert.h"
|
#include "stassert.h"
|
||||||
#include "WebTranslatorProxy.h"
|
#include "webtranslatorproxy.h"
|
||||||
#include "TranslatorHelper.h"
|
#include "translatorhelper.h"
|
||||||
|
|
||||||
WebTranslator::WebTranslator ()
|
WebTranslator::WebTranslator ()
|
||||||
: QObject (),
|
: QObject (),
|
@ -5,7 +5,7 @@
|
|||||||
#include <QMap>
|
#include <QMap>
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
|
|
||||||
#include "ProcessingItem.h"
|
#include "processingitem.h"
|
||||||
|
|
||||||
class QWebView;
|
class QWebView;
|
||||||
class QNetworkReply;
|
class QNetworkReply;
|
@ -1,5 +1,5 @@
|
|||||||
#include "WebTranslatorProxy.h"
|
#include "webtranslatorproxy.h"
|
||||||
#include "ProcessingItem.h"
|
#include "processingitem.h"
|
||||||
|
|
||||||
WebTranslatorProxy::WebTranslatorProxy (QObject *parent)
|
WebTranslatorProxy::WebTranslatorProxy (QObject *parent)
|
||||||
: QObject (parent) {
|
: QObject (parent) {
|
Loading…
Reference in New Issue
Block a user