mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-23 20:14:05 +00:00
refactor: reorganize dictionary processing related code
This commit is contained in:
parent
ba97a9ca87
commit
2a918d5fdd
|
@ -167,6 +167,7 @@ target_include_directories(${GOLDENDICT} PRIVATE
|
||||||
${PROJECT_SOURCE_DIR}/src/
|
${PROJECT_SOURCE_DIR}/src/
|
||||||
${PROJECT_SOURCE_DIR}/src/common
|
${PROJECT_SOURCE_DIR}/src/common
|
||||||
${PROJECT_SOURCE_DIR}/src/dict
|
${PROJECT_SOURCE_DIR}/src/dict
|
||||||
|
${PROJECT_SOURCE_DIR}/src/dict/utils
|
||||||
${PROJECT_SOURCE_DIR}/src/ui
|
${PROJECT_SOURCE_DIR}/src/ui
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
#include "bgl_babylon.hh"
|
#include "bgl_babylon.hh"
|
||||||
#include "btreeidx.hh"
|
#include "btreeidx.hh"
|
||||||
#include "chunkedstorage.hh"
|
#include "chunkedstorage.hh"
|
||||||
#include "file.hh"
|
#include "dictfile.hh"
|
||||||
#include "folding.hh"
|
#include "folding.hh"
|
||||||
#include "ftshelpers.hh"
|
#include "ftshelpers.hh"
|
||||||
#include "gddebug.hh"
|
#include "gddebug.hh"
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
#define __BTREEIDX_HH_INCLUDED__
|
#define __BTREEIDX_HH_INCLUDED__
|
||||||
|
|
||||||
#include "dict/dictionary.hh"
|
#include "dict/dictionary.hh"
|
||||||
#include "file.hh"
|
#include "dictfile.hh"
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <map>
|
#include <map>
|
|
@ -5,7 +5,7 @@
|
||||||
#define __CHUNKEDSTORAGE_HH_INCLUDED__
|
#define __CHUNKEDSTORAGE_HH_INCLUDED__
|
||||||
|
|
||||||
#include "ex.hh"
|
#include "ex.hh"
|
||||||
#include "file.hh"
|
#include "dictfile.hh"
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
|
@ -2,7 +2,7 @@
|
||||||
* Part of GoldenDict. Licensed under GPLv3 or later, see the LICENSE file */
|
* Part of GoldenDict. Licensed under GPLv3 or later, see the LICENSE file */
|
||||||
|
|
||||||
#include "lsa.hh"
|
#include "lsa.hh"
|
||||||
#include "file.hh"
|
#include "dictfile.hh"
|
||||||
#include "iconv.hh"
|
#include "iconv.hh"
|
||||||
#include "folding.hh"
|
#include "folding.hh"
|
||||||
#include "utf8.hh"
|
#include "utf8.hh"
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
#include "btreeidx.hh"
|
#include "btreeidx.hh"
|
||||||
#include "folding.hh"
|
#include "folding.hh"
|
||||||
#include "utf8.hh"
|
#include "utf8.hh"
|
||||||
#include "file.hh"
|
#include "dictfile.hh"
|
||||||
#include "wstring.hh"
|
#include "wstring.hh"
|
||||||
#include "wstring_qt.hh"
|
#include "wstring_qt.hh"
|
||||||
#include "chunkedstorage.hh"
|
#include "chunkedstorage.hh"
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
* Part of GoldenDict. Licensed under GPLv3 or later, see the LICENSE file */
|
* Part of GoldenDict. Licensed under GPLv3 or later, see the LICENSE file */
|
||||||
|
|
||||||
#include "sounddir.hh"
|
#include "sounddir.hh"
|
||||||
#include "file.hh"
|
|
||||||
#include "folding.hh"
|
#include "folding.hh"
|
||||||
#include "utf8.hh"
|
#include "utf8.hh"
|
||||||
#include "btreeidx.hh"
|
#include "btreeidx.hh"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/* This file is (c) 2008-2012 Konstantin Isakov <ikm@goldendict.org>
|
/* This file is (c) 2008-2012 Konstantin Isakov <ikm@goldendict.org>
|
||||||
* Part of GoldenDict. Licensed under GPLv3 or later, see the LICENSE file */
|
* Part of GoldenDict. Licensed under GPLv3 or later, see the LICENSE file */
|
||||||
|
|
||||||
#include "file.hh"
|
#include "dictfile.hh"
|
||||||
|
|
||||||
#include "zipfile.hh"
|
#include "zipfile.hh"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* Made up from data.c and other supplementary files of dictd-1.0.11 for the
|
/* Made up from data.c and other supplementary files of dictd-1.11.0 for the
|
||||||
* GoldenDict program.
|
* GoldenDict program.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
#ifndef UFILE_HH_INCLUDED
|
#ifndef UFILE_HH_INCLUDED
|
||||||
#define UFILE_HH_INCLUDED
|
#define UFILE_HH_INCLUDED
|
||||||
|
|
||||||
|
// Don't use this thing.
|
||||||
|
// Use QFile instead.
|
||||||
|
|
||||||
#ifdef __WIN32
|
#ifdef __WIN32
|
||||||
|
|
||||||
#include "zlib.h"
|
#include "zlib.h"
|
|
@ -9,7 +9,7 @@
|
||||||
#include "folding.hh"
|
#include "folding.hh"
|
||||||
|
|
||||||
#include "audiolink.hh"
|
#include "audiolink.hh"
|
||||||
#include "file.hh"
|
#include "dictfile.hh"
|
||||||
#include "filetype.hh"
|
#include "filetype.hh"
|
||||||
#include "htmlescape.hh"
|
#include "htmlescape.hh"
|
||||||
#include "utils.hh"
|
#include "utils.hh"
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
#include "utf8.hh"
|
#include "utf8.hh"
|
||||||
#include "langcoder.hh"
|
#include "langcoder.hh"
|
||||||
#include "filetype.hh"
|
#include "filetype.hh"
|
||||||
#include "file.hh"
|
#include "dictfile.hh"
|
||||||
#include "utils.hh"
|
#include "utils.hh"
|
||||||
#include "tiff.hh"
|
#include "tiff.hh"
|
||||||
#include "ftshelpers.hh"
|
#include "ftshelpers.hh"
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* Part of GoldenDict. Licensed under GPLv3 or later, see the LICENSE file */
|
* Part of GoldenDict. Licensed under GPLv3 or later, see the LICENSE file */
|
||||||
|
|
||||||
#include "zipsounds.hh"
|
#include "zipsounds.hh"
|
||||||
#include "file.hh"
|
#include "dictfile.hh"
|
||||||
#include "folding.hh"
|
#include "folding.hh"
|
||||||
#include "utf8.hh"
|
#include "utf8.hh"
|
||||||
#include "btreeidx.hh"
|
#include "btreeidx.hh"
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
#include "fulltextsearch.hh"
|
#include "fulltextsearch.hh"
|
||||||
#include "ftshelpers.hh"
|
#include "ftshelpers.hh"
|
||||||
#include "wstring_qt.hh"
|
#include "wstring_qt.hh"
|
||||||
#include "file.hh"
|
#include "dictfile.hh"
|
||||||
#include "gddebug.hh"
|
#include "gddebug.hh"
|
||||||
#include "folding.hh"
|
#include "folding.hh"
|
||||||
#include "utils.hh"
|
#include "utils.hh"
|
||||||
|
|
Loading…
Reference in a new issue