diff --git a/debian/control b/debian/control index 3a03d6d..8178960 100644 --- a/debian/control +++ b/debian/control @@ -44,6 +44,14 @@ Description: Libraries for chinese-segmentation This package contains a few runtime libraries needed by libsearch. +Package: libchinese-segmentation-dev +Section: libdevel +Architecture: any +Depends: ${misc:Depends}, + ${shlibs:Depends}, + libchinese-segmentation0 (= ${binary:Version}) +Description: Libraries for chinese-segmentation(development files). + Package: libukui-search0 Section: libs Architecture: any diff --git a/debian/libchinese-segmentation-dev.install b/debian/libchinese-segmentation-dev.install new file mode 100644 index 0000000..037e91e --- /dev/null +++ b/debian/libchinese-segmentation-dev.install @@ -0,0 +1,2 @@ +usr/include/chinese-seg/* +usr/lib/*.so diff --git a/libchinese-segmentation/libchinese-segmentation.pro b/libchinese-segmentation/libchinese-segmentation.pro index 8823ae7..746b555 100644 --- a/libchinese-segmentation/libchinese-segmentation.pro +++ b/libchinese-segmentation/libchinese-segmentation.pro @@ -39,6 +39,12 @@ unix { } !isEmpty(target.path): INSTALLS += target + header.path = /usr/include/chinese-seg/ + header.files += *.h + header_cppjieba.path = /usr/include/chinese-seg/cppjieba/ + header_cppjieba.files = cppjieba/* + INSTALLS += header header_cppjieba + #DISTFILES += \ # jiaba/jieba.pri diff --git a/libsearch/appsearch/app-match.cpp b/libsearch/appsearch/app-match.cpp index 900b893..5b0b55c 100644 --- a/libsearch/appsearch/app-match.cpp +++ b/libsearch/appsearch/app-match.cpp @@ -20,7 +20,7 @@ #include "app-match.h" #include #include "file-utils.h" - +using namespace Zeeker; static AppMatch *app_match_Class = nullptr; AppMatch *AppMatch::getAppMatch() { diff --git a/libsearch/appsearch/app-match.h b/libsearch/appsearch/app-match.h index 5d76f4a..253992e 100644 --- a/libsearch/appsearch/app-match.h +++ b/libsearch/appsearch/app-match.h @@ -29,7 +29,7 @@ #include #include #include - +namespace Zeeker { class NameString { public: explicit NameString(const QString &str_) : app_name(str_) {} @@ -89,5 +89,6 @@ protected: void run() override; }; +} #endif // APPMATCH_H diff --git a/libsearch/file-utils.cpp b/libsearch/file-utils.cpp index 393de6b..5d4d3f1 100644 --- a/libsearch/file-utils.cpp +++ b/libsearch/file-utils.cpp @@ -21,7 +21,7 @@ */ #include "file-utils.h" - +using namespace Zeeker; size_t FileUtils::_max_index_count = 0; size_t FileUtils::_current_index_count = 0; unsigned short FileUtils::_index_status = 0; diff --git a/libsearch/file-utils.h b/libsearch/file-utils.h index 51afce4..0e036bd 100644 --- a/libsearch/file-utils.h +++ b/libsearch/file-utils.h @@ -58,7 +58,7 @@ #define UKUI_SEARCH_PIPE_PATH (QDir::homePath()+"/.config/org.ukui/ukui-search/ukuisearch").toLocal8Bit().constData() - +namespace Zeeker { class LIBSEARCH_EXPORT FileUtils { public: static std::string makeDocUterm(QString); @@ -94,4 +94,6 @@ private: FileUtils(); }; +} + #endif // FILEUTILS_H diff --git a/libsearch/global-settings.cpp b/libsearch/global-settings.cpp index 8ead214..da596c2 100644 --- a/libsearch/global-settings.cpp +++ b/libsearch/global-settings.cpp @@ -23,6 +23,7 @@ #include #include "global-settings.h" +using namespace Zeeker; static GlobalSettings *global_instance_of_global_settings = nullptr; GlobalSettings *GlobalSettings::getInstance() { diff --git a/libsearch/global-settings.h b/libsearch/global-settings.h index a68059e..6f97f2a 100644 --- a/libsearch/global-settings.h +++ b/libsearch/global-settings.h @@ -56,6 +56,7 @@ //#define CLOUD_HISTORY "history" //#define CLOUD_APPLICATIONS "applications" +namespace Zeeker { class LIBSEARCH_EXPORT GlobalSettings : public QObject { Q_OBJECT public: @@ -105,8 +106,8 @@ private: QMutex m_mutex; - - }; +} + #endif // GLOBALSETTINGS_H diff --git a/libsearch/gobject-template.h b/libsearch/gobject-template.h index 8d69a45..769748c 100644 --- a/libsearch/gobject-template.h +++ b/libsearch/gobject-template.h @@ -54,4 +54,5 @@ private: std::shared_ptr> wrapGFile(GFile *file); std::shared_ptr> wrapGFileInfo(GFileInfo *info); + #endif // GT_H diff --git a/libsearch/index/construct-document.cpp b/libsearch/index/construct-document.cpp index b7f0b57..31556fd 100644 --- a/libsearch/index/construct-document.cpp +++ b/libsearch/index/construct-document.cpp @@ -19,14 +19,14 @@ */ #include "construct-document.h" #include "file-utils.h" -#include "chinese-segmentation.h" +#include "chinese-seg/chinese-segmentation.h" #include #include #include //extern QList *_doc_list_path; //extern QMutex _mutex_doc_list_path; - +using namespace Zeeker; ConstructDocumentForPath::ConstructDocumentForPath(QVector list) { this->setAutoDelete(true); m_list = std::move(list); @@ -34,8 +34,8 @@ ConstructDocumentForPath::ConstructDocumentForPath(QVector list) { void ConstructDocumentForPath::run() { // qDebug()<<"ConstructDocumentForPath"; - if(!_doc_list_path) - _doc_list_path = new QList; + if(!Zeeker::_doc_list_path) + Zeeker::_doc_list_path = new QList; // qDebug()<<_doc_list_path->size(); QString index_text = m_list.at(0).toLower(); QString sourcePath = m_list.at(1); @@ -87,9 +87,9 @@ void ConstructDocumentForPath::run() { } // QMetaObject::invokeMethod(m_indexGenerator,"appendDocListPath",Q_ARG(Document,doc)); - _mutex_doc_list_path.lock(); - _doc_list_path->append(doc); - _mutex_doc_list_path.unlock(); + Zeeker::_mutex_doc_list_path.lock(); + Zeeker::_doc_list_path->append(doc); + Zeeker::_mutex_doc_list_path.unlock(); // qDebug()<<"ConstructDocumentForPath finish"; return; } @@ -102,8 +102,8 @@ ConstructDocumentForContent::ConstructDocumentForContent(QString path) { void ConstructDocumentForContent::run() { // qDebug() << "ConstructDocumentForContent currentThreadId()" << QThread::currentThreadId(); // 构造文本索引的document - if(!_doc_list_content) - _doc_list_content = new QList; + if(!Zeeker::_doc_list_content) + Zeeker::_doc_list_content = new QList; QString content; FileReader::getTextContent(m_path, content); if(content.isEmpty()) @@ -123,9 +123,9 @@ void ConstructDocumentForContent::run() { } - _mutex_doc_list_content.lock(); - _doc_list_content->append(doc); - _mutex_doc_list_content.unlock(); + Zeeker::_mutex_doc_list_content.lock(); + Zeeker::_doc_list_content->append(doc); + Zeeker::_mutex_doc_list_content.unlock(); content.clear(); content.squeeze(); term.clear(); diff --git a/libsearch/index/construct-document.h b/libsearch/index/construct-document.h index 340b233..a3ccfce 100644 --- a/libsearch/index/construct-document.h +++ b/libsearch/index/construct-document.h @@ -25,8 +25,9 @@ //#include #include "document.h" #include "index-generator.h" -//extern QList *_doc_list_path; -//extern QMutex _mutex_doc_list_path; + +namespace Zeeker { + class IndexGenerator; class ConstructDocumentForPath : public QRunnable { public: @@ -47,5 +48,6 @@ protected: private: QString m_path; }; +} #endif // CONSTRUCTDOCUMENT_H diff --git a/libsearch/index/document.cpp b/libsearch/index/document.cpp index 05d6693..6200c0c 100644 --- a/libsearch/index/document.cpp +++ b/libsearch/index/document.cpp @@ -19,7 +19,7 @@ */ #include "document.h" #include - +using namespace Zeeker; void Document::setData(QString data) { if(data.isEmpty()) return; diff --git a/libsearch/index/document.h b/libsearch/index/document.h index 3232567..f6b8c20 100644 --- a/libsearch/index/document.h +++ b/libsearch/index/document.h @@ -24,7 +24,7 @@ #include #include #include - +namespace Zeeker { class Document { public: Document() = default; @@ -55,5 +55,6 @@ private: QString m_unique_term; }; +} #endif // DOCUMENT_H diff --git a/libsearch/index/file-reader.cpp b/libsearch/index/file-reader.cpp index 5cc8550..e409374 100644 --- a/libsearch/index/file-reader.cpp +++ b/libsearch/index/file-reader.cpp @@ -20,7 +20,7 @@ #include "file-reader.h" #include "file-utils.h" #include "binary-parser.h" - +using namespace Zeeker; FileReader::FileReader(QObject *parent) : QObject(parent) { } diff --git a/libsearch/index/file-reader.h b/libsearch/index/file-reader.h index 9754dba..5f4d937 100644 --- a/libsearch/index/file-reader.h +++ b/libsearch/index/file-reader.h @@ -22,7 +22,7 @@ #include #include - +namespace Zeeker { class FileReader : public QObject { Q_OBJECT public: @@ -31,5 +31,5 @@ public: static void getTextContent(QString path, QString &textContent); }; - +} #endif // FILEREADER_H diff --git a/libsearch/index/first-index.cpp b/libsearch/index/first-index.cpp index b4a645a..8f2a883 100644 --- a/libsearch/index/first-index.cpp +++ b/libsearch/index/first-index.cpp @@ -24,7 +24,7 @@ #define NEW_QUEUE(a) a = new QQueue(); qDebug("---------------------------%s %s %s new at %d..",__FILE__,__FUNCTION__,#a,__LINE__); //#define DELETE_QUEUE(a ) - +using namespace Zeeker; FirstIndex::FirstIndex() { } diff --git a/libsearch/index/first-index.h b/libsearch/index/first-index.h index 4ad3030..9424c3e 100644 --- a/libsearch/index/first-index.h +++ b/libsearch/index/first-index.h @@ -42,6 +42,7 @@ #include "inotify-index.h" #include "file-utils.h" +namespace Zeeker { class FirstIndex : public QThread, public Traverse_BFS { public: FirstIndex(); @@ -82,5 +83,6 @@ private: //xapian will auto commit per 10,000 changes, donnot change it!!! const size_t u_send_length = 8192; }; +} #endif // FIRSTINDEX_H diff --git a/libsearch/index/index-generator.cpp b/libsearch/index/index-generator.cpp index 81395e3..bd5eafb 100644 --- a/libsearch/index/index-generator.cpp +++ b/libsearch/index/index-generator.cpp @@ -28,7 +28,7 @@ #include "file-utils.h" #include "index-generator.h" #include "global-settings.h" -#include "chinese-segmentation.h" +#include "chinese-seg/chinese-segmentation.h" #include "construct-document.h" #include @@ -36,12 +36,15 @@ #define INDEX_PATH (QStandardPaths::writableLocation(QStandardPaths::HomeLocation)+"/.config/org.ukui/ukui-search/index_data").toStdString() #define CONTENT_INDEX_PATH (QStandardPaths::writableLocation(QStandardPaths::HomeLocation)+"/.config/org.ukui/ukui-search/content_index_data").toStdString() +using namespace Zeeker; + static IndexGenerator *global_instance = nullptr; QMutex IndexGenerator::m_mutex; -QList *_doc_list_path; -QMutex _mutex_doc_list_path; -QList *_doc_list_content; -QMutex _mutex_doc_list_content; +QList *Zeeker::_doc_list_path; +QMutex Zeeker::_mutex_doc_list_path; +QList *Zeeker::_doc_list_content; +QMutex Zeeker::_mutex_doc_list_content; + IndexGenerator *IndexGenerator::getInstance(bool rebuild, QObject *parent) { QMutexLocker locker(&m_mutex); if(!global_instance) { diff --git a/libsearch/index/index-generator.h b/libsearch/index/index-generator.h index facb002..80b2355 100644 --- a/libsearch/index/index-generator.h +++ b/libsearch/index/index-generator.h @@ -32,6 +32,7 @@ #include "document.h" #include "file-reader.h" +namespace Zeeker { extern QList *_doc_list_path; extern QMutex _mutex_doc_list_path; extern QList *_doc_list_content; @@ -79,5 +80,6 @@ private: std::string m_index_text_str; Xapian::TermGenerator m_indexer; }; +} #endif // INDEXGENERATOR_H diff --git a/libsearch/index/inotify-index.cpp b/libsearch/index/inotify-index.cpp index 9256a42..49ad5df 100644 --- a/libsearch/index/inotify-index.cpp +++ b/libsearch/index/inotify-index.cpp @@ -45,7 +45,7 @@ #define CREATE_FILE \ CREATE_FILE_NAME_INDEX \ CREATE_FILE_CONTENT_INDEX - +using namespace Zeeker; InotifyIndex::InotifyIndex(const QString& path) : Traverse_BFS(path) { qDebug() << "setInotifyMaxUserWatches start"; UkuiSearchQDBus usQDBus; diff --git a/libsearch/index/inotify-index.h b/libsearch/index/inotify-index.h index ff44395..b99cef2 100644 --- a/libsearch/index/inotify-index.h +++ b/libsearch/index/inotify-index.h @@ -32,6 +32,8 @@ #include "first-index.h" #define BUF_LEN 1024000 + +namespace Zeeker { class InotifyIndex; static InotifyIndex* global_instance_of_index = nullptr; class InotifyIndex : public QThread, public Traverse_BFS { @@ -76,5 +78,6 @@ private: }; }; +} #endif // INOTIFYINDEX_H diff --git a/libsearch/index/search-manager.cpp b/libsearch/index/search-manager.cpp index a6ba44b..9830746 100644 --- a/libsearch/index/search-manager.cpp +++ b/libsearch/index/search-manager.cpp @@ -19,6 +19,7 @@ */ #include "search-manager.h" +using namespace Zeeker; size_t SearchManager::uniqueSymbol1 = 0; size_t SearchManager::uniqueSymbol2 = 0; size_t SearchManager::uniqueSymbol3 = 0; diff --git a/libsearch/index/search-manager.h b/libsearch/index/search-manager.h index 04fee83..3fcdde4 100644 --- a/libsearch/index/search-manager.h +++ b/libsearch/index/search-manager.h @@ -37,16 +37,17 @@ #include #include -#include "file-utils.h" -#include "global-settings.h" -#include "chinese-segmentation.h" +#include "../file-utils.h" +#include "../global-settings.h" +#include "chinese-seg/chinese-segmentation.h" #define INDEX_PATH (QStandardPaths::writableLocation(QStandardPaths::HomeLocation)+"/.config/org.ukui/ukui-search/index_data").toStdString() #define CONTENT_INDEX_PATH (QStandardPaths::writableLocation(QStandardPaths::HomeLocation)+"/.config/org.ukui/ukui-search/content_index_data").toStdString() +namespace Zeeker { -class SearchManager : public QObject { +class LIBSEARCH_EXPORT SearchManager : public QObject { friend class FileSearch; friend class FileContentSearch; Q_OBJECT @@ -143,4 +144,6 @@ private: QQueue* m_searchResultDir = nullptr; size_t m_uniqueSymbol; }; + +} #endif // SEARCHMANAGER_H diff --git a/libsearch/index/searchmethodmanager.cpp b/libsearch/index/searchmethodmanager.cpp index 1024fe5..0726abd 100644 --- a/libsearch/index/searchmethodmanager.cpp +++ b/libsearch/index/searchmethodmanager.cpp @@ -1,5 +1,5 @@ #include "searchmethodmanager.h" - +using namespace Zeeker; void SearchMethodManager::searchMethod(FileUtils::SearchMethod sm) { qWarning() << "searchMethod start: " << static_cast(sm); if(FileUtils::SearchMethod::INDEXSEARCH == sm || FileUtils::SearchMethod::DIRECTSEARCH == sm) { diff --git a/libsearch/index/searchmethodmanager.h b/libsearch/index/searchmethodmanager.h index 76bb0ae..62886ba 100644 --- a/libsearch/index/searchmethodmanager.h +++ b/libsearch/index/searchmethodmanager.h @@ -4,6 +4,7 @@ #include "first-index.h" #include "inotify-index.h" +namespace Zeeker { class SearchMethodManager { public: SearchMethodManager() = default; @@ -12,5 +13,6 @@ private: FirstIndex m_fi; InotifyIndex* m_ii; }; +} #endif // SEARCHMETHODMANAGER_H diff --git a/libsearch/index/traverse_bfs.cpp b/libsearch/index/traverse_bfs.cpp index 8a5e04f..97a5f13 100644 --- a/libsearch/index/traverse_bfs.cpp +++ b/libsearch/index/traverse_bfs.cpp @@ -18,7 +18,7 @@ * */ #include "traverse_bfs.h" - +using namespace Zeeker; Traverse_BFS::Traverse_BFS(const QString& path) { Q_ASSERT('/' == path.at(0)); this->path = path; diff --git a/libsearch/index/traverse_bfs.h b/libsearch/index/traverse_bfs.h index e056046..a3388d0 100644 --- a/libsearch/index/traverse_bfs.h +++ b/libsearch/index/traverse_bfs.h @@ -24,7 +24,7 @@ #include #include #include - +namespace Zeeker { class Traverse_BFS { public: Traverse_BFS() = default; @@ -39,5 +39,6 @@ private: Traverse_BFS(const Traverse_BFS&) = delete; void operator=(const Traverse_BFS&) = delete; }; +} #endif // TRAVERSE_BFS_H diff --git a/libsearch/index/ukui-search-qdbus.cpp b/libsearch/index/ukui-search-qdbus.cpp index aee407f..05b3900 100644 --- a/libsearch/index/ukui-search-qdbus.cpp +++ b/libsearch/index/ukui-search-qdbus.cpp @@ -19,7 +19,7 @@ */ #include "ukui-search-qdbus.h" #include - +using namespace Zeeker; UkuiSearchQDBus::UkuiSearchQDBus() { this->tmpSystemQDBusInterface = new QDBusInterface("com.ukui.search.qt.systemdbus", "/", diff --git a/libsearch/index/ukui-search-qdbus.h b/libsearch/index/ukui-search-qdbus.h index 9c6d011..d316171 100644 --- a/libsearch/index/ukui-search-qdbus.h +++ b/libsearch/index/ukui-search-qdbus.h @@ -21,7 +21,7 @@ #define UKUISEARCHQDBUS_H #include - +namespace Zeeker { class UkuiSearchQDBus { public: UkuiSearchQDBus(); @@ -30,5 +30,6 @@ public: private: QDBusInterface* tmpSystemQDBusInterface; }; +} #endif // UKUISEARCHQDBUS_H diff --git a/libsearch/libsearch.cpp b/libsearch/libsearch.cpp index 0c5ec9b..54dde69 100644 --- a/libsearch/libsearch.cpp +++ b/libsearch/libsearch.cpp @@ -18,6 +18,6 @@ * */ #include "libsearch.h" - +using namespace Zeeker; // Encapsulate advanced interfaces here. diff --git a/libsearch/libsearch.h b/libsearch/libsearch.h index bd6ab87..0fc1e02 100644 --- a/libsearch/libsearch.h +++ b/libsearch/libsearch.h @@ -32,13 +32,15 @@ #include "index/inotify-index.h" #include "index/search-manager.h" -class LIBSEARCH_EXPORT GlobalSearch { -public: +namespace Zeeker { +//class LIBSEARCH_EXPORT GlobalSearch { +//public: - static QStringList fileSearch(QString keyword, int begin = 0, int num = -1); +// static QStringList fileSearch(QString keyword, int begin = 0, int num = -1); -private: - GlobalSearch(); -}; +//private: +// GlobalSearch(); +//}; +} #endif // LIBSEARCH_H diff --git a/libsearch/libsearch.pro b/libsearch/libsearch.pro index 7a11e61..6b9c2d8 100644 --- a/libsearch/libsearch.pro +++ b/libsearch/libsearch.pro @@ -25,6 +25,7 @@ include(index/index.pri) include(parser/parser.pri)) include(appsearch/appsearch.pri) include(settingsearch/settingsearch.pri)) +include(plugininterface/plugininterface.pri) LIBS += -L$$OUT_PWD/../libchinese-segmentation/ -lchinese-segmentation LIBS += -lxapian -lquazip5 -luchardet @@ -60,14 +61,20 @@ unix { INSTALLS += target header.path = /usr/include/ukui-search - header.files += libsearch.h - INSTALLS += header + header.files += *.h + header_index.path = /usr/include/ukui-search/index + header_index.files = index/*.h + header_appsearch.path = /usr/include/ukui-search/appsearch + header_appsearch.files = appsearch/*.h + header_settingsearch.path = /usr/include/ukui-search/settingsearch + header_settingsearch.files = settingsearch/*.h + INSTALLS += header header_index header_appsearch header_settingsearch } -INCLUDEPATH += $$PWD/../libchinese-segmentation -DEPENDPATH += $$PWD/../libchinese-segmentation +#INCLUDEPATH += $$PWD/../libchinese-segmentation +#DEPENDPATH += $$PWD/../libchinese-segmentation #DISTFILES += \ # ../translations/libsearch/libukui-search_zh_CN.ts diff --git a/libsearch/plugininterface/plugin-iface.h b/libsearch/plugininterface/plugin-iface.h new file mode 100644 index 0000000..e5b8922 --- /dev/null +++ b/libsearch/plugininterface/plugin-iface.h @@ -0,0 +1,27 @@ +#ifndef PLUGININTERFACE_H +#define PLUGININTERFACE_H + +namespace Zeeker { + +class PluginInterface +{ +public: + enum PluginType + { + MenuPlugin, + PreviewPagePlugin, + SearchPlugin, + Other + }; + + virtual ~PluginInterface() {} + virtual PluginType pluginType() = 0; + virtual const QString name() = 0; + virtual const QString description() = 0; + virtual const QIcon icon() = 0; + virtual void setEnable(bool enable) = 0; + virtual bool isEnable() = 0; +}; + +} +#endif // PLUGININTERFACE_H diff --git a/libsearch/plugininterface/plugininterface.pri b/libsearch/plugininterface/plugininterface.pri new file mode 100644 index 0000000..508cfbb --- /dev/null +++ b/libsearch/plugininterface/plugininterface.pri @@ -0,0 +1,7 @@ +INCLUDEPATH += $$PWD + +HEADERS += \ + $$PWD/plugin-iface.h \ + $$PWD/search-plugin-iface.h + +SOURCES += diff --git a/libsearch/plugininterface/search-plugin-iface.h b/libsearch/plugininterface/search-plugin-iface.h new file mode 100644 index 0000000..ff3c477 --- /dev/null +++ b/libsearch/plugininterface/search-plugin-iface.h @@ -0,0 +1,33 @@ +#ifndef SEARCHPLUGINIFACE_H +#define SEARCHPLUGINIFACE_H +#define SearchPluginIface_iid "org.ukui.ukui-search.plugin-iface.SearchPluginInterface" + +#include +#include +#include +#include "plugin-iface.h" + +namespace Zeeker { +class SearchPluginIface : public PluginInterface +{ +public: + /// + /// \brief The resultInfo struct + /// + struct resultInfo + { + QIcon icon; + QString name; + QString description; + QMap actionMap;//action name and action key + }; + virtual ~SearchInterface(){} + virtual QString getPluginName() = 0; + virtual void KeywordSearch(QString keyword,QQueue); + virtual void openAction(QString key); + +}; +} +Q_DECLARE_INTERFACE(SearchPluginIface, SearchPluginIface_iid) + +#endif // SEARCHPLUGINIFACE_H diff --git a/libsearch/settingsearch/setting-match.cpp b/libsearch/settingsearch/setting-match.cpp index 3f542b0..d9635d2 100644 --- a/libsearch/settingsearch/setting-match.cpp +++ b/libsearch/settingsearch/setting-match.cpp @@ -19,6 +19,7 @@ */ #include "setting-match.h" #include "file-utils.h" +using namespace Zeeker; SettingsMatch::SettingsMatch(QObject *parent) : QObject(parent) { xmlElement(); } diff --git a/libsearch/settingsearch/setting-match.h b/libsearch/settingsearch/setting-match.h index 1245f7c..5cbe62f 100644 --- a/libsearch/settingsearch/setting-match.h +++ b/libsearch/settingsearch/setting-match.h @@ -30,6 +30,7 @@ #include #include #include +namespace Zeeker { class SettingsMatch : public QObject { Q_OBJECT public: @@ -48,5 +49,6 @@ private: QString m_sourceText; }; +} #endif // SETTINGSEARCH_H diff --git a/src/content-widget.cpp b/src/content-widget.cpp index 81d4657..91e26ac 100644 --- a/src/content-widget.cpp +++ b/src/content-widget.cpp @@ -24,6 +24,7 @@ #include #include "config-file.h" +using namespace Zeeker; ContentWidget::ContentWidget(QWidget * parent): QStackedWidget(parent) { initUI(); initListView(); diff --git a/src/content-widget.h b/src/content-widget.h index 816fa31..5f5132b 100644 --- a/src/content-widget.h +++ b/src/content-widget.h @@ -30,6 +30,7 @@ #include "show-more-label.h" #include "title-label.h" +namespace Zeeker { class ContentWidget : public QStackedWidget { Q_OBJECT public: @@ -115,5 +116,6 @@ private Q_SLOTS: void onListViewRowChanged(SearchListView * listview, const int& type, const QString& path); void onListViewRowDoubleClicked(SearchListView * listview, const int& type, const QString& path); }; +} #endif // CONTENTWIDGET_H diff --git a/src/control/config-file.cpp b/src/control/config-file.cpp index 337e4d8..5f7cf1e 100644 --- a/src/control/config-file.cpp +++ b/src/control/config-file.cpp @@ -19,6 +19,7 @@ */ #include "config-file.h" +using namespace Zeeker; bool ConfigFile::writeCommonly(QString message) { QSettings *m_qSettings = new QSettings(HOMEPAGE_SETTINGS, QSettings::IniFormat); QStringList messagelist = message.split("/"); diff --git a/src/control/config-file.h b/src/control/config-file.h index 1048fce..41bb24d 100644 --- a/src/control/config-file.h +++ b/src/control/config-file.h @@ -26,6 +26,7 @@ #include #include #define HOMEPAGE_SETTINGS QDir::homePath()+"/.config/org.ukui/ukui-search/ukui-search-homepage.conf" +namespace Zeeker { class ConfigFile : public QObject { Q_OBJECT public: @@ -39,5 +40,6 @@ private: static QStringList readRecently(); }; +} #endif // CONFIGFILE_H diff --git a/src/control/folder-list-item.cpp b/src/control/folder-list-item.cpp index b834d8d..bc50e72 100644 --- a/src/control/folder-list-item.cpp +++ b/src/control/folder-list-item.cpp @@ -22,6 +22,7 @@ #include #include +using namespace Zeeker; FolderListItem::FolderListItem(QWidget *parent, const QString &path) : QWidget(parent) { m_path = path; initUi(); diff --git a/src/control/folder-list-item.h b/src/control/folder-list-item.h index 4757bc8..51d449c 100644 --- a/src/control/folder-list-item.h +++ b/src/control/folder-list-item.h @@ -26,6 +26,7 @@ #include #include +namespace Zeeker { class FolderListItem : public QWidget { Q_OBJECT public: @@ -52,5 +53,6 @@ private: Q_SIGNALS: void onDelBtnClicked(const QString&); }; +} #endif // FOLDERLISTITEM_H diff --git a/src/control/highlight-item-delegate.cpp b/src/control/highlight-item-delegate.cpp index a064443..9855208 100644 --- a/src/control/highlight-item-delegate.cpp +++ b/src/control/highlight-item-delegate.cpp @@ -25,8 +25,9 @@ #include #include #include -#include "global-settings.h" +#include "ukui-search/global-settings.h" +using namespace Zeeker; HighlightItemDelegate::HighlightItemDelegate(QObject *parent) : QStyledItemDelegate(parent) { } diff --git a/src/control/highlight-item-delegate.h b/src/control/highlight-item-delegate.h index 8465884..81a0527 100644 --- a/src/control/highlight-item-delegate.h +++ b/src/control/highlight-item-delegate.h @@ -23,6 +23,7 @@ #include +namespace Zeeker { class HighlightItemDelegate : public QStyledItemDelegate { Q_OBJECT public: @@ -35,5 +36,6 @@ private: QString escapeHtml(const QString&) const; void paintKeywordHighlight(QPainter *, const QStyleOptionViewItem &, const QString &, const int &, const int &) const; }; +} #endif // HIGHLIGHTITEMDELEGATE_H diff --git a/src/control/home-page-item.cpp b/src/control/home-page-item.cpp index 997fd0a..5177a6d 100644 --- a/src/control/home-page-item.cpp +++ b/src/control/home-page-item.cpp @@ -28,6 +28,7 @@ #include #include +using namespace Zeeker; HomePageItem::HomePageItem(QWidget *parent, const int& type, const QString& path) : QWidget(parent) { setupUi(type, path); m_transparency = 0.06; diff --git a/src/control/home-page-item.h b/src/control/home-page-item.h index 40a9b63..bb589c0 100644 --- a/src/control/home-page-item.h +++ b/src/control/home-page-item.h @@ -25,9 +25,10 @@ #include #include #include -#include "file-utils.h" +#include "ukui-search/file-utils.h" #include "search-list-view.h" +namespace Zeeker { class HomePageItem : public QWidget { Q_OBJECT public: @@ -57,5 +58,6 @@ private: QString m_path; int m_type = 0; }; +} #endif // HOMEPAGEITEM_H diff --git a/src/control/option-view.cpp b/src/control/option-view.cpp index c793a8b..fb9117f 100644 --- a/src/control/option-view.cpp +++ b/src/control/option-view.cpp @@ -22,6 +22,7 @@ #include #include +using namespace Zeeker; OptionView::OptionView(QWidget *parent) : QWidget(parent) { m_mainLyt = new QVBoxLayout(this); this->setLayout(m_mainLyt); diff --git a/src/control/option-view.h b/src/control/option-view.h index eadee8d..bc368e0 100644 --- a/src/control/option-view.h +++ b/src/control/option-view.h @@ -28,6 +28,7 @@ #include #include "search-list-view.h" +namespace Zeeker { class OptionView : public QWidget { Q_OBJECT public: @@ -71,5 +72,6 @@ private: Q_SIGNALS: void onOptionClicked(const int&); }; +} #endif // OPTIONVIEW_H diff --git a/src/control/search-detail-view.cpp b/src/control/search-detail-view.cpp index c15f0df..6f16695 100644 --- a/src/control/search-detail-view.cpp +++ b/src/control/search-detail-view.cpp @@ -37,6 +37,7 @@ //#include #include "config-file.h" +using namespace Zeeker; SearchDetailView::SearchDetailView(QWidget *parent) : QWidget(parent) { initUI(); } diff --git a/src/control/search-detail-view.h b/src/control/search-detail-view.h index 8374c6b..44a8965 100644 --- a/src/control/search-detail-view.h +++ b/src/control/search-detail-view.h @@ -28,8 +28,9 @@ //#include #include #include "option-view.h" -#include "global-settings.h" +#include "ukui-search/global-settings.h" +namespace Zeeker { class SearchDetailView : public QWidget { Q_OBJECT public: @@ -113,5 +114,6 @@ private Q_SLOTS: // explicit RequestInterceptor(QObject * parent = nullptr) : QWebEngineUrlRequestInterceptor(parent) {} // virtual void interceptRequest(QWebEngineUrlRequestInfo & info) Q_DECL_OVERRIDE; //}; +} #endif // SEARCHDETAILVIEW_H diff --git a/src/control/search-list-view.cpp b/src/control/search-list-view.cpp index 98f63ee..ea1949a 100644 --- a/src/control/search-list-view.cpp +++ b/src/control/search-list-view.cpp @@ -23,6 +23,7 @@ #include #include "custom-style.h" +using namespace Zeeker; SearchListView::SearchListView(QWidget * parent, const QStringList& list, const int& type) : QTreeView(parent) { // CustomStyle * style = new CustomStyle(GlobalSettings::getInstance()->getValue(STYLE_NAME_KEY).toString()); this->setStyle(CustomStyle::getStyle()); diff --git a/src/control/search-list-view.h b/src/control/search-list-view.h index dfbb07e..c6cff62 100644 --- a/src/control/search-list-view.h +++ b/src/control/search-list-view.h @@ -28,6 +28,7 @@ #include "model/search-item.h" #include "highlight-item-delegate.h" +namespace Zeeker { class SearchListView : public QTreeView { Q_OBJECT public: @@ -80,5 +81,6 @@ Q_SIGNALS: public Q_SLOTS: void clearSelection(); }; +} #endif // SEARCHLISTVIEW_H diff --git a/src/control/show-more-label.cpp b/src/control/show-more-label.cpp index 8cb209d..f9888f4 100644 --- a/src/control/show-more-label.cpp +++ b/src/control/show-more-label.cpp @@ -22,6 +22,7 @@ #include #include +using namespace Zeeker; ShowMoreLabel::ShowMoreLabel(QWidget *parent) : QWidget(parent) { initUi(); m_timer = new QTimer; diff --git a/src/control/show-more-label.h b/src/control/show-more-label.h index f412fae..5d13b69 100644 --- a/src/control/show-more-label.h +++ b/src/control/show-more-label.h @@ -26,6 +26,7 @@ #include #include +namespace Zeeker { class ShowMoreLabel : public QWidget { Q_OBJECT public: @@ -56,5 +57,6 @@ public Q_SLOTS: void stopLoading(); void refreshLoadState(); }; +} #endif // SHOWMORELABEL_H diff --git a/src/control/title-label.cpp b/src/control/title-label.cpp index 0fedb2f..3a1af24 100644 --- a/src/control/title-label.cpp +++ b/src/control/title-label.cpp @@ -22,6 +22,7 @@ #include #include +using namespace Zeeker; TitleLabel::TitleLabel(QWidget * parent) : QLabel(parent) { this->setContentsMargins(8, 0, 0, 0); this->setFixedHeight(24); diff --git a/src/control/title-label.h b/src/control/title-label.h index a9a7d40..791189d 100644 --- a/src/control/title-label.h +++ b/src/control/title-label.h @@ -23,6 +23,7 @@ #include +namespace Zeeker { class TitleLabel : public QLabel { public: TitleLabel(QWidget * parent = nullptr); @@ -31,5 +32,6 @@ public: protected: void paintEvent(QPaintEvent *); }; +} #endif // TITLELABEL_H diff --git a/src/create-index-ask-dialog.cpp b/src/create-index-ask-dialog.cpp index 037914b..9a657a6 100644 --- a/src/create-index-ask-dialog.cpp +++ b/src/create-index-ask-dialog.cpp @@ -22,6 +22,7 @@ #include "create-index-ask-dialog.h" #include +using namespace Zeeker; CreateIndexAskDialog::CreateIndexAskDialog(QWidget *parent) : QDialog(parent) { this->setWindowIcon(QIcon::fromTheme("kylin-search")); this->setWindowTitle(tr("ukui-search")); diff --git a/src/create-index-ask-dialog.h b/src/create-index-ask-dialog.h index c270a30..bf360fc 100644 --- a/src/create-index-ask-dialog.h +++ b/src/create-index-ask-dialog.h @@ -31,6 +31,7 @@ #include #include +namespace Zeeker { class CreateIndexAskDialog : public QDialog { Q_OBJECT public: @@ -67,5 +68,6 @@ Q_SIGNALS: void btnClicked(const bool&, const bool&); }; +} #endif // CREATEINDEXASKDIALOG_H diff --git a/src/custom-style.cpp b/src/custom-style.cpp index 910c549..d3be980 100644 --- a/src/custom-style.cpp +++ b/src/custom-style.cpp @@ -21,6 +21,7 @@ #include "custom-style.h" +using namespace Zeeker; static CustomStyle *customstyle_global_instance = nullptr; CustomStyle::CustomStyle(QStyle *style) { diff --git a/src/custom-style.h b/src/custom-style.h index fd19588..b3b1ab6 100644 --- a/src/custom-style.h +++ b/src/custom-style.h @@ -24,6 +24,7 @@ #include #include "global-settings.h" +namespace Zeeker { class CustomStyle : public QProxyStyle { Q_OBJECT public: @@ -33,5 +34,6 @@ private: explicit CustomStyle(QStyle *style = nullptr); ~CustomStyle() override {} }; +} #endif // CUSTOMSTYLE_H diff --git a/src/input-box.cpp b/src/input-box.cpp index 4f5a06b..9dc404e 100644 --- a/src/input-box.cpp +++ b/src/input-box.cpp @@ -20,6 +20,7 @@ */ #include "input-box.h" +using namespace Zeeker; /** * @brief ukui-search顶部搜索界面 */ diff --git a/src/input-box.h b/src/input-box.h index 48abc14..a8e108f 100644 --- a/src/input-box.h +++ b/src/input-box.h @@ -33,6 +33,7 @@ #include #include "global-settings.h" +namespace Zeeker { class SearchLineEdit; class SeachBarWidget: public QWidget { @@ -110,3 +111,4 @@ private: QCompleter *m_completer = nullptr; bool m_isRecorded = false; }; +} diff --git a/src/main.cpp b/src/main.cpp index 56adc64..aa5a701 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -37,7 +37,7 @@ #include "libsearch.h" #include "global-settings.h" - +using namespace Zeeker; //void handler(int){ // qDebug() << "Recieved SIGTERM!"; diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 55497cd..005afc4 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -41,6 +41,7 @@ #include "global-settings.h" #include "search-result.h" +using namespace Zeeker; extern void qt_blurImage(QImage &blurImage, qreal radius, bool quality, int transposed); /** * @brief MainWindow 主界面 diff --git a/src/mainwindow.h b/src/mainwindow.h index a6f0082..fed6f3a 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -58,6 +58,7 @@ #define SEARCH_METHOD_KEY "indexSearch" #define WEB_ENGINE_KEY "webEngine" +namespace Zeeker { class SearchResult; class MainWindow : public QMainWindow { friend class SearchResult; @@ -149,5 +150,6 @@ public Q_SLOTS: void clearSearchResult(); //清空搜索结果 void createIndexSlot(); }; +} #endif // MAINWINDOW_H diff --git a/src/model/search-item-model.cpp b/src/model/search-item-model.cpp index 9cf560e..4adadc8 100644 --- a/src/model/search-item-model.cpp +++ b/src/model/search-item-model.cpp @@ -21,6 +21,7 @@ #include "search-item-model.h" #include +using namespace Zeeker; SearchItemModel::SearchItemModel(QObject *parent) : QAbstractItemModel(parent) { } @@ -87,6 +88,8 @@ int SearchItemModel::columnCount(const QModelIndex& index) const { * @param role 显示内容的类型 * @return 显示内容数据 */ + +using namespace Zeeker; QVariant SearchItemModel::data(const QModelIndex &index, int role) const { if(!index.isValid()) return QVariant(); diff --git a/src/model/search-item-model.h b/src/model/search-item-model.h index eb7b2a6..60b53d2 100644 --- a/src/model/search-item-model.h +++ b/src/model/search-item-model.h @@ -25,6 +25,7 @@ #include #include "search-item.h" +namespace Zeeker { class SearchItem; class SearchItemModel : public QAbstractItemModel { @@ -62,5 +63,6 @@ public: private : SearchItem * m_item = nullptr; }; +} #endif // SEARCHITEMMODEL_H diff --git a/src/model/search-item.cpp b/src/model/search-item.cpp index 57de2a7..7dc6272 100644 --- a/src/model/search-item.cpp +++ b/src/model/search-item.cpp @@ -22,6 +22,8 @@ #include #include + +using namespace Zeeker; SearchItem::SearchItem(QObject *parent) : QObject(parent) { } diff --git a/src/model/search-item.h b/src/model/search-item.h index 651443e..465855c 100644 --- a/src/model/search-item.h +++ b/src/model/search-item.h @@ -26,6 +26,7 @@ #include "search-item-model.h" #include "file-utils.h" +namespace Zeeker { class SearchItem : public QObject { friend class SearchItemModel; friend class SearchListView; @@ -69,5 +70,6 @@ private: Q_SIGNALS: }; +} #endif // SEARCHITEM_H diff --git a/src/search-app-thread.cpp b/src/search-app-thread.cpp index 7ab4980..3eebe3f 100644 --- a/src/search-app-thread.cpp +++ b/src/search-app-thread.cpp @@ -1,5 +1,6 @@ #include "search-app-thread.h" +using namespace Zeeker; size_t uniqueSymbol = 0; QMutex m_mutex; diff --git a/src/search-app-thread.h b/src/search-app-thread.h index 213927c..cc0c430 100644 --- a/src/search-app-thread.h +++ b/src/search-app-thread.h @@ -3,8 +3,9 @@ #include #include #include -#include "libsearch.h" +#include "ukui-search/libsearch.h" +namespace Zeeker { class SearchAppThread : public QObject { Q_OBJECT @@ -34,5 +35,6 @@ private: Q_SIGNALS: void searchResultApp(const QVector&); }; +} #endif // SEARCHAPPTHREAD_H diff --git a/src/search-result.cpp b/src/search-result.cpp index 9e35ec5..fdf5d7e 100644 --- a/src/search-result.cpp +++ b/src/search-result.cpp @@ -20,6 +20,7 @@ */ #include "search-result.h" +using namespace Zeeker; SearchResult::SearchResult(QObject * parent) : QThread(parent) { m_mainwindow = static_cast(parent); // m_timer = new QTimer; diff --git a/src/search-result.h b/src/search-result.h index 531d239..bb25a17 100644 --- a/src/search-result.h +++ b/src/search-result.h @@ -25,6 +25,7 @@ #include #include "mainwindow.h" +namespace Zeeker { class SearchResult : public QThread { Q_OBJECT public: @@ -44,4 +45,5 @@ Q_SIGNALS: void searchResultContent(const QPair); }; +} #endif // SEARCHRESULT_H diff --git a/src/settings-widget.cpp b/src/settings-widget.cpp index 4c35f6d..b9b47f8 100644 --- a/src/settings-widget.cpp +++ b/src/settings-widget.cpp @@ -29,6 +29,7 @@ #include "global-settings.h" #include "file-utils.h" +using namespace Zeeker; extern void qt_blurImage(QImage &blurImage, qreal radius, bool quality, int transposed); SettingsWidget::SettingsWidget(QWidget *parent) : QWidget(parent) { this->setWindowIcon(QIcon::fromTheme("kylin-search")); diff --git a/src/settings-widget.h b/src/settings-widget.h index b91a8d8..56143ed 100644 --- a/src/settings-widget.h +++ b/src/settings-widget.h @@ -35,6 +35,7 @@ #include #include "xatom-helper.h" +namespace Zeeker { class SettingsWidget : public QWidget { Q_OBJECT public: @@ -117,5 +118,6 @@ private Q_SLOTS: void onBtnDelClicked(const QString&); void setWebEngine(const QString&); }; +} #endif // SETTINGSWIDGET_H diff --git a/src/src.pro b/src/src.pro index 95c5353..4baf012 100644 --- a/src/src.pro +++ b/src/src.pro @@ -58,9 +58,8 @@ data-menu.path = /usr/share/applications data-menu.files += ../data/ukui-search-menu.desktop data.path = /etc/xdg/autostart data.files += ../data/ukui-search.desktop -schemes.path = /usr/share/glib-2.0/schemas/ -schemes.files += ../data/org.ukui.search.data.gschema.xml ../data/org.ukui.log4qt.ukui-search.gschema.xml -INSTALLS += data data-menu schemes + +INSTALLS += data data-menu RESOURCES += \ resource.qrc @@ -73,7 +72,10 @@ TRANSLATIONS += \ qm_files.path = /usr/share/ukui-search/translations/ qm_files.files = $$OUT_PWD/.qm/*.qm -INSTALLS += qm_files +schemes.path = /usr/share/glib-2.0/schemas/ +schemes.files += ../data/org.ukui.search.data.gschema.xml ../data/org.ukui.log4qt.ukui-search.gschema.xml + +INSTALLS += qm_files schemes LIBS += -L$$OUT_PWD/../libchinese-segmentation -lchinese-segmentation \ -L$$OUT_PWD/../libsearch -lukui-search diff --git a/translations/ukui-search/bo.ts b/translations/ukui-search/bo.ts index 82ef300..121582c 100644 --- a/translations/ukui-search/bo.ts +++ b/translations/ukui-search/bo.ts @@ -2,106 +2,114 @@ - ContentWidget + QObject - + + ukui-search is already running! + + + + + Zeeker::ContentWidget + + Recently Opened - + Open Quickly - + Commonly Used - + Apps - + Settings - + Files - + Dirs - + File Contents - + Best Matches - + Web Pages - + Unknown - CreateIndexAskDialog + Zeeker::CreateIndexAskDialog ukui-search - + Search - + Creating index can help you getting results quickly, whether to create or not? - + Don't remind - + No - + Yes - FolderListItem + Zeeker::FolderListItem - + Delete the folder out of blacklist - MainWindow + Zeeker::MainWindow ukui-search @@ -113,285 +121,277 @@ - + Search - OptionView + Zeeker::OptionView - + Open - + Add Shortcut to Desktop - + Add Shortcut to Panel - + Open path - + Copy path - + Install - QObject + Zeeker::SearchBarHLayout - - ukui-search is already running! - - - - - SearchBarHLayout - - + Search - SearchDetailView + Zeeker::SearchDetailView - - Path - - - - - Last time modified - - - - - Application - - - - + Introduction: %1 - + + Application + + + + Document - + Preview is not avaliable + + + Path + + + + + Last time modified + + - SettingsWidget - - - - - Search - - - - - - ... - - - - - Following folders will not be searched. You can set it by adding and removing folders. - - - - - Add ignored folders - - - - - Please select search engine you preferred. - - - - - baidu - - - - - sougou - - - - - 360 - - - - - Cancel - - - - - Creating ... - - + Zeeker::SettingsWidget ukui-search-settings - + + + + Search + + + + <h2>Settings</h2> - + <h3>Index State</h3> - + + + ... + + + + <h3>File Index Settings</h3> - + + Following folders will not be searched. You can set it by adding and removing folders. + + + + + Add ignored folders + + + + <h3>Search Engine Settings</h3> - + + Please select search engine you preferred. + + + + + baidu + + + + + sougou + + + + + 360 + + + + Whether to delete this directory? - + Yes - + No - + + Creating ... + + + + Done - + Index Entry: %1 - + Directories - + select blocked folder - + Select - + Position: - + FileName: - + FileType: - + + Cancel + + + + Choosen path is Empty! - + Choosen path is not in "home"! - + Its' parent folder has been blocked! - + Set blocked folder failed! - + OK - ShowMoreLabel + Zeeker::ShowMoreLabel - - - + + + Show More... - + Retract - + Loading - + Loading. - + Loading.. - + Loading... diff --git a/translations/ukui-search/tr.ts b/translations/ukui-search/tr.ts index 830579f..2b68a36 100644 --- a/translations/ukui-search/tr.ts +++ b/translations/ukui-search/tr.ts @@ -4,157 +4,102 @@ ContentWidget - Recently Opened - Yeni Açılan + Yeni Açılan - Open Quickly - Hızlı Aç + Hızlı Aç - Commonly Used - Genel olarak kullanılan + Genel olarak kullanılan - Apps - Uygulamalar + Uygulamalar - Settings - Ayarlar + Ayarlar - Files - Dosyalar + Dosyalar - Dirs - Dizinler + Dizinler - File Contents - Dosya İçeriği + Dosya İçeriği - Best Matches - En İyi Eşleşen + En İyi Eşleşen - - Web Pages - - - - Unknown - Bilinmeyen + Bilinmeyen CreateIndexAskDialog - - ukui-search - - - - Search - Ara - - - - Creating index can help you getting results quickly, whether to create or not? - - - - - Don't remind - - - - - No - - - - - Yes - + Ara FolderListItem - Delete the folder out of blacklist - Klasörü kara listeden silin + Klasörü kara listeden silin MainWindow - ukui-search - ukui-ara + ukui-ara - Global Search - Genel Arama + Genel Arama - Search - Ara + Ara OptionView - Open - + - Add Shortcut to Desktop - Masaüstüne Kısayol Ekle + Masaüstüne Kısayol Ekle - Add Shortcut to Panel - Panele Kısayol Ekle + Panele Kısayol Ekle - Open path - Yolu aç + Yolu aç - Copy path - Yolu kopyala - - - - Install - + Yolu kopyala QObject - + ukui-search is already running! ukui-bul zaten çalışıyor! @@ -162,242 +107,528 @@ SearchBarHLayout - Search - Ara + Ara SearchDetailView - Path - Yol + Yol - Last time modified - Son değiştirilme zamanı + Son değiştirilme zamanı - Application - Uygulama + Uygulama - - Introduction: %1 - - - - Document - Belge - - - - Preview is not avaliable - + Belge SettingsWidget - - - Search - Ara + Ara - - ... - ... + ... - Following folders will not be searched. You can set it by adding and removing folders. - Aşağıdaki klasörler aranmayacaktır. Klasör ekleyip kaldırarak ayarlayabilirsiniz. + Aşağıdaki klasörler aranmayacaktır. Klasör ekleyip kaldırarak ayarlayabilirsiniz. - Add ignored folders - Göz ardı edilen klasörleri ekleyin + Göz ardı edilen klasörleri ekleyin - Please select search engine you preferred. - Lütfen tercih ettiğiniz arama motorunu seçin. + Lütfen tercih ettiğiniz arama motorunu seçin. - - baidu - - - - - sougou - - - - - 360 - - - - Cancel - İptal + İptal - Creating ... - Oluşturuluyor... + Oluşturuluyor... ukui-search ukui-bul - - ukui-search-settings - - - - <h2>Settings</h2> - <h2>Ayarlar</h2> + <h2>Ayarlar</h2> - <h3>Index State</h3> - <h3>Dizin Durumu</h3> + <h3>Dizin Durumu</h3> - <h3>File Index Settings</h3> - <h3>Dosya Dizini Ayarları</h3> + <h3>Dosya Dizini Ayarları</h3> - <h3>Search Engine Settings</h3> - <h3>SArama Motoru Ayarları</h3> + <h3>SArama Motoru Ayarları</h3> - Whether to delete this directory? - Bu dizini silinsin mi? + Bu dizini silinsin mi? - - Yes - - - - - No - - - - Done - Tamam + Tamam - Index Entry: %1 - Dizin Girişi: %1 + Dizin Girişi: %1 - Directories - Dizinler + Dizinler - select blocked folder - engellenen klasörü seç + engellenen klasörü seç - Select - Seç + Seç - Position: - Pozisyon: + Pozisyon: - FileName: - Dosya Adı: + Dosya Adı: - FileType: - Dosya Türü: - - - - Choosen path is Empty! - - - - - Choosen path is not in "home"! - - - - - Its' parent folder has been blocked! - - - - - Set blocked folder failed! - - - - - OK - + Dosya Türü: ShowMoreLabel - - - Show More... - Daha Fazla Göster... + Daha Fazla Göster... - Retract - Geri çek + Geri çek - Loading - Yükleniyor + Yükleniyor - Loading. - Yükleniyor. + Yükleniyor. - Loading.. - Yükleniyor.. + Yükleniyor.. - Loading... - Yükleniyor... + Yükleniyor... + + + + Zeeker::ContentWidget + + + Recently Opened + Yeni Açılan + + + + Open Quickly + Hızlı Aç + + + + Commonly Used + Genel olarak kullanılan + + + + Apps + Uygulamalar + + + + Settings + Ayarlar + + + + Files + Dosyalar + + + + Dirs + Dizinler + + + + File Contents + Dosya İçeriği + + + + Best Matches + En İyi Eşleşen + + + + Web Pages + + + + + Unknown + Bilinmeyen + + + + Zeeker::CreateIndexAskDialog + + + ukui-search + + + + + Search + Ara + + + + Creating index can help you getting results quickly, whether to create or not? + + + + + Don't remind + + + + + No + + + + + Yes + + + + + Zeeker::FolderListItem + + + Delete the folder out of blacklist + Klasörü kara listeden silin + + + + Zeeker::MainWindow + + + ukui-search + + + + + Global Search + Genel Arama + + + + Search + Ara + + + + Zeeker::OptionView + + + Open + + + + + Add Shortcut to Desktop + Masaüstüne Kısayol Ekle + + + + Add Shortcut to Panel + Panele Kısayol Ekle + + + + Open path + Yolu aç + + + + Copy path + Yolu kopyala + + + + Install + + + + + Zeeker::SearchBarHLayout + + + Search + Ara + + + + Zeeker::SearchDetailView + + + Introduction: %1 + + + + + Application + Uygulama + + + + Document + Belge + + + + Preview is not avaliable + + + + + Path + Yol + + + + Last time modified + Son değiştirilme zamanı + + + + Zeeker::SettingsWidget + + + ukui-search-settings + + + + + + + Search + Ara + + + + <h2>Settings</h2> + <h2>Ayarlar</h2> + + + + <h3>Index State</h3> + <h3>Dizin Durumu</h3> + + + + + ... + ... + + + + <h3>File Index Settings</h3> + <h3>Dosya Dizini Ayarları</h3> + + + + Following folders will not be searched. You can set it by adding and removing folders. + Aşağıdaki klasörler aranmayacaktır. Klasör ekleyip kaldırarak ayarlayabilirsiniz. + + + + Add ignored folders + Göz ardı edilen klasörleri ekleyin + + + + <h3>Search Engine Settings</h3> + <h3>SArama Motoru Ayarları</h3> + + + + Please select search engine you preferred. + Lütfen tercih ettiğiniz arama motorunu seçin. + + + + baidu + + + + + sougou + + + + + 360 + + + + + Whether to delete this directory? + Bu dizini silinsin mi? + + + + Yes + + + + + No + + + + + Creating ... + Oluşturuluyor... + + + + Done + Tamam + + + + Index Entry: %1 + Dizin Girişi: %1 + + + + Directories + Dizinler + + + + select blocked folder + engellenen klasörü seç + + + + Select + Seç + + + + Position: + Pozisyon: + + + + FileName: + Dosya Adı: + + + + FileType: + Dosya Türü: + + + + Cancel + İptal + + + + Choosen path is Empty! + + + + + Choosen path is not in "home"! + + + + + Its' parent folder has been blocked! + + + + + Set blocked folder failed! + + + + + OK + + + + + Zeeker::ShowMoreLabel + + + + + Show More... + Daha Fazla Göster... + + + + Retract + Geri çek + + + + Loading + Yükleniyor + + + + Loading. + Yükleniyor. + + + + Loading.. + Yükleniyor.. + + + + Loading... + Yükleniyor... diff --git a/translations/ukui-search/zh_CN.ts b/translations/ukui-search/zh_CN.ts index cd6710b..3b34cf8 100644 --- a/translations/ukui-search/zh_CN.ts +++ b/translations/ukui-search/zh_CN.ts @@ -2,106 +2,114 @@ - ContentWidget + QObject - + + ukui-search is already running! + + + + + Zeeker::ContentWidget + + Recently Opened 最近 - + Open Quickly 快速入口 - + Commonly Used 常用 - + Apps 应用 - + Settings 配置项 - + Files 文件 - + Dirs 文件夹 - + File Contents 文件内容 - + Best Matches 最佳匹配 - + Web Pages 网页 - + Unknown 未知 - CreateIndexAskDialog + Zeeker::CreateIndexAskDialog ukui-search - 搜索 + 搜索 - + Search - 搜索 + 搜索 - + Creating index can help you getting results quickly, whether to create or not? - 创建索引可以快速获取搜索结果,是否创建? + 创建索引可以快速获取搜索结果,是否创建? - + Don't remind - 不再提醒 + 不再提醒 - + No - 否(N) + 否(N) - + Yes - 是(Y) + 是(Y) - FolderListItem + Zeeker::FolderListItem - + Delete the folder out of blacklist 删除 - MainWindow + Zeeker::MainWindow ukui-search @@ -113,289 +121,277 @@ 搜索 - + Search 搜索 - OptionView + Zeeker::OptionView - + Open 打开 - + Add Shortcut to Desktop 添加到桌面快捷方式 - + Add Shortcut to Panel 添加到任务栏快捷方式 - + Open path 打开文件所在路径 - + Copy path 复制文件路径 - + Install 安装 - QObject + Zeeker::SearchBarHLayout - - ukui-search is already running! - - - - - SearchBarHLayout - - + Search 搜索 - SearchDetailView + Zeeker::SearchDetailView - - Path - 路径 - - - - Last time modified - 上次修改时间 - - - - Application - 应用 - - - + Introduction: %1 软件介绍: %1 - + + Application + 应用 + + + Document 文件 - + Preview is not avaliable 当前预览不可用 + + + Path + 路径 + + + + Last time modified + 上次修改时间 + - SettingsWidget + Zeeker::SettingsWidget ukui-search-settings 搜索 - - - + + + Search 搜索 - + <h2>Settings</h2> <h2>设置</h2> - + <h3>Index State</h3> <h3>索引状态</h3> - - + + ... - + <h3>File Index Settings</h3> <h3>文件索引设置</h3> - + Following folders will not be searched. You can set it by adding and removing folders. 搜索将不再查看以下文件夹。通过增加和删除文件夹可进行文件索引设置。 - + Add ignored folders 添加文件夹至黑名单 - + <h3>Search Engine Settings</h3> <h3>搜索引擎设置</h3> - + Please select search engine you preferred. 设置互联网搜索引擎 - + baidu 百度 - + sougou 搜狗 - + 360 360 - + Whether to delete this directory? 是否要删除此目录 - + Yes 是(Y) - + No 否(N) - - Cancel - 取消 - - - - Choosen path is Empty! - 选择的路径不存在! - - - - Choosen path is not in "home"! - 请选择家目录下的文件夹! - - - - Its' parent folder has been blocked! - 父文件夹已被屏蔽! - - - - Set blocked folder failed! - - - - - OK - 好的 - - - + Creating ... 正在索引 - ukui-search - 搜索 - - - + Done 索引完成 - + Index Entry: %1 索引项: %1 - + Directories 文件夹 - + select blocked folder 选择屏蔽文件夹 - + Select 选择 - + Position: 位置: - + FileName: 名称: - + FileType: 类型: + + + Cancel + 取消 + + + + Choosen path is Empty! + 选择的路径不存在! + + + + Choosen path is not in "home"! + 请选择家目录下的文件夹! + + + + Its' parent folder has been blocked! + 父文件夹已被屏蔽! + + + + Set blocked folder failed! + + + + + OK + 好的 + - ShowMoreLabel + Zeeker::ShowMoreLabel - - - + + + Show More... 显示更多... - + Retract 收起 - + Loading 加载中 - + Loading. 加载中. - + Loading.. 加载中.. - + Loading... 加载中...